1 2003-10-05 Nick Clifton <nickc@redhat.com>
3 * as.c (parse_args): Revert patch to change handling of -f
4 option. Its behaviour is mandated by the POSIX 2 spec.
6 2003-10-04 Christian Groessler <chris@groessler.org>
8 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
9 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
10 (md_pcrel_from): This function now gets called. Supply return
13 2003-10-04 Nick Clifton <nickc@redhat.com>
15 * as.c: Convert to ISO C90.
17 2003-10-04 Nick Clifton <nickc@redhat.com>
19 * as.c (std_shortopts): Remove 'f'.
20 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
21 acecpted as an alias for -f.
23 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
25 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
26 Make 'r' mean readonly data.
28 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
30 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
31 Unbreak overflow checks.
33 2003-10-01 Chris Demetriou <cgd@broadcom.com>
35 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
37 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
39 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
41 (load_register): Likewise.
44 2003-09-30 Chris Demetriou <cgd@broadcom.com>
46 * config/tc-mips.c (mips_ip): Capitalize first word of
47 existing condition code warning, and add condition code
48 warnings for .ps instructions, and for bc1any[24][tf].
50 2003-09-30 Chris Demetriou <cgd@broadcom.com>
52 * NEWS: Mention support for MIPS64 Release 2.
54 2003-09-30 Chris Demetriou <cgd@broadcom.com>
56 * NEWS: Add an indication of the cutoff for 2.14.
58 2003-09-30 Chris Demetriou <cgd@broadcom.com>
60 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
61 * configure: Regenerate.
62 * config/tc-mips.c (imm2_expr): New variable.
63 (md_assemble, mips16_ip): Initialize imm2_expr.
64 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
65 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
66 (macro): Handle M_DEXT and M_DINS.
67 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
69 (OPTION_MIPS64R2): New define.
70 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
71 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
72 (md_parse_option): Handle OPTION_MIPS64R2.
73 (s_mipsset): Handle setting "mips64r2" ISA.
74 (mips_cpu_info_table): Add mips64r2.
75 (md_show_usage): Document -mips64r2 option.
76 * doc/as.texinfo: Docuemnt -mips64r2 option.
77 * doc/c-mips.texi: Likewise.
79 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
81 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
83 2003-09-26 Matt Thomas <matt@3am-software.com>
85 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
87 (md_longopts): Add "pic" option.
88 (md_parse_option): Change 'K' to OPTION_PIC.
90 2003-09-23 Alan Modra <alan@modra.org>
92 * config/obj-elf.c (obj_elf_change_section): Adjust for
93 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
94 to be set when defaults are not. Don't set attr from defaults if
97 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
99 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
100 truncate values which won't fit im 32 bits.
101 (load_register): Likewise.
104 2003-09-17 Dmitry Diky <diwil@mail.ru>
106 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
107 (msp430_operands): Remove redundant l2[16] within switch-case.
109 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
111 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
112 * configure: Regenerate.
114 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
116 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
117 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
118 the function prototype.
119 (load_register): Likewise. Simplify the checks for sign-extended
121 (macro): Likewise. Fix code generation for 64-bit address constants
122 outside the 32-bit compatibility space. Adjust
123 macro_build_ldst_constoffset calls.
124 (s_cprestore): Adjust macro_build_ldst_constoffset call.
126 2003-09-11 Bob Wilson <bob.wilson@acm.org>
128 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
129 literal_syms): New global variables.
130 (xtensa_define_label, add_target_symbol, xtensa_find_label,
131 map_over_defined_symbols, is_loop_target_label,
132 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
133 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
134 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
135 from insn_labels to saved_insn_labels when entering a literal region.
136 (xtensa_end_directive): Call md_flush_pending_output. Restore
137 insn_labels list when leaving a literal region.
138 (xtensa_literal_position): Call xtensa_clear_insn_labels.
139 (xtensa_literal_pseudo): Add check to disallow .literal inside a
140 literal region. Move insn_labels to saved_insn_labels and then restore
142 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
143 code to set is_loop_target or is_branch_target flag on the symbol
144 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
145 (xtensa_add_literal_sym, xtensa_add_insn_label,
146 xtensa_clear_insn_labels): New functions.
147 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
148 loops_ok argument. Rewrite to use insn_labels list instead of
149 calling xtensa_find_label and to check the is_loop_target flag on
150 symbols when loops_ok is false.
151 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
152 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
153 call to xtensa_move_labels. Propagate is_branch_target and
154 is_loop_target flags from symbols to frags.
155 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
156 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
157 aligning a loop instruction. Adjust call to xtensa_move_labels for
158 aligning entry instructions. Add call to xtensa_clear_insn_labels.
159 (xtensa_end): Remove call to xtensa_mark_target_fragments.
160 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
161 code to use new literal_syms list.
162 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
163 is_branch_target flags.
165 2003-09-09 Bob Wilson <bob.wilson@acm.org>
167 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
168 "move_labels" argument and corresponding call to xtensa_move_labels.
169 (md_assemble): Add a separate call to xtensa_move_labels and remove
170 argument for call to xtensa_mark_literal_pool_location.
171 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
172 calls to xtensa_mark_literal_pool_location.
173 (xtensa_create_local_symbol): Delete and inline the code into...
174 (xtensa_create_literal_symbol): ...here.
175 (xtensa_frob_label): Combine conditionals.
176 (expression_maybe_register, xtensa_symbol_new_hook,
177 fix_new_exp_in_seg): Use symbol_get_tc.
179 2003-09-09 Bob Wilson <bob.wilson@acm.org>
181 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
182 combining identical literals.
183 (expression_maybe_register): Remove call to find_lit_sym_translation.
184 (is_duplicate_expression, cache_literal, is_duplicate_literal,
185 add_lit_sym_translation, find_lit_sym_translation): Delete.
187 2003-09-07 Nick Clifton <nickc@redhat.com>
189 * doc/as.texinfo (Comments): Comment character for PPC is #.
191 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
194 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
197 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
199 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
201 2003-09-04 Nick Clifton <nickc@redhat.com>
203 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
204 (md_pseudo_table): Add .v850e1 pseudo op.
205 (md_show_usage): Document -mv850e1 switch.
206 (md_parse_option): Accept -mv850e1 switch.
207 (md_begin): Allow TARGET_CPU to be v850e1.
208 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
209 * NEWS: Mention support for v850e1.
211 2003-09-04 Alan Modra <amodra@bigpond.net.au>
213 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
214 ppc_cpu selection rather than replacing.
215 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
216 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
218 2003-09-03 Robert Millan <robertmh@gnu.org>
220 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
222 * configure: Regenerate.
224 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
226 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
227 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
228 Specify AC_CONFIG_AUX_DIR.
229 * aclocal.m4: Regenerated with aclocal-1.7.
230 * configure: Regenerated with autoconf 2.57.
231 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
233 2003-08-29 Jakub Jelinek <jakub@redhat.com>
235 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
236 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
237 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
238 nor tc_cfi_emit_pcrel_expr are defined.
239 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
240 DIFF_EXPR_OK is not defined.
241 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
242 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
243 tc_cfi_emit_pcrel_expr): Define.
244 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
245 sparc_cfi_emit_pcrel_expr): New prototypes.
246 (sparc_cie_data_alignment): New decl.
247 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
248 * config/tc-sparc.c: Include dw2gencfi.h.
249 (sparc_cie_data_alignment): New variable.
250 (md_begin): Initialize it.
251 (sparc_cfi_frame_initial_instructions): New function.
252 (sparc_regname_to_dw2regnum): Likewise.
253 (sparc_cfi_emit_pcrel_expr): Likewise.
254 * doc/as.texinfo: Document .cfi_window_save.
256 * config/tc-sparc.c (s_common): Cast last argument to long and
257 change format string to shut up warning.
259 2003-08-25 Jason Eckhardt <jle@rice.edu>
261 * doc/c-i860.texi: Update text about relocatable address expansions.
263 2003-08-24 Jason Eckhardt <jle@rice.edu>
265 * config/tc-i860.c (md_assemble): Use isrc2 from the original
266 instruction when expanding E_ADDR.
268 2003-08-21 Nick Clifton <nickc@redhat.com>
270 * po/tr.po: Updated Turkish translation.
272 2003-08-20 Alan Modra <amodra@bigpond.net.au>
274 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
275 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
277 2003-08-19 Nick Clifton <nickc@redhat.com>
279 * config/tc-arm.c (cp_address_required_here): Add code to handle
280 unindexed addressing mode.
282 2003-08-19 Alan Modra <amodra@bigpond.net.au>
284 * config/tc-ppc.c (md_parse_option): Handle -m440.
285 (md_show_usage): Add -m440.
286 (md_apply_fix3): Warning fix.
287 * doc/c-ppc.texi: Document -m440.
289 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
291 * read.c (s_print): Check for NULL.
293 2003-08-16 Alan Modra <amodra@bigpond.net.au>
295 * write.c (fixup_segment): When handling an expression involving
296 the subtraction of two symbols in the same segment, don't clear
297 fx_pcrel except for TC_M68K.
299 2003-08-14 Alan Modra <amodra@bigpond.net.au>
301 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
303 * config/tc-i386.c: Likewise.
304 (RELOC_ENUM): Don't define. Replace throughout with enum.
306 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
307 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
309 * Makefile.in: Regenerate.
311 2003-08-08 Andreas Schwab <schwab@suse.de>
313 * config/tc-m68k.h (TARGET_USE_CFIPOP)
314 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
315 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
317 * config/tc-m68k.c: Include "dw2gencfi.h".
318 (tc_m68k_regname_to_dw2regnum)
319 (tc_m68k_frame_initial_instructions): New functions.
321 2003-08-08 Dmitry Diky <diwil@mail.ru>
323 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
324 according to gcc order.
326 2003-08-07 Jason Eckhardt <jle@rice.edu>
328 * config/tc-i860.c (i860_check_label): New function.
329 * config/tc-i860.h (i860_check_label): New prototype.
330 (tc_check_label): Define macro as i860_check_label.
332 2003-08-06 Jason Eckhardt <jle@rice.edu>
334 * config/tc-i860.c (s_align_wrapper): New function and prototype.
335 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
336 surrounding OBJ_ELF ifdef, and re-format slightly.
337 * doc/c-i860.texi: Document the special .align syntax available
340 2003-08-06 Jason Eckhardt <jle@rice.edu>
342 * config/tc-i860.c (i860_handle_align): New function.
343 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
344 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
346 2003-08-06 Jason Eckhardt <jle@rice.edu>
348 * config/tc-i860.c (i860_process_insn): Check that instructions
349 with their dual-bit set are 8-byte aligned.
351 2003-08-06 Nick Clifton <nickc@redhat.com>
353 * po/fr.po: Updated French translation.
355 2003-08-05 Jason Eckhardt <jle@rice.edu>
357 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
358 setting during flop argument parsing. Instead, do it after
359 instruction is fully parsed.
361 2003-08-05 Jason Eckhardt <jle@rice.edu>
363 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
364 directives are only available in Intel syntax mode.
366 2003-08-05 Jason Eckhardt <jle@rice.edu>
368 * config/tc-i860.c (s_dual): Accept .dual directive only in
369 the Intel syntax mode.
370 (s_enddual): Likewise for .enddual.
371 (s_atmp): Likewise for .atmp.
373 2003-08-04 Alan Modra <amodra@bigpond.net.au>
375 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
376 for memory operands. Pass the full operand_string to i386_index_check.
378 2003-08-01 Jason Eckhardt <jle@rice.edu>
380 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
381 (target_intel_syntax): Declare variable.
382 (OPTION_INTEL_SYNTAX): Declare macro.
383 (md_longopts): Add option -mintel-syntax.
384 (md_parse_option): Set target_intel_syntax.
385 (md_show_usage): Add -mintel-syntax usage.
386 (md_begin): Set reg_prefix based on target_intel_syntax.
387 (i860_process_insn): Skip register prefix only if there is one.
388 Parse relocatable expressions in either Intel or AT&T syntax based
389 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
390 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
391 about the differences in syntax.
393 2003-08-01 Dmitry Diky <diwil@mail.ru>
395 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
398 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
400 * config/tc-sh.c (md_assemble): For branches, check & update
403 2003-07-30 Jason Eckhardt <jle@rice.edu>
405 * config/tc-i860.c: Convert to ISO C90.
407 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
409 * read.c (s_space): Revert 2003-07-28 change.
411 2003-07-30 Alan Modra <amodra@bigpond.net.au>
413 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
415 2003-07-29 Alan Modra <amodra@bigpond.net.au>
417 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
419 2003-07-29 Jakub Jelinek <jakub@redhat.com>
421 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
423 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
425 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
427 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
429 * read.c (s_space): Don't warn about .space 0.
431 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
433 * config/tc-mips.c (mips_flag_pdr): Define.
434 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
435 (s_mips_end) [OBJ_ELF]: Likewise.
436 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
437 (md_parse_option) [OBJ_ELF]: Handle them.
438 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
440 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
441 * doc/as.texinfo (Overview) [MIPS]: Likewise.
443 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
445 * config/obj-elf.c (obj_elf_change_section): Update
446 elf_section_type and elf_section_flags only when they are
449 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
451 * config/obj-elf.c (obj_elf_change_section): Always set section
454 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
456 * config/obj-elf.c (special_sections): Removed.
457 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
458 elf_section_type and elf_section_flags.
459 (elf_frob_file): Set SHT_GROUP.
461 * config/obj-elf.h (obj_sec_set_private_data): New.
463 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
464 * config/tc-ia64.h: Likewise.
465 * config/tc-m32r.h: Likewise.
466 * config/tc-m68hc11.h: Likewise.
467 * config/tc-mcore.h: Likewise.
468 * config/tc-mips.h: Likewise.
469 * config/tc-ppc.h: Likewise.
470 * config/tc-sh64.h: Likewise.
471 * config/tc-v850.h: Likewise.
472 * config/tc-xtensa.h: Likewise.
474 * config/tc-v850.h (SHF_V850_GPREL): Removed.
475 (SHF_V850_EPREL): Likewise.
476 (SHF_V850_R0REL): Likewise.
478 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
481 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
483 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
484 debugging symbols so that we handle page memory correctly.
486 2003-07-24 Nick Clifton <nickc@redhat.com>
488 * po/fr.po: Updated French translation.
490 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
492 * config/tc-arm.c (arm_archs): Add iwmmxt.
494 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
496 * read.c (do_parse_cons_expression): Mark nbytes unused to
499 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
501 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
504 * config/tc-h8300.c (md_assemble): Make sure characters after
505 slash and dot are lower-case.
507 2003-07-17 Nick Clifton <nickc@redhat.com>
509 * po/es.po: New Spanish translation.
510 * po/tr.po: New Turkish translation.
511 * po/opcodes.pot: Regenerate.
513 2003-07-16 Alan Modra <amodra@bigpond.net.au>
515 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
516 (generic_dwarf2_emit_offset): Don't define function when
517 TC__DWARF2_EMIT_OFFSET is defined.
519 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
521 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
522 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
523 * doc/c-mips.texi: Document -march=rm9000.
525 2003-07-15 Alan Modra <amodra@bigpond.net.au>
527 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
528 only for V850_OPERAND_DISP operands.
530 2003-07-15 Alan Modra <amodra@bigpond.net.au>
532 * frags.c (frag_more): Move segment checks to..
533 (frag_alloc_check): ..here. New function.
534 (frag_append_1_char): Call frag_alloc_check.
536 2003-07-14 Nick Clifton <nickc@redhat.com>
538 * po/tr.po: Update with latest version.
539 * po/POTFILES.in: Regenerate.
540 * po/gas.pot: Regenerate.
541 * configure: Regenerate.
543 2003-07-14 Nick Clifton <nickc@redhat.com>
545 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
546 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
547 "safe-ctype.h" and update use of macros.
548 * Makefile.am: Update dependencies.
549 * Makefile.in: Regenerate.
551 2003-07-11 Alan Modra <amodra@bigpond.net.au>
553 * po/gas.pot: Regenerate.
555 2003-07-10 Jakub Jelinek <jakub@redhat.com>
557 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
558 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
559 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
560 DWARF2_CIE_DATA_ALIGNMENT): Define.
561 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
563 (ppc_cie_data_alignment): Declare.
564 * config/tc-ppc.c: Include dw2gencfi.h.
565 (ppc_cie_data_alignment): Define.
566 (md_begin): Initialize ppc_cie_data_alignment.
567 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
569 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
570 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
571 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
572 DWARF2_CIE_DATA_ALIGNMENT): Define.
573 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
575 (s390_cie_data_alignment): Declare.
576 * config/tc-s390.c: Include dw2gencfi.h.
577 (s390_cie_data_alignment): Define.
578 (md_begin): Initialize s390_cie_data_alignment.
579 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
582 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
584 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
585 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
586 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
587 * configure.in (am33_2.0, mn10300-*-linux*): Added.
588 * configure: Rebuilt.
589 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
591 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
594 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
596 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
597 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
598 for subtracts from GLOBAL_OFFSET_TABLE that could not be
600 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
601 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
602 could not be simplified.
603 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
604 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
605 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
606 BDF_RELOC_MN10300_GOT32.
607 * config/tc-mn10300.c (mn10300_fix_adjustable): If
608 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
609 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
610 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
611 symbol if we know its value.
612 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
613 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
614 duplicate underscore prefix.
615 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
616 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
617 type in X_md, not X_add_number. Zero X_add_number.
618 (mn10300_check_fixup): Extract relocation type from X_md.
619 * config/tc-mn10300.h: Update comment.
620 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
621 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
623 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
624 (mn10300_check_fixup): Likewise.
625 (mn10300_parse_name): Set X_add_number to relocation type.
626 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
627 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
628 O_GOTOFF, O_PLT, O_GOT): Define.
629 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
630 (mn10300_check_fixup): New fn.
631 (md_assemble): Call it. Check for PIC-related relocs.
632 (mn10300_cons_fix_new): Likewise. New fn.
633 (mn10300_end_of_match): New fn.
634 (mn10300_md_parse_name_cont): New fn.
636 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
638 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
639 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
641 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
642 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
643 md_assemble, md_estimate_size_before_relax): Handle fbCC.
644 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
645 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
647 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
648 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
649 (HAVE_AM33): Match AM33_2 too.
650 (HAVE_AM33_2): New macro.
651 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
652 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
653 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
654 (float_registers, double_registers): New variables.
655 (float_register_name, double_register_name): New functions.
656 (md_assemble): Recognize FP registers. Implement FMT_D3.
657 (mn10300_insert_operand): Support FP registers.
659 2003-07-08 Chris Demetriou <cgd@broadcom.com>
661 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
662 target being a global symbol if not compiling SVR4 PIC code.
664 2003-07-07 Nick Clifton <nickc@redhat.com>
666 * doc/c-m32r.texi (M32R-Directives): New node. Document the
667 .high, .shigh and .low directives.
669 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
671 * config/tc-h8300.c (h8300sxnmode): Add prototype.
673 (parse_exp): Replace expressionS argument with a h8_op. Parse the
674 operand size as well.
675 (skip_colonthing): Remove unused expression argument. Tighten checks
677 (colonmod24): Remove.
678 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
679 (get_operand): Likewise. Use the standard code to read the size of
680 pc-relative operands.
681 (fix_operand_size): Include the size-guessing logic that used to be
682 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
683 offsets with a symbolic component.
685 2003-07-04 Nick Clifton <nickc@redhat.com>
687 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
688 macro to compute size of selected register name array.
690 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
692 * config/tc-s390.c (md_parse_option): Add cpu type z990.
693 (md_begin): Add minimal cpu type logic for instructions with different
694 binary format depending on the cpu.
695 (md_assemble): Remove check for minimal cpu.
696 (s390_insert_operand): Add support for long displacements.
697 (md_gather_operands): Likewise.
698 (tc_s390_fix_adjustable): Likewise.
699 (tc_s390_force_relocation): Likewise.
700 (md_apply_fix3): Likewise.
702 2003-06-30 Chris Demetriou <cgd@broadcom.com>
704 * config/tc-mips.c (s_mipsset): Implement -march= handling
707 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
709 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
710 prototypes and casts. Replace PTR with void *. Reformat.
711 * config/tc-mips.h: Likewise.
713 2003-06-30 Alan Modra <amodra@bigpond.net.au>
715 * config/tc-ia64.c (note_register_values): Warning fix.
716 * config/tc-mips.c (append_insn): Likewise.
718 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
720 * config/tc-mips.c (mips_set_options,mips_opts): Support for
722 (file_mips_arch): Rename mips_arch.
723 (mips_arch_info,mips_tune_info): Remove.
724 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
725 (mips_cpu_info_from_arch): New function.
726 (md_begin): Use file_mips_arch.
727 (macro_build,macro,mips_ip): Use mips_opts.arch.
728 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
729 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
731 (s_mipsset): Support for .set arch=FOO.
732 (mips_cpu_info_table): Fix typo.
734 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
736 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
738 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
740 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
741 unsigned 8-bit operands.
743 2003-06-24 Nick Clifton <nickc@redhat.com>
745 * read.c (s_comm): Change error message to assume an unsigned size
746 has been passed to .comm.
747 * config/tc-sparc.c (s_common): Likewise.
748 * write.c (write_contents): Replace 'unsigned long' with
749 'addressT' and 'long' with offsetT in order to allow computations
750 with very large values to work for 64-bit addressed targets.
751 (relax_and_size_all_segments): Likewise.
752 (relax_frag): Likewise.
753 (relax_segment): Likewise.
755 2003-06-23 Mark Mitchell <mark@codesourcery.com>
757 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
759 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
761 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
764 * gas/config/tc-i386.h (CpuPNI): New.
765 (CpuUnknownFlags): Add CpuPNI.
767 2003-06-23 <davidm@hpl.hp.com>
769 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
770 freebsd, openvms, and nsk (non-stop kernel).
772 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
774 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
775 all locals have been declared.
777 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
779 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
780 special handling for n32 ABI.
783 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
785 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
788 2003-06-19 Christian Groessler <chris@groessler.org>
790 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
791 now, not only a warning. Add some more checks to detect invalid
793 (get_operand): For CLASS_IR remember register size in mode struct.
794 (get_specific): Handle new CLASS_IRO type. Add register size
795 checks for CLASS_IR and CLASS_IRO.
796 (md_apply_fix3): Fix undefined usage of buf.
798 2003-06-19 Alan Modra <amodra@bigpond.net.au>
800 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
801 (ppc_change_csect): Add align param. Align frag at start of csect.
802 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
803 (ppc_frob_section): Align vma.
805 2003-06-18 Jakub Jelinek <jakub@redhat.com>
807 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
808 (output_cie): Don't pad.
809 (output_fde): Add align argument. Pad to align if not 0.
810 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
811 Pad just last FDE to EH_FRAME_ALIGNMENT.
813 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
815 * config/tc-s390.c (init_default_arch): Make current_mode_mask
816 dependent on s390_arch_size and current_cpu dependent on
819 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
821 * configure.in: Add c4x as an architecture variant to tic4x.
822 * configure: Regenerate.
823 * Makefile.in: Regenerate.
824 * doc/Makefile.in: Regenerate.
826 2003-06-18 Alan Modra <amodra@bigpond.net.au>
828 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
829 ".TOC." from PPC64_TOC relocs.
831 2003-06-17 Alan Modra <amodra@bigpond.net.au>
833 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
835 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
837 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
838 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
839 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
840 s_cprestore,s_cpadd): Use them.
842 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
844 * configure.in: Add specific case for cris-*-linux-gnu* with
846 * configure: Regenerate.
847 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
848 if TE_LINUX defined, else FALSE.
849 (bfd_boolean demand_register_prefix): Set default from
850 DEFAULT_CRIS_AXIS_LINUX_GNU.
851 (symbols_have_leading_underscore): Similar.
852 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
854 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
856 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
857 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
858 FPU_ARCH_FPA for AOUT.
859 (md_begin): Don't try to guess the floating point architecture from
860 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
862 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
864 * configure.in: Add i386-netbsd-gnu target.
865 * configure: Regenerate.
867 2003-06-12 Tom Tromey <tromey@redhat.com>
869 * doc/as.texinfo (Comm): Added @node. Moved before CFI
872 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
874 * config/tc-mips.c (append_insn): In a compound relocation, take the
875 field width from the final (outermost) operator.
877 2003-06-11 Richard Henderson <rth@redhat.com>
879 * dw2gencfi.c (struct cfi_escape_data): New.
880 (cfi_add_CFA_nop): Remove.
881 (CFI_escape, dot_cfi_escape): New.
882 (dot_cfi): Remove nop.
883 (cfi_pseudo_table): Remove nop; add escape.
884 (output_cfi_insn): Likewise.
885 (select_cie_for_fde): Stop on escape.
886 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
887 * read.c, read.h (do_parse_cons_expression): New.
888 * doc/as.texinfo (.cfi_escape): New.
890 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
892 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
893 (s_cprestore): Likewise.
894 (s_cpreturn): Likewise.
896 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
898 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
901 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
903 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
904 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
905 exceptions from size assert. Remove most of the addend fixup
906 specialcasing. Remove value, use valP directly. simplify fx_addnumber
907 handling. Remove zero addend specialcases.
908 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
909 the addend fixup specialcase.
910 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
912 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
914 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
915 in the RELOC_EXPANSION_POSSIBLE case.
917 2003-06-11 Alan Modra <amodra@bigpond.net.au>
919 * config/tc-i960.c (line_comment_chars): Add '#'.
920 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
922 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
924 * po/Make-in (DESTDIR): New.
925 (install-data-yes): Support $(DESTDIR).
926 (uninstall): Likewise.
928 2003-06-11 Alan Modra <amodra@bigpond.net.au>
930 * Makefile.am: Run "make dep-am".
931 * Makefile.in: Regenerate.
932 * po/POTFILES.in: Regenerate.
934 2003-06-10 Doug Evans <dje@sebabeach.org>
936 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
938 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
939 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
940 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
942 2003-06-10 Alan Modra <amodra@bigpond.net.au>
943 Gary Hade <garyhade@us.ibm.com>
945 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
946 (md_apply_fix3): Special case lq insn.
948 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
950 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
951 lists. Allow single-register ranges.
953 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
955 * config/tc-h8300.c (h8300sxnmode): New.
956 (md_pseudo_table): Add .h8300sxn entry.
958 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
960 * NEWS: Updated for the new -n option for the i386 assembler.
962 * config/tc-i386.c (optimize_align_code): New.
963 (md_shortopts): Add 'n'.
964 (md_parse_option): Handle 'n'.
965 (md_show_usage): Add '-n'.
967 * config/tc-i386.h (optimize_align_code): Declared.
968 (md_do_align): Optimize code alignment only if optimize_align_code
971 * doc/as.texinfo: Add the new -n option.
973 * doc/c-i386.texi: Document the new -n option.
975 2003-06-07 Richard Henderson <rth@redhat.com>
977 * doc/as.texinfo: Document .cfi_rel_offset.
979 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
980 (cfi_add_CFA_offset): Detect invalid offsets.
981 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
982 (cfi_add_CFA_restore_state): Restore it.
983 (CFI_rel_offset): New.
984 (cfi_pseudo_table): Add it.
985 (dot_cfi): Handle it.
987 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
989 * app.c (do_scrub_chars): Add states 14 and 15 to handle
992 2003-06-05 Michael Snyder <msnyder@redhat.com>
994 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
995 (build_bytes): Ditto.
997 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
999 * config/tc-h8sx.c (DMODE): Remove.
1000 (colonmod24): Don't choose a default if the operand is a 16-bit
1002 (fix_operand_size): New function.
1003 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1004 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1006 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1008 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1009 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1010 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1011 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1012 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1013 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1014 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1015 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1016 (cfi_pseudo_table): New directives .cfi_return_column,
1017 .cfi_restore, .cfi_undefined, .cfi_same_value,
1018 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1019 (dot_cfi, output_cfi_insn): Handle new directives.
1020 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1021 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1022 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1024 2003-06-04 Richard Henderson <rth@redhat.com>
1026 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1028 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1030 2003-06-04 Richard Henderson <rth@redhat.com>
1032 * config/tc-alpha.c (s_alpha_usepv): New.
1033 (md_pseudo_table): Add it.
1034 (alpha_cfi_frame_initial_instructions): New.
1035 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1036 (tc_cfi_frame_initial_instructions): New.
1037 * doc/c-alpha.texi: Document .usepv.
1039 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1041 * as.c (show_usage): Document --execstack and --noexecstack.
1042 (parse_args): Add --execstack and --noexecstack.
1043 (main): Create .note.GNU-stack section if --execstack or
1044 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1045 * as.h (flag_execstack, flag_noexecstack): New.
1047 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1049 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1050 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1051 (OPTION_MISC_BASE): New defines.
1052 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1053 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1054 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1055 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1056 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1057 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1058 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1059 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1060 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1061 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1062 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1063 (OPTION_TRAP): Redefine in terms of new defines.
1064 (md_longopts): Reorder entries.
1066 2003-05-14 Michael Snyder <msnyder@redhat.com>
1067 From Bernd Schmidt <bernds@redhat.com>
1068 and Michael Snyder <msnyder@redhat.com>
1069 and Alexandre Oliva <aoliva@redhat.com>
1070 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1071 * config/tc-h8300.h: Ditto.
1073 2003-06-03 Nick Clifton <nickc@redhat.com>
1075 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1076 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1077 before calling bfd_reloc_type_lookup.
1079 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1081 * read.c (emit_expr): Set dot_value.
1082 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1084 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1086 * macro.c (sub_actual): Don't lose string if it turns out that
1087 &string wasn't an arg.
1089 2003-05-31 Richard Henderson <rth@redhat.com>
1091 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1092 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1094 2003-05-29 Richard Henderson <rth@redhat.com>
1096 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1097 (all_frame_data, plast_frame_data, cur_frame_data): New.
1098 (s_alpha_ent): Record data for dwarf2 cfi.
1099 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1100 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1101 * config/tc-alpha.h (md_end): New.
1102 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1103 (DWARF2_CIE_DATA_ALIGNMENT): New.
1105 2003-05-29 Nick Clifton <nickc@redhat.com>
1107 * configure.in: Add i386-*-freebsd* entry.
1108 * configure: Regenerate.
1110 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1112 * config/tc-m32r.c: Amend comment to refer to Renesas
1114 2003-05-27 Richard Henderson <rth@redhat.com>
1116 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1118 (current_location): Use symbol_temp_new_now.
1119 * stabs.c (s_stab_generic): Use symbol_temp_new.
1120 * symbols.c (temp_label_name): Remove.
1121 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1123 2003-05-27 Richard Henderson <rth@redhat.com>
1125 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1126 * as.c (main): Always call cfi_finish.
1127 * config/tc-i386.c (x86_dwarf2_return_column): New.
1128 (x86_cie_data_alignment): New.
1129 (md_begin): Set them.
1130 (tc_x86_cfi_init): Remove.
1131 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1132 return int, not unsigned long; don't as_bad here.
1133 (tc_x86_frame_initial_instructions): Streamline; use
1135 * config/tc-i386.h (tc_cfi_init): Remove.
1136 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1137 (DWARF2_CIE_DATA_ALIGNMENT): New.
1139 2003-05-27 Richard Henderson <rth@redhat.com>
1141 * symbols.c (temp_label_name): New.
1142 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1143 (symbol_set_value_now): New.
1144 * symbols.h: Prototype them.
1145 * dwarf2dbg.c: Use them.
1146 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1148 2003-05-23 Jason Eckhardt <jle@rice.edu>
1150 * config/tc-i860.c (target_xp): Declare variable.
1151 (OPTION_XP): Declare macro.
1152 (md_longopts): Add option -mxp.
1153 (md_parse_option): Set target_xp.
1154 (md_show_usage): Add -mxp usage.
1155 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1156 (md_assemble): Don't try expansions if XP_ONLY is set.
1157 * doc/c-i860.texi: Document -mxp option and i860XP support.
1159 2003-05-23 Eric Christopher <echristo@redhat.com>
1161 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1163 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1165 * config/tc-mips.c (append_insn): Use actual relocation size for new
1166 fixp's. Don't relax overflow checking for partial_inplace relocations.
1167 Use the actual relocation type in combined relocs, not just the type
1169 (macro_build_jalr): Use actual relocation size for new fix.
1170 (s_cpsetup, s_gpdword): Likewise.
1172 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1174 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1176 2003-05-22 Nick Clifton <nickc@redhat.com>
1178 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1179 section relative offsets for relocs that will not be based on the
1181 (xstormy16_md_apply_fix3): Remove previous patch to this
1184 2003-05-07 Eric Christopher <echristo@redhat.com>
1186 * config/tc-mips.c (mips_abicalls): New variable.
1187 (md_parse_option): Use.
1189 (s_abicalls): Ditto.
1190 (mips_elf_final_processing): Set EF_MIPS_PIC and
1191 EF_MIPS_CPIC dependent on above.
1193 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1195 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1197 2003-05-21 Nick Clifton <nickc@redhat.com>
1199 * config/obj-elf.c: Include dwarf2dbg.h.
1200 (elf_pseudo_tab): Add .file and .loc.
1201 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1202 * config/tc-arm.c: Likewise.
1203 * config/tc-h8300.c: Likewise.
1204 * config/tc-hppa.c: Likewise.
1205 * config/tc-ia64.c: Likewise.
1206 * config/tc-m68hc11.c: Likewise.
1207 * config/tc-m68k.c: Likewise.
1208 * config/tc-mmix.c: Likewise.
1209 * config/tc-mn10300.c: Likewise.
1210 * config/tc-ppc.c: Likewise.
1211 * config/tc-sh.c: Likewise.
1212 * config/tc-sparc.c: Likewise.
1213 * config/tc-v850.c: Likewise.
1214 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1216 * config/tc-ip2k.c: Likewise.
1217 * config/tc-iq2000.c: Likewise.
1218 * config/tc-xstormy16.c: Likewise.
1219 * config/tc-xtensa.c: Likewise.
1220 * Makefile.am: Regenerate dependencies.
1221 * Makefile.in: Regenerate.
1222 * aclocal.m4: Regenerate.
1223 * config.in: Regenerate.
1224 * configure: Regenerate.
1225 * po/POTFILES.in: Regenerate.
1226 * po/gas.pot: Regenerate.
1228 2003-05-21 Nick Clifton <nickc@redhat.com>
1230 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1231 BFD_ASSEMBLER targets.
1232 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1233 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1234 defining BFD_ASSEMBLER.
1236 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1238 * as.c (main): Remove tc_cfi_init().
1239 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1241 (cfi_pseudo_table): Add "cfi_register" entry.
1242 (cfi_make_insn): Handle CFA_register.
1243 (cfi_output_insn): Ditto.
1245 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1246 (dot_cfi_endproc): Reuse already emitted CIEs.
1247 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1248 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1250 2003-05-20 Nick Clifton <nickc@redhat.com>
1252 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1253 (md_pseudo_table): Add entries for .loc and .line.
1255 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1257 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1259 (dot_cfi_endproc): Avoid C99 construct.
1261 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1263 * dw2gencfi.c, dw2gencfi.h: New files.
1264 * config/tc-i386.c (tc_x86_cfi_init): New function.
1265 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1266 * as.c (parse_args): Set verbose flag on --verbose.
1267 (main): Call tc_cfi_init()/cfi_finish().
1268 * as.h (verbose): New external variable.
1269 * read.c (pobegin): Insert CFI pops to the list.
1270 * symbols.c (local_symbol_make): Make symbol external.
1271 * symbols.h (local_symbol_make): New prototype.
1272 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1273 * Makefile.in: Regenerate.
1274 * doc/as.texinfo: Added node "CFI directives" with description of
1275 all implemented .cfi_* directives.
1276 * doc/Makefile.in: Regenerate.
1277 * po/POTFILES.in: Regenerate.
1279 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1281 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1283 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1285 2003-05-18 Jason Eckhardt <jle@rice.edu>
1287 * config/tc-i860.c (i860_process_insn): Initialize fc after
1288 each opcode mismatch.
1290 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1292 * configure.in: Accept i[3-7]86 variants.
1293 * configure: Regenerate.
1295 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1297 * config/tc-mips.h: Fix comment formatting.
1299 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1301 * read.c (old_buffer, old_input, old_limit): Remove variables.
1302 (read_a_source_file): Delete label contin.
1303 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1304 input as with macros, instead of in separate old_* variables.
1305 Zero-terminate string being scrubbed.
1307 2003-05-12 Nick Clifton <nickc@redhat.com>
1309 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1310 (md_assemble): Reset skipping_fptr.
1311 (md_operand): If @fptr() is followed by a minus sign, set
1312 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1313 @fptr is detected, ignore it and reset skipping_fptr.
1315 2003-05-11 Jason Eckhardt <jle@rice.edu>
1317 * config/tc-i860.c (MAX_FIXUPS): Define.
1318 (struct i860_fi fi[]): New struct.
1319 (struct i860_it the_insn): Add above as member and move fields
1320 exp, reloc, pcrel and fup into i860_fi.
1321 (md_assemble): Replace all instances of exp, reloc, pcrel
1322 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1323 Add a loop to possibly emit multiple fix-ups for each insn.
1324 (i860_process_insn): Likewise.
1325 (i860_get_expression): Likewise.
1326 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1328 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1330 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1332 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1334 * config/tc-ia64.c (alias_hash): New.
1335 (alias_name_hash): New.
1336 (secalias_hash): New.
1337 (secalias_name_hash): New.
1338 (md_pseudo_table): Add "secalias".
1339 (md_begin): Initialize alias_hash, alias_name_hash,
1340 secalias_hash and secalias_name_hash.
1341 (struct alias): New.
1342 (dot_alias): Implement .alias and .secalias directives.
1344 (ia64_adjust_symtab): New.
1346 (ia64_frob_file): New.
1348 * config/tc-ia64.h (ia64_adjust_symtab): New.
1349 (tc_adjust_symtab): Defined.
1350 (ia64_frob_file): New.
1351 (tc_frob_file): Defined.
1353 2003-05-07 Dmitry Diky <diwil@mail.ru>
1355 * tc-msp430.c: Add missing lines to known cpus list.
1357 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1359 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1360 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1361 * config.in, configure: Rebuilt.
1363 2003-05-05 H.J. Lu <hjl@gnu.org>
1365 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1366 howto->partial_inplace is false.
1368 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1370 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1371 symbol_used_in_reloc_p check.
1372 (md_apply_fix3): Remove check for howto->pcrel_offset.
1374 2003-05-03 H.J. Lu <hjl@gnu.org>
1376 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1377 fatal error for unknown section attribute.
1379 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1380 unknown section attribute.
1381 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1382 * config/tc-ppc.c (ppc_section_letter): Likewise.
1384 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1385 (ia64_elf_section_type): Accept "unwind".
1387 2003-05-02 H.J. Lu <hjl@gnu.org>
1389 * read.h (demand_copy_string): New.
1391 * config/tc-alpha.c (demand_copy_string): Removed.
1393 2003-05-02 Michael Snyder <msnyder@redhat.com>
1395 * write.h (FAKE_LABEL_NAME): Allow override
1396 (for targets that like eg. a leading dot in a local label).
1398 2003-05-02 Nick Clifton <nickc@redhat.com>
1400 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1401 addend with the symbol's value for pc-relative relocations against
1402 a defined symbol - this will be done automatically.
1404 2003-05-01 H.J. Lu <hjl@gnu.org>
1406 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1409 2003-05-01 H.J. Lu <hjl@gnu.org>
1411 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1413 * config/obj-elf.c (obj_elf_section_name): Call
1414 tc_canonicalize_section_name if it is defined.
1416 2003-05-01 H.J. Lu <hjl@gnu.org>
1418 * config/tc-ia64.c (ia64_check_label): New.
1419 * config/tc-ia64.h (tc_check_label): New.
1421 * read.c (read_a_source_file): Call tc_check_label after
1422 creating a user-defined label if defined.
1424 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1426 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1427 -be and split strings to below 509 bytes in length.
1429 2003-05-01 Christian Groessler <chris@groessler.org>
1431 * expr.h: Fix comments in operatorT typedef.
1432 * config/tc-z8k.c: Add 2003 to copyright message.
1433 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1434 decides by the parameter.
1435 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1436 command line argument was given to select the intended
1438 (get_interrupt_operand): Warn if NOP type code is emitted.
1439 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1440 (apply_fix): Call newfix with additional 'size' parameter.
1441 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1442 4 bit immediate arguments.
1443 (md_longopts): Add 'linkrelax' option.
1444 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1445 variable when 'linkrelax' command line option is specified.
1446 (md_show_usage): Display 'linkrelax' option.
1447 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1448 R_CALLR and R_REL16.
1449 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1451 2003-04-30 H.J. Lu <hjl@gnu.org>
1453 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1454 (ia64_float_to_chars): Likewise.
1455 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1456 and ia64_float_to_chars by tc_segment_info_data.endian from
1457 the current segment if byteorder == -1.
1458 (md_begin): Call dot_byteorder to set target_big_endian.
1459 (md_atof): Call ia64_float_to_chars to convert floating point.
1460 (ia64_float_to_chars_bigendian): New function.
1461 (ia64_float_to_chars_littleendian): Likewise.
1462 (ia64_elf_section_change_hook): Likewise.
1464 * config/tc-ia64.h (ia64_number_to_chars): New.
1465 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1466 (ia64_elf_section_change_hook): New.
1467 (md_elf_section_change_hook): Defined.
1468 (ia64_segment_info_type): New struct.
1469 (TC_SEGMENT_INFO_TYPE): Defined.
1471 2003-04-30 H.J. Lu <hjl@gnu.org>
1473 * config/tc-ia64.c (md_section_align): Deleted.
1475 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1476 (md_section_align): New.
1478 2003-04-30 H.J. Lu <hjl@gnu.org>
1480 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1482 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1484 (md_atof): Add 6 byte padding of zero for real16.
1486 2003-04-29 Nick Clifton <nickc@redhat.com>
1488 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1489 start of a version name.
1491 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1493 * configure.in (mips-*-*n*bsd*): Replace with...
1494 (mips-*-netbsd*, mips-*-openbsd*): These.
1495 * configure: Regenerate.
1497 2003-04-28 H.J. Lu <hjl@gnu.org>
1499 * config/tc-hppa.c (hppa_symbol_chars): New.
1500 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1502 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1504 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1506 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1508 * NEWS: Belatedly mention support for MIPS32 Release 2.
1510 2003-04-24 Eric Christopher <echristo@redhat.com>
1512 * config/tc-mips.c (nopic_need_relax): Revert previous
1515 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1517 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1518 * config/tc-h8300.c (dwarf2dbg.h): Include
1519 (md_pseudo_table): Handle .loc and .file
1520 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1521 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1522 * Makefile.in: Regenerate.
1524 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1526 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1527 (md_pseudo_table): Add h8300hn, h8300sn.
1528 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1529 * doc/c-h8300.texi : Add documentation for new machine directives.
1531 2003-04-24 Nick Clifton <nickc@redhat.com>
1533 * config/tc-ppc.c (ppc_symbol_chars): Define.
1534 * config/tc-ppc.h (tc_symbol_chars): Define.
1536 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1538 * config/tc-sh.c: Amend comment to refer to SuperH.
1539 * config/tc-sh.h: Likewise.
1540 (LISTING_HEADER): Amend to refer to SuperH.
1541 * config/tc-sh64.c: Change comment to refer to SuperH.
1542 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1543 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1544 * doc/c-sh.texi: Amend to refer to SuperH.
1545 Add SuperH architecture documentation references.
1546 * doc/c-sh64.texi: Change to refer to SuperH.
1548 2003-04-23 H.J. Lu <hjl@gnu.org>
1550 * app.c (do_scrub_chars): More checks for valid labels.
1552 2003-04-22 H.J. Lu <hjl@gnu.org>
1554 * app.c (do_scrub_chars): Check for valid label.
1556 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1558 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1559 references to Renesas M32R.
1560 * doc/c-m32r.texi: Likewise.
1562 2003-04-21 Richard Henderson <rth@redhat.com>
1564 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1565 (out_file_list): Assign non-null filename after generating error.
1567 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1569 * ehopt.c (check_eh_frame): For aug_size == 0
1570 in state_seeing_aug_size state skip the state_skipping_aug
1573 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1575 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1577 * doc/c-h8500.texi: Likewise.
1578 * doc/c-sh.texi: Likewise.
1579 * doc/c-sh64.texi: Likewise.
1580 * doc/h8.texi: Likewise.
1581 * config/tc-h8300.c: Likewise.
1582 * config/tc-h8300.h: Likewise.
1583 * config/tc-h8500.c: Likewise.
1584 * config/tc-h8500.h: Likewise.
1585 * config/tc-sh.c: Likewise.
1586 * config/tc-sh.h: Likewise.
1587 * config/tc-sh64.c: Likewise.
1588 * config/tc-sh64.h: Likewise.
1590 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1592 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1593 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1594 (append_insn): When filling delay slots with instructions
1595 that have fixups that tc_gen_reloc might consider modifyable
1596 in variant frags, start a new frag.
1597 (load_address): Generate GOT_DISP with of without offset
1598 depending on whether symbol is local. For -xgot, use
1599 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1600 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1601 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1602 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1603 <ld_st>: In NewABI with small got, always use
1604 GOT_PAGE/GOT_OFST, with the latter in the load/store
1605 instruction. With big got, use GOT_HI16/GOT_LO16 or
1607 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1608 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1609 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1610 (md_convert_frag): Use memmove for safe copying of overlapping
1613 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1615 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1616 -mlong, -mshort-double and -mlong-double options; use table @code.
1617 (M68HC11-Syntax): Update to document 68HC12 operands.
1618 (M68HC11-Modifiers): New section for operand modifiers.
1619 (M68HC11-Directives): New section for specific assembler directives.
1620 (M68HC11-Branch): Fix Overfull hbox error.
1622 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1624 * config/tc-mips.c (macro): Add comments explaining the rationale
1627 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1629 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1630 constant address that Alexandre took out by accident. Reject
1631 64-bit addresses that are not sign extensions of 32 bits only if
1632 we don't support 64-bit address constants.
1634 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1636 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1638 2003-04-08 Nick Clifton <nickc@redhat.com>
1640 * as.c (perform_an_assembly_pass): If using cgen, call
1642 * cgen.c (gas_cgen_begin): New function. If
1643 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1644 otherwise call cgen_clear_signed_overflow_ok.
1645 * cgen.h: Prototype gas_cgen_begin.
1647 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1649 * write.c (write_relocs): Remove unused variable.
1651 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1653 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1654 (macro): Use new macro to decide whether to emit constant address
1655 as 32 or 64 bits if addresses are 32-bit wide but registers are
1658 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1660 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1661 (M6811_OP_PAGE_ADDR): New internal define.
1662 (get_operand): New modifier %page and %addr to obtain page and
1663 address part of a far-function.
1664 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1665 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1667 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1668 (find_opcode): Add comment.
1669 (md_estimate_size_before_relax): Force relocation of
1670 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1671 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1672 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1673 on the symbol itself so that DWARF2 strings are merged correctly.
1675 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1677 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1678 default tic4x target format to 'coff2-tic4x'.
1679 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1681 * config/tc-tic4x.h: Ditto
1683 2003-04-03 Nick Clifton <nickc@redhat.com>
1685 * NEWS: Mention support for Xtensa architecture.
1687 2003-04-02 Philip Blundell <philb@gnu.org>
1689 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1691 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1693 * config/tc-mips.c (macro2): Adjust implementation of
1694 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1695 in the case where the source and destination registers
1698 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1700 * Makefile.am (CPU_TYPES): Add xtensa.
1701 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1702 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1703 (xtensa-relax.o): New target.
1705 * Makefile.in: Regenerate.
1706 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1707 extra_objects for xtensa targets.
1708 * configure: Regenerate.
1709 * write.c (write_object_file): Add new md_post_relax_hook.
1710 * config/tc-xtensa.c: New file.
1711 * config/tc-xtensa.h: Likewise.
1712 * config/xtensa-istack.h: Likewise.
1713 * config/xtensa-relax.c: Likewise.
1714 * config/xtensa-relax.h: Likewise.
1715 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1716 * doc/Makefile.in: Regenerate.
1717 * doc/all.texi: Set new XTENSA variable.
1718 * doc/as.texinfo: Set new Xtensa variable. Describe
1719 Xtensa-specific options. Define line comment character for
1720 Xtensa. Add Xtensa processors to list of ELF targets where
1721 alignment is specified in bytes. Add new Xtensa-Dependent node.
1722 Add acknowledgements for those contributing to the Xtensa port.
1723 * doc/internals.texi: Describe new md_post_relax_hook.
1724 * doc/c-xtensa.texi: New file.
1726 2003-04-01 Nick Clifton <nickc@redhat.com>
1727 Richard Earnshaw <rearnsha@arm.com>
1729 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1730 (ARM_ARCH_IWMMXT): Simplify.
1731 (insns): Place iwmmx instructions in correct place in table.
1732 (arm_add_note): New function: Add a note entry to a .note section.
1733 (md_begin): Make the default architecture be unknown.
1734 Suppress the creation of an arm note section.
1736 2003-03-26 Eric Christopher <echristo@redhat.com>
1738 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1740 2003-03-25 Stan Cox <scox@redhat.com>
1741 Nick Clifton <nickc@redhat.com>
1743 Contribute support for Intel's iWMMXt chip - an ARM variant:
1745 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1746 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1747 (enum wreg_type, enum iwmmxt_insn_type): New types.
1748 (wr_register, wc_register, wcg_register): New macros.
1749 (iwmmxt_table): New variable.
1750 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1751 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1752 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1753 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1754 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1755 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1756 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1757 cp_byte_address_offset, cp_byte_address_required_here,
1758 check_iwmmxt_insn): New functions.
1759 (asm_opcode_insns): Add iWMMXt instructions.
1760 (md_begin): Set the mach value for iWMMXt targets. Create a note
1761 section to identify iwmmxt binaries.
1762 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1763 * doc/c-arm.texi: Document the support for the iWMMXt.
1764 * NEWS: Mention new support.
1766 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1768 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1769 * doc/all.texi: Likewise.
1770 * doc/c-tic54x.texi: Likewise.
1772 2003-03-21 Andreas Schwab <schwab@suse.de>
1774 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1775 avoid aliasing issue.
1777 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1779 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1780 (current_arch_mask): Rename to current_mode_mask.
1781 (current_arch_requested): Remove variable.
1782 (current_cpu): New variable.
1783 (init_default_arch): Set defaults values for s390_arch_size,
1784 current_mode_mask and current_cpu.
1785 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1786 (md_begin): Replace current_arch_mask by current_cpu.
1787 (md_assemble): Adapt check and error message to current_mode_mask and
1790 2003-03-09 James E Wilson <wilson@tuliptree.org>
1792 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1793 * read.c (get_line_sb): Return end of line character or '\n' if
1794 it is zero or non-existent.
1796 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1798 * config/tc-mips.c (mips_validate_fix): New function.
1799 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1800 (mips_validate_fix): Declare.
1802 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1804 * Reverted 2003-03-02's patch.
1806 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1808 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1809 (TC_DWARF2_EMIT_OFFSET): Provide default.
1810 (out_debug_aranges, out_debug_info): Use it.
1811 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1812 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1813 (ia64_gen_real_reloc_type): ... here.
1814 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1816 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1818 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1819 (s_mips_ent): Likewise.
1821 2003-03-04 Dmitry Diky <diwil@mail.ru>
1823 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1824 and x1123 devices, add missed x437.
1825 (md_show_usage): Sort device list.
1827 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1829 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1830 (md_begin): Use preset_target_arch.
1831 (md_longopts): Make isa option unconditional.
1832 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1833 set preset_target_arch.
1834 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1835 by -S_GET_VALUE (fixP->fx_subsy).
1836 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1837 and the addend is 0.
1838 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1839 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1841 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1843 * config/tc-mips.c (append_insn): Add handling of
1844 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1845 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1846 misaligned address and reange overflow.
1847 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1848 earlier warnings about misaligned address and reange overflow.
1849 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1850 (md_apply_fix): Likewise. Fix warning output.
1851 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1852 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1853 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1855 2003-02-21 Nick Clifton <nickc@redhat.com>
1857 * NEWS: Mention availability of test generator program.
1859 2003-02-21 Miles Bader <miles@gnu.org>
1861 * config/tc-v850.c (system_registers): Add v850e debug registers.
1862 (system_register_name): Accept up to 27 (the last v850e sys register).
1864 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1866 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1867 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1868 Capitalize section headings consistently. Format index entries more
1869 consistently. Unconditionalize text about whether text and data
1870 sections are alterable. Use @ifnottex for alternatives to @tex output
1871 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1872 .size and .type directives. Be more polite about bad bug reports.
1873 Move FDL into a separate file.
1874 * doc/fdl.texi: New file.
1876 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1878 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1879 (macro): Check it to decide whether a new frag is needed.
1880 (my_getSmallExpression): Set it.
1882 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1884 * cgen.c: Fix typo: intial -> initial.
1886 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1888 * app.c (do_scrub_chars): Handle '||' in two states.
1890 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1892 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1893 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1895 2003-02-11 Uwe Stieber <uwe@wwws.de>
1897 * configure.in: Add support for kaOS as cross build target system.
1898 * configure: Regenerated.
1900 2003-02-10 Nick Clifton <nickc@redhat.com>
1902 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1903 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1904 bfd_mach_arm_ep9312 machine number.
1906 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1908 * config/tc-mips.c (reloc_needs_lo_p): New function.
1909 (fixup_has_matching_lo_p): New function.
1910 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1911 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1912 if that fixup already has a matching %lo(). Don't call frag_wane here.
1913 (macro): Call frag_wane here if the last unmatched hi was in the
1915 (pic_need_relax): New function, split out from...
1916 (md_estimate_size_before_relax): ...here.
1917 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1918 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1920 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1922 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1924 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1926 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1929 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1931 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1932 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1933 accept x@got+off etc.
1934 (md_assemble): Handle TLS relocs.
1935 (ppc_force_relocation): Force for all TLS relocs.
1936 (ppc_fix_adjustable): Likewise.
1937 (md_apply_fix3): Handle TLS relocs.
1939 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1941 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1942 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1944 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1946 * config/tc-mips.c (enum small_ex_type): Remove.
1947 (imm_unmatched_hi): Remove.
1948 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1949 argument from calls to append_insn.
1950 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1952 (macro_build): Update append_insn calls.
1953 (mips16_macro_build, macro_build_lui): Likewise.
1954 (mips_ip): Rework handling of small expressions. Move explicit
1955 relocation handling into my_getSmallExpression. Assume that the
1956 value of 'o' operands is zero if there is only one bracketed
1958 (percent_op): Make constant. Record the BFD relocation code
1959 associated with each operator.
1960 (my_getSmallParser, my_getPercentOp): Remove.
1961 (parse_relocation): New function.
1962 (my_getSamllExpression): Rework. Fill in relocations here
1963 rather than in mips_ip.
1965 2003-01-29 Nick Clifton <nickc@redhat.com>
1967 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1968 assembler's handling of # <linenum> "<filename>" directives work.
1970 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1972 * dwarf2dbg.c: Include filenames.h.
1973 (struct file_entry): Make filename const char *.
1974 (dirs, dirs_in_use, dirs_allocated): New variables.
1975 (get_filenum): Add NUM argument. Build directory table.
1976 (dwarf2_where): Adjust caller.
1977 (dwarf2_directive_file): Use get_filenum to allocate
1978 slot in file and directory tables.
1979 (dwarf2_directive_loc): Recreate full filename from
1980 directory and filename part if needed for listing.
1981 (out_file_list): Output directory table.
1982 Output main source file dirname before its filename.
1984 2003-01-28 Dmitry Diky <diwil@mail.ru>
1986 * config/tc-msp430.c: Replace occurences of 'tolower' with
1989 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1991 * config/tc-ia64.c (dot_vframesp): Correct error message.
1992 (dot_vframepsp): Ditto.
1994 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1996 * configure.in (em): Set to irix on all Irix systems.
1997 * configure: Rebuilt.
1998 * config/te-irix.h: New file.
1999 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2000 whether to use Irix-specific 64-bit format.
2002 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2004 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2006 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2008 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2009 (tc_gen_reloc): Handle TLS relocs.
2010 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2011 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2013 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2014 (obj_elf_type): Handle tls_object.
2016 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2018 * config/tc-s390.c (s390_tls_suffix): New function.
2019 (elf_suffix_type): Add suffix enums for TLS relocations.
2020 (s390_elf_suffix): Add suffix strings for TLS relocations.
2021 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2023 (md_gather_operands): Map new instruction operand/elf suffix
2024 combinations for TLS to bfd relocations.
2025 (tc_s390_fix_adjustable): Add new TLS relocations.
2026 (tc_s390_force_relocation): Likewise.
2027 (md_apply_fix3): Likewise.
2029 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2031 * as.h: Update copyright date.
2032 * symbols.c: Likewise.
2033 * config/tc-d10v.h: Likewise.
2034 * config/tc-fr30.h: Likewise.
2035 * config/tc-i960.h: Likewise.
2036 * config/tc-mips.h: Likewise.
2038 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2039 (MD_APPLY_SYM_VALUE): Move.
2041 2003-01-23 Nick Clifton <nickc@redhat.com>
2043 * NEWS: Announce sh2e support.
2046 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2047 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2048 (sh_elf_final_processing): Handle arch_sh2e.
2050 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2052 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2053 * symbols.h (S_FORCE_RELOC): Likewise.
2054 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2055 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2056 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2057 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2058 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2059 * write.c (generic_force_reloc): New function.
2060 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2061 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2062 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2063 * as.h (generic_force_reloc): Declare.
2064 * doc/internals.texi (S_FORCE_RELOC): Update.
2065 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2067 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2068 generic_force_reloc.
2069 (alpha_fix_adjustable): Likewise.
2070 * config/tc-arm.c (arm_force_relocation): Likewise.
2071 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2072 * config/tc-frv.c (frv_force_relocation): Likewise.
2073 * config/tc-i386.c (md_apply_fix3): Likewise.
2074 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2075 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2076 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2077 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2078 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2079 * config/tc-mips.c (mips_force_relocation): Likewise.
2080 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2081 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2082 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2083 * config/tc-sh.c (sh_force_relocation): Likewise.
2084 (md_pcrel_from_section): Likewise.
2085 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2086 * config/tc-v850.c (v850_force_relocation): Likewise.
2087 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2088 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2089 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2090 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2092 * config/tc-d10v.c (d10v_force_relocation): Delete.
2093 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2094 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2095 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2096 * config/tc-fr30.c (fr30_force_relocation): Delete.
2097 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2098 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2099 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2100 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2101 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2102 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2103 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2104 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2105 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2106 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2107 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2108 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2109 * config/tc-i386.c (i386_force_relocation): Delete.
2110 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2112 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2113 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2114 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2115 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2117 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2118 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2120 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2122 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2123 sh64_elf_section_data.
2124 * config/tc-sh64.h: Include elf32-sh64.h.
2125 * config/tc-m68hc11.c: Don't include stdio.h.
2126 (md_show_usage): Fix missing continuation.
2127 * Makefile.am: Run "make dep-am".
2128 * Makefile.in: Regenerate.
2130 2003-01-22 Nick Clifton <nickc@redhat.com>
2132 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2134 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2136 * configure.in: Handle *-*-aros*.
2137 * configure: Regenerated from configure.in.
2139 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2141 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2142 gotplt and pltoff relocations.
2143 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2144 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2145 gotplt and pltoff to bfd relocations.
2146 (md_gather_operands): Map new instruction operand/elf suffix
2147 combinations to bfd relocations.
2148 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2149 to the list of unadjustable relocations.
2150 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2151 and pltoff relocations.
2152 (md_apply_fix3): Add the new relocations.
2154 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2156 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2157 with a subsy symbol.
2159 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2161 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2162 of relocs for memory bank addressing.
2164 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2166 * config/tc-m68hc11.c (md_show_usage): Update usage.
2167 (md_parse_option): Recognize -m68hcs12.
2168 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2170 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2172 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2174 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2176 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2178 * Makefile.am: Run "make dep-am".
2179 * Makefile.in: Regenerate.
2180 * po/POTFILES.in: Regenerate.
2182 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2184 * read.c (get_absolute_expr): New, split out from..
2185 (get_absolute_expression): ..here.
2186 * read.h (get_absolute_expr): Declare.
2187 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2188 Trim size to arch bits_per_address, and test for negative input
2189 via get_absolute_expr.
2191 2003-01-07 DJ Delorie <dj@redhat.com>
2193 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2195 (xstormy16_md_apply_fix3): Use adjustment.
2197 2003-01-02 Ben Elliston <bje@redhat.com>
2199 * configure.in: Add iq2000-elf target.
2200 * configure: Regenerate.
2201 * config/tc-iq2000.c: New file.
2202 * config/tc-iq2000.h: Likewise.
2203 * po/gas.pot: Regenerate.
2205 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2207 * config/tc-mips.c: Update copyright years to include 2003.
2208 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2209 Additionally, clean up their code slightly and clean up their
2212 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2214 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2216 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2218 * doc/Makefile.in: Regenerate.
2220 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2222 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2223 of .init and .fini sections for array initializers and finalizers.
2225 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2227 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2228 the "+D" operand, which will be used only by the disassembler.
2230 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2232 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2234 * configure: Regenerate.
2235 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2236 (macro_build): Handle "K" operand.
2237 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2238 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2239 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2240 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2241 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2242 (validate_mips_insn): Implement "+" as a way to extend the
2243 allowed operands, and implement "K", "+A", "+B", and "+C"
2245 (OPTION_MIPS32R2): New define.
2246 (md_longopts): Add entry for OPTION_MIPS32R2.
2247 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2248 (md_parse_option): Handle OPTION_MIPS32R2.
2249 (s_mipsset): Reimplement handling of ".set mipsN" options
2250 and add support for ".set mips32r2".
2251 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2252 (md_show_usage): Document "-mips32r2" option.
2253 * doc/as.texinfo: Document "-mips32r2" option.
2254 * doc/c-mips.texi: Likewise.
2256 2002-12-30 Dmitry Diky <diwil@mail.ru>
2258 * configure.in: Add msp430 target.
2259 * configure: Regenerate.
2260 * Makefile.am: Add msp430 target.
2261 * Makefile.in: Regenerate.
2262 * config/tc-msp430.c: New file: msp430 assembler.
2263 * config/tc-msp430.h: New file: target macros for msp430.
2264 * doc/Makefile.am: Add msp430 target.
2265 * doc/Makefile.in: Regenerate.
2266 * doc/as.texinfo: Include msp430 documenation.
2267 * doc/all.texi: Enable msp430 documentation.
2268 * doc/c-msp430.texi: New file: document msp430 specific features
2271 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2273 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2274 (dwarf2_finish): Use it.
2275 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2276 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2278 2002-12-20 DJ Delorie <dj@redhat.com>
2280 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2281 BFD_RELOC_XSTORMY16_12.
2283 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2285 * doc/as.texinfo (Invoking): Typo fix.
2286 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2288 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2290 * doc/c-alpha.texi: Fix typos.
2291 * doc/c-arm.texi: Likewise.
2292 * doc/c-d10v.texi: Likewise.
2293 * doc/c-i370.texi: Likewise.
2294 * doc/c-i960.texi: Likewise.
2295 * doc/c-ia64.texi: Likewise.
2296 * doc/c-mmix.texi: Likewise.
2297 * doc/c-ns32k.texi: Likewise.
2298 * doc/c-pdp11.texi: Likewise.
2299 * doc/c-pj.texi: Likewise.
2300 * doc/c-sh64.texi: Likewise.
2301 * doc/c-sparc.texi: Likewise.
2302 * doc/c-tic54x.texi: Likewise.
2303 * doc/c-v850.texi: Likewise.
2304 * doc/c-vax.texi: Likewise.
2305 * doc/internals.texi: Likewise.
2307 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2309 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2310 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2311 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2312 arrange not to issue warnings about use of AT when AT is not
2315 2002-12-17 Nick Clifton <nickc@redhat.com>
2317 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2318 prevent it being confused with -k.
2320 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2322 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2323 has already been set up, use it.
2325 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2327 * ChangeLog-9295: Fix a typo.
2329 * config/tc-d10v.c: Fix a comment typo.
2330 * config/tc-dlx.c: Likewise.
2331 * config/tc-h8300.h: Likewise.
2332 * config/tc-h8500.h: Likewise.
2333 * config/tc-mips.c: Likewise.
2334 * config/tc-s390.c: Likewise.
2335 * config/tc-sh.h: Likewise.
2336 * config/tc-tic80.h: Likewise.
2337 * config/tc-w65.h: Likewise.
2338 * config/tc-z8k.c: Likewise.
2339 * config/tc-z8k.h: Likewise.
2340 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2342 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2344 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2345 Simplify sign extension. Remove redundant unsigned < 0 test.
2346 * config/tc-i960.c (md_ri_to_chars): Prototype.
2347 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2348 (dump_literals): Init brarsym, and test later instead of isforce.
2350 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2351 (parse): Constify line and lineptr.
2352 (md_begin): Calculate endop here.
2354 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2356 * config/obj-vms.c: Formatting. Include fnctl.h.
2357 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2358 (Object_Record_Offset): Make it a size_t.
2359 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2360 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2361 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2362 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2363 (vms_fixup_data_section <data_size>): Add here instead.
2364 * config/e-criself.c: Fix typo in last change.
2366 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2368 * write.c (write_object_file): Fix signed/unsigned warning.
2369 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2370 * config/e-criself.c (criself_bfd_name): Prototype.
2371 * config/obj-aout.c (s_sect): Remove unused function.
2372 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2373 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2374 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2375 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2376 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2377 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2378 (vms_fixup_text_section <text_siz>): Likewise.
2379 (synthesize_data_segment <data_size>): Likewise.
2380 (vms_fixup_xtors_section <sect_no>): Likewise.
2381 (structure_count): Don't use implicit int type.
2382 * config/tc-a29k.c (insert_sreg): Prototype.
2383 (define_some_regs): Prototype, make static.
2384 (parse_operand): Likewise.
2385 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2386 (md_show_usage <stream>): Likewise.
2387 (md_section_align <segment>): Likewise.
2388 (md_convert_frag <all args>): Likewise.
2389 (md_estimate_size_before_relax <all args>): Likewise.
2390 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2391 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2392 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2393 (md_undefined_symbol <name>): Likewise.
2394 (md_convert_frag <all args>): Likewise.
2395 (write_long <opcode>): Likewise.
2396 (tc_gen_reloc <seg>): Likewise.
2397 (md_estimate_size_before_relax <all args>): Likewise.
2398 (md_apply_fix3 <seg>): Likewise.
2399 (s_d30v_align <ignore>): Likewise.
2400 (build_insn): Correct format string.
2401 (md_apply_fix3): Likewise.
2402 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2403 (md_undefined_symbol <name>): Likewise.
2404 (md_convert_frag <all args>): Likewise.
2405 (md_cgen_lookup_reloc <insn>): Likewise.
2406 (md_begin): Delete unused vars.
2407 (md_assemble): Likewise.
2408 (md_estimate_size_before_relax): Likewise.
2409 (fr30_relax_frag): #if 0 out, seems unused.
2410 (md_atof): Remove declaration of atof_ieee.
2411 (restore_colon): Prototype.
2412 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2413 (frv_find_in_vliw): Likewise.
2414 (frv_debug_tomcat): Likewise.
2415 (frv_adjust_vliw_count): Likewise.
2416 (frv_tomcat_shuffle): Likewise.
2417 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2418 frv_find_in_vliw call.
2419 (md_atof): Remove declaration of atof_ieee.
2420 * config/tc-h8500.c (cons): Delete declaration.
2421 (md_begin <opcode>): Constify.
2422 (displacement_size, immediate_size, absolute_size): Remove.
2423 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2424 (tc_crawl_symbol_chain <headers>): Likewise.
2425 (md_undefined_symbol <name>): Likewise.
2426 (tc_headers_hook <headers>): Likewise.
2427 (md_parse_option <c,arg>): Likewise.
2428 (md_show_usage <stream>): Likewise.
2429 (md_convert_frag <headers, seg>): Likewise.
2430 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2431 (md_atof): Remove declaration of atof_ieee.
2432 (tc_aout_fix_to_chars): Remove unused function.
2433 (parse_reg): Prototype.
2434 (parse_exp): Prototype.
2435 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2436 (parse_reglist): Prototype.
2437 (get_operand): Prototype.
2438 (get_operands): Prototype.
2439 (get_specific): Prototype. Make "this_index" signed.
2440 (check): Prototype, make static.
2442 (build_relaxable_instruction): Prototype, make static.
2443 (build_bytes): Prototype.
2444 (wordify_scb): Prototype.
2445 * config/tc-h8500.h (start_label): Declare.
2446 (tc_coff_sizemachdep): Declare.
2447 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2448 (i370_rmode <unused>): Likewise.
2449 (i370_csect <unused>): Likewise.
2450 (i370_dc <unused>): Likewise.
2451 (i370_ds <unused>): Likewise.
2452 (i370_elf_lcomm <unused>): Likewise.
2453 (i370_ltorg <ignore>): Likewise.
2454 (i370_using <ignore>): Likewise.
2455 (i370_drop <ignore>): Likewise.
2456 (i370_byte <ignore>): Likewise.
2457 (i370_tc <ignore>): Likewise.
2458 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2459 (md_convert_frag <all args>): Likewise.
2460 (md_undefined_symbol <name>): Likewise.
2461 (md_pcrel_from_section <sec>): Likewise.
2462 (tc_gen_reloc <seg>): Likewise.
2463 (i370_section_letter): #if 0 unused functions.
2464 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2465 (symbol_locate): Prototype.
2466 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2467 (md_number_to_disp, md_number_to_field): Remove.
2468 (md_apply_fix3): Correct format string and cast "fup".
2469 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2470 (s_endian <ignore>): Likewise.
2471 (md_undefined_symbol <name>): Likewise.
2472 (tc_crawl_symbol_chain <headers>): Likewise.
2473 (tc_set_bal_of_call): Likewise.
2474 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2475 (i960_handle_align <fragp>): Likewise.
2476 (i960_validate_fix <this_segment_type>): Likewise
2477 (tc_gen_reloc <section>): Likewise.
2478 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2479 (struct memS, struct regop): Forward declare.
2480 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2481 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2482 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2483 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2484 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2485 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2486 (md_number_to_field): Likewise.
2487 (md_number_to_disp): Remove unused function.
2488 (md_atof): Remove declaration of atof_ieee.
2489 (md_apply_fix3): Correct md_number_to_imm call.
2490 * config/tc-ip2k.c (md_assemble): Warning fix.
2491 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2492 (fill_insn <ignore>): Likewise.
2493 (debug_sym <ignore>): Likewise.
2494 (md_undefined_symbol <name>): Likewise.
2495 (m32r_scomm <ignore>): Likewise.
2496 (md_convert_frag <abfd>): Likewise.
2497 (md_cgen_lookup_reloc <insn>): Likewise.
2498 (m32r_record_hi16 <seg>): Likewise.
2499 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2500 (allow_m32rx): Prototype.
2501 (first_writes_to_seconds_operands): Prototype.
2502 (writes_to_pc): Prototype.
2503 (can_make_parallel): Prototype.
2504 (make_parallel): Prototype.
2505 (target_make_parallel): Prototype.
2506 (assemble_two_insns): Prototype.
2507 (m32r_record_hi16): Prototype.
2508 (md_atof): Remove declaration of atof_ieee.
2509 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2510 (m32r_force_relocation): Prototype.
2511 (m32r_elf_section_change_hook): Prototype.
2512 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2513 (md_show_usage): Fix signed/unsigned warning.
2514 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2515 (calcop): Ditto for reg_prefix var.
2516 (hexval): Add cast to fix signed/unsigned warning.
2517 (md_number_to_disp): Delete unused function.
2518 (md_number_to_field): Likewise.
2519 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2520 (match_name): Prototype.
2521 (get_bf2): Prototype.
2522 (get_bf_offset_expression): Prototype.
2523 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2524 (md_undefined_symbol <ignore>): Likewise.
2525 (md_create_short_jump <all args>): Likewise.
2526 (md_create_long_jump <all args>): Likewise.
2527 (md_convert_frag <abfd, sec>): Likewise.
2528 (md_apply_fix3 <segment>): Likewise.
2529 (md_section_align <segment>): Likewise.
2530 (md_pcrel_from_section <sec>): Likewise.
2531 (tc_gen_reloc <section>): Likewise.
2532 (reg_m, reg_n, immediate): Delete unused vars.
2533 (dump_literals): Fix signed/unsigned warning.
2534 (enter_literal): Likewise.
2535 (parse_imm): Likewise. Also fix format string.
2536 (parse_mem): Remove unused var.
2537 (md_assemble <LS>): Abort on unexpected inst.
2538 (md_atof): Remove declaration of atof_ieee.
2539 (md_parse_option): Remove unused vars.
2540 (md_apply_fix3): Fix format strings, cast args.
2541 (tc_gen_reloc): Delete unused var.
2542 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2543 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2544 (md_undefined_symbol <name>): Likewise.
2545 (md_convert_frag <abfd>): Likewise.
2546 (tc_gen_reloc <seg>): Likewise.
2547 (check_operand <insn>): Likewise.
2548 (md_convert_frag): Fix format strings.
2549 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2550 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2551 (md_atof): Remove declaration of atof_ieee.
2552 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2553 (md_apply_fix3): Fix bogus >>='s.
2554 (md_undefined_symbol): Delete unused var.
2555 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2556 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2557 (fake_opcode): Adjust for pj_opc_int_t change.
2558 (md_begin): Likewise.
2559 (md_assemble): Likewise.
2560 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2561 instead of non-existent third arg of parse_exp_save_ilp.
2562 (md_parse_option): Correct "little" and "big" calls.
2563 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2564 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2565 (tc_gen_reloc <section>): Likewise.
2566 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2567 (debug): Rewrite using VA_* macros.
2568 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2569 (md_convert_frag): Likewise.
2570 (md_parse_option): Likewise.
2571 (md_show_usage): Likewise.
2572 (md_undefined_symbol): Likewise.
2573 (tc_gen_reloc): Likewise.
2574 (md_operand): Likewise.
2575 (tc_aout_pre_write_hook): Delete.
2576 (struct tic30_insn): Make "operands" unsigned.
2577 (struct tic30_par_insn): Likewise.
2578 (md_assemble): Likewise for "count", "i" and "numops".
2579 (tic30_parallel_insn): Likewise for vars here.
2580 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2581 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2582 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2583 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2584 (md_undefined_symbol): Likewise.
2585 (md_parse_option): Likewise.
2586 (md_convert_frag): Likewise.
2587 (tc_coff_symbol_emit_hook): Likewise.
2588 (md_atof): Remove declaration of atof_ieee.
2589 (const_overflow): Warning fixes, tidy.
2590 (get_operands): Delete unused vars.
2591 (internal_error_a): Adjust format string to expect a long for arg.
2592 (find_opcode): Warning fixes, simplify.
2593 (build_insn): Cast internal_error_a arg.
2594 (md_begin): Likewise.
2595 (md_apply_fix3): Likewise.
2596 (md_assemble): Delete unused var.
2597 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2598 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2599 (whatreg, parse_reg, parse_exp): Make static, prototype.
2600 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2601 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2602 (get_operand, get_operands, get_specific, newfix): Likewise.
2603 (apply_fix, build_bytes): Likewise.
2604 (md_atof): Remove declaration of atof_ieee.
2605 (tc_aout_fix_to_chars): Delete.
2606 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2608 (md_parse_option): Fix s_segm and s_unseg calls.
2610 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2612 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2614 (RELAX_BRANCH_RELOC_S2): Delete.
2615 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2616 Do not handle BFD_RELOC_16_PCREL.
2617 (macro_build, mips_ip): Likewise.
2618 (md_pcrel_from): Return 4 for undefined symbols regardless of
2620 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2621 Don't dereference howto if no such relocation is available.
2622 Do not apply hack for in-place zero addend in NEWABI.
2623 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2625 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2626 Alan Modra <amodra@bigpond.net.au>
2628 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2629 (TC_LINKRELAX_FIXUP): Add comments.
2631 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2633 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2635 (r_register_name, xr_register_name): Add prototype declarations.
2637 2002-12-08 H.J. Lu <hjl@gnu.org>
2639 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2640 copied from tc-i386.c.
2642 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2644 Fix Bug savannah/1825:
2645 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2646 (md_relax_table): Define specific relax for PC-rel offsets.
2647 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2648 (m68hc11_relax_frag): Handle the new relax code.
2649 (md_convert_frag): Likewise.
2650 (md_estimate_size_before_relax): Likewise.
2652 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2654 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2656 2002-12-05 Richard Henderson <rth@redhat.com>
2658 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2659 (ia64_gen_real_reloc_type): Handle it.
2660 (pseudo_func): Add @ltoffx.
2661 (md_begin): Build .<ltoffx>.
2662 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2664 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2666 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2667 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2668 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2669 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2670 COFF to call arm_force_relocation.
2672 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2674 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2676 (emit_one_bundle): Handle "hint" instruction.
2677 (operand_match): Match IA64_OPND_AR_CSD.
2679 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2681 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2684 2002-12-03 Nick Clifton <nickc@redhat.com>
2686 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2687 .PPC.EMB.apuinfo sections.
2689 2002-12-03 Richard Henderson <rth@redhat.com>
2691 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2693 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2695 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2696 (cons, s_align_bytes): Delete declaration.
2698 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2700 (dot): Delete unused function.
2701 (w65_expression): Remove unused arg.
2702 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2704 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2706 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2708 (check): Remove unused function.
2709 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2710 on unhandled switch case.
2711 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2713 (tc_crawl_symbol_chain): Delete unused function.
2714 (tc_headers_hook): Likewise.
2715 (tc_Nout_fix_to_chars): Likewise.
2716 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2717 (md_parse_option): Likewise.
2718 (md_convert_frag): Likewise.
2719 (tc_coff_symbol_emit_hook): Likewise.
2720 (md_show_usage): Likewise.
2721 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2722 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2723 (w65_expression): Declare.
2725 * po/POTFILES.in: Regenerate.
2727 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2728 and ARM_ADRL_IMMEDIATE.
2730 2002-12-02 Nick Clifton <nickc@redhat.com>
2732 * gasp.c: Delete. It has been deprecated.
2733 * NEWS: Mention that gasp has been removed.
2734 * Makefile.am: Remove references to gasp.
2735 * makefile.vms: Likewise.
2736 * mpw-make.sed: Likewise.
2737 * Makeile.in: Regenerate.
2738 * doc/gasp.texi: Delete.
2739 * doc/Makefile.am: Remove references to gasp.texi.
2740 * doc/Makefile.in: Regenerate.
2741 * macro.c: Delete references to gasp.
2742 Remove use of comment_char function parameter as it is no longer
2744 * macro.h: Update prototypes to remove comment_char parameter.
2746 * read.c (read_a_source_file, s_irp): Remove comment_char
2747 parameter from invocation of functions in macro.c
2749 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2751 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2753 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2755 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2756 (tc_gen_reloc): Mark section param as not used.
2758 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2760 Fix Bug savannah/1825:
2761 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2762 that are not pc-relative.
2763 (m68hc11_relax_frag): Declare.
2765 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2766 the offsetable indexed addressing modes (n,r).
2767 (build_insn): Cleanup some locals.
2768 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2769 relaxation of difference between two symbols of same section.
2770 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2771 only when this is a PC-relative operand and the offset is not absolute.
2772 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2773 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2774 be handled by m68hc11_relax_frag.
2776 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2778 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2779 (32-bit int, 64-bit double).
2780 (md_longopts): New options -mshort, -mlong, -mshort-double and
2781 -mlong-double to control the ABI.
2782 (md_show_usage): Update.
2783 (md_parse_option): Handle new options.
2784 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2786 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2788 * symbols.c (report_op_error): New function, broken out of ...
2789 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2792 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2794 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2795 for BFD_RELOC_32_PLT_PCREL.
2797 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2799 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2800 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2801 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2802 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2803 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2804 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2805 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2806 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2807 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2808 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2809 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2810 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2811 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2812 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2813 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2814 TRUE/FALSE. Formatting.
2816 2002-11-29 Nick Clifton <nickc@redhat.com>
2818 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2819 assume a value of zero.
2820 (do_bkpt): Likewise.
2822 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2824 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2825 for TLS relocations.
2827 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2829 * config/tc-ia64.c (md_apply_fix3): Add default case.
2831 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2833 * symbols.c (S_SET_THREAD_LOCAL): New function.
2834 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2835 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2836 for TLS relocations.
2837 * config/tc-ia64.c (md_apply_fix3): Likewise.
2838 * config/tc-alpha.c (md_apply_fix3): Likewise.
2840 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2842 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2845 2002-11-26 DJ Delorie <dj@redhat.com.
2847 * dwarf2dbg.c (scale_addr_delta): New.
2848 (size_inc_line_addr): Use it.
2849 (emit_inc_line_addr): Use it.
2851 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2853 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2854 (md_assemble): Don't pass on branches to constants as relaxable.
2857 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2859 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2861 2002-11-21 Randolph Chung <randolph@tausq.org>
2863 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2864 only if they have default visibility.
2866 2002-11-21 Richard Henderson <rth@redhat.com>
2868 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2871 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2873 * config/tc-mcore.c (mcore_pool_count): New function.
2874 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2876 2002-11-20 Klee Dienes <kdienes@apple.com>
2878 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2879 coalesce the name fields to use the same pointer.
2881 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2882 the name fields to use the same pointer.
2883 (get_specific): Check for opcodes with the same name using strcmp
2884 as well as comparing the pointer.
2886 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2888 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2891 2002-11-19 Richard Henderson <rth@redhat.com>
2893 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2894 visibility portion of st_other.
2896 2002-11-19 Klee Dienes <kdienes@apple.com>
2898 * config/tc-h8300.c (struct h8_instruction): New type, used to
2899 wrap h8_opcodes with length, noperands, idx, and size fields
2900 (computed at run-time).
2901 (h8_instructions): New variable.
2902 (md_begin): Allocate the storage for h8_instructions. Fill
2903 h8_instructions with pointers to the appropriate opcode and the
2904 correct value for the additional fields.
2905 (clever_message): Update to use h8_instructions instead of
2907 (build_bytes): Ditto.
2908 (get_specific): Ditto.
2909 (md_assemble): Ditto.
2911 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2913 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2914 adjustments to symbols in merge sections.
2916 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2918 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2920 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2922 * dwarf2dbg.h (dwarf2_format): New enum.
2923 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2924 (out_debug_line, out_debug_info): Add code for handling 64-bit
2926 * config/tc-mips.h (mips_dwarf2_format): Declare.
2927 * config/tc-mips.c (mips_dwarf2_format): New function.
2928 * doc/internals.texi (DWARF2_FORMAT): Document.
2930 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2932 * config/tc-mips.c (s_change_section): Make sure input buffer
2933 is not accessed past the end. Don't hand
2934 obj_elf_change_section a pointer into the input buffer.
2936 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2938 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2941 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2943 * config/tc-tic4x.c: Fixed proper commandline
2944 parameters. Added support for new opcode-list format. General
2945 error message fixups.
2946 (c4x_inst_add): Reject insn not for our CPU
2947 (md_begin): Added matrix for setting the proper opcode-level &
2948 device-flags according to cpu type and revision. Rewrite the
2950 (c4x_operand_parse): Fix opcode bug
2951 (c4x_operands_match): New function argument. Added dry-run
2952 mechanism, that is optional error generation. Added constraint 'i'
2954 (c4x_insn_check): Added new function for post-verification of the
2956 (md_assemble): Check all opcodes before croaking because of an
2957 argument mismatch. Need this to be able to fully support
2958 ortogonally arguments.
2959 (md_parse_options): Revised commandprompt swicthes and added new
2961 (md_show_usage): Complete rewrite of printout.
2963 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2965 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2966 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2967 warning when using constant direct bigger than 2^16. Add the new
2970 2002-11-11 Christopher Faylor <cgf@redhat.com>
2972 * configure.in: Use .gdbinit under Cygwin.
2973 * configure: Regenerate.
2975 2002-11-11 Christopher Faylor <cgf@redhat.com>
2977 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2980 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2982 * config/tc-tic4x.c: Declare as many functions as possible as
2983 static. Maintenance on the general indenting. Removed unnecessary
2984 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2985 function. Add support for new DSP, TMS320VC33. Fix bug for
2986 converting flonum constants.
2987 (c4x_do_align): Add proper align handling. Setup align to insert
2989 (c4x_gen_to_words): Support for extended TI type floats.
2990 (md_atof): Proper dumping of multiple-word littlenums.
2991 (c4x_atof): Added support for extended TI type floats.
2992 (c4x_stringer): Added new function to handle compact strings.
2993 (c4x_emit_char): Added new function argument to handle custom
2994 length inserts, like single-byte strings.
2995 * config/tc-tic4x.h: Add proper align handling with NOP's.
2996 * Makefile.am: Added tic4x dependecy
2997 * Makefile.in: Regenerate
2999 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3001 * macro.c (get_any_string): Correct logic for not going beyond end
3004 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3006 * config/tc-mmix.c (get_putget_operands): Mark both possible
3007 operands as invalid at beginning.
3009 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3010 Initialize target of fixup to zero.
3012 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3014 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3015 NEWABI, but we should still emit HI16_S for non-PIC n32.
3017 2002-11-06 Richard Henderson <rth@redhat.com>
3019 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3020 (alpha_fix_adjustable): ... here.
3021 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3023 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3025 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3028 2002-11-05 H.J. Lu <hjl@gnu.org>
3030 * config/tc-mips.c (support_64bit_objects): Check *l before it
3033 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3035 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3036 SEC_LOAD flags for sections marked as 's'.
3038 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3040 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3041 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3042 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3045 * dep-in.sed: Fix typo.
3047 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3049 * configure.in: Update ARM CPU patterns.
3050 * configure: Regenerated.
3052 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3054 * itbl-lex.l: Use #include <> for generated headers.
3055 * itbl-ops.c: Likewise.
3057 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3059 * doc/gasp.texi: Fix typo in deprecation note.
3061 2002-10-23 Nick Clifton <nickc@redhat.com>
3063 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3064 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3066 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3068 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3069 (tc_frob_file_before_adjust): Don't define.
3070 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3072 (mmix_frob_file_before_adjust): Remove ineffective function.
3074 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3076 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3077 (cris_relax_frag): New function.
3078 (md_estimate_size_before_relax) <case ENCODE_RELAX
3079 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3080 expressions that will become absolute expressions to relaxation.
3081 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3082 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3083 value, not distance to symbol.
3084 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3085 Ditto. Correct placement of fixup.
3086 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3088 * config/tc-cris.h (cris_relax_frag): Declare.
3089 (md_relax_frag): Define.
3091 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3093 * config/obj-elf.c (special_sections): Use correct types for init
3095 (obj_elf_change_section): Don't mess with init array section type.
3097 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3099 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3100 for relocs against symbols in a merged section.
3102 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3104 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3105 table as register names.
3107 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3109 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3112 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3114 * expr.c (operand): Add support for n.nn flonums.
3116 2002-10-17 Johannes Stezenbach <js@convergence.de>
3118 * itbl-parse.y (entry): Provide empty action.
3120 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3122 * configure.in (BFDVER_H): Set and subst.
3123 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3124 * Makefile.am: Run "make dep-am".
3126 * configure: Regenerate.
3127 * Makefile.in: Regenerate.
3128 * doc/Makefile.in: Regenerate.
3130 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3132 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3133 (MD_APPLY_SYM_VALUE): Define for PE too.
3135 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3137 * Makefile.am: Run "make dep-am".
3138 (CPU_OBJ_VALID): sh64 coff is invalid.
3139 * as.c: #include "bfdver.h".
3140 * Makefile.in: Regenerate.
3141 * config.in: Regenerate.
3143 2002-10-14 Momchil Velikov <velco@fadata.bg>
3145 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3147 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3149 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3150 * configure: Regenerate.
3152 2002-10-13 Eric Christopher <echristo@redhat.com>
3153 Alexandre Oliva <aoliva@redhat.com>
3155 * config/tc-mips.c (s_gpdword): New function.
3156 (mips_pseudo_table): Add .gpdword.
3157 (mips_need_elf_addend_fixup): never for NEWABI.
3158 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3160 (s_cpadd): Generate .cpadd on NEWABI.
3162 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3164 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3166 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3168 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3169 (md_relax_frag): Adjust macro.
3170 * config/tc-mips.c (mips_relax_branch): New variable.
3171 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3172 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3173 (RELAX_MIPS16_P): Adjust.
3174 (append_insn): Emit branch to non-constant in a frag_var if
3175 branch-relaxation is desirable and possible.
3176 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3177 (OPTION_ELF_BASE): Adjust.
3178 (md_parse_option): Handle new options.
3179 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3181 (relaxed_branch_length): New function.
3182 (md_estimate_size_before_relax): Handle branch frags.
3183 (mips_relax_frag): Likewise.
3184 (md_convert_frag): Handle branch frags. Warn if branch is
3187 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3189 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3191 (md_apply_fix3): Add TLS relocs.
3192 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3195 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3196 Alan Modra <amodra@bigpond.net.au>
3198 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3199 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3201 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3203 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3206 2002-10-09 Richard Shann <richard.shann@superh.com>
3207 Stephen Clarke <stephen.clarke@superh.com>
3209 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3212 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3214 * contig/tc-sh.c (sh_local_pcrel): New.
3215 (sh_force_relocation): Use sh_local_pcrel.
3216 (md_pcrel_from_section): Check the relocation type whether it
3217 should be resolved locally. Use S_FORCE_RELOC.
3219 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3221 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3222 (TC_FORCE_RELOCATION): Tidy arg.
3224 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3225 Ken Raeburn <raeburn@cygnus.com>
3226 Aldy Hernandez <aldyh@redhat.com>
3227 DJ Delorie <dj@redhat.com>
3228 Michael Meissner <meissner@redhat.com>
3229 Eric Christopher <echristo@redhat.com>
3230 Richard Sandiford <rsandifo@redhat.com>
3232 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3233 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3234 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3235 (hilo_interlocks): True for CPU_VR5500.
3236 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3237 (mips_fix_vr4122_bugs): New.
3238 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3239 (mips_emit_delays): Likewise.
3240 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3241 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3242 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3243 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3244 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3245 (OPTION_ELF_BASE): Bump.
3246 (md_parse_option): Handle the new options.
3247 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3250 2002-09-29 H.J. Lu <hjl@gnu.org>
3252 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3253 twice if howto->pcrel_offset is true.
3255 2002-09-28 Matt Thomas <matt@3am-software.com>
3256 Jason Thorpe <thorpej@wasabisystems.com>
3258 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3259 convert undefined references to GOT32/PLT32 if PIC code is
3260 requested. Fix comment.
3262 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3264 * config/tc-sh.c (sh_force_relocation): Return 0 for
3265 some PC relative relocations when not relaxing.
3267 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3269 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3270 Define them if not BFD_ASSEMBLER.
3271 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3273 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3274 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3275 (tc_gen_reloc): Handle x86-64 TLS relocs.
3277 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3279 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3280 fixups to current or absolute section.
3282 2002-09-26 Jim Wilson <wilson@redhat.com>
3284 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3287 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3289 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3290 capable configuration.
3291 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3293 (mips_ip): Likewise.
3295 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3297 * config/tc-mips.c (append_insn): Fix jump overflow check.
3299 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3301 * config/tc-i386.c (process_operands): Warn about "lea" segment
3304 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3306 * write.c: Delete set_segment_vma and prototype. Update all callers.
3308 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3310 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3311 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3312 Rename "fseg" to "sym_seg".
3313 * Makefile.am: Run "make dep-am".
3314 * Makefile.in: Regenerate.
3315 * doc/Makefile.in: Regenerate.
3317 2002-09-20 Nick Clifton <nickc@redhat.com>
3319 * symbols.c (colon): Do not allow symbols to be created in the
3320 absolute section if WORKING_DOT_WORD is not defined and
3321 new_broken_words would require a new frag to be created.
3323 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3325 * expr.c (expr): Simplify foo-foo here.
3326 (clean_up_expression): Remove O_subtract code.
3328 * write.h (struct fix): Add fx_dot_value.
3329 (dot_value): Declare.
3330 * write.c (dot_value): New var.
3331 (fix_new_internal): Save dot_value as fx_dot_value.
3332 (fixup_segment): Adjust fx_offset using fx_dot_value.
3333 * expr.c (expr): Update dot_value.
3335 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3337 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3338 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3339 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3341 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3342 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3343 BFD_RELOC_386_TLS_GOTIE.
3345 2002-09-19 Richard Henderson <rth@redhat.com>
3347 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3349 (alpha_force_relocation): Don't special-case branch type relocs.
3351 2002-09-19 Nick Clifton <nickc@redhat.com>
3353 * config/tc-m68k.c (select_control_regs): Handle situation where
3354 architecture has not yet been selected.
3356 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3358 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3359 (IS_SEXT_16BIT_NUM): New macro.
3360 (macro_build_ldst_constoffset): New function, to build a set of
3361 instructions to do a load or store from a constant offset relative
3362 to a given register.
3363 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3364 .cprestore pseudo-op.
3366 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3368 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3370 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3372 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3374 2002-09-17 Stan Cox <scox@redhat.com>
3376 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3377 (macro): Likewise for la. Likewise for ld.
3378 (mips_after_parse_args): Make -xgot optional, not the default.
3379 (md_apply_fix3): Allow composite relocation to set up gp.
3380 (tc_gen_reloc): Allow relaxing for newabi.
3381 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3382 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3384 2002-09-17 Nick Clifton <nickc@redhat.com>
3386 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3387 BFD_RELOC_ARM_IMMEDIATE has been done.
3388 (tc_gen_reloc): Do not issue reloc number of unimplemented
3389 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3390 their name is already in the error message - plus remove them
3391 from the default case.
3393 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3394 behavior of instructions.
3396 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3398 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3399 Convert functions to K&R format.
3401 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3403 * config/tc-mips.c (pdr_seg): Define only for ELF.
3404 (s_change_section): Remove unused variable. Don't use for nonELF.
3406 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3408 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3410 * config/obj-elf.h (obj_elf_change_section): Likewise.
3412 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3414 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3415 (out_debug_info): Likewise.
3417 2002-09-16 Bruno Haible <bruno@clisp.org>
3419 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3420 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3421 * config/tc-i386.c (i386_target_format): Likewise.
3422 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3423 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3425 2002-09-13 Nick Clifton <nickc@redhat.com>
3427 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3428 when deciding if any operands have been skipped.
3430 2002-09-11 Nick Clifton <nickc@redhat.com>
3432 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3434 * po/tr.po: Updated Turkish translation.
3436 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3438 * config/tc-i386.c (md_apply_fix3): Allow addend for
3439 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3440 BFD_RELOC_386_TLS_LE_32.
3442 2002-09-05 Jeff Law <law@redhat.com>
3444 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3445 marker relocations such as ENTRY/EXIT.
3446 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3447 to both OBJ_ELF and OBJ_SOM.
3449 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3451 * doc/internals.texi (md_apply_fix3): Expand.
3452 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3453 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3454 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3455 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3456 EXTERN_FORCE_RELOC): Document.
3457 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3458 * as.h: Don't include struc-symbol.h for arc.
3460 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3461 subtract absolute symbol.
3462 * obj.h (struct format_ops): Add frob_file_before_fix.
3463 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3464 * symbols.c (S_FORCE_RELOC): New function.
3465 * symbols.h (S_FORCE_RELOC): Declare.
3466 * write.c (TC_FORCE_RELOCATION): Change default.
3467 (TC_FORCE_RELOCATION_ABS): Define.
3468 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3469 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3470 (TC_FORCE_RELOCATION_SECTION): Don't define.
3471 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3472 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3473 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3474 (TC_VALIDATE_FIX_SUB): Define.
3475 (TC_FIX_ADJUSTABLE): Don't define.
3476 (MD_APPLY_SYM_VALUE): Define this instead.
3477 (abs_section_sym): New variable.
3478 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3479 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3480 Don't put the absolute section sym on fixups here.
3481 (fix_segment): New function.
3482 (write_relocs): Don't call fixup_segment from here.
3483 (write_object_file): Instead call tc_frob_file_before_fix,
3484 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3485 Don't output the absolute section symbol.
3486 (fixup_segment): Rewrite.
3487 * write.h (abs_section_sym): Declare.
3488 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3490 (aout_format_ops): Adjust to suit.
3491 * config/obj-aout.h (obj_frob_file): Don't define.
3492 (obj_frob_file_before_fix): Define.
3493 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3494 (S_FORCE_RELOC): Define.
3495 * config/obj-bout.h (S_FORCE_RELOC): Define.
3496 * config/obj-coff.c (coff_format_ops): Init new field.
3497 * config/obj-coff.h: Formatting fixes.
3498 (obj_sec_sym_ok_for_reloc): Define.
3499 (S_FORCE_RELOC): Define.
3500 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3501 (ecoff_frob_file): .. from here.
3502 (ecoff_format_ops): Add new function.
3503 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3504 (obj_frob_file_before_fix): Define.
3505 * config/obj-elf.c (elf_format_ops): Init new field.
3506 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3507 * config/obj-ieee.h: Formatting fixes.
3508 (S_FORCE_RELOC): Define.
3509 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3510 * config/obj-vms.h (S_FORCE_RELOC): Define.
3511 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3512 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3513 for BFD_RELOC_32 and BFD_RELOC_64.
3514 (alpha_fix_adjustable): Remove extern and weak tests.
3515 (alpha_before_fix): Rename from alpha_adjust_symtab.
3516 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3517 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3518 (TC_VALIDATE_FIX): Tweak param name.
3519 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3520 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3521 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3522 (MD_APPLY_SYM_VALUE): Define.
3523 (tc_adjust_symtab): Don't define.
3524 (alpha_adjust_symtab): Don't declare.
3525 (tc_frob_file_before_fix): Define.
3526 (alpha_before_fix): Declare.
3527 (TC_INIT_FIX_DATA): Tweak param names.
3528 * config/tc-arc.c: Include "struc-symbol.h".
3529 (md_pcrel_from): Remove undefined sym fudge.
3530 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3531 Don't set fx_addnumber.
3532 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3533 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3534 (EXTERN_FORCE_RELOC): Define.
3535 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3536 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3537 (arm_validate_fix): Return void.
3538 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3539 Add plt and got reloc tests.
3540 (arm_force_relocation): Call S_FORCE_RELOC.
3541 * config/tc-arm.h (struct fix): Forward declare.
3542 (TC_VALIDATE_FIX): No longer set add_symbolP.
3543 (arm_validate_fix): Adjust declaration.
3544 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3545 (TC_FORCE_RELOCATION): Tweak param name.
3546 (TC_INIT_FIX_DATA): Likewise.
3547 (obj_fix_adjustable): Don't define.
3548 (tc_fix_adjustable): Call arm_fix_adjustable.
3549 (TC_FIX_ADJUSTABLE): Don't define.
3550 (MD_APPLY_SYM_VALUE): Define.
3551 (EXTERN_FORCE_RELOC): Define.
3552 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3553 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3554 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3555 Remove *valP fudges and code to subtract abs sym. Don't set
3557 * config/tc-avr.h: Formatting.
3558 (EXTERN_FORCE_RELOC): Define.
3559 (MD_APPLY_SYM_VALUE): Define.
3560 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3561 (md_apply_fix3): Remove code to subtract abs sym.
3562 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3563 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3564 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3565 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3566 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3567 (tc_fix_adjustable): Remove extern, weak tests.
3568 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3569 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3570 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3571 and code to subtract abs sym.
3572 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3573 (d10v_force_relocation): Call S_FORCE_RELOC.
3574 * config/tc-d10v.h: Don't include write.h.
3575 (struct fix): Instead, forward declare.
3576 (MD_PCREL_FROM_SECTION): Tweak param names.
3577 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3578 (d10v_fix_adjustable): Likewise.
3579 (obj_fix_adjustable): Don't define.
3580 (tc_fix_adjustable): Define.
3581 (TC_FORCE_RELOCATION): Tweak param name.
3582 (MD_APPLY_SYM_VALUE): Define.
3583 (EXTERN_FORCE_RELOC): Define.
3584 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3585 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3586 and code to subtract abs sym.
3587 * config/tc-d30v.h: Don't include write.h.
3588 (struct fix): Instead, forward declare.
3589 (MD_PCREL_FROM_SECTION): Tweak param names.
3590 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3591 (MD_APPLY_SYM_VALUE): Define.
3592 (EXTERN_FORCE_RELOC): Define.
3593 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3594 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3595 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3596 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3597 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3598 Don't use fx_addnumber.
3599 * config/tc-dlx.h: Don't include write.h.
3600 (md_convert_frag): We're not alpha twice over.
3601 (EXTERN_FORCE_RELOC): Define.
3602 (obj_fix_adjustable): Don't define.
3603 (tc_fix_adjustable): Define.
3604 (TC_FIX_ADJUSTABLE): Don't define.
3605 (MD_APPLY_SYM_VALUE): Define.
3606 (LOCAL_LABELS_DOLLAR): Undef always.
3607 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3608 (fr30_fix_adjustable): Remove extern, weak tests.
3609 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3610 (obj_fix_adjustable): Don't define.
3611 (tc_fix_adjustable): Define.
3612 (struct fix): Forward declare.
3613 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3614 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3615 (frv_fix_adjustable): Don't do extern, weak tests.
3616 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3617 (TC_FIX_ADJUSTABLE): Don't define.
3618 (obj_fix_adjustable): Don't define.
3619 (tc_fix_adjustable): Define.
3620 (struct fix): Forward declare.
3621 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3622 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3623 * config/tc-h8300.h (struct fix): Forward declare.
3624 (EXTERN_FORCE_RELOC): Define.
3625 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3626 (hppa_fix_adjustable): Don't test extern or weak. Don't
3627 symbol_mark_used_in_reloc.
3628 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3630 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3631 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3632 (TC_FORCE_RELOCATION_SECTION): Don't define.
3633 (MD_APPLY_SYM_VALUE): Define.
3634 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3635 to subtract abs sym.
3636 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3637 (MD_APPLY_SYM_VALUE): Define.
3638 (MD_PCREL_FROM_SECTION): Tweak param name.
3639 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3640 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3641 (i386_force_relocation): New function.
3642 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3643 (TC_VALIDATE_FIX): Likewise.
3644 (TC_FIX_ADJUSTABLE): Don't define.
3645 (MD_APPLY_SYM_VALUE): Define.
3646 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3647 (i386_force_relocation): Declare.
3648 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3649 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3650 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3651 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3652 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3653 (EXTERN_FORCE_RELOC): Define.
3654 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3655 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3656 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3657 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3658 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3659 Remove #if 0 code. Invert return boolean.
3660 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3661 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3662 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3663 (tc_coff_sizemachdep): Prototype.
3664 (i960_handle_align): Likewise.
3665 (i960_validate_fix): Adjust declaration.
3666 (reloc_callj): Likewise.
3667 (EXTERN_FORCE_RELOC): Define.
3668 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3669 (TC_FORCE_RELOCATION_ABS): Define.
3670 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3671 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3672 (TC_FIX_ADJUSTABLE): Don't define.
3673 (MD_APPLY_SYM_VALUE): Define.
3674 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3675 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3676 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3677 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3678 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3679 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3680 (MD_APPLY_SYM_VALUE): Define.
3681 (EXTERN_FORCE_RELOC): Define.
3682 (TC_FORCE_RELOCATION): Tweak param name.
3683 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3684 (m32r_fix_adjustable): Don't test extern, weak.
3685 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3686 (MD_APPLY_SYM_VALUE): Define.
3687 (obj_fix_adjustable): Don't define.
3688 (tc_fix_adjustable): Define.
3689 (tc_frob_file): Don't define.
3690 (tc_frob_file_before_fix): Define.
3691 (EXTERN_FORCE_RELOC): Define.
3692 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3693 BFD_RELOC_VTABLE_ENTRY address.
3694 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3695 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3696 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3697 Remove duplicated fx_done code.
3698 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3699 (EXTERN_FORCE_RELOC): Define.
3700 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3702 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3703 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3704 (TC_FIX_ADJUSTABLE): Don't define.
3705 (EXTERN_FORCE_RELOC): Define.
3706 (MD_APPLY_SYM_VALUE): Define.
3707 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3708 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3709 Remove fx_addsy tests.
3710 (mcore_force_relocation): Call S_FORCE_RELOC.
3711 (mcore_fix_adjustable): Don't test fx_addsy.
3712 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3713 (EXTERN_FORCE_RELOC): Define.
3714 (obj_fix_adjustable): Don't define.
3715 (tc_fix_adjustable): Define.
3716 (MD_APPLY_SYM_VALUE): Define.
3717 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3718 (mips_pic): No longer static.
3719 (mips_force_relocation): Call S_FORCE_RELOC.
3720 (mips_fix_adjustable): Remove extern, weak tests.
3721 * config/tc-mips.h (enum mips_pic_level): Declare.
3722 (mips_pic): Declare.
3723 (tc_frob_file): Don't define.
3724 (tc_frob_file_before_fix): Define this instead.
3725 (EXTERN_FORCE_RELOC): Define.
3726 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3727 with reg_section tests. Set fx_done instead of calling
3728 symbol_clear_used_in_reloc on bad relocs.
3729 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3730 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3731 (mmix_adjust_symtab): Simplify list handling. Abort on any
3733 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3734 BFD_RELOC_MMIX_LOCAL.
3735 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3736 (EXTERN_FORCE_RELOC): Define.
3737 (MD_PCREL_FROM_SECTION): Tweak param name.
3738 (tc_frob_file): Don't define.
3739 (tc_frob_file_before_fix): Define this instead.
3740 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3741 Remove SEC_CODE checks.
3742 (mn10300_fix_adjustable): Remove extern and weak tests.
3743 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3744 (TC_FORCE_RELOCATION): Tweak param name.
3745 (obj_fix_adjustable): Don't define.
3746 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3747 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3748 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3749 (openrisc_fix_adjustable): Don't test fx_addsy.
3750 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3751 (obj_fix_adjustable): Don't define.
3752 (tc_fix_adjustable): Define this instead.
3753 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3754 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3755 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3756 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3757 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3758 (MD_APPLY_SYM_VALUE): Define.
3759 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3760 Don't subtract symbol value.
3761 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3762 (EXTERN_FORCE_RELOC): Define.
3763 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3764 (MD_APPLY_SYM_VALUE): Define.
3765 (obj_fix_adjustable): Don't define.
3766 (tc_fix_adjustable): Define this instead.
3767 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3769 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3770 (ppc_force_relocation <elf version>): New.
3771 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3772 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3773 comments. Don't subtract fx_subsy as that is already done.
3774 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3775 (MD_PCREL_FROM_SECTION): Likewise.
3776 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3777 ppc_force_relocation.
3778 (TC_FORCE_RELOCATION_SECTION): Delete.
3779 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3780 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3781 (MD_APPLY_SYM_VALUE): Define.
3782 * config/tc-s390.c: #include "dwarf2dbg.h".
3783 (s390_insn): Remove excess parens.
3784 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3785 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3786 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3787 non-NULL. Don't subtract off fx_addsy value.
3788 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3789 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3790 (TC_FIX_ADJUSTABLE): Don't define.
3791 (MD_APPLY_SYM_VALUE): Define.
3792 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3793 (SWITCH_TABLE): Likewise.
3794 (sh_force_relocation): Call S_FORCE_RELOC.
3795 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3796 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3797 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3798 fx_addnumber is zero on entry. Save val in fx_addnumber.
3799 (tc_gen_reloc): Don't subtract fx_subsy.
3800 * config/tc-sh.h (struct fix): Move.
3801 (obj_fix_adjustable): Don't define.
3802 (tc_fix_adjustable): Define this instead.
3803 (TC_FIX_ADJUSTABLE): Don't define.
3804 (MD_APPLY_SYM_VALUE): Define.
3805 (SWITCH_TABLE_CONS): Define.
3806 (SWITCH_TABLE): Define.
3807 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3808 (TC_VALIDATE_FIX_SUB): Define.
3809 (MD_PCREL_FROM_SECTION): Tweak param name.
3810 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3811 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3812 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3813 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3814 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3815 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3816 (TC_VALIDATE_FIX_SUB): Define.
3817 (MD_PCREL_FROM_SECTION): Tweak param name.
3818 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3819 (tc_gen_reloc): Use S_FORCE_RELOC.
3820 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3821 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3822 (TC_FORCE_RELOCATION_ABS): Define this instead.
3823 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3824 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3825 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3826 (MD_APPLY_SYM_VALUE): Define.
3827 (TC_FIX_DATA_PRINT): Tweak param name.
3828 * config/tc-tic30.c (USE_STDOUT): Don't define.
3829 (md_parse_option): Remove stupid debug code.
3830 (tc_gen_reloc): Don't use fx_addnumber.
3831 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3832 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3833 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3834 (tc_fix_adjustable): Define this instead.
3835 (TC_FIX_ADJUSTABLE): Don't define.
3836 (MD_APPLY_SYM_VALUE): Define this instead.
3837 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3838 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3839 (TC_FIX_ADJUSTABLE): Don't define.
3840 (MD_APPLY_SYM_VALUE): Define this instead.
3841 (tc_fix_adjustable): Remove extern and weak tests.
3842 * config/tc-w65.h (struct fix): Forward declare.
3843 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3845 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3846 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3847 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3849 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3850 (MD_APPLY_SYM_VALUE): Define.
3851 (obj_fix_adjustable): Don't define.
3852 (tc_fix_adjustable): Define this instead.
3853 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3855 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3857 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3858 (ppc_fix_adjustable <coff version>): Cleanup.
3860 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3861 (md_parse_option): No -a64 without BFD64.
3862 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3863 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3865 2002-09-04 Nick Clifton <nickc@redhat.com>
3867 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3868 instructions into the hash table if the target cpu is the BookE32.
3870 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3872 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3875 2000-08-28 Catherine Moore <clm@redhat.com>
3877 * tc-v850.c (v850_relax): Declare.
3878 (v850_longcode): New routine.
3879 (v850_handle_align): New routine.
3880 (md_pseudo_table): Add longcall and longjump.
3881 (md_parse_option): Check for relax option.
3882 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3883 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3884 (md_apply_fix3): Likewise.
3885 (v850_force_relocation): Likewise.
3886 (v850_comm): Change the current section.
3887 (md_assemble): Ensure that the correct value is put in the
3889 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3890 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3891 Remove redundant v850ea support.
3892 * tc-v850.h (HANDLE_ALIGN): Define.
3893 (v850_handle_align): Declare.
3894 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3896 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3898 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3899 * configure: Regenerate.
3900 * NEWS: Mention new port.
3902 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3904 * config/obj-coff.c: Add sdef definition.
3905 * config/obj-coff.h: Add tic4x include file and set
3907 * config/tc-tic4x.c: New file.
3908 * config/tc-tic4x.h: New file.
3910 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3912 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3913 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3914 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3915 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3916 (RELOC_ENUM): Define.
3917 (fix_new_internal): Use RELOC_ENUM.
3918 (fix_new, fix_new_exp): Likewise.
3919 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3920 Replace gotos with continue.
3921 (write_relocs): Formatting. Avoid symbol loops in
3922 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3923 errors, and error number in other cases.
3924 (fixup_segment): Remove param names from prototype. Rename
3925 "this_segment_type" to "this_segment". Update linkrelax comment.
3926 Remove "size, "place" and "where" local vars. Formatting. Update
3927 "no symbol" comment. Remove #if 0 and #if 1.
3929 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3931 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3933 * dwarf2dbg.c: Always include dwarf2dbg.h.
3934 (dwarf2_directive_file): Adjust dummy version args.
3935 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3936 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3937 when symbol values differ.
3938 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3939 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3940 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3942 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3944 * config/tc-w65.c (md_section_align): Fix typo.
3945 (md_parse_option): Return 0, not 1.
3947 2002-08-22 Nick Clifton <nickc@redhat.com>
3949 * doc/as.texinfo (Section): Note that if '@' is a comment
3950 character then another symbol is used to prefix the section's
3953 2002-08-22 Christian Groessler <chris@groessler.org>
3955 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3958 2002-08-12 Graeme Peterson <gp@qnx.com>
3960 * configure.in: Add support for sh-**-nto* target.
3961 * configure: Regenerate.
3963 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3965 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3967 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3969 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3971 (ppc_apuinfo_section_add): Define only if format is ELF.
3972 (md_assemble): Emit APUinfo section only if format is ELF.
3975 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3977 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3978 * config/tc-frv.c: Likewise.
3979 * config/tc-hppa.c: Likewise.
3980 * config/tc-ia64.c: Likewise.
3981 * config/tc-ip2k.c: Likewise.
3982 * config/tc-m68hc11.c: Likewise.
3983 * config/tc-m68k.c: Likewise.
3984 * config/tc-mmix.c: Likewise.
3985 * config/tc-mn10300.c: Likewise.
3986 * config/tc-sh.c: Likewise.
3987 * config/tc-sparc.c: Likewise.
3988 * config/tc-v850.c: Likewise.
3990 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3992 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3995 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3997 From matthew green <mrg@redhat.com>
3999 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4000 PPC_OPCODE_PPC is, except for BookE architectures.
4001 (md_parse_option): Add support for -mspe.
4002 (md_show_usage): Add -mspe.
4003 (md_parse_option): Add support for -me500 and
4004 -me500x2 to generate code for Motorola e500 core complex.
4005 (md_show_usage): Add -me500 and -me500x2.
4007 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4008 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4009 PPC_APUINFO_BRLOCK): New macros.
4011 (ppc_cleanup): New function.
4012 (ppc_apuinfo_section_add): New function.
4014 (md_assemble): Collect info and write the APUinfo section.
4016 * config/tc-ppc.h (md_cleanup): Define.
4017 (ppc_cleanup): Export.
4018 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4020 2002-08-17 Stan Cox <scox@redhat.com>
4022 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4023 config/tc-mips.c (s_change_section): New function to support
4024 IRIX .section pseudo-op.
4026 2002-08-16 Nick Clifton <nickc@redhat.com>
4028 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4030 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4032 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4033 the fix-up against on the right frag.
4034 (s_cpsetup): Likewise. Parse third argument as expression, to
4035 handle global symbols and forward/backward labels correctly.
4037 2002-08-14 Nick Clifton <nickc@redhat.com>
4039 * read.c (stringer): Catch attempts to create strings in the abs
4042 * config/tc-alpha.c: Fix compiling for COFF targets.
4043 Some minor formatting tidyups.
4045 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4047 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4048 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4049 according to the reloc.
4050 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4051 (TC_FORCE_RELOCATION): Define.
4052 (tc_m68hc11_force_relocation): Declare.
4054 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4055 (s_m68hc11_relax): New function for relax group.
4056 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4057 beginning of jump instruction.
4058 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4059 address computation.
4060 (tc-gen_reloc): Update.
4061 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4063 (tc_m68hc11_force_relocation): New function, handle new relocs.
4064 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4065 reloc for the linker relax pass.
4066 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4069 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4071 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4072 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4073 (s_m68hc11_mode): New function for .mode pseudo op.
4074 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4076 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4077 (m68hc11_elf_final_processing): Declare.
4079 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4081 * config/tc-m68hc11.c (md_begin): Take into account additional
4082 page operand for call instruction.
4083 (print_opcode_format): Likewise.
4084 (check_range): Likewise for page range checking.
4085 (get_operand): Don't skip a possible comma in operands.
4086 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4087 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4088 (fixup24): New to handle call reloc.
4089 (build_insn): Handle missing page operand for call instruction.
4091 (md_apply_fix3): Take into account new relocs.
4092 (get_operand): Fix the mode for indexed indirect addressing.
4093 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4095 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4097 * config/tc-mips.c (mips_ip): Don't work out the value of
4098 constant %hi()s here.
4100 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4102 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4103 for ELF, and don't bother checking ELF relocs when non-ELF.
4104 (i386_immediate): Allow absolute_section expressions for aout.
4105 (i386_displacement): Likewise. Also test bfd_is_com_section.
4106 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4107 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4108 not when fx_addsy. Remove dead code.
4110 2002-08-09 Graeme Peterson <gp@qnx.com>
4112 * configure.in: Add support for ppc-*-nto* target.
4113 * configure: Regenerate.
4115 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4117 * config/tc-i386.h: Reorganize.
4119 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4121 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4122 immediate offset in "dla" and "la" expansions.
4124 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4126 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4127 Remove "bfd_gas=yes" from target table when covered later.
4128 Consolidate some entries.
4129 * configure: Regenerate
4131 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4133 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4134 at start of insn, pass it to output_disp and output_imm.
4135 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4136 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4138 (output_imm): Added arguments. Compute properly addend for
4140 (md_apply_fix3): Remove R_386_GOTPC handling.
4142 2002-08-06 George France <france@handhelds.org>
4144 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4145 and m21264b processor names and cpu types.
4146 * doc/c-alpha.texi: Documented new types.
4148 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4150 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4152 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4154 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4155 handling to BFD_RELOC_MIPS16_GPREL.
4157 2002-08-01 Nick Clifton <nickc@redhat.com>
4159 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4160 pool is computed using signed arithmetic so that proper sign
4161 extension is performed if X_add_number is a 64-bit integer.
4163 2002-08-01 H.J. Lu <hjl@gnu.org>
4164 Daniel Jacobowitz <drow@mvista.com>
4166 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4167 .debug_line section unless it has line information.
4169 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4171 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4172 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4173 Allow default displacement size to be an option "--disp-size-default".
4174 (md_number_to_disp): Make error messages include value. Use %d to
4175 print integers, not %s.
4176 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4177 get duplicate messages sometimes.
4178 (convert_iif): Grow frag to max possible instruction size. Avoid
4179 creating unnecessary fixes.
4180 (md_number_to_field) Add prototype.
4181 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4182 prototypes and make static.
4183 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4184 (evaluate_expr): Use resultP argument instead of exprP global.
4185 (get_addr_mode): Quiten compiler warnings.
4186 (encode_operand): eliminate unused variables. Quiten compiler
4187 warnings. Eliminate nul character in format strings.
4188 (parse): argc is unsigned.
4189 (reloc): Type cast index to quieten compiler.
4190 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4191 (md_convert_frag): Note unused parameters. Remove unused
4193 (md_create_long_jump, md_create_short_jump,
4194 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4197 2002-07-31 Nick Clifton <nickc@redhat.com>
4199 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4200 of the PDP-11 and 2.11BSD a.out support.
4202 2002-07-31 Momchil Velikov <velco@fadata.bg>
4204 * config/tc-v850.c (md_assemble): Fix range check for immediate
4207 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4209 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4210 to Broadcom SB-1 core support.
4212 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4214 * config/tc-mips.c (mips_target_format): Fix formatting.
4215 Add recognition of n32 ABI formats.
4217 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4219 * tc-mips.c (load_address): Don't clobber $at when loading a
4220 64-bit address in non-PIC code if noat is in effect.
4223 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4225 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4226 used in division/multiply macro expansions similarly to how they
4227 are used in the variants with break instructions.
4230 2002-07-30 Graeme Peterson <gp@qnx.com>
4232 * configure.in: Add support for arm-*-nto target.
4233 * configure: Regenerate.
4235 2002-07-30 Nick Clifton <nickc@redhat.com>
4237 * config/tc-arm.c (struct literal_pool): Add fields to allow
4238 multiple literal pools to be maintained.
4239 (find_literal_pool): New function.
4240 (find_or_make_literal_pool): New function.
4241 (add_to_literal_pool): Use find_or_make_literal_pool.
4242 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4244 (s_ltorg): Use find_literal_pool.
4245 (arm_cleanup): Dump all literal pools.
4246 * doc/c-arm.texi: Document new behaviour of only dumping literal
4249 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4251 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4252 rather than PPC_OPCODE_32 for powerpc64*.
4254 2002-07-25 Nick Clifton <nickc@redhat.com>
4256 * po/es.po: Updated Spanish translation.
4257 * po/fr.po: Updated French translation.
4259 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4261 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4262 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4263 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4264 * configure, config.in: Regenerate.
4265 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4266 (mips_set_options): Remove "abi" field.
4267 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4270 (mips_arch_string, mips_arch_info): New vars.
4271 (mips_tune_string, mips_tune_info): New vars.
4272 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4273 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4274 (mips_isa_to_str, mips_cpu_to_str): Remove.
4275 (mips_ip): If the selected architecture is a generic ISA rather
4276 than a processor, only mention the ISA level in error messages.
4277 (OPTION_MCPU): Remove.
4279 (md_longopts): Add -mfp64, remove -mcpu.
4280 (mips_set_option_string): New fn.
4281 (md_parse_option): Make -mipsN update file_mips_isa rather than
4282 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4283 Don't let -mgp32 and -mfp32 change the ABI.
4284 (show): Move to end of file. Constify string argument.
4285 (md_show_usage): Move to the end of the file. Read available
4286 architectures from mips_cpu_info_table.
4287 (mips_set_architecture): New fn.
4288 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4289 is an alias for -march=mipsN. Don't change the ABI based on other
4290 flags. Infer the register size from the ABI as well as the
4291 architecture. Complain about more conflicting arguments.
4292 Unify logic with GCC.
4293 (s_mipsset): Don't change the ABI.
4294 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4295 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4296 "mipsN"-type entries. Remove entries that vary only in the
4297 manufacturer's prefix, or that have "000" replaced by "k".
4298 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4299 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4300 (mips_parse_cpu): New fn.
4301 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4302 (mips_cpu_info_from_isa): Minor formatting tweak.
4304 2002-07-24 Nick Clifton <nickc@redhat.com>
4306 * po/sv.po: Updated Swedish translation.
4307 * po/es.po: Updated Spanish translation.
4309 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4311 * Makefile.am: Run "make dep-am".
4312 * Makefile.in: Regenerate.
4313 * doc/Makefile.in: Regenerate.
4314 * config.in: Regenerate.
4315 * po/POTFILES.in: Regenerate.
4317 2002-07-23 Nick Clifton <nickc@redhat.com>
4319 * po/fr.po: Updated French translation.
4321 2002-07-23 Nick Clifton <nickc@redhat.com>
4323 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4326 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4328 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4329 instead of S_IS_EXTERN.
4330 (md_estimate_size_before_relax): Likewise.
4331 (mips_fix_adjustable): Likewise.
4333 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4335 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4337 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4338 Nick Clifton <nickc@redhat.com>
4340 * cond.c (s_ifdef): Treat a referenced but not yet defined
4341 symbol as if it were undefined, in exactly the same way as
4344 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4345 consider referenced bug not yet defined symbols to be
4348 2002-07-18 Denis Chertykov <denisc@overta.ru>
4349 Frank Ch. Eigler <fche@redhat.com>
4350 Alan Lehotsky <alehotsky@cygnus.com>
4351 John Healy <jhealy@redhat.com>
4352 Jeff Johnston <jjohnstn@redhat.com>
4354 * configure.in: Add ip2k configuraton.
4355 * configure: Regenerate.
4356 * Makefile.am: Add ip2k configuraton.
4357 * Makefile.in: Regenerate.
4358 * configure: Regenerate.
4359 * Makefile.in: Regenerate.
4360 * config/tc-ip2k.c: New file.
4361 * config/tc-ip2k.h: New files.
4362 * NEWS: Mention new support.
4363 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4364 * doc/Makefile.in: Regenerate.
4365 * doc/all.texi: Set IP2K
4366 * doc/as.texinfo: Add IP2K description.
4367 * doc/c-ip2k.texi: New file.
4369 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4371 * NEWS: Reformat to match style of other NEWS files.
4373 2002-07-17 Jan Hubicka <jh@suse.cz>
4375 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4377 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4379 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4381 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4383 * NEWS: Add 'Changes in 2.13'.
4385 2002-07-15 Matt Fredette <fredette@netbsd.org>
4387 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4389 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4391 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4392 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4395 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4397 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4398 (ppc_frob_file_before_adjust): New function.
4399 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4400 (ppc_elf_frob_symbol): Don't declare.
4401 (tc_frob_file_before_adjust): Define.
4402 (ppc_frob_file_before_adjust): Declare.
4404 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4405 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4408 (ppc_xcoff64): Rename to ppc_obj64.
4409 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4410 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4411 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4413 (ppc_target_format): Use ppc_obj64 to select format.
4414 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4415 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4416 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4417 (tc_frob_symbol): Likewise.
4418 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4419 BFD_DEFAULT_TARGET_SIZE.
4421 (ppc_is_toc_sym): Likewise.
4422 (md_apply_fix3): Likewise.
4423 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4424 BFD_DEFAULT_TARGET_SIZE.
4425 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4426 (tc_frob_symbol): Likewise.
4428 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4430 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4431 (mips_ip): Likewise.
4433 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4435 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4436 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4437 (md_apply_fix3): Formatting. Remove redundant test.
4438 (tc_gen_reloc): Remove redundant code.
4439 (tc_i386_force_relocation): Delete. Movy body of function to..
4440 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4442 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4444 * configure.in: Add hppa-*-openbsd* target, change
4445 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4447 * configure: Regenerate.
4449 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4451 * config/tc-mips.c (macro): Shift the 32-bit address range
4452 accessible with a lone "lui" down by 32768.
4454 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4456 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4457 instead of "dadd" in address calculations.
4460 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4462 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4464 (md_assemble): Instead, zap the suffix here.
4466 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4468 * NEWS: Remove next release number until the release is actually
4471 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4473 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4475 * Makefile.in: Regenerate.
4477 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4479 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4480 to symbols in merge sections, even non pc-relative ones.
4482 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4484 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4486 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4488 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4489 .softregs and .eeprom.
4491 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4493 * NEWS: Note the next release is 2.13.
4495 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4497 * po/tr.po: New translation imported.
4499 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4501 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4502 (ecoff_directive_def): Likewise.
4503 (ecoff_directive_tag): Likewise.
4504 * listing.c (file_info): Likewise.
4505 * hash.c (what): Likewise.
4507 2002-06-25 H.J. Lu <hjl@gnu.org>
4509 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4510 * Makefile.in: Regenerated.
4512 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4514 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4515 (assemble_ppi): Generate warning if the same register is used
4516 twice as destination in the same padd / pmuls instruction.
4518 2002-06-18 Dave Brolley <brolley@redhat.com>
4520 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4521 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4522 * configure.in: Support frv-*-*.
4523 * Makefile.am (CPU_TYPES): Add frv.
4524 (TARGET_CPU_CFILES): Add tc-frv.c.
4525 (TARGET_CPU_HFILES): Add tc-frv.h.
4526 (DEPTC_frv_coff): New variable.
4527 (DEPTC_frv_elf): New variable.
4528 (DEPOBJ_frv_coff): New variable.
4529 (DEPOBJ_frv_elf): New variable.
4530 (DEP_frv_coff): New variable.
4531 (DEP_frv_elf): New variable.
4532 * tc-frv.c: New file.
4533 * tc-frv.h: New file.
4535 2002-06-17 Catherine Moore <clm@redhat.com>
4537 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4539 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4541 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4543 2002-06-17 Tom Rix <trix@redhat.com>
4545 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4547 2002-06-14 H.J. Lu <hjl@gnu.org>
4548 Daniel Jacobowitz <drow@mvista.com>
4550 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4551 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4552 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4553 and new_logical_line for the first .file directive.
4554 * read.c (s_app_file_string): New function.
4555 (s_app_file): Call it.
4556 * read.h (s_app_file_string): Add declaration.
4558 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4560 * configure.in: Remove MIPS_STABS_ELF.
4561 * configure: Regenerated.
4562 * config.in: Regenerated.
4563 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4565 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4567 (pdr_seg): Declare unconditionally.
4568 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4569 (s_mips_end): Likewise. Generate stabs function markers.
4570 (s_mips_ent): Generate stabs function markers.
4571 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4573 (s_mips_mask): Likewise.
4574 (mips_flag_mdebug): New.
4575 (md_longopts): Add "mdebug" and "no-mdebug".
4576 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4577 (mips_after_parse_args): Set mips_flag_mdebug.
4578 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4580 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4582 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4583 value twice for RELA relocations.
4585 2002-06-12 Ben Elliston <bje@redhat.com>
4587 * symbols.c (resolve_symbol_value): Initialise final_val.
4589 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4591 2002-06-11 Tom Rix <trix@redhat.com>
4593 * config/tc-ppc.c (ppc_subseg_align): Delete.
4594 (ppc_change_csect): Default csect align is 2.
4595 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4597 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4599 * config/tc-avr.c (mcu_types): Update.
4601 2002-06-08 Matt Thomas <matt@3am-software.com>
4603 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4604 (vax-*-netbsd*): New targets.
4605 * configure: Regenerate.
4606 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4607 * config/tc-vax.c: Add support for ELF and PIC.
4608 (flag_want_pic): New flag.
4609 (float_cons): Fix prototype.
4610 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4611 (md_assemble): Introduce a new is_absolute local, and use it
4612 rather than repeating the test. Make fatal errors actually
4613 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4614 Add support for ELF. Add support for PIC.
4615 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4616 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4618 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4619 optional for a.out, and not allowed for VMS. Adjust all callers.
4620 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4621 (md_create_long_jump): Likewise.
4622 (md_undefined_symbol): Likewise.
4623 (md_section_align): Likewise.
4624 (md_shortopts): Allow -k and -K for ELF.
4625 (md_parse_option): Set flag_want_pic if -k or -K.
4626 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4627 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4628 * config/tc-vax.h (tc_headers_hook): Remove.
4629 (TARGET_FORMAT): Set according to object format and target
4631 (BFD_ARCH, TARGET_ARCH): Define.
4632 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4633 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4634 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4635 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4637 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4639 * Makefile.am: Run "make dep-am".
4640 * Makefile.in: Regenerate.
4642 * as.c: Replace CONST with const.
4643 * write.c: Likewise.
4644 * config/obj-coff.c: Likewise.
4645 * config/tc-a29k.c: Likewise.
4646 * config/tc-arm.c: Likewise.
4647 * config/tc-dlx.c: Likewise.
4648 * config/tc-h8300.c: Likewise.
4649 * config/tc-h8500.c: Likewise.
4650 * config/tc-i370.c: Likewise.
4651 * config/tc-i860.c: Likewise.
4652 * config/tc-i960.c: Likewise.
4653 * config/tc-m68hc11.c: Likewise.
4654 * config/tc-m68k.c: Likewise.
4655 * config/tc-m88k.c: Likewise.
4656 * config/tc-mcore.c: Likewise.
4657 * config/tc-mips.c: Likewise.
4658 * config/tc-ns32k.c: Likewise.
4659 * config/tc-pdp11.c: Likewise.
4660 * config/tc-pj.c: Likewise.
4661 * config/tc-s390.c: Likewise.
4662 * config/tc-sh.c: Likewise.
4663 * config/tc-sparc.c: Likewise.
4664 * config/tc-tahoe.c: Likewise.
4665 * config/tc-tic80.c: Likewise.
4666 * config/tc-v850.c: Likewise.
4667 * config/tc-vax.c: Likewise.
4668 * config/tc-w65.c: Likewise.
4669 * config/tc-z8k.c: Likewise.
4671 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4673 Based on patch from Matt Green:
4674 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4675 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4676 (s_mips_loc): New function.
4677 (mips_nonecoff_pseudo_table): Call them.
4678 (append_insn): Call dwarf2_emit_insn.
4680 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4682 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4684 (file_ase_mips16): New veriable.
4685 (mips_eabi64): Remove.
4686 (CPU_HAS_MIPS16): New define.
4687 (CPU_HAS_MDMX): Fix data type.
4688 (md_begin): Code cleanup. Use file_ase_mips16.
4689 (mips_elf_final_processing): Handle mips16 header flag.
4690 Handle EABI flag without intermediate variable.
4692 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4694 * doc/as.texinfo: Update MIPS documentation.
4696 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4698 * config/tc-mips.c: Add define for $zero register.
4699 (md_begin): Add $zero as alias name for $0.
4700 (insn_uses_reg): Use ZERO define.
4701 (mips_ip): Add $zero as alias name for $0.
4702 (mips16_ip): Likewise.
4703 (s_cplocal): Demand empty rest of input line.
4704 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4705 names. Use ZERO define. Fix input_line_pointer progress.
4707 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4709 * symbols.c: Replace CONST by const throughout.
4710 (symbol_find_exact): Split out from..
4711 (symbol_find_base): ..here.
4712 * symbols.h: Replace CONST by const throughout.
4713 (symbol_find_exact): Declare.
4714 * config/obj-elf.c: #include "struc-symbol.h".
4715 (elf_frob_file): If group name matches an exported symbol, use that
4716 symbol for the signature and ".group" as the section name.
4718 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4720 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4723 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4725 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4726 and mips_opts.ase_mdmx if they are uninitialized.
4728 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4730 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4731 (hppa_force_relocation): Check if a stub just before the start symbol
4732 of the last call_info is reachable before forcing relocation. Fix
4735 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4737 * config/tc-mips.c (mips_after_parse_args): New function.
4738 (md_begin): Move processing of defaults to mips_after_parse_args.
4739 config/tc-mips.h (md_after_parse_args): Define.
4741 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4743 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4744 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4745 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4746 * configure: Regenerate.
4747 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4750 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4752 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4754 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4756 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4757 linkonce flag. Print all warnings.
4758 (obj_elf_section): Parse ",comdat" for groups.
4759 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4760 consistency of comdat flag.
4762 2002-06-02 Richard Henderson <rth@redhat.com>
4764 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4765 with LITERALs without sequence numbers.
4767 2002-06-01 Richard Henderson <rth@redhat.com>
4769 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4770 Rename them LITUSE_ALPHA_*.
4772 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4774 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4775 accept parentheses enclosed register lists.
4777 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4779 * Makefile.am: Run "make dep-am".
4780 * Makefile.in: Regenerate.
4781 * po/POTFILES.in: Regenerate.
4783 2002-05-31 Graeme Peterson <gp@qnx.com>
4785 * configure.in: Add i386-*-nto-qnx*.
4786 * configure: Regenerate.
4788 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4790 * config/tc-mips.c (mips_ip): Use unsigned long values for
4793 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4795 * config/tc-mips.c (s_cpsetup): Fix initialization of
4796 mips_cpreturn_register and mips_cpreturn_offset.
4798 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4800 * config/tc-mips.c (s_cpsetup): Fix comment.
4802 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4804 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4805 (mips_ip): Likewise.
4806 (mips16_ip): Likewise.
4807 (tc_get_register): Likewise.
4809 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4810 Ed Satterthwaite <ehs@broadcom.com>
4812 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4813 (mips_opts): Initialize "ase_mdmx" member.
4814 (file_ase_mdmx): New variable.
4815 (CPU_HAS_MDMX): New macro.
4816 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4817 based on command line options and configuration defaults.
4818 (macro_build): Note in comment that use of MDMX in macros is
4819 not currently allowed.
4820 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4821 "Z" MDMX operand types.
4822 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4823 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4825 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4826 Add support for "-mdmx" and "-no-mdmx" options.
4827 (OPTION_ELF_BASE): Move to accomodate new options.
4828 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4829 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4830 file_ase_mdmx was set.
4831 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4832 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4835 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4837 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4838 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4839 command line switch conforming to gcc conventions.
4840 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4842 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4844 * config/tc-mips.c (macro_build_jalr): New Function.
4845 (md_begin): NewABI uses big GOTs.
4846 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4847 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4848 (load_address): Add some NewABI PIC support.
4850 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4851 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4853 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4855 * config/tc-mips.c (load_address): Use mips_gp_register instead
4856 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4858 (macro): Use mips_gp_register instead of hardcoded value.
4860 2002-05-30 Richard Henderson <rth@redhat.com>
4862 * expr.h (operatorT): Add O_md17..O_md32.
4863 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4864 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4865 O_tprelhi, O_tprello, O_tprel): New.
4866 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4867 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4868 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4869 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4870 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4871 (md_apply_fix3): Handle TLS relocations.
4872 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4873 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4874 associated TLS reloc. Check lituse_tls relocs match up.
4875 (emit_insn): Handle TLS relocations.
4878 * doc/c-alpha.texi: Add docs for tls relocations.
4880 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4882 * config/tc-mips.c (mips_gprel_offset): New variable.
4883 (s_gpvalue): Use it.
4885 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4887 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4888 write-write conflicts.
4889 (md_assemble): Reformat introductory comment.
4890 (parallel_ok): Prevent packing only if the first
4891 instruction cannot be packed.
4893 2002-05-30 Jason Eckhardt <jle@redhat.com>
4894 Tom Rix <trix@redhat.com>
4896 * config/tc-d10v.c (build_insn): Check for immediates.
4898 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4900 * config/tc-mips.c: Replace GP in comments by $gp.
4901 (mips_big_got): Initialize.
4902 (mips_trap): Initialize.
4903 (load_address): Use mips_gp_register instead of hardcoded value.
4904 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4905 (macro): Use mips_gp_register instead of hardcoded value.
4906 (macro2): Change load_address calls.
4907 (md_pcrel_from): Comment formatting.
4908 (s_cpload): Use mips_gp_register instead of hardcoded value.
4909 (s_cprestore): Likewise. Comment formatting.
4910 (s_gpword): Fix data type.
4911 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4912 (nopic_need_relax): Replace GP in comments by $gp.
4913 (mips_elf_final_processing): Better comment.
4915 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4917 * configure.in: Add DLX configuraton
4918 * Makefile.am: Add DLX configuraton
4919 * configure: Regenerate.
4920 * Makefile.in: Regenerate.
4921 * config/tc-dlx.c: New file.
4922 * config/tc-dlx.h: New files.
4923 * NEWS: Mention new support.
4925 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4927 * config/obj-coff.c (write_object_file): Add missing semicolon.
4929 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4931 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4932 by the define. Remove superfluous check of mips_opts.mips16.
4933 (append_insn): Likewise. Canonicalize variable increments.
4934 (macro_build): Canonicalize variable increments.
4935 (macro_build_lui): Likewise.
4936 (load_register): Likewise.
4937 (load_address): Move pointer initialization.
4938 (macro): Move pointer to a more local scope. Canonicalize variable
4939 increments. Better comments. Replace magic constant for RA by the
4941 (macro2): Replace magic constant for RA by the define. Canonicalize
4942 variable increments.
4943 (mips_ip): Canonicalize variable increments.
4944 (mips16_ip): Replace magic constant for RA by the define.
4945 (my_getSmallParser): Canonicalize variable increments/decrements.
4946 (my_getPercentOp): Likewise.
4947 (my_getSmallExpression): Likewise.
4948 (s_align): Likewise.
4949 (s_mipsset): Likewise.
4950 (s_cpsetup): Likewise.
4951 (s_insn): Remove superfluous check of mips_opts.mips16.
4952 (s_mips_stab): Likewise.
4953 (mips_handle_align): Canonicalize variable increments.
4954 (s_mips_ent): Likewise.
4955 (s_mips_end): Add comment.
4957 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4959 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4960 * configure: Regenerate.
4962 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4964 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4965 * Makefile.in: Regenerate.
4966 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4967 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4968 * configure: Regenerate.
4969 * as.h: Use #include "" instead of <> for local header files.
4970 * flonum-konst.c: Likewise.
4971 * flonum-mult.c: Likewise.
4973 * listing.c: Likewise.
4974 * config/tc-ia64.h: Likewise.
4975 * config/tc-v850.h: Likewise.
4977 2002-05-24 TAMURA Kent <kent@netbsd.org>
4979 * configure.in: Add a target for i386-netbsdpe.
4980 * configure: Regenerate.
4982 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4984 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4985 (obj_elf_common): Call elf_common.
4986 (obj_elf_tls_common): New function.
4987 (elf_pseudo_tab): Support .tls_common.
4988 (special_sections): Add .tdata and .tbss.
4989 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4991 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4992 (obj_elf_parse_section_letters): Include T in error message.
4993 * config/tc-ppc.c (ppc_section_letter): Likewise.
4994 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4995 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4997 * config/tc-sparc.c (md_apply_fix3): Likewise.
4998 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4999 Define them if not BFD_ASSEMBLER.
5000 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5002 (md_apply_fix3): Add TLS relocs.
5003 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5004 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5005 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5006 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5007 (ia64_elf_section_letter): Include T in error message.
5008 (md_begin): Support TLS operators.
5009 (md_operand): Likewise.
5010 (ia64_gen_real_reloc_type): Support TLS relocs.
5011 * write.c (adjust_reloc_syms): Don't change symbols in
5012 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5014 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5016 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5017 round the relocation up rather than down.
5019 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5021 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5023 * doc/as.texinfo: Document that the COFF version of .section
5024 ignores the 'a' flag.
5026 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5028 * config/tc-alpha.c (assemble_tokens): Protect use of
5029 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5031 * write.c (size_seg): Check adjustment to last frag.
5032 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5034 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5035 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5036 (write_object_file): Invoke md_do_align if available, and use
5037 frag_align_code on text sections.
5038 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5039 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5040 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5041 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5042 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5045 2002-05-22 H.J. Lu <hjl@gnu.org>
5047 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5050 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5052 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5055 2002-05-22 H.J. Lu <hjl@gnu.org>
5057 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5058 for one .loc for compiler.
5060 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5062 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5065 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5067 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5068 Optimize the rotate by zero case.
5070 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5072 * configure.in: Remove accidental enabling of bfd_gas=yes for
5074 * configure: Regenerate.
5076 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5078 * app.c: Fix formatting.
5080 * ehopt.c: Likewise.
5082 * input-file.c: Likewise.
5083 * listing.c: Likewise.
5084 * macro.h: Likewise.
5085 * stabs.c: Likewise.
5086 * symbols.c: Likewise.
5088 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5090 * config/obj-generic.c: Delete file.
5091 * config/obj-generic.h: Likewise.
5093 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5095 * config/tc-avr.c (mcu_types): Update for new devices.
5097 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5099 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5101 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5103 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5104 worked sometimes by accident. Fix copy&paste comment.
5106 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5108 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5109 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5110 (mips_elf_final_processing): Let n32 use .reginfo.
5112 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5114 * config/tc-mips.c (append_insn): Fix too small range of variable.
5116 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5118 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5119 listing_prev_line().
5121 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5123 * config/tc-arm.c (md_assemble): Remove redundant call to
5126 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5129 * stabs.c (s_stab_generic): Fix grammatical error in warning
5132 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5134 * write.c (subsegs_finish): Don't specially align last subseg.
5136 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5138 * stabs.c (s_stab_generic): Warn about a description field that is
5141 * config/obj-coff.c: Fix compile time warnings when compiling
5142 without BFD_ASSEMBLER defined.
5145 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5147 (md_pcrel_from_section): Use md_pcrel_from().
5149 2002-05-11 Bruno Haible <bruno@clisp.org>
5151 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5152 by dwarf2_directive_loc, instead of calling dwarf2_where.
5154 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5156 * config/obj-coff.h: Fix formatting.
5157 * config/tc-mcore.c: Likewise.
5158 * config/tc-mn10300.c: Likewise.
5159 * config/tc-openrisc.c: Likewise.
5160 * config/tc-or32.c: Likewise.
5161 * config/tc-pdp11.c: Likewise.
5162 * config/tc-ppc.c: Likewise.
5163 * config/tc-ppc.h: Likewise.
5164 * config/tc-sh64.c: Likewise.
5165 * config/tc-sh.c: Likewise.
5166 * config/tc-tic54x.c: Likewise.
5167 * config/tc-xstormy16.c: Likewise.
5168 * config/tc-xstormy16.h: Likewise.
5170 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5172 * config/obj-coff.c: Fix formatting.
5173 * config/obj-elf.c: Likewise.
5174 * config/tc-alpha.c: Likewise.
5175 * config/tc-arm.c: Likewise.
5176 * config/tc-d10v.c: Likewise.
5177 * config/tc-d30v.c: Likewise.
5178 * config/tc-h8300.c: Likewise.
5179 * config/tc-hppa.c: Likewise.
5181 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5183 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5184 reloc when no_cond_jump_promotion.
5186 2002-05-08 Jim Wilson <wilson@redhat.com>
5188 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5189 current variable part of frag.
5191 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5193 * config/tc-mmix.c: Fix formatting.
5194 * config/tc-mmix.h: Likewise.
5196 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5198 * configure: Regenerate.
5200 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5202 * config/tc-m68k.c: Fix formatting.
5204 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5206 * Makefile.am: Honour DESTDIR.
5207 * Makefile.in: Regenerate.
5209 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5211 * config/tc-ia64.c: Fix formatting.
5212 * config/tc-ia64.h: Likewise.
5214 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5216 * config/tc-mips.c: Fix formatting.
5217 * config/tc-s390.c: Likewise.
5218 * config/tc-s390.h: Likewise.
5220 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5222 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5223 information for instructions.
5225 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5227 * as.h: Fix formatting.
5230 * dwarf2dbg.c: Likewise.
5231 * frags.h: Likewise.
5233 * macro.c: Likewise.
5235 * stabs.c: Likewise.
5236 * symbols.c: Likewise.
5238 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5240 * app.c (mri_pseudo): Only declare for TC_M68K.
5242 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5243 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5244 BFD_RELOC_16_BASEREL.
5245 (md_assemble): Likewise.
5246 (md_apply_fix3): Likewise.
5248 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5250 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5251 zero into an add of zero - it is not the same.
5253 2002-05-01 Arati Dikey <aratid@kpit.com>
5255 * tc-sh.c (get_specific): Generate warning if the same
5256 destination register is used in parallel instructions.
5258 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5260 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5262 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5264 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5265 backwards to prevent cascading errors.
5267 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5269 * configure.in: Add support for powerpc-*-windiss.
5270 * configure: Regenerated.
5272 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5274 * config/tc-s390.c (md_parse_option): Formatting.
5276 * config/tc-i386.c: Formatting fixes, add missing space in error
5279 2002-04-24 Christian Groessler <chris@groessler.org>
5281 * config/tc-z8k.c (build_bytes): Add support for new cases:
5282 CLASS_IGNORE and ARG_NIM4.
5283 (md_assemble): Prevent destruction of input_line_pointer if
5284 get_operands returns failure.
5286 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5288 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5289 instructions to be generated by macros.
5291 2002-04-24 Andreas Schwab <schwab@suse.de>
5293 * config/tc-i386.c (output_jump, output_disp)
5294 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5296 (md_apply_fix3): Remember addend value for rela relocations.
5297 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5299 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5301 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5302 from previous change.
5304 2002-04-22 Eric Christopher <echristo@redhat.com>
5306 * config/tc-mips.c (macro_build): Add warning if macro instructions
5307 are expanded into a branch delay slot.
5309 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5311 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5312 numbers, gdb relies on them to detect the start of the prologue.
5314 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5316 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5317 symbols in merge sections.
5319 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5321 * as.c (main): Don't reference _bfd_chunksize.
5323 2002-04-15 Tom Rix <trix@redhat.com>
5325 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5326 symbols in merge sections.
5328 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5330 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5331 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5332 argument for the precision.
5333 (gen_to_words): Update accordingly.
5335 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5337 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5338 BFD_VERSION_STRING unavailable.
5339 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5341 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5343 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5344 symbol_used_in_reloc_p is true.
5346 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5349 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5351 * dep-in.sed: Cope with absolute paths.
5352 * Makefile.am (dep.sed): Subst TOPDIR.
5354 * Makefile.in: Regenerate.
5356 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5358 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5359 (mips_ip): Remove unused variable.
5360 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5361 unsigned char with bfd_byte.
5362 (s_file): Remove unused variable.
5363 (s_mips_ent): Likewise.
5365 2002-04-03 Tom Rix <trix@redhat.com>
5367 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5369 (find_opcode): Fix warning in as_warn.
5370 * config/tc-d10v.h: Update Copyright.
5372 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5373 Tom Rix <trix@redhat.com>
5375 From Jeff Knaggs <jknaggs@redhat.com>
5376 * config/tc-d10v.c (check_resource_conflict): New function to
5377 check for resource conflicts.
5379 From Jason Eckhardt <jle@redhat.com>
5380 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5382 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5383 reserved control registers is used.
5384 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5387 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5388 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5389 instruction cannot be packed.
5391 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5392 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5393 write-write conflicts.
5394 (md_assemble): Reformat introductory comment.
5395 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5398 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5400 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5401 O_logical_not>): Derive final_seg from add_symbol.
5402 <O_multiply..O_logical_or>: More final_seg twiddles.
5404 2002-04-01 Jessica Han <jessica@cup.hp.com>
5406 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5409 2002-03-27 Andreas Schwab <schwab@suse.de>
5411 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5412 field for pc-relative fixups.
5413 (output_disp): Likewise.
5414 (md_estimate_size_before_relax): Likewise.
5415 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5416 pc-relative fixups in 64bit mode.
5418 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5420 * config/te-aix5.h: Typo fix.
5422 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5424 * Makefile.am: Run "make dep-am".
5425 * Makefile.in: Regenerate.
5426 * doc/Makefile.in: Regenerate.
5428 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5430 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5431 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5433 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5435 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5436 the EXTENDED bit here; report the estimate according to the
5439 2002-03-18 Tom Rix <trix@redhat.com>
5441 * configure.in: Add AIX 5 support.
5442 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5443 * config/te-aix5.h: New file. AIX 5 support.
5444 * configure: Regenerate.
5446 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5448 * po/fr.po: Updated version.
5450 2002-03-16 Andreas Jaeger <aj@suse.de>
5452 * doc/c-mips.texi (Machine Dependencies): Add new node.
5454 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5456 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5457 (mips_opts): Initialize "ase_mips3d" member.
5458 (file_ase_mips3d): New variable.
5459 (CPU_HAS_MIPS3D): New macro.
5460 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5461 based on command line options and configuration defaults.
5462 (macro_build, mips_ip): Accept MIPS-3D instructions if
5463 mips_opts.ase_mips3d is set.
5464 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5465 Add support for "-mips3d" and "-no-mips3d" options.
5466 (OPTION_ELF_BASE): Move to accomodate new options.
5467 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5468 (mips_elf_final_processing): Add a comment indicating that a
5469 MIPS-3D ASE ELF header flag should be set, when one exists.
5470 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5471 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5472 nomips3d" directives.
5474 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5476 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5477 a weak symbol in same section to be within reach.
5479 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5481 * po/fr.po: Updated version.
5483 2002-03-12 Andreas Schwab <schwab@suse.de>
5485 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5486 body record so that an error is given for misplaced .save
5489 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5491 * config/tc-i386.h (REX_OPCODE): Define.
5492 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5493 (rex_byte): typedef to int.
5494 * config/tc-i386.c: Group prototypes and vars together.
5495 Formatting fixes. Remove occurrences of "register" keyword.
5498 (mode_from_disp_size): Add INLINE keyword to prototype.
5499 (fits_in_signed_byte): Likewise.
5500 (fits_in_unsigned_byte): Likewise.
5501 (fits_in_unsigned_word): Likewise.
5502 (fits_in_signed_word): Likewise.
5503 (fits_in_unsigned_long): Likewise.
5504 (fits_in_signed_long): Likewise.
5505 (type_names): Constify.
5506 (intel_float_operand): Constify param.
5507 (add_prefix): Use REX_OPCODE.
5508 (md_assemble): Likewise. Modify for changed rex_byte.
5509 (parse_insn): Split out of md_assemble.
5510 (parse_operands): Likewise.
5511 (swap_operands): Likewise.
5512 (optimize_imm): Likewise.
5513 (optimize_disp): Likewise.
5514 (match_template): Likewise.
5515 (check_string): Likewise.
5516 (process_suffix): Likewise.
5517 (check_byte_reg): Likewise.
5518 (check_long_reg): Likewise.
5519 (check_qword_reg): Likewise.
5520 (check_word_reg): Likewise.
5521 (finalize_imm): Likewise.
5522 (process_operands): Likewise.
5523 (build_modrm_byte): Likewise.
5524 (output_insn): Likewise.
5525 (output_branch): Likewise.
5526 (output_jump): Likewise.
5527 (output_interseg_jump): Likewise.
5528 (output_disp): Likewise.
5529 (output_imm): Likewise.
5531 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5533 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5535 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5537 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5538 relocs except when BFD64.
5540 * write.c (number_to_chars_bigendian): Don't abort when N is
5541 larger than sizeof (VAL).
5542 (number_to_chars_littleendian): Likewise.
5544 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5546 * config/tc-hppa.c (md_apply_fix3): Add cast.
5547 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5550 2002-03-05 Paul Koning <pkoning@equallogic.com>
5552 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5553 (parse_ac5): New function for parsing float regs in float operand.
5554 (parse_expression): Remove attempt to make literals be octal.
5555 (parse_op_no_deferred): Support float literals.
5556 (parse_op): Reject attempts to refer to float regs.
5557 (parse_fop): New function, like parse_op but for float operand.
5558 (md_assemble): Add cases to parse float operands. Also fix
5559 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5561 2002-03-04 H.J. Lu <hjl@gnu.org>
5563 * config/obj-elf.c (special_section): Add .init_array,
5564 .fini_array and .preinit_array.
5566 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5567 .init_array and .fini_array.
5569 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5571 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5573 (obj_frob_symbol): Copy visibility.
5575 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5577 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5579 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5581 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5583 * po/es.po: Updated.
5585 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5587 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5588 only, undo the changes made on 2001-06-08, with the
5589 effect being that common or extern symbols are
5590 adjusted for embedded-PIC, but weak symbols are not.
5591 (md_estimate_size_before_relax: Likewise, with the effect
5592 that extern symbols are treated the same as weak symbols
5593 only if not embedded-PIC.
5594 (mips_fix_adjustable) Likewise, with the effect that
5595 weak or extern symbols are not adjusted for embedded-PIC.
5596 (md_apply_fix3): Tweak so that the case where value is zero
5597 is handled more correctly for embedded-PIC code.
5599 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5601 * doc/as.texinfo (Overview): Add missing @ifset IA64
5603 * configure.in (LINGUAS): Add es.po.
5604 * configure: Regenerate.
5605 * po/es.po: New file.
5607 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5609 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5610 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5611 and NO_PIC cases. Code cleanup.
5612 (macro2): Fix handling of 64bit register loads.
5614 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5616 * doc/as.texinfo: Add entry for IA64.
5617 * doc/c-ia64.texi: New file.
5619 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5621 * config/tc-hppa.c: Update copyright date.
5623 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5624 Remove references to chip manufacturers.
5625 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5627 (md_show_usage): Remove references to chip manufacturers. Mention
5629 (md_begin): Test power4 opcode flag bits.
5631 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5633 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5634 count exceeds prologue count.
5635 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5636 (unwind.label_prologue_count): New member.
5638 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5640 (get_saved_prologue_count): New function.
5641 (save_prologue_count): New function.
5642 (free_saved_prologue_count): New function.
5643 (dot_label_state): Record state label by calling save_prologue_count().
5644 (dot_copy_state): Restore prologue count by calling
5645 get_saved_prologue_count().
5646 (generate_unwind_image): Free up list of saved prologue
5647 counts by calling free_saved_prologue_counts().
5649 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5651 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5652 function declarations.
5654 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5656 * NEWS: Note that GASP is now deprecated.
5657 * Makefile.am: Do not build gasp-new by default.
5658 * Makefile.in: Regenerate.
5659 * doc/Makefile.am: Do not install gasp.info.
5660 * doc/Makefile.in: Regenerate.
5661 * gas/gasp.texi: Note that gasp is now deprecated.
5663 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5665 * NEWS: Mark 2.12 branch.
5667 2002-02-19 Tom Tromey <tromey@redhat.com>
5669 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5671 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5673 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5676 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5678 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5679 Make bit size independent of architecture switch.
5680 (md_begin): Add warning for -m64 with -Aesa.
5681 (s390_md_end): Use renamed architecture defines.
5683 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5685 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5687 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5689 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5692 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5694 * config/tc-mips.c (md_estimate_size_before_relax): Really
5695 make sure we treat weak like extern only for ELF. (Fixes
5696 patch from 2001-07-25.)
5698 2002-02-15 Ben Elliston <bje@redhat.com>
5700 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5703 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5705 * NEWS: Mention support for MMIX.
5707 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5709 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5710 a sequence of indpendent 'if' statements for easier debugging
5711 and future modification.
5713 2002-02-13 Matt Fredette <fredette@netbsd.org>
5715 * config/tc-m68k.c (md_show_usage): No longer display a
5716 hard-coded "68020" for the default CPU, instead display the
5717 canonical name of the true, configured default CPU.
5718 (m68k_elf_final_processing): Mark objects for sub-68020
5719 CPUs with the new EF_M68000 flag.
5721 2002-02-13 Andreas Schwab <schwab@suse.de>
5723 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5724 pc-relative relocations to merge sections in 64-bit mode.
5726 2002-02-13 Ben Elliston <bje@redhat.com>
5728 * NEWS: Document floating point number handling in gasp.
5729 * gasp.c: Include <assert.h> and "xregex.h".
5730 (is_flonum): New function.
5731 (chew_flownum): Likewise.
5732 (change_base): Consume flonums from the input, where possible.
5733 * doc/gasp.texi (Constants): Document floating point numbers.
5735 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5737 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5738 that implicitly use LR and RR selectors.
5740 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5742 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5743 and `epsw' as available on AM33 and above only.
5744 (other_register_name): Add logic to handle machine type encoded in
5747 2002-02-11 Tom Rix <trix@redhat.com>
5749 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5752 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5754 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5757 2002-02-11 Jan Hubicka <jh@suse.cz>
5759 * i386.c (md_assemble): Support 32bit address prefix.
5760 (i386_displacement): Likewise.
5761 (i386_index_check): Accept 32bit addressing in 64bit mode.
5763 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5765 * config/tc-sh.c (dot): Removed unused function.
5767 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5769 * Makefile.am: "make dep-am".
5770 * Makefile.in: Regenerate.
5771 * aclocal.m4: Regenerate.
5772 * config.in: Regenerate.
5773 * configure: Regenerate.
5774 * doc/Makefile.in: Regenerate.
5776 2002-02-10 Richard Henderson <rth@redhat.com>
5778 * doc/c-alpha.texi: New file.
5779 * doc/Makefile.am (CPU_DOCS): Add it.
5780 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5782 2002-02-09 Richard Henderson <rth@redhat.com>
5784 * config/tc-alpha.c (O_samegp): New.
5785 (USER_RELOC_P): Include it.
5786 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5787 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5788 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5789 (alpha_validate_fix): New.
5790 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5792 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5794 * doc/c-cris.texi: New.
5795 * doc/all.texi: @set CRIS.
5796 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5797 Include c-cris.texi.
5798 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5799 * doc/Makefile.in: Regenerate.
5801 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5803 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5804 determine if a number is a sign-extended 32-bit number.
5805 (load_register): Use IS_SEXT_32BIT_NUM.
5806 (macro): Check if load/store macro handling is using a
5807 constant 32-bit address on 64-bit address systems, and if
5808 so optimize the generation of that address.
5810 2002-02-08 Richard Henderson <rth@redhat.com>
5812 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5813 we've eliminated all foreign relocation types yet.
5814 (alpha_fix_adjustable): Likewise.
5816 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5818 Contribute sh64-elf.
5819 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5820 Stephen Clarke <Stephen.Clarke@st.com>
5821 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5822 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5823 * config/tc-sh.c (md_relax_table): Added default sizes for
5824 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5825 MOVI_16, MOVI_32 and MOVI_48.
5826 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5827 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5829 (shmedia_md_estimate_size_before_relax): Remove redundant
5830 blocks. Set fragP->fr_var even if relaxation type unchanged.
5831 Retain UNDEF_MOVI until expression decays to number.
5832 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5833 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5834 relocation types. Take fixP->fx_addnumber into account too.
5835 (shmedia_md_apply_fix): Likewise.
5836 (shmedia_md_convert_frag): Likewise.
5837 (shmedia_build_Mytes): Likewise.
5838 (sh64_consume_datalabel): Complain about nested datalabel.
5839 Support PIC relocs. Call sh_parse_name.
5840 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5841 in tc-sh.h to SHmedia reloc types.
5842 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5843 MOVI_GOTPC): New relaxation constants.
5844 (md_relax_table): Introduce relaxation directives for PIC-related
5846 (sh_PIC_related_p): Handle datalabel.
5847 (sh_check_fixup): Choose SH5 PIC relocations.
5848 (sh_cons_fix_new): Added BDF_RELOC_64.
5849 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5850 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5851 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5852 current ISA is SHmedia, get 7 bytes.
5853 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5854 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5856 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5857 shmedia_apply_fix3 and make void.
5858 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5859 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5861 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5862 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5863 2001-03-14 DJ Delorie <dj@redhat.com>
5864 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5865 * doc/Makefile.in(CPU_DOCS): Ditto.
5866 * doc/c-sh64.texi: New file.
5867 * doc/as.texinfo: Add SH64 support.
5868 2001-03-13 DJ Delorie <dj@redhat.com>
5869 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5870 A_REUSE_PREV so that its purpose is more obvious.
5871 (shmedia_build_Mytes): Ditto.
5872 2001-03-07 DJ Delorie <dj@redhat.com>
5873 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5875 (sh64_vtable_inherit): Ditto.
5876 (strip_datalabels): New, strip "datalabel" from given line.
5877 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5879 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5880 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5882 (shmedia_build_Mytes): ... to here.
5883 2001-03-06 DJ Delorie <dj@redhat.com>
5884 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5886 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5887 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5888 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5889 address by one in call to dwarf2_emit_insn.
5890 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5891 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5892 alignment handling broken by imported changes.
5893 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5894 (sh64_handle_align): Declare.
5895 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5896 (sh64_max_mem_for_rs_align_code): Declare.
5897 (enum sh64_isa_values): Moved here from tc-sh64.c.
5898 (md_do_align): Define.
5899 (sh64_do_align): Declare.
5900 (struct sh64_tc_frag_data): New.
5901 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5903 (TC_FRAG_INIT): Change to set new datatype.
5904 (struct sh64_segment_info_type): Rename member
5905 last_flushed_location to last_contents_mark. All users changed.
5906 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5907 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5908 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5909 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5910 of unsetting seen_insn.
5911 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5912 call sh64_update_contents_mark.
5913 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5914 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5915 enum sh64_isa_values.
5916 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5917 (emitting_crange): Boolean guard moved to file scope from function
5918 scope in sh64_set_contents_type.
5920 (sh64_update_contents_mark): New; most split out from
5921 sh64_flush_pending_output.
5922 (shmedia_md_end): Call sh64_update_contents_mark. Set
5923 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5924 (sh64_do_align): New function.
5925 (sh64_max_mem_for_rs_align_code): New function.
5926 (sh64_handle_align): Rename from shmedia_do_align. Make
5927 non-static. Add head comment. Emit zero bytes for n bytes modulo
5928 four. Change return-type to void.
5929 (shmedia_elf_new_section): Remove.
5930 (shmedia_md_assemble): Call sh64_update_contents_mark.
5931 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5932 new frag. Call sh64_update_contents_mark after making the new
5934 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5935 and sh_flush_pending_output.
5936 (sh64_flag_output): Also call md_flush_pending_output, but add
5937 condition on not emitting_crange.
5938 (sh64_tc_cons_fix_new): Remove.
5939 2001-01-12 Nick Clifton <nickc@redhat.com>
5940 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5941 alignment handling scheme imported from sourceware.
5942 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5943 * config/tc-sh64.h (TARGET_FORMAT): Define.
5944 (sh64_target_format): Prototype.
5945 * config/tc-sh64.c (sh64_target_mach): New function.
5946 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5947 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5948 zero_address_frag instead of copying the frag of the symbol.
5949 (shmedia_frob_file_before_adjust): Ditto.
5950 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5951 to valueT to remove signedness.
5952 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5953 headers to output_bfd. Do not evaluate symbols if final is false;
5955 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5956 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5957 to the current frag, call shmedia_md_convert_frag to emit fixups
5958 and make frag_wane neutralize the frag. Update comments.
5959 * config/tc-sh.c (md_convert_frag): Change caller of
5960 shmedia_md_convert_frag.
5961 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5962 * config/tc-sh64.h: Tweak comments and correct formatting.
5963 * config/tc-sh64.c: Ditto.
5964 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5965 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5966 for the no-relocation case.
5967 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5968 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5970 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5972 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5973 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5975 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5977 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5978 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5979 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5980 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5981 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5982 if reloc is emitted.
5983 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5984 New options plus bugfixes.
5985 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5987 (md_parse_option): Handle new options.
5988 (md_show_usage): Add blurb for new options.
5989 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5990 (sh64_expand, sh64_pt32): New variables.
5991 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5992 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5993 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5994 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5995 <resolved previously-pc-relative relocs>: Handle
5996 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5997 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5998 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5999 points to SHcompact code.
6000 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6001 SH64PCREL16)>: Check that ISA of what operand points at and
6002 PTA/PTB matches, or emit error.
6003 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6004 SHMEDIA_BFD_RELOC_PT.
6005 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6007 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6008 condition for MOVI expansion.
6009 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6010 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6012 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6014 (sh64_target_format): Error-check setting of sh64_pt32 and
6015 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6016 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6017 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6018 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6019 * config/tc-sh64.c: Improve comments.
6020 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6021 not say the linker will check correctness of PTA/PTB expansion.
6022 (shmedia_md_end): Make non-static.
6023 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6025 * config/tc-sh.c (sh_finalize): Remove.
6026 * config/tc-sh.h (md_end): Do not define.
6027 Remove prototype for sh_finalize.
6028 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6029 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6030 sh64_section_data container when storing section type in tdata
6031 field in elf_section_data.
6032 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6034 * Makefile.am: Update dependencies.
6035 * Makefile.in: Regenerate.
6036 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6037 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6038 dwarf2_emit_insn call with test on debug_type.
6039 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6040 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6041 CRT_SH5_ISA32 sticky for 64-bit.
6042 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6043 Generate .crange sections when switching ISA mode or emitting
6044 constants in same section as code.
6045 * config/tc-sh64.c: Reformat structure definitions.
6046 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6048 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6049 to emit a .cranges descriptor when contents type changes. Only
6050 emit error if changing contents type and -no-mix is in effect.
6051 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6052 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6053 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6054 sh64_flush_last_crange over sections.
6055 When checking main symbol of datalabel symbol, check for
6056 STO_SH5_ISA32, not ISA type of section in definition.
6057 (shmedia_frob_file_before_adjust): Check main symbol for
6058 STO_SH5_ISA32; don't check ISA type of section in definition.
6059 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6060 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6061 .cranges entries have been output.
6062 (shmedia_elf_new_section): Just call md_flush_pending_output.
6063 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6064 fix. Do not set tc_segment_info_data.in_code for section. Call
6065 sh64_set_contents_type for SHmedia code.
6066 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6067 false. Call md_flush_pending_output.
6068 (sh64_target_format): Check that -no-mix and
6069 -shcompact-const-crange are used in sane combination with other
6071 (shmedia_md_pcrel_from_section): Check type of fix for how to
6073 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6074 not ISA type of section in definition.
6075 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6076 hold contents-type state.
6077 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6078 (sh64_flush_pending_output): Declare.
6079 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6080 (sh64_tc_cons_fix_new): Declare.
6081 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6082 call sh64_flag_output.
6083 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6084 call sh64_set_contents_type to mark SHcompact code and set
6086 (md_longopts): New options "-no-mix" and
6087 "-shcompact-const-crange".
6088 (md_parse_option): Handle new options.
6089 (md_show_usage): Add blurb for new options.
6090 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6091 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6092 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6093 (sh64_last_insn_frag): New.
6094 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6095 to get frag for insn opcode for generating fixups; do not assume it
6097 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6099 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6101 (TC_FRAG_TYPE): Define as fragS *.
6102 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6103 (sh64_last_insn_frag): Declare.
6104 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6105 not == NULL before dereferencing.
6106 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6107 Get rid of BFD section flag and EF_SH64_ABI64.
6108 * config/tc-sh64.c (shmedia_frob_section_type): Use
6109 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6110 communicate the section as containing SHmedia code. Describe why.
6111 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6112 EF_SH64 regardless of ABI.
6113 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6114 in error message. Handle resolved expressions for
6115 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6116 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6117 (shmedia_check_limits): Handle BFD_RELOC_64.
6118 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6119 a STO_SH5_ISA32 symbol, only the BFD value.
6120 2000-12-11 Ben Elliston <bje@redhat.com>
6121 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6122 dwarf2_generate_asm_lineno.
6123 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6124 Handle PC-relative MOVI expansions with assembler relaxation.
6125 Generate PC-relative relocs from 16-bit PC-relative expressions.
6126 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6127 (shmedia_md_pcrel_from_section): ...here.
6128 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6129 turned completely resolved. Adjust relocation type for 16-bit
6130 immediate operands that has turned PC-relative. Adjust back for
6131 MD_PCREL_FROM_SECTION being applied twice.
6132 (shmedia_md_convert_frag): Always emit reloc for expression with
6133 global or weak symbol. Handle relaxation result for PC-relative
6135 (shmedia_md_estimate_size_before_relax): An expression with a weak
6136 or global symbol can not be relaxed. Break out tests for
6137 relaxable symbol into variable sym_relaxable.
6138 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6139 UNDEF_MOVI)>: Break out any PC-relative expression and change
6141 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6143 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6144 MOVI expansion. If X_op_symbol of the immediate expression is
6145 set, make an expression symbol for the argument to frag_var.
6146 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6148 (END): Adjust for new relaxations.
6149 (md_relax_table): Add entries for new relaxations.
6150 2000-12-07 Ben Elliston <bje@redhat.com>
6151 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6152 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6153 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6154 SHORI operand offsets in PT/PTA/PTB expansions.
6155 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6156 Implement DataLabel semantics.
6157 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6158 shmedia_frob_file_before_adjust.
6159 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6160 (DATALABEL_SUFFIX): Define.
6161 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6162 symbol list to update "datalabel" symbols to their main symbol
6164 (shmedia_frob_file_before_adjust): New.
6165 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6166 undefined and set STT_DATALABEL.
6167 (sh64_frob_label): Initialize TC symbol field.
6168 (sh64_consume_datalabel): Actually implement semantics. New
6169 parameter operandf, call it instead of expression.
6170 (sh64_exclude_symbol): New.
6171 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6172 to sh64_consume_datalabel.
6173 (tc_symbol_new_hook): Define to tc_frob_symbol.
6174 (TC_SYMFIELD_TYPE): Define to symbolS *.
6175 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6176 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6177 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6179 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6180 generating dwarf2 debug information.
6181 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6182 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6183 elf64-sh64 for the 64-bit ABI.
6184 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6186 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6187 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6189 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6190 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6191 (enum sh64_abi_values): New type.
6192 (enum sh64_isa_values): New type.
6193 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6194 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6195 (sh64_abi): Replace shmedia_64.
6196 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6197 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6198 (s_sh64_mode): Check validity for this target.
6199 (sh64_target_format): Initialize defaults for ISA and ABI.
6200 Fallback to old object format if no SH64 ISA or ABI has been
6202 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6203 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6204 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6205 * config/tc-sh64.h: Fix typo in comment.
6206 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6207 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6208 <PT fixups for absolute values>: Size will be longest, not
6210 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6211 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6212 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6213 and l1 to hold lowercase of two first characters. Change all
6214 remaining TO_LOWER to tolower.
6215 * config/tc-sh64.c (TO_LOWER): Delete.
6216 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6217 (md_parse_name): Define.
6218 (sh64_consume_datalabel): Declare.
6219 (DOLLAR_DOT): Define.
6220 * config/tc-sh64.c (shmedia_parse_exp): New.
6221 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6222 (shmedia_parse_reg): Remove const from src
6224 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6225 (shmedia_md_assemble): Ditto for op_end variable.
6226 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6227 Use shmedia_parse_exp, not parse_exp.
6228 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6229 parameter. All callers changed.
6230 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6232 (shmedia_parse_reg): Put first two character in local variables.
6233 Use tolower, not TO_LOWER. If no register is found and argtype
6234 indicates a control register, scan shmedia_creg_table
6236 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6237 * Makefile.am (CPU_TYPES): Add sh64.
6238 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6239 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6240 Regenerate dependencies.
6241 * Makefile.in: Regenerate.
6242 * configure.in: Add support for sh64-*-elf*.
6243 * configure: Regenerate.
6244 * config/tc-sh64.h: New.
6245 * config/tc-sh64.c: New.
6246 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6247 .mode, .isa and .uaquad.
6248 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6249 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6250 [HAVE_SH64] (END): Define as 10.
6251 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6252 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6254 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6255 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6256 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6257 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6259 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6260 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6261 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6262 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6263 SHmedia instructions. Handle state-change after switching to
6265 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6266 (md_parse_option) [HAVE_SH64]: Parse new options.
6267 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6268 (md_convert_frag) [HAVE_SH64] <default>: Call
6269 shmedia_md_convert_frag instead of abort.
6270 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6271 BFD_RELOC_SH_SHMEDIA_CODE.
6272 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6273 SHcompact or SHmedia code.
6274 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6275 shmedia_md_apply_fix instead of abort.
6276 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6277 result from calling shmedia_md_estimate_size_before_relax instead
6279 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6281 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6282 shmedia_init_reloc and do nothing more if it returns non-zero.
6283 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6284 * po/POTFILES.in: Regenerate.
6285 * po/gas.pot: Regenerate.
6287 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6289 * config/tc-sh.c (parse_at): Install the correct version of
6292 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6293 assume fixP->fx_subsy is non-NULL.
6295 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6297 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6298 A_DISP_PC_ABS, and adjust it by -4.
6299 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6301 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6302 the operand type is not A_DISP_PC_ABS.
6304 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6306 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6307 common and weak symbols. Handle common and weak symbols as
6308 undefined symbols with regards to GREG handling and merging.
6309 (mmix_frob_file): Ditto.
6311 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6313 * configure.in (hppa-*-netbsd*): New target.
6314 * configure: Regenerate.
6315 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6317 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6319 * config/tc-v850.c: Add missing prototypes amd use old-style
6320 function definitions.
6321 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6322 (sdata_section tdata_section, zdata_section, sbss_section,
6323 tbss_section, zbss_section, rosdata_section, rozdata_section,
6324 scommon_section, tcommon_section, zcommon_section,
6325 call_table_data_section, call_table_text_section): Delete.
6326 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6327 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6328 v850_call_table_data, v850_call_table_text): Delete.
6329 (struct v850_seg_entry): New.
6330 (v850_seg_table): New.
6331 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6332 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6333 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6334 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6337 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6338 recording of alignment.
6339 (md_pseudo_table): Use v850_seg.
6340 (md_begin): Don't init .call_table_data and .call_table_text here.
6341 Set v850_seg_table bss entry.
6343 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6345 Support on-demand global register allocation by passing on
6346 base-plus-offset relocs to the linker.
6347 * config/tc-mmix.c: Tweak and fix typos in comments.
6348 (allocate_undefined_gregs_in_linker): New variable.
6349 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6350 (md_longopts): Add --linker-allocated-gregs.
6351 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6352 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6353 (md_show_usage): Update text for -x. Add text for
6354 --linker-allocated-gregs.
6355 (tc_gen_reloc): Derive default value for addend from val and
6356 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6357 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6358 GREG if allocate_undefined_gregs_in_linker.
6359 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6360 --linker-allocated-gregs.
6361 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6362 --linker-allocated-gregs. Mention that it's implied by -x.
6363 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6364 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6366 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6368 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6370 * Makefile.am: Run "make dep-am"
6371 * Makefile.in: Regenerate.
6373 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6375 * config/tc-or32.c: New file.
6376 * config/tc-or32.h: New file.
6377 * configure.in: Add support for or32 targets.
6378 * configure: Regenerate.
6379 * config/obj-coff.c: Add support for or32 targets.
6380 * config/obj-coff.h: Add support for or32 targets.
6381 * Makefile.am: Add support for or32 targets.
6382 * Makefile.in: Regenerate.
6383 * NEWS: Mention support for OpenRISC.
6384 * doc/Makefile.in: Regenerate.
6385 * po/POTFILES.in: Regenerate.
6386 * po/gas.pot: Regenerate.
6388 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6390 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6393 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6395 * config/tc-mips.c (tc_gen_reloc): Arrange for
6396 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6397 their LO16 parts, even for ELF.
6399 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6401 * config/tc-i386.c: Protect definitions of true and false
6404 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6406 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6407 made because of .weak, if they are neither defined nor used in any
6410 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6412 * configure: Regenerated.
6414 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6416 * doc/Makefile.am (install): Depend on install-info.
6417 * doc/Makefile.in: Regenerate.
6419 2002-01-26 Nick Clifton <nick@redhat.com>
6421 * po/fr.po: Updated version
6423 2002-01-24 Kazu Hirata <kazu@hxi.com>
6425 * config/tc-h8300.c (check_operand): Don't print a warning
6426 when a valid 24-bit address is given to a 16-bit address
6429 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6431 * config/tc-sh.c (sh_elf_suffix): Removed.
6432 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6433 sh_end_of_match, sh_parse_name): New functions.
6434 (sh_elf_cons): Simplify.
6435 (parse_exp): Reject misplaced PIC operands.
6436 (md_undefined_symbol): Simplify.
6437 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6438 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6439 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6440 Complain if subsy remains at the end.
6441 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6442 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6444 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6446 * config/tc-mn10300.c (xr_registers): Move `pc'...
6447 (other_registers): ... here.
6449 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6451 * Makefile.am: Run "make dep-am".
6452 * Makefile.in: Regenerate.
6453 * gas/po/POTFILES.in: Regenerate.
6455 2002-01-21 DJ Delorie <dj@redhat.com>
6457 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6458 stabstr_name allocation permanent, as it will be referenced from
6461 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6463 * configure.in (ia64-*-netbsd*): New target.
6464 * configure: Regenerate.
6466 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6468 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6470 <Detailed description, ARM options>: Ditto.
6471 * doc/c-arm.texi (ARM Options): Ditto.
6473 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6475 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6476 do_mia, do_mar and do_mra respectively.
6477 (do_mav_*): Renamed from do_c_*.
6478 (mav_reg_required_here, mav_parse_offset): Renamed from
6479 cirrus_reg_required_here and cirrus_parse_offset respectively.
6480 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6482 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6483 Keith Walker <keith.walker@arm.com>
6485 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6486 (insns): Add pattern for bxj instruction.
6487 (do_bxj): New function.
6488 (arm_cpus): Add arm926ej.
6489 (arm_archs): Add armv5tej.
6491 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6493 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6495 2002-01-19 Keith Walker <keith.walker@arm.com>
6497 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6499 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6501 * NEWS: Mention new ARM command-line options and VFP support.
6503 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6505 (ARM_CEXT_MAVERICK): Similarly.
6506 (ARM_ANY): Now means any core instruction.
6507 (CPU_DEFAULT): Default to ARM_ANY.
6508 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6509 (pic_code): Declare for all object types. Make type int.
6510 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6511 (march_fpu_opt, mfpu_opt): Declare.
6512 (md_longopts): Tidy up conditional definitions.
6513 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6514 (arm_long_opts): New tables.
6515 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6516 (arm_parse_extension): New function.
6517 (md_parse_option): Rewrite using new table-driven system.
6518 (md_show_usage): Use new table-driven system.
6519 (md_begin): Calculate cpu_variant from command line option data.
6520 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6521 command-line options.
6522 * doc/c-arm.texi: Likewise.
6524 2002-01-18 Andreas Jaeger <aj@suse.de>
6526 * as.c (parse_args): Update year.
6528 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6530 * config/tc-tic54x.c (encode_address): Add a more informative
6531 warning about incorrect syntax.
6533 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6535 * po/gas.pot: Regenerate.
6537 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6539 * macro.c (get_any_string): Add no-c-format comment to prevent
6540 confusion when translating string.
6541 * gasp.c (get_any_string): Add no-c-format comment to prevent
6542 confusion when translating string.
6544 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6545 Johannes Stezenbach <js@convergence.de>
6546 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6547 matched before the shorter ones.
6548 (my_getSmallParser): Fix handling of nested parentheses in
6549 percent_op's. Code cleanup.
6550 (my_getPercentOp): New function, code from my_getSmallParser.
6551 (my_getSmallExpression): Fix handling of closing parentheses.
6552 Code cleanup. Better comments.
6554 2002-01-16 Nick Clifton <nickc@redhat.com>
6556 po/tr.po: New file: Turkish translation.
6557 configure.in (LINGUAS): Add "tr".
6558 configure: Regenerate.
6560 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6562 Support for VFP instructions
6563 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6564 (cp_address_required_here): New argument wb_ok. When false, do not
6565 accept write-back forms of addressing. Change all callers.
6566 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6567 (FPU_VFP_EXT_V2): Define.
6568 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6569 Define in terms of above.
6570 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6571 (vfp_reg): New struct.
6572 (vfp_regs): New array of registers.
6573 (insns): Add VFP instructions.
6574 (sn_table): New array of VFP single-precision register names.
6575 (dn_table): New array of VFP double-precision register names.
6576 (all_reg_maps): Add the new register tables.
6577 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6578 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6579 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6580 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6581 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6582 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6583 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6584 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6585 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6586 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6587 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6588 (do_vfp_sp_dp_cvt): New functions.
6589 (md_begin): Set soft-float flag for appropriate VFP work.
6590 (md_atof): Handle VFP-format doubles.
6591 (md_parse_option): Handle VFP command-line options.
6592 (md_show_usage): Display VFP command-line options.
6594 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6596 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6597 various command line options.
6599 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6601 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6603 (xstormy16_md_apply_fix3): Do not return a value.
6605 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6607 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6608 the -EL/-EB option that matches the target's endianness.
6609 (md_parse_option): Likewise.
6611 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6613 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6614 is not dependent on ARM_BI_ENDIAN.
6616 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6618 * tc-arm.c (all error messages): Normalize capitalization of messages.
6620 * tc-arm.h (md_operand): Delete define.
6621 * tc-arm.c (in_my_get_expression): New static variable.
6622 (my_get_expression): Set and clear it.
6623 (md_operand): New function. If called from my_get_expression
6624 put the error in inst.error.
6625 (output_inst): Now takes argument of instruction being assembled.
6626 Print it out with any error message.
6627 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6629 (end_of_line): Don't update inst.error if it is already set.
6631 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6633 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6634 op that can be translated into a mvn instruction.
6636 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6638 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6639 setting default md.flags.
6640 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6641 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6642 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6643 for 32 bit unwind info blocks.
6644 (generate_unwind_image): Add support for different types
6645 of unwind images (32 bits and/or big-endian).
6646 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6647 (ia64_target_format): Add support for hpux target formats.
6648 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6649 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6650 SHT_FINI_ARRAY elf section types.
6652 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6654 * tc-arm.c (struct reg_entry): Move before prototypes.
6655 (int_register, cp_register, fp_register): Delete.
6656 (reg_table): Delete. Replaced with ...
6657 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6658 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6659 (mav_dspsc_table): ... one table per register set.
6660 (arm_reg_hsh): Delete.
6661 (struct reg_map): New structure.
6662 (all_reg_maps): New array.
6663 (enum arm_reg_type): New enums.
6664 (build_reg_hsh): New function.
6665 (insert_reg_alias): Use hash table passed by caller. Adjust all
6667 (create_register_alias): New function, split out from ...
6668 (md_assemble): ... here.
6669 (md_begin): Build new register hash tables.
6670 (arm_reg_parse): New argument for the hash table to search. Adjust all
6672 (arm_reg_parse_any): New function.
6673 (co_proc_number): Look up the processor number in the processor hash
6675 (cirrus_regtype): Delete.
6676 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6677 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6678 (ARM_EXT_MAVERICKsc_register): Delete.
6679 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6680 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6682 (do_c_triple_4, do_c_triple_5): Delete.
6683 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6684 (do_c_quad_6): Delete.
6685 (do_c_quad_6[ab]): New functions.
6686 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6687 arguments to use new register parsing methods.
6688 (cirrus_reg_required_here): Likewise.
6689 (insns): Reclassify cirrus maverick worker functions.
6690 (cirrus_valid_reg): Delete.
6692 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6694 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6695 (sh*-*-netbsdelf*): New target.
6696 * configure: Regenerate.
6697 * tc-sh.h: Update copyright years.
6698 (TARGET_FORMAT): Add version for TE_NetBSD.
6700 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6702 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6705 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6707 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6708 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6710 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6712 * tc-mips.c (mips_cprestore_valid): New flag.
6713 (mips_frame_reg_valid): New flag.
6714 (macro) [M_JAL_2]: Check both flags.
6715 [M_JAL_A]: Likewise.
6716 (s_cprestore): Set mips_cprestore_valid.
6717 (tc_get_register): If setting mips_frame_reg, set
6718 mips_frame_reg_valid and clear mips_cprestore_valid.
6719 (s_mips_ent): Clear both flags.
6720 (s_mips_end): Clear both flags.
6722 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6724 * write.c (write_object_file): Make use of bfd_section_list_remove.
6725 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6726 * config/tc-mmix.c (mmix_frob_file): Likewise.
6728 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6730 * configure.in (i386-*-netbsdelf*): Collapse target into...
6731 (i386-*-netbsd*): ...this. Add support for x86-64.
6732 * configure: Regenerated.
6734 2002-01-03 matthew green <mrg@redhat.com>
6736 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6738 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6740 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6743 For older changes see ChangeLog-0001
6749 version-control: never