1 2003-09-30 Chris Demetriou <cgd@broadcom.com>
3 * NEWS: Mention support for MIPS64 Release 2.
5 2003-09-30 Chris Demetriou <cgd@broadcom.com>
7 * NEWS: Add an indication of the cutoff for 2.14.
9 2003-09-30 Chris Demetriou <cgd@broadcom.com>
11 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
12 * configure: Regenerate.
13 * config/tc-mips.c (imm2_expr): New variable.
14 (md_assemble, mips16_ip): Initialize imm2_expr.
15 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
16 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
17 (macro): Handle M_DEXT and M_DINS.
18 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
20 (OPTION_MIPS64R2): New define.
21 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
22 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
23 (md_parse_option): Handle OPTION_MIPS64R2.
24 (s_mipsset): Handle setting "mips64r2" ISA.
25 (mips_cpu_info_table): Add mips64r2.
26 (md_show_usage): Document -mips64r2 option.
27 * doc/as.texinfo: Docuemnt -mips64r2 option.
28 * doc/c-mips.texi: Likewise.
30 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
34 2003-09-26 Matt Thomas <matt@3am-software.com>
36 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
38 (md_longopts): Add "pic" option.
39 (md_parse_option): Change 'K' to OPTION_PIC.
41 2003-09-23 Alan Modra <alan@modra.org>
43 * config/obj-elf.c (obj_elf_change_section): Adjust for
44 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
45 to be set when defaults are not. Don't set attr from defaults if
48 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
50 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
51 truncate values which won't fit im 32 bits.
52 (load_register): Likewise.
55 2003-09-17 Dmitry Diky <diwil@mail.ru>
57 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
58 (msp430_operands): Remove redundant l2[16] within switch-case.
60 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
62 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
63 * configure: Regenerate.
65 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
67 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
68 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
69 the function prototype.
70 (load_register): Likewise. Simplify the checks for sign-extended
72 (macro): Likewise. Fix code generation for 64-bit address constants
73 outside the 32-bit compatibility space. Adjust
74 macro_build_ldst_constoffset calls.
75 (s_cprestore): Adjust macro_build_ldst_constoffset call.
77 2003-09-11 Bob Wilson <bob.wilson@acm.org>
79 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
80 literal_syms): New global variables.
81 (xtensa_define_label, add_target_symbol, xtensa_find_label,
82 map_over_defined_symbols, is_loop_target_label,
83 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
84 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
85 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
86 from insn_labels to saved_insn_labels when entering a literal region.
87 (xtensa_end_directive): Call md_flush_pending_output. Restore
88 insn_labels list when leaving a literal region.
89 (xtensa_literal_position): Call xtensa_clear_insn_labels.
90 (xtensa_literal_pseudo): Add check to disallow .literal inside a
91 literal region. Move insn_labels to saved_insn_labels and then restore
93 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
94 code to set is_loop_target or is_branch_target flag on the symbol
95 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
96 (xtensa_add_literal_sym, xtensa_add_insn_label,
97 xtensa_clear_insn_labels): New functions.
98 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
99 loops_ok argument. Rewrite to use insn_labels list instead of
100 calling xtensa_find_label and to check the is_loop_target flag on
101 symbols when loops_ok is false.
102 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
103 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
104 call to xtensa_move_labels. Propagate is_branch_target and
105 is_loop_target flags from symbols to frags.
106 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
107 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
108 aligning a loop instruction. Adjust call to xtensa_move_labels for
109 aligning entry instructions. Add call to xtensa_clear_insn_labels.
110 (xtensa_end): Remove call to xtensa_mark_target_fragments.
111 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
112 code to use new literal_syms list.
113 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
114 is_branch_target flags.
116 2003-09-09 Bob Wilson <bob.wilson@acm.org>
118 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
119 "move_labels" argument and corresponding call to xtensa_move_labels.
120 (md_assemble): Add a separate call to xtensa_move_labels and remove
121 argument for call to xtensa_mark_literal_pool_location.
122 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
123 calls to xtensa_mark_literal_pool_location.
124 (xtensa_create_local_symbol): Delete and inline the code into...
125 (xtensa_create_literal_symbol): ...here.
126 (xtensa_frob_label): Combine conditionals.
127 (expression_maybe_register, xtensa_symbol_new_hook,
128 fix_new_exp_in_seg): Use symbol_get_tc.
130 2003-09-09 Bob Wilson <bob.wilson@acm.org>
132 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
133 combining identical literals.
134 (expression_maybe_register): Remove call to find_lit_sym_translation.
135 (is_duplicate_expression, cache_literal, is_duplicate_literal,
136 add_lit_sym_translation, find_lit_sym_translation): Delete.
138 2003-09-07 Nick Clifton <nickc@redhat.com>
140 * doc/as.texinfo (Comments): Comment character for PPC is #.
142 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
145 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
148 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
150 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
152 2003-09-04 Nick Clifton <nickc@redhat.com>
154 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
155 (md_pseudo_table): Add .v850e1 pseudo op.
156 (md_show_usage): Document -mv850e1 switch.
157 (md_parse_option): Accept -mv850e1 switch.
158 (md_begin): Allow TARGET_CPU to be v850e1.
159 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
160 * NEWS: Mention support for v850e1.
162 2003-09-04 Alan Modra <amodra@bigpond.net.au>
164 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
165 ppc_cpu selection rather than replacing.
166 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
167 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
169 2003-09-03 Robert Millan <robertmh@gnu.org>
171 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
173 * configure: Regenerate.
175 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
177 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
178 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
179 Specify AC_CONFIG_AUX_DIR.
180 * aclocal.m4: Regenerated with aclocal-1.7.
181 * configure: Regenerated with autoconf 2.57.
182 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
184 2003-08-29 Jakub Jelinek <jakub@redhat.com>
186 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
187 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
188 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
189 nor tc_cfi_emit_pcrel_expr are defined.
190 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
191 DIFF_EXPR_OK is not defined.
192 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
193 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
194 tc_cfi_emit_pcrel_expr): Define.
195 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
196 sparc_cfi_emit_pcrel_expr): New prototypes.
197 (sparc_cie_data_alignment): New decl.
198 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
199 * config/tc-sparc.c: Include dw2gencfi.h.
200 (sparc_cie_data_alignment): New variable.
201 (md_begin): Initialize it.
202 (sparc_cfi_frame_initial_instructions): New function.
203 (sparc_regname_to_dw2regnum): Likewise.
204 (sparc_cfi_emit_pcrel_expr): Likewise.
205 * doc/as.texinfo: Document .cfi_window_save.
207 * config/tc-sparc.c (s_common): Cast last argument to long and
208 change format string to shut up warning.
210 2003-08-25 Jason Eckhardt <jle@rice.edu>
212 * doc/c-i860.texi: Update text about relocatable address expansions.
214 2003-08-24 Jason Eckhardt <jle@rice.edu>
216 * config/tc-i860.c (md_assemble): Use isrc2 from the original
217 instruction when expanding E_ADDR.
219 2003-08-21 Nick Clifton <nickc@redhat.com>
221 * po/tr.po: Updated Turkish translation.
223 2003-08-20 Alan Modra <amodra@bigpond.net.au>
225 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
226 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
228 2003-08-19 Nick Clifton <nickc@redhat.com>
230 * config/tc-arm.c (cp_address_required_here): Add code to handle
231 unindexed addressing mode.
233 2003-08-19 Alan Modra <amodra@bigpond.net.au>
235 * config/tc-ppc.c (md_parse_option): Handle -m440.
236 (md_show_usage): Add -m440.
237 (md_apply_fix3): Warning fix.
238 * doc/c-ppc.texi: Document -m440.
240 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
242 * read.c (s_print): Check for NULL.
244 2003-08-16 Alan Modra <amodra@bigpond.net.au>
246 * write.c (fixup_segment): When handling an expression involving
247 the subtraction of two symbols in the same segment, don't clear
248 fx_pcrel except for TC_M68K.
250 2003-08-14 Alan Modra <amodra@bigpond.net.au>
252 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
254 * config/tc-i386.c: Likewise.
255 (RELOC_ENUM): Don't define. Replace throughout with enum.
257 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
258 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
260 * Makefile.in: Regenerate.
262 2003-08-08 Andreas Schwab <schwab@suse.de>
264 * config/tc-m68k.h (TARGET_USE_CFIPOP)
265 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
266 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
268 * config/tc-m68k.c: Include "dw2gencfi.h".
269 (tc_m68k_regname_to_dw2regnum)
270 (tc_m68k_frame_initial_instructions): New functions.
272 2003-08-08 Dmitry Diky <diwil@mail.ru>
274 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
275 according to gcc order.
277 2003-08-07 Jason Eckhardt <jle@rice.edu>
279 * config/tc-i860.c (i860_check_label): New function.
280 * config/tc-i860.h (i860_check_label): New prototype.
281 (tc_check_label): Define macro as i860_check_label.
283 2003-08-06 Jason Eckhardt <jle@rice.edu>
285 * config/tc-i860.c (s_align_wrapper): New function and prototype.
286 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
287 surrounding OBJ_ELF ifdef, and re-format slightly.
288 * doc/c-i860.texi: Document the special .align syntax available
291 2003-08-06 Jason Eckhardt <jle@rice.edu>
293 * config/tc-i860.c (i860_handle_align): New function.
294 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
295 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
297 2003-08-06 Jason Eckhardt <jle@rice.edu>
299 * config/tc-i860.c (i860_process_insn): Check that instructions
300 with their dual-bit set are 8-byte aligned.
302 2003-08-06 Nick Clifton <nickc@redhat.com>
304 * po/fr.po: Updated French translation.
306 2003-08-05 Jason Eckhardt <jle@rice.edu>
308 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
309 setting during flop argument parsing. Instead, do it after
310 instruction is fully parsed.
312 2003-08-05 Jason Eckhardt <jle@rice.edu>
314 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
315 directives are only available in Intel syntax mode.
317 2003-08-05 Jason Eckhardt <jle@rice.edu>
319 * config/tc-i860.c (s_dual): Accept .dual directive only in
320 the Intel syntax mode.
321 (s_enddual): Likewise for .enddual.
322 (s_atmp): Likewise for .atmp.
324 2003-08-04 Alan Modra <amodra@bigpond.net.au>
326 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
327 for memory operands. Pass the full operand_string to i386_index_check.
329 2003-08-01 Jason Eckhardt <jle@rice.edu>
331 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
332 (target_intel_syntax): Declare variable.
333 (OPTION_INTEL_SYNTAX): Declare macro.
334 (md_longopts): Add option -mintel-syntax.
335 (md_parse_option): Set target_intel_syntax.
336 (md_show_usage): Add -mintel-syntax usage.
337 (md_begin): Set reg_prefix based on target_intel_syntax.
338 (i860_process_insn): Skip register prefix only if there is one.
339 Parse relocatable expressions in either Intel or AT&T syntax based
340 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
341 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
342 about the differences in syntax.
344 2003-08-01 Dmitry Diky <diwil@mail.ru>
346 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
349 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
351 * config/tc-sh.c (md_assemble): For branches, check & update
354 2003-07-30 Jason Eckhardt <jle@rice.edu>
356 * config/tc-i860.c: Convert to ISO C90.
358 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
360 * read.c (s_space): Revert 2003-07-28 change.
362 2003-07-30 Alan Modra <amodra@bigpond.net.au>
364 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
366 2003-07-29 Alan Modra <amodra@bigpond.net.au>
368 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
370 2003-07-29 Jakub Jelinek <jakub@redhat.com>
372 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
374 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
376 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
378 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
380 * read.c (s_space): Don't warn about .space 0.
382 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
384 * config/tc-mips.c (mips_flag_pdr): Define.
385 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
386 (s_mips_end) [OBJ_ELF]: Likewise.
387 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
388 (md_parse_option) [OBJ_ELF]: Handle them.
389 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
391 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
392 * doc/as.texinfo (Overview) [MIPS]: Likewise.
394 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
396 * config/obj-elf.c (obj_elf_change_section): Update
397 elf_section_type and elf_section_flags only when they are
400 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
402 * config/obj-elf.c (obj_elf_change_section): Always set section
405 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
407 * config/obj-elf.c (special_sections): Removed.
408 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
409 elf_section_type and elf_section_flags.
410 (elf_frob_file): Set SHT_GROUP.
412 * config/obj-elf.h (obj_sec_set_private_data): New.
414 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
415 * config/tc-ia64.h: Likewise.
416 * config/tc-m32r.h: Likewise.
417 * config/tc-m68hc11.h: Likewise.
418 * config/tc-mcore.h: Likewise.
419 * config/tc-mips.h: Likewise.
420 * config/tc-ppc.h: Likewise.
421 * config/tc-sh64.h: Likewise.
422 * config/tc-v850.h: Likewise.
423 * config/tc-xtensa.h: Likewise.
425 * config/tc-v850.h (SHF_V850_GPREL): Removed.
426 (SHF_V850_EPREL): Likewise.
427 (SHF_V850_R0REL): Likewise.
429 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
432 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
434 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
435 debugging symbols so that we handle page memory correctly.
437 2003-07-24 Nick Clifton <nickc@redhat.com>
439 * po/fr.po: Updated French translation.
441 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
443 * config/tc-arm.c (arm_archs): Add iwmmxt.
445 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
447 * read.c (do_parse_cons_expression): Mark nbytes unused to
450 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
452 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
455 * config/tc-h8300.c (md_assemble): Make sure characters after
456 slash and dot are lower-case.
458 2003-07-17 Nick Clifton <nickc@redhat.com>
460 * po/es.po: New Spanish translation.
461 * po/tr.po: New Turkish translation.
462 * po/opcodes.pot: Regenerate.
464 2003-07-16 Alan Modra <amodra@bigpond.net.au>
466 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
467 (generic_dwarf2_emit_offset): Don't define function when
468 TC__DWARF2_EMIT_OFFSET is defined.
470 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
472 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
473 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
474 * doc/c-mips.texi: Document -march=rm9000.
476 2003-07-15 Alan Modra <amodra@bigpond.net.au>
478 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
479 only for V850_OPERAND_DISP operands.
481 2003-07-15 Alan Modra <amodra@bigpond.net.au>
483 * frags.c (frag_more): Move segment checks to..
484 (frag_alloc_check): ..here. New function.
485 (frag_append_1_char): Call frag_alloc_check.
487 2003-07-14 Nick Clifton <nickc@redhat.com>
489 * po/tr.po: Update with latest version.
490 * po/POTFILES.in: Regenerate.
491 * po/gas.pot: Regenerate.
492 * configure: Regenerate.
494 2003-07-14 Nick Clifton <nickc@redhat.com>
496 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
497 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
498 "safe-ctype.h" and update use of macros.
499 * Makefile.am: Update dependencies.
500 * Makefile.in: Regenerate.
502 2003-07-11 Alan Modra <amodra@bigpond.net.au>
504 * po/gas.pot: Regenerate.
506 2003-07-10 Jakub Jelinek <jakub@redhat.com>
508 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
509 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
510 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
511 DWARF2_CIE_DATA_ALIGNMENT): Define.
512 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
514 (ppc_cie_data_alignment): Declare.
515 * config/tc-ppc.c: Include dw2gencfi.h.
516 (ppc_cie_data_alignment): Define.
517 (md_begin): Initialize ppc_cie_data_alignment.
518 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
520 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
521 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
522 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
523 DWARF2_CIE_DATA_ALIGNMENT): Define.
524 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
526 (s390_cie_data_alignment): Declare.
527 * config/tc-s390.c: Include dw2gencfi.h.
528 (s390_cie_data_alignment): Define.
529 (md_begin): Initialize s390_cie_data_alignment.
530 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
533 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
535 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
536 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
537 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
538 * configure.in (am33_2.0, mn10300-*-linux*): Added.
539 * configure: Rebuilt.
540 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
542 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
545 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
547 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
548 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
549 for subtracts from GLOBAL_OFFSET_TABLE that could not be
551 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
552 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
553 could not be simplified.
554 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
555 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
556 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
557 BDF_RELOC_MN10300_GOT32.
558 * config/tc-mn10300.c (mn10300_fix_adjustable): If
559 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
560 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
561 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
562 symbol if we know its value.
563 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
564 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
565 duplicate underscore prefix.
566 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
567 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
568 type in X_md, not X_add_number. Zero X_add_number.
569 (mn10300_check_fixup): Extract relocation type from X_md.
570 * config/tc-mn10300.h: Update comment.
571 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
572 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
574 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
575 (mn10300_check_fixup): Likewise.
576 (mn10300_parse_name): Set X_add_number to relocation type.
577 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
578 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
579 O_GOTOFF, O_PLT, O_GOT): Define.
580 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
581 (mn10300_check_fixup): New fn.
582 (md_assemble): Call it. Check for PIC-related relocs.
583 (mn10300_cons_fix_new): Likewise. New fn.
584 (mn10300_end_of_match): New fn.
585 (mn10300_md_parse_name_cont): New fn.
587 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
589 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
590 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
592 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
593 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
594 md_assemble, md_estimate_size_before_relax): Handle fbCC.
595 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
596 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
598 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
599 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
600 (HAVE_AM33): Match AM33_2 too.
601 (HAVE_AM33_2): New macro.
602 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
603 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
604 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
605 (float_registers, double_registers): New variables.
606 (float_register_name, double_register_name): New functions.
607 (md_assemble): Recognize FP registers. Implement FMT_D3.
608 (mn10300_insert_operand): Support FP registers.
610 2003-07-08 Chris Demetriou <cgd@broadcom.com>
612 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
613 target being a global symbol if not compiling SVR4 PIC code.
615 2003-07-07 Nick Clifton <nickc@redhat.com>
617 * doc/c-m32r.texi (M32R-Directives): New node. Document the
618 .high, .shigh and .low directives.
620 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
622 * config/tc-h8300.c (h8300sxnmode): Add prototype.
624 (parse_exp): Replace expressionS argument with a h8_op. Parse the
625 operand size as well.
626 (skip_colonthing): Remove unused expression argument. Tighten checks
628 (colonmod24): Remove.
629 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
630 (get_operand): Likewise. Use the standard code to read the size of
631 pc-relative operands.
632 (fix_operand_size): Include the size-guessing logic that used to be
633 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
634 offsets with a symbolic component.
636 2003-07-04 Nick Clifton <nickc@redhat.com>
638 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
639 macro to compute size of selected register name array.
641 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
643 * config/tc-s390.c (md_parse_option): Add cpu type z990.
644 (md_begin): Add minimal cpu type logic for instructions with different
645 binary format depending on the cpu.
646 (md_assemble): Remove check for minimal cpu.
647 (s390_insert_operand): Add support for long displacements.
648 (md_gather_operands): Likewise.
649 (tc_s390_fix_adjustable): Likewise.
650 (tc_s390_force_relocation): Likewise.
651 (md_apply_fix3): Likewise.
653 2003-06-30 Chris Demetriou <cgd@broadcom.com>
655 * config/tc-mips.c (s_mipsset): Implement -march= handling
658 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
660 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
661 prototypes and casts. Replace PTR with void *. Reformat.
662 * config/tc-mips.h: Likewise.
664 2003-06-30 Alan Modra <amodra@bigpond.net.au>
666 * config/tc-ia64.c (note_register_values): Warning fix.
667 * config/tc-mips.c (append_insn): Likewise.
669 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
671 * config/tc-mips.c (mips_set_options,mips_opts): Support for
673 (file_mips_arch): Rename mips_arch.
674 (mips_arch_info,mips_tune_info): Remove.
675 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
676 (mips_cpu_info_from_arch): New function.
677 (md_begin): Use file_mips_arch.
678 (macro_build,macro,mips_ip): Use mips_opts.arch.
679 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
680 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
682 (s_mipsset): Support for .set arch=FOO.
683 (mips_cpu_info_table): Fix typo.
685 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
687 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
689 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
691 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
692 unsigned 8-bit operands.
694 2003-06-24 Nick Clifton <nickc@redhat.com>
696 * read.c (s_comm): Change error message to assume an unsigned size
697 has been passed to .comm.
698 * config/tc-sparc.c (s_common): Likewise.
699 * write.c (write_contents): Replace 'unsigned long' with
700 'addressT' and 'long' with offsetT in order to allow computations
701 with very large values to work for 64-bit addressed targets.
702 (relax_and_size_all_segments): Likewise.
703 (relax_frag): Likewise.
704 (relax_segment): Likewise.
706 2003-06-23 Mark Mitchell <mark@codesourcery.com>
708 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
710 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
712 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
715 * gas/config/tc-i386.h (CpuPNI): New.
716 (CpuUnknownFlags): Add CpuPNI.
718 2003-06-23 <davidm@hpl.hp.com>
720 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
721 freebsd, openvms, and nsk (non-stop kernel).
723 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
725 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
726 all locals have been declared.
728 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
730 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
731 special handling for n32 ABI.
734 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
736 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
739 2003-06-19 Christian Groessler <chris@groessler.org>
741 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
742 now, not only a warning. Add some more checks to detect invalid
744 (get_operand): For CLASS_IR remember register size in mode struct.
745 (get_specific): Handle new CLASS_IRO type. Add register size
746 checks for CLASS_IR and CLASS_IRO.
747 (md_apply_fix3): Fix undefined usage of buf.
749 2003-06-19 Alan Modra <amodra@bigpond.net.au>
751 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
752 (ppc_change_csect): Add align param. Align frag at start of csect.
753 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
754 (ppc_frob_section): Align vma.
756 2003-06-18 Jakub Jelinek <jakub@redhat.com>
758 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
759 (output_cie): Don't pad.
760 (output_fde): Add align argument. Pad to align if not 0.
761 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
762 Pad just last FDE to EH_FRAME_ALIGNMENT.
764 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
766 * config/tc-s390.c (init_default_arch): Make current_mode_mask
767 dependent on s390_arch_size and current_cpu dependent on
770 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
772 * configure.in: Add c4x as an architecture variant to tic4x.
773 * configure: Regenerate.
774 * Makefile.in: Regenerate.
775 * doc/Makefile.in: Regenerate.
777 2003-06-18 Alan Modra <amodra@bigpond.net.au>
779 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
780 ".TOC." from PPC64_TOC relocs.
782 2003-06-17 Alan Modra <amodra@bigpond.net.au>
784 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
786 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
788 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
789 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
790 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
791 s_cprestore,s_cpadd): Use them.
793 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
795 * configure.in: Add specific case for cris-*-linux-gnu* with
797 * configure: Regenerate.
798 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
799 if TE_LINUX defined, else FALSE.
800 (bfd_boolean demand_register_prefix): Set default from
801 DEFAULT_CRIS_AXIS_LINUX_GNU.
802 (symbols_have_leading_underscore): Similar.
803 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
805 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
807 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
808 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
809 FPU_ARCH_FPA for AOUT.
810 (md_begin): Don't try to guess the floating point architecture from
811 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
813 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
815 * configure.in: Add i386-netbsd-gnu target.
816 * configure: Regenerate.
818 2003-06-12 Tom Tromey <tromey@redhat.com>
820 * doc/as.texinfo (Comm): Added @node. Moved before CFI
823 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
825 * config/tc-mips.c (append_insn): In a compound relocation, take the
826 field width from the final (outermost) operator.
828 2003-06-11 Richard Henderson <rth@redhat.com>
830 * dw2gencfi.c (struct cfi_escape_data): New.
831 (cfi_add_CFA_nop): Remove.
832 (CFI_escape, dot_cfi_escape): New.
833 (dot_cfi): Remove nop.
834 (cfi_pseudo_table): Remove nop; add escape.
835 (output_cfi_insn): Likewise.
836 (select_cie_for_fde): Stop on escape.
837 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
838 * read.c, read.h (do_parse_cons_expression): New.
839 * doc/as.texinfo (.cfi_escape): New.
841 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
843 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
844 (s_cprestore): Likewise.
845 (s_cpreturn): Likewise.
847 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
849 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
852 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
854 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
855 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
856 exceptions from size assert. Remove most of the addend fixup
857 specialcasing. Remove value, use valP directly. simplify fx_addnumber
858 handling. Remove zero addend specialcases.
859 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
860 the addend fixup specialcase.
861 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
863 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
865 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
866 in the RELOC_EXPANSION_POSSIBLE case.
868 2003-06-11 Alan Modra <amodra@bigpond.net.au>
870 * config/tc-i960.c (line_comment_chars): Add '#'.
871 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
873 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
875 * po/Make-in (DESTDIR): New.
876 (install-data-yes): Support $(DESTDIR).
877 (uninstall): Likewise.
879 2003-06-11 Alan Modra <amodra@bigpond.net.au>
881 * Makefile.am: Run "make dep-am".
882 * Makefile.in: Regenerate.
883 * po/POTFILES.in: Regenerate.
885 2003-06-10 Doug Evans <dje@sebabeach.org>
887 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
889 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
890 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
891 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
893 2003-06-10 Alan Modra <amodra@bigpond.net.au>
894 Gary Hade <garyhade@us.ibm.com>
896 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
897 (md_apply_fix3): Special case lq insn.
899 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
901 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
902 lists. Allow single-register ranges.
904 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
906 * config/tc-h8300.c (h8300sxnmode): New.
907 (md_pseudo_table): Add .h8300sxn entry.
909 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
911 * NEWS: Updated for the new -n option for the i386 assembler.
913 * config/tc-i386.c (optimize_align_code): New.
914 (md_shortopts): Add 'n'.
915 (md_parse_option): Handle 'n'.
916 (md_show_usage): Add '-n'.
918 * config/tc-i386.h (optimize_align_code): Declared.
919 (md_do_align): Optimize code alignment only if optimize_align_code
922 * doc/as.texinfo: Add the new -n option.
924 * doc/c-i386.texi: Document the new -n option.
926 2003-06-07 Richard Henderson <rth@redhat.com>
928 * doc/as.texinfo: Document .cfi_rel_offset.
930 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
931 (cfi_add_CFA_offset): Detect invalid offsets.
932 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
933 (cfi_add_CFA_restore_state): Restore it.
934 (CFI_rel_offset): New.
935 (cfi_pseudo_table): Add it.
936 (dot_cfi): Handle it.
938 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
940 * app.c (do_scrub_chars): Add states 14 and 15 to handle
943 2003-06-05 Michael Snyder <msnyder@redhat.com>
945 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
946 (build_bytes): Ditto.
948 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
950 * config/tc-h8sx.c (DMODE): Remove.
951 (colonmod24): Don't choose a default if the operand is a 16-bit
953 (fix_operand_size): New function.
954 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
955 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
957 2003-06-05 Michal Ludvig <mludvig@suse.cz>
959 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
960 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
961 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
962 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
963 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
964 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
965 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
966 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
967 (cfi_pseudo_table): New directives .cfi_return_column,
968 .cfi_restore, .cfi_undefined, .cfi_same_value,
969 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
970 (dot_cfi, output_cfi_insn): Handle new directives.
971 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
972 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
973 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
975 2003-06-04 Richard Henderson <rth@redhat.com>
977 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
979 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
981 2003-06-04 Richard Henderson <rth@redhat.com>
983 * config/tc-alpha.c (s_alpha_usepv): New.
984 (md_pseudo_table): Add it.
985 (alpha_cfi_frame_initial_instructions): New.
986 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
987 (tc_cfi_frame_initial_instructions): New.
988 * doc/c-alpha.texi: Document .usepv.
990 2003-06-04 Jakub Jelinek <jakub@redhat.com>
992 * as.c (show_usage): Document --execstack and --noexecstack.
993 (parse_args): Add --execstack and --noexecstack.
994 (main): Create .note.GNU-stack section if --execstack or
995 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
996 * as.h (flag_execstack, flag_noexecstack): New.
998 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1000 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1001 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1002 (OPTION_MISC_BASE): New defines.
1003 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1004 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1005 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1006 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1007 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1008 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1009 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1010 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1011 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1012 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1013 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1014 (OPTION_TRAP): Redefine in terms of new defines.
1015 (md_longopts): Reorder entries.
1017 2003-05-14 Michael Snyder <msnyder@redhat.com>
1018 From Bernd Schmidt <bernds@redhat.com>
1019 and Michael Snyder <msnyder@redhat.com>
1020 and Alexandre Oliva <aoliva@redhat.com>
1021 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1022 * config/tc-h8300.h: Ditto.
1024 2003-06-03 Nick Clifton <nickc@redhat.com>
1026 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1027 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1028 before calling bfd_reloc_type_lookup.
1030 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1032 * read.c (emit_expr): Set dot_value.
1033 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1035 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1037 * macro.c (sub_actual): Don't lose string if it turns out that
1038 &string wasn't an arg.
1040 2003-05-31 Richard Henderson <rth@redhat.com>
1042 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1043 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1045 2003-05-29 Richard Henderson <rth@redhat.com>
1047 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1048 (all_frame_data, plast_frame_data, cur_frame_data): New.
1049 (s_alpha_ent): Record data for dwarf2 cfi.
1050 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1051 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1052 * config/tc-alpha.h (md_end): New.
1053 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1054 (DWARF2_CIE_DATA_ALIGNMENT): New.
1056 2003-05-29 Nick Clifton <nickc@redhat.com>
1058 * configure.in: Add i386-*-freebsd* entry.
1059 * configure: Regenerate.
1061 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1063 * config/tc-m32r.c: Amend comment to refer to Renesas
1065 2003-05-27 Richard Henderson <rth@redhat.com>
1067 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1069 (current_location): Use symbol_temp_new_now.
1070 * stabs.c (s_stab_generic): Use symbol_temp_new.
1071 * symbols.c (temp_label_name): Remove.
1072 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1074 2003-05-27 Richard Henderson <rth@redhat.com>
1076 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1077 * as.c (main): Always call cfi_finish.
1078 * config/tc-i386.c (x86_dwarf2_return_column): New.
1079 (x86_cie_data_alignment): New.
1080 (md_begin): Set them.
1081 (tc_x86_cfi_init): Remove.
1082 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1083 return int, not unsigned long; don't as_bad here.
1084 (tc_x86_frame_initial_instructions): Streamline; use
1086 * config/tc-i386.h (tc_cfi_init): Remove.
1087 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1088 (DWARF2_CIE_DATA_ALIGNMENT): New.
1090 2003-05-27 Richard Henderson <rth@redhat.com>
1092 * symbols.c (temp_label_name): New.
1093 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1094 (symbol_set_value_now): New.
1095 * symbols.h: Prototype them.
1096 * dwarf2dbg.c: Use them.
1097 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1099 2003-05-23 Jason Eckhardt <jle@rice.edu>
1101 * config/tc-i860.c (target_xp): Declare variable.
1102 (OPTION_XP): Declare macro.
1103 (md_longopts): Add option -mxp.
1104 (md_parse_option): Set target_xp.
1105 (md_show_usage): Add -mxp usage.
1106 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1107 (md_assemble): Don't try expansions if XP_ONLY is set.
1108 * doc/c-i860.texi: Document -mxp option and i860XP support.
1110 2003-05-23 Eric Christopher <echristo@redhat.com>
1112 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1114 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1116 * config/tc-mips.c (append_insn): Use actual relocation size for new
1117 fixp's. Don't relax overflow checking for partial_inplace relocations.
1118 Use the actual relocation type in combined relocs, not just the type
1120 (macro_build_jalr): Use actual relocation size for new fix.
1121 (s_cpsetup, s_gpdword): Likewise.
1123 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1125 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1127 2003-05-22 Nick Clifton <nickc@redhat.com>
1129 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1130 section relative offsets for relocs that will not be based on the
1132 (xstormy16_md_apply_fix3): Remove previous patch to this
1135 2003-05-07 Eric Christopher <echristo@redhat.com>
1137 * config/tc-mips.c (mips_abicalls): New variable.
1138 (md_parse_option): Use.
1140 (s_abicalls): Ditto.
1141 (mips_elf_final_processing): Set EF_MIPS_PIC and
1142 EF_MIPS_CPIC dependent on above.
1144 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1146 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1148 2003-05-21 Nick Clifton <nickc@redhat.com>
1150 * config/obj-elf.c: Include dwarf2dbg.h.
1151 (elf_pseudo_tab): Add .file and .loc.
1152 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1153 * config/tc-arm.c: Likewise.
1154 * config/tc-h8300.c: Likewise.
1155 * config/tc-hppa.c: Likewise.
1156 * config/tc-ia64.c: Likewise.
1157 * config/tc-m68hc11.c: Likewise.
1158 * config/tc-m68k.c: Likewise.
1159 * config/tc-mmix.c: Likewise.
1160 * config/tc-mn10300.c: Likewise.
1161 * config/tc-ppc.c: Likewise.
1162 * config/tc-sh.c: Likewise.
1163 * config/tc-sparc.c: Likewise.
1164 * config/tc-v850.c: Likewise.
1165 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1167 * config/tc-ip2k.c: Likewise.
1168 * config/tc-iq2000.c: Likewise.
1169 * config/tc-xstormy16.c: Likewise.
1170 * config/tc-xtensa.c: Likewise.
1171 * Makefile.am: Regenerate dependencies.
1172 * Makefile.in: Regenerate.
1173 * aclocal.m4: Regenerate.
1174 * config.in: Regenerate.
1175 * configure: Regenerate.
1176 * po/POTFILES.in: Regenerate.
1177 * po/gas.pot: Regenerate.
1179 2003-05-21 Nick Clifton <nickc@redhat.com>
1181 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1182 BFD_ASSEMBLER targets.
1183 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1184 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1185 defining BFD_ASSEMBLER.
1187 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1189 * as.c (main): Remove tc_cfi_init().
1190 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1192 (cfi_pseudo_table): Add "cfi_register" entry.
1193 (cfi_make_insn): Handle CFA_register.
1194 (cfi_output_insn): Ditto.
1196 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1197 (dot_cfi_endproc): Reuse already emitted CIEs.
1198 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1199 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1201 2003-05-20 Nick Clifton <nickc@redhat.com>
1203 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1204 (md_pseudo_table): Add entries for .loc and .line.
1206 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1208 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1210 (dot_cfi_endproc): Avoid C99 construct.
1212 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1214 * dw2gencfi.c, dw2gencfi.h: New files.
1215 * config/tc-i386.c (tc_x86_cfi_init): New function.
1216 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1217 * as.c (parse_args): Set verbose flag on --verbose.
1218 (main): Call tc_cfi_init()/cfi_finish().
1219 * as.h (verbose): New external variable.
1220 * read.c (pobegin): Insert CFI pops to the list.
1221 * symbols.c (local_symbol_make): Make symbol external.
1222 * symbols.h (local_symbol_make): New prototype.
1223 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1224 * Makefile.in: Regenerate.
1225 * doc/as.texinfo: Added node "CFI directives" with description of
1226 all implemented .cfi_* directives.
1227 * doc/Makefile.in: Regenerate.
1228 * po/POTFILES.in: Regenerate.
1230 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
1232 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
1234 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
1236 2003-05-18 Jason Eckhardt <jle@rice.edu>
1238 * config/tc-i860.c (i860_process_insn): Initialize fc after
1239 each opcode mismatch.
1241 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
1243 * configure.in: Accept i[3-7]86 variants.
1244 * configure: Regenerate.
1246 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1248 * config/tc-mips.h: Fix comment formatting.
1250 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
1252 * read.c (old_buffer, old_input, old_limit): Remove variables.
1253 (read_a_source_file): Delete label contin.
1254 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
1255 input as with macros, instead of in separate old_* variables.
1256 Zero-terminate string being scrubbed.
1258 2003-05-12 Nick Clifton <nickc@redhat.com>
1260 * config/tc-xstormy16.c (skipping_fptr): New local variable.
1261 (md_assemble): Reset skipping_fptr.
1262 (md_operand): If @fptr() is followed by a minus sign, set
1263 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
1264 @fptr is detected, ignore it and reset skipping_fptr.
1266 2003-05-11 Jason Eckhardt <jle@rice.edu>
1268 * config/tc-i860.c (MAX_FIXUPS): Define.
1269 (struct i860_fi fi[]): New struct.
1270 (struct i860_it the_insn): Add above as member and move fields
1271 exp, reloc, pcrel and fup into i860_fi.
1272 (md_assemble): Replace all instances of exp, reloc, pcrel
1273 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
1274 Add a loop to possibly emit multiple fix-ups for each insn.
1275 (i860_process_insn): Likewise.
1276 (i860_get_expression): Likewise.
1277 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
1279 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1281 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
1283 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
1285 * config/tc-ia64.c (alias_hash): New.
1286 (alias_name_hash): New.
1287 (secalias_hash): New.
1288 (secalias_name_hash): New.
1289 (md_pseudo_table): Add "secalias".
1290 (md_begin): Initialize alias_hash, alias_name_hash,
1291 secalias_hash and secalias_name_hash.
1292 (struct alias): New.
1293 (dot_alias): Implement .alias and .secalias directives.
1295 (ia64_adjust_symtab): New.
1297 (ia64_frob_file): New.
1299 * config/tc-ia64.h (ia64_adjust_symtab): New.
1300 (tc_adjust_symtab): Defined.
1301 (ia64_frob_file): New.
1302 (tc_frob_file): Defined.
1304 2003-05-07 Dmitry Diky <diwil@mail.ru>
1306 * tc-msp430.c: Add missing lines to known cpus list.
1308 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
1310 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
1311 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
1312 * config.in, configure: Rebuilt.
1314 2003-05-05 H.J. Lu <hjl@gnu.org>
1316 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
1317 howto->partial_inplace is false.
1319 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
1321 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
1322 symbol_used_in_reloc_p check.
1323 (md_apply_fix3): Remove check for howto->pcrel_offset.
1325 2003-05-03 H.J. Lu <hjl@gnu.org>
1327 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
1328 fatal error for unknown section attribute.
1330 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
1331 unknown section attribute.
1332 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
1333 * config/tc-ppc.c (ppc_section_letter): Likewise.
1335 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
1336 (ia64_elf_section_type): Accept "unwind".
1338 2003-05-02 H.J. Lu <hjl@gnu.org>
1340 * read.h (demand_copy_string): New.
1342 * config/tc-alpha.c (demand_copy_string): Removed.
1344 2003-05-02 Michael Snyder <msnyder@redhat.com>
1346 * write.h (FAKE_LABEL_NAME): Allow override
1347 (for targets that like eg. a leading dot in a local label).
1349 2003-05-02 Nick Clifton <nickc@redhat.com>
1351 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
1352 addend with the symbol's value for pc-relative relocations against
1353 a defined symbol - this will be done automatically.
1355 2003-05-01 H.J. Lu <hjl@gnu.org>
1357 * config/obj-elf.c (obj_elf_type): Accept "notype" and
1360 2003-05-01 H.J. Lu <hjl@gnu.org>
1362 * config/tc-ia64.h (tc_canonicalize_section_name): New.
1364 * config/obj-elf.c (obj_elf_section_name): Call
1365 tc_canonicalize_section_name if it is defined.
1367 2003-05-01 H.J. Lu <hjl@gnu.org>
1369 * config/tc-ia64.c (ia64_check_label): New.
1370 * config/tc-ia64.h (tc_check_label): New.
1372 * read.c (read_a_source_file): Call tc_check_label after
1373 creating a user-defined label if defined.
1375 2003-05-02 Alan Modra <amodra@bigpond.net.au>
1377 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
1378 -be and split strings to below 509 bytes in length.
1380 2003-05-01 Christian Groessler <chris@groessler.org>
1382 * expr.h: Fix comments in operatorT typedef.
1383 * config/tc-z8k.c: Add 2003 to copyright message.
1384 Fold s_segm() and s_unseg() into one function s_segm(parm) which
1385 decides by the parameter.
1386 (md_begin): Don't set linkrelax. Only set Z8002 default if no
1387 command line argument was given to select the intended
1389 (get_interrupt_operand): Warn if NOP type code is emitted.
1390 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
1391 (apply_fix): Call newfix with additional 'size' parameter.
1392 (build_bytes): Remove unused variable 'nib'. Detect overflow in
1393 4 bit immediate arguments.
1394 (md_longopts): Add 'linkrelax' option.
1395 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
1396 variable when 'linkrelax' command line option is specified.
1397 (md_show_usage): Display 'linkrelax' option.
1398 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
1399 R_CALLR and R_REL16.
1400 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
1402 2003-04-30 H.J. Lu <hjl@gnu.org>
1404 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
1405 (ia64_float_to_chars): Likewise.
1406 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
1407 and ia64_float_to_chars by tc_segment_info_data.endian from
1408 the current segment if byteorder == -1.
1409 (md_begin): Call dot_byteorder to set target_big_endian.
1410 (md_atof): Call ia64_float_to_chars to convert floating point.
1411 (ia64_float_to_chars_bigendian): New function.
1412 (ia64_float_to_chars_littleendian): Likewise.
1413 (ia64_elf_section_change_hook): Likewise.
1415 * config/tc-ia64.h (ia64_number_to_chars): New.
1416 (md_number_to_chars): Changed to (*ia64_number_to_chars)
1417 (ia64_elf_section_change_hook): New.
1418 (md_elf_section_change_hook): Defined.
1419 (ia64_segment_info_type): New struct.
1420 (TC_SEGMENT_INFO_TYPE): Defined.
1422 2003-04-30 H.J. Lu <hjl@gnu.org>
1424 * config/tc-ia64.c (md_section_align): Deleted.
1426 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
1427 (md_section_align): New.
1429 2003-04-30 H.J. Lu <hjl@gnu.org>
1431 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
1433 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
1435 (md_atof): Add 6 byte padding of zero for real16.
1437 2003-04-29 Nick Clifton <nickc@redhat.com>
1439 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
1440 start of a version name.
1442 2003-04-28 Chris Demetriou <cgd@broadcom.com>
1444 * configure.in (mips-*-*n*bsd*): Replace with...
1445 (mips-*-netbsd*, mips-*-openbsd*): These.
1446 * configure: Regenerate.
1448 2003-04-28 H.J. Lu <hjl@gnu.org>
1450 * config/tc-hppa.c (hppa_symbol_chars): New.
1451 * config/tc-hppa.h (tc_symbol_chars): Likewise.
1453 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1455 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
1457 2003-04-25 Chris Demetriou <cgd@broadcom.com>
1459 * NEWS: Belatedly mention support for MIPS32 Release 2.
1461 2003-04-24 Eric Christopher <echristo@redhat.com>
1463 * config/tc-mips.c (nopic_need_relax): Revert previous
1466 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1468 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
1469 * config/tc-h8300.c (dwarf2dbg.h): Include
1470 (md_pseudo_table): Handle .loc and .file
1471 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
1472 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
1473 * Makefile.in: Regenerate.
1475 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1477 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
1478 (md_pseudo_table): Add h8300hn, h8300sn.
1479 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
1480 * doc/c-h8300.texi : Add documentation for new machine directives.
1482 2003-04-24 Nick Clifton <nickc@redhat.com>
1484 * config/tc-ppc.c (ppc_symbol_chars): Define.
1485 * config/tc-ppc.h (tc_symbol_chars): Define.
1487 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
1489 * config/tc-sh.c: Amend comment to refer to SuperH.
1490 * config/tc-sh.h: Likewise.
1491 (LISTING_HEADER): Amend to refer to SuperH.
1492 * config/tc-sh64.c: Change comment to refer to SuperH.
1493 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
1494 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
1495 * doc/c-sh.texi: Amend to refer to SuperH.
1496 Add SuperH architecture documentation references.
1497 * doc/c-sh64.texi: Change to refer to SuperH.
1499 2003-04-23 H.J. Lu <hjl@gnu.org>
1501 * app.c (do_scrub_chars): More checks for valid labels.
1503 2003-04-22 H.J. Lu <hjl@gnu.org>
1505 * app.c (do_scrub_chars): Check for valid label.
1507 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1509 * doc/as.texinfo: Replace references to Mitsubishi M32R with
1510 references to Renesas M32R.
1511 * doc/c-m32r.texi: Likewise.
1513 2003-04-21 Richard Henderson <rth@redhat.com>
1515 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
1516 (out_file_list): Assign non-null filename after generating error.
1518 2003-04-18 Jakub Jelinek <jakub@redhat.com>
1520 * ehopt.c (check_eh_frame): For aug_size == 0
1521 in state_seeing_aug_size state skip the state_skipping_aug
1524 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
1526 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
1528 * doc/c-h8500.texi: Likewise.
1529 * doc/c-sh.texi: Likewise.
1530 * doc/c-sh64.texi: Likewise.
1531 * doc/h8.texi: Likewise.
1532 * config/tc-h8300.c: Likewise.
1533 * config/tc-h8300.h: Likewise.
1534 * config/tc-h8500.c: Likewise.
1535 * config/tc-h8500.h: Likewise.
1536 * config/tc-sh.c: Likewise.
1537 * config/tc-sh.h: Likewise.
1538 * config/tc-sh64.c: Likewise.
1539 * config/tc-sh64.h: Likewise.
1541 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
1543 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
1544 * config/tc-mips.c: Use signed add for n32 address arithmetic.
1545 (append_insn): When filling delay slots with instructions
1546 that have fixups that tc_gen_reloc might consider modifyable
1547 in variant frags, start a new frag.
1548 (load_address): Generate GOT_DISP with of without offset
1549 depending on whether symbol is local. For -xgot, use
1550 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
1551 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
1552 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
1553 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
1554 <ld_st>: In NewABI with small got, always use
1555 GOT_PAGE/GOT_OFST, with the latter in the load/store
1556 instruction. With big got, use GOT_HI16/GOT_LO16 or
1558 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
1559 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
1560 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
1561 (md_convert_frag): Use memmove for safe copying of overlapping
1564 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
1566 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
1567 -mlong, -mshort-double and -mlong-double options; use table @code.
1568 (M68HC11-Syntax): Update to document 68HC12 operands.
1569 (M68HC11-Modifiers): New section for operand modifiers.
1570 (M68HC11-Directives): New section for specific assembler directives.
1571 (M68HC11-Branch): Fix Overfull hbox error.
1573 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
1575 * config/tc-mips.c (macro): Add comments explaining the rationale
1578 2003-04-09 Chris Demetriou <cgd@broadcom.com>
1580 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
1581 constant address that Alexandre took out by accident. Reject
1582 64-bit addresses that are not sign extensions of 32 bits only if
1583 we don't support 64-bit address constants.
1585 2003-04-09 Alan Modra <amodra@bigpond.net.au>
1587 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
1589 2003-04-08 Nick Clifton <nickc@redhat.com>
1591 * as.c (perform_an_assembly_pass): If using cgen, call
1593 * cgen.c (gas_cgen_begin): New function. If
1594 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
1595 otherwise call cgen_clear_signed_overflow_ok.
1596 * cgen.h: Prototype gas_cgen_begin.
1598 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1600 * write.c (write_relocs): Remove unused variable.
1602 2003-04-06 Chris Demetriou <cgd@broadcom.com>
1604 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
1605 (macro): Use new macro to decide whether to emit constant address
1606 as 32 or 64 bits if addresses are 32-bit wide but registers are
1609 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
1611 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
1612 (M6811_OP_PAGE_ADDR): New internal define.
1613 (get_operand): New modifier %page and %addr to obtain page and
1614 address part of a far-function.
1615 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
1616 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
1618 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
1619 (find_opcode): Add comment.
1620 (md_estimate_size_before_relax): Force relocation of
1621 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
1622 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
1623 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
1624 on the symbol itself so that DWARF2 strings are merged correctly.
1626 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
1628 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
1629 default tic4x target format to 'coff2-tic4x'.
1630 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
1632 * config/tc-tic4x.h: Ditto
1634 2003-04-03 Nick Clifton <nickc@redhat.com>
1636 * NEWS: Mention support for Xtensa architecture.
1638 2003-04-02 Philip Blundell <philb@gnu.org>
1640 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
1642 2003-04-02 Chris Demetriou <cgd@broadcom.com>
1644 * config/tc-mips.c (macro2): Adjust implementation of
1645 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
1646 in the case where the source and destination registers
1649 2003-04-01 Bob Wilson <bob.wilson@acm.org>
1651 * Makefile.am (CPU_TYPES): Add xtensa.
1652 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
1653 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
1654 (xtensa-relax.o): New target.
1656 * Makefile.in: Regenerate.
1657 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
1658 extra_objects for xtensa targets.
1659 * configure: Regenerate.
1660 * write.c (write_object_file): Add new md_post_relax_hook.
1661 * config/tc-xtensa.c: New file.
1662 * config/tc-xtensa.h: Likewise.
1663 * config/xtensa-istack.h: Likewise.
1664 * config/xtensa-relax.c: Likewise.
1665 * config/xtensa-relax.h: Likewise.
1666 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
1667 * doc/Makefile.in: Regenerate.
1668 * doc/all.texi: Set new XTENSA variable.
1669 * doc/as.texinfo: Set new Xtensa variable. Describe
1670 Xtensa-specific options. Define line comment character for
1671 Xtensa. Add Xtensa processors to list of ELF targets where
1672 alignment is specified in bytes. Add new Xtensa-Dependent node.
1673 Add acknowledgements for those contributing to the Xtensa port.
1674 * doc/internals.texi: Describe new md_post_relax_hook.
1675 * doc/c-xtensa.texi: New file.
1677 2003-04-01 Nick Clifton <nickc@redhat.com>
1678 Richard Earnshaw <rearnsha@arm.com>
1680 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
1681 (ARM_ARCH_IWMMXT): Simplify.
1682 (insns): Place iwmmx instructions in correct place in table.
1683 (arm_add_note): New function: Add a note entry to a .note section.
1684 (md_begin): Make the default architecture be unknown.
1685 Suppress the creation of an arm note section.
1687 2003-03-26 Eric Christopher <echristo@redhat.com>
1689 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
1691 2003-03-25 Stan Cox <scox@redhat.com>
1692 Nick Clifton <nickc@redhat.com>
1694 Contribute support for Intel's iWMMXt chip - an ARM variant:
1696 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
1697 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
1698 (enum wreg_type, enum iwmmxt_insn_type): New types.
1699 (wr_register, wc_register, wcg_register): New macros.
1700 (iwmmxt_table): New variable.
1701 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
1702 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
1703 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
1704 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
1705 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
1706 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
1707 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
1708 cp_byte_address_offset, cp_byte_address_required_here,
1709 check_iwmmxt_insn): New functions.
1710 (asm_opcode_insns): Add iWMMXt instructions.
1711 (md_begin): Set the mach value for iWMMXt targets. Create a note
1712 section to identify iwmmxt binaries.
1713 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
1714 * doc/c-arm.texi: Document the support for the iWMMXt.
1715 * NEWS: Mention new support.
1717 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1719 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1720 * doc/all.texi: Likewise.
1721 * doc/c-tic54x.texi: Likewise.
1723 2003-03-21 Andreas Schwab <schwab@suse.de>
1725 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1726 avoid aliasing issue.
1728 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1730 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1731 (current_arch_mask): Rename to current_mode_mask.
1732 (current_arch_requested): Remove variable.
1733 (current_cpu): New variable.
1734 (init_default_arch): Set defaults values for s390_arch_size,
1735 current_mode_mask and current_cpu.
1736 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1737 (md_begin): Replace current_arch_mask by current_cpu.
1738 (md_assemble): Adapt check and error message to current_mode_mask and
1741 2003-03-09 James E Wilson <wilson@tuliptree.org>
1743 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1744 * read.c (get_line_sb): Return end of line character or '\n' if
1745 it is zero or non-existent.
1747 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1749 * config/tc-mips.c (mips_validate_fix): New function.
1750 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1751 (mips_validate_fix): Declare.
1753 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1755 * Reverted 2003-03-02's patch.
1757 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1759 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1760 (TC_DWARF2_EMIT_OFFSET): Provide default.
1761 (out_debug_aranges, out_debug_info): Use it.
1762 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1763 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1764 (ia64_gen_real_reloc_type): ... here.
1765 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1767 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1769 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1770 (s_mips_ent): Likewise.
1772 2003-03-04 Dmitry Diky <diwil@mail.ru>
1774 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1775 and x1123 devices, add missed x437.
1776 (md_show_usage): Sort device list.
1778 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1780 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1781 (md_begin): Use preset_target_arch.
1782 (md_longopts): Make isa option unconditional.
1783 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1784 set preset_target_arch.
1785 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1786 by -S_GET_VALUE (fixP->fx_subsy).
1787 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1788 and the addend is 0.
1789 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1790 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1792 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1794 * config/tc-mips.c (append_insn): Add handling of
1795 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1796 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1797 misaligned address and reange overflow.
1798 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1799 earlier warnings about misaligned address and reange overflow.
1800 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1801 (md_apply_fix): Likewise. Fix warning output.
1802 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1803 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1804 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1806 2003-02-21 Nick Clifton <nickc@redhat.com>
1808 * NEWS: Mention availability of test generator program.
1810 2003-02-21 Miles Bader <miles@gnu.org>
1812 * config/tc-v850.c (system_registers): Add v850e debug registers.
1813 (system_register_name): Accept up to 27 (the last v850e sys register).
1815 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1817 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1818 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1819 Capitalize section headings consistently. Format index entries more
1820 consistently. Unconditionalize text about whether text and data
1821 sections are alterable. Use @ifnottex for alternatives to @tex output
1822 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1823 .size and .type directives. Be more polite about bad bug reports.
1824 Move FDL into a separate file.
1825 * doc/fdl.texi: New file.
1827 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1829 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1830 (macro): Check it to decide whether a new frag is needed.
1831 (my_getSmallExpression): Set it.
1833 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1835 * cgen.c: Fix typo: intial -> initial.
1837 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1839 * app.c (do_scrub_chars): Handle '||' in two states.
1841 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1843 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1844 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1846 2003-02-11 Uwe Stieber <uwe@wwws.de>
1848 * configure.in: Add support for kaOS as cross build target system.
1849 * configure: Regenerated.
1851 2003-02-10 Nick Clifton <nickc@redhat.com>
1853 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1854 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1855 bfd_mach_arm_ep9312 machine number.
1857 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1859 * config/tc-mips.c (reloc_needs_lo_p): New function.
1860 (fixup_has_matching_lo_p): New function.
1861 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1862 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1863 if that fixup already has a matching %lo(). Don't call frag_wane here.
1864 (macro): Call frag_wane here if the last unmatched hi was in the
1866 (pic_need_relax): New function, split out from...
1867 (md_estimate_size_before_relax): ...here.
1868 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1869 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1871 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1873 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1875 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1877 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1880 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1882 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1883 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1884 accept x@got+off etc.
1885 (md_assemble): Handle TLS relocs.
1886 (ppc_force_relocation): Force for all TLS relocs.
1887 (ppc_fix_adjustable): Likewise.
1888 (md_apply_fix3): Handle TLS relocs.
1890 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1892 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1893 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1895 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1897 * config/tc-mips.c (enum small_ex_type): Remove.
1898 (imm_unmatched_hi): Remove.
1899 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1900 argument from calls to append_insn.
1901 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1903 (macro_build): Update append_insn calls.
1904 (mips16_macro_build, macro_build_lui): Likewise.
1905 (mips_ip): Rework handling of small expressions. Move explicit
1906 relocation handling into my_getSmallExpression. Assume that the
1907 value of 'o' operands is zero if there is only one bracketed
1909 (percent_op): Make constant. Record the BFD relocation code
1910 associated with each operator.
1911 (my_getSmallParser, my_getPercentOp): Remove.
1912 (parse_relocation): New function.
1913 (my_getSamllExpression): Rework. Fill in relocations here
1914 rather than in mips_ip.
1916 2003-01-29 Nick Clifton <nickc@redhat.com>
1918 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1919 assembler's handling of # <linenum> "<filename>" directives work.
1921 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1923 * dwarf2dbg.c: Include filenames.h.
1924 (struct file_entry): Make filename const char *.
1925 (dirs, dirs_in_use, dirs_allocated): New variables.
1926 (get_filenum): Add NUM argument. Build directory table.
1927 (dwarf2_where): Adjust caller.
1928 (dwarf2_directive_file): Use get_filenum to allocate
1929 slot in file and directory tables.
1930 (dwarf2_directive_loc): Recreate full filename from
1931 directory and filename part if needed for listing.
1932 (out_file_list): Output directory table.
1933 Output main source file dirname before its filename.
1935 2003-01-28 Dmitry Diky <diwil@mail.ru>
1937 * config/tc-msp430.c: Replace occurences of 'tolower' with
1940 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1942 * config/tc-ia64.c (dot_vframesp): Correct error message.
1943 (dot_vframepsp): Ditto.
1945 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1947 * configure.in (em): Set to irix on all Irix systems.
1948 * configure: Rebuilt.
1949 * config/te-irix.h: New file.
1950 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1951 whether to use Irix-specific 64-bit format.
1953 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1955 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1957 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1959 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1960 (tc_gen_reloc): Handle TLS relocs.
1961 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1962 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1964 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1965 (obj_elf_type): Handle tls_object.
1967 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1969 * config/tc-s390.c (s390_tls_suffix): New function.
1970 (elf_suffix_type): Add suffix enums for TLS relocations.
1971 (s390_elf_suffix): Add suffix strings for TLS relocations.
1972 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1974 (md_gather_operands): Map new instruction operand/elf suffix
1975 combinations for TLS to bfd relocations.
1976 (tc_s390_fix_adjustable): Add new TLS relocations.
1977 (tc_s390_force_relocation): Likewise.
1978 (md_apply_fix3): Likewise.
1980 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1982 * as.h: Update copyright date.
1983 * symbols.c: Likewise.
1984 * config/tc-d10v.h: Likewise.
1985 * config/tc-fr30.h: Likewise.
1986 * config/tc-i960.h: Likewise.
1987 * config/tc-mips.h: Likewise.
1989 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1990 (MD_APPLY_SYM_VALUE): Move.
1992 2003-01-23 Nick Clifton <nickc@redhat.com>
1994 * NEWS: Announce sh2e support.
1997 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1998 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1999 (sh_elf_final_processing): Handle arch_sh2e.
2001 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2003 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2004 * symbols.h (S_FORCE_RELOC): Likewise.
2005 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2006 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2007 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2008 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2009 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2010 * write.c (generic_force_reloc): New function.
2011 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2012 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2013 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2014 * as.h (generic_force_reloc): Declare.
2015 * doc/internals.texi (S_FORCE_RELOC): Update.
2016 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2018 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2019 generic_force_reloc.
2020 (alpha_fix_adjustable): Likewise.
2021 * config/tc-arm.c (arm_force_relocation): Likewise.
2022 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2023 * config/tc-frv.c (frv_force_relocation): Likewise.
2024 * config/tc-i386.c (md_apply_fix3): Likewise.
2025 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2026 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2027 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2028 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2029 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2030 * config/tc-mips.c (mips_force_relocation): Likewise.
2031 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2032 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2033 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2034 * config/tc-sh.c (sh_force_relocation): Likewise.
2035 (md_pcrel_from_section): Likewise.
2036 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2037 * config/tc-v850.c (v850_force_relocation): Likewise.
2038 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2039 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2040 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2041 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2043 * config/tc-d10v.c (d10v_force_relocation): Delete.
2044 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2045 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2046 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2047 * config/tc-fr30.c (fr30_force_relocation): Delete.
2048 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2049 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2050 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2051 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2052 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2053 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2054 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2055 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2056 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2057 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2058 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2059 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2060 * config/tc-i386.c (i386_force_relocation): Delete.
2061 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2063 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2064 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2065 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2066 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2068 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2069 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2071 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2073 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2074 sh64_elf_section_data.
2075 * config/tc-sh64.h: Include elf32-sh64.h.
2076 * config/tc-m68hc11.c: Don't include stdio.h.
2077 (md_show_usage): Fix missing continuation.
2078 * Makefile.am: Run "make dep-am".
2079 * Makefile.in: Regenerate.
2081 2003-01-22 Nick Clifton <nickc@redhat.com>
2083 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2085 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2087 * configure.in: Handle *-*-aros*.
2088 * configure: Regenerated from configure.in.
2090 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2092 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2093 gotplt and pltoff relocations.
2094 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2095 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2096 gotplt and pltoff to bfd relocations.
2097 (md_gather_operands): Map new instruction operand/elf suffix
2098 combinations to bfd relocations.
2099 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2100 to the list of unadjustable relocations.
2101 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2102 and pltoff relocations.
2103 (md_apply_fix3): Add the new relocations.
2105 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2107 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2108 with a subsy symbol.
2110 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2112 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2113 of relocs for memory bank addressing.
2115 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2117 * config/tc-m68hc11.c (md_show_usage): Update usage.
2118 (md_parse_option): Recognize -m68hcs12.
2119 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2121 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2123 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2125 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2127 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2129 * Makefile.am: Run "make dep-am".
2130 * Makefile.in: Regenerate.
2131 * po/POTFILES.in: Regenerate.
2133 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2135 * read.c (get_absolute_expr): New, split out from..
2136 (get_absolute_expression): ..here.
2137 * read.h (get_absolute_expr): Declare.
2138 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2139 Trim size to arch bits_per_address, and test for negative input
2140 via get_absolute_expr.
2142 2003-01-07 DJ Delorie <dj@redhat.com>
2144 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2146 (xstormy16_md_apply_fix3): Use adjustment.
2148 2003-01-02 Ben Elliston <bje@redhat.com>
2150 * configure.in: Add iq2000-elf target.
2151 * configure: Regenerate.
2152 * config/tc-iq2000.c: New file.
2153 * config/tc-iq2000.h: Likewise.
2154 * po/gas.pot: Regenerate.
2156 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2158 * config/tc-mips.c: Update copyright years to include 2003.
2159 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2160 Additionally, clean up their code slightly and clean up their
2163 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2165 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2167 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2169 * doc/Makefile.in: Regenerate.
2171 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2173 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2174 of .init and .fini sections for array initializers and finalizers.
2176 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2178 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2179 the "+D" operand, which will be used only by the disassembler.
2181 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2183 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2185 * configure: Regenerate.
2186 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2187 (macro_build): Handle "K" operand.
2188 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2189 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2190 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2191 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2192 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2193 (validate_mips_insn): Implement "+" as a way to extend the
2194 allowed operands, and implement "K", "+A", "+B", and "+C"
2196 (OPTION_MIPS32R2): New define.
2197 (md_longopts): Add entry for OPTION_MIPS32R2.
2198 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
2199 (md_parse_option): Handle OPTION_MIPS32R2.
2200 (s_mipsset): Reimplement handling of ".set mipsN" options
2201 and add support for ".set mips32r2".
2202 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2203 (md_show_usage): Document "-mips32r2" option.
2204 * doc/as.texinfo: Document "-mips32r2" option.
2205 * doc/c-mips.texi: Likewise.
2207 2002-12-30 Dmitry Diky <diwil@mail.ru>
2209 * configure.in: Add msp430 target.
2210 * configure: Regenerate.
2211 * Makefile.am: Add msp430 target.
2212 * Makefile.in: Regenerate.
2213 * config/tc-msp430.c: New file: msp430 assembler.
2214 * config/tc-msp430.h: New file: target macros for msp430.
2215 * doc/Makefile.am: Add msp430 target.
2216 * doc/Makefile.in: Regenerate.
2217 * doc/as.texinfo: Include msp430 documenation.
2218 * doc/all.texi: Enable msp430 documentation.
2219 * doc/c-msp430.texi: New file: document msp430 specific features
2222 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2224 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2225 (dwarf2_finish): Use it.
2226 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2227 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2229 2002-12-20 DJ Delorie <dj@redhat.com>
2231 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
2232 BFD_RELOC_XSTORMY16_12.
2234 2002-12-19 Alan Modra <amodra@bigpond.net.au>
2236 * doc/as.texinfo (Invoking): Typo fix.
2237 * config/tc-tic54x.c (encode_operand): Comment typo fix.
2239 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
2241 * doc/c-alpha.texi: Fix typos.
2242 * doc/c-arm.texi: Likewise.
2243 * doc/c-d10v.texi: Likewise.
2244 * doc/c-i370.texi: Likewise.
2245 * doc/c-i960.texi: Likewise.
2246 * doc/c-ia64.texi: Likewise.
2247 * doc/c-mmix.texi: Likewise.
2248 * doc/c-ns32k.texi: Likewise.
2249 * doc/c-pdp11.texi: Likewise.
2250 * doc/c-pj.texi: Likewise.
2251 * doc/c-sh64.texi: Likewise.
2252 * doc/c-sparc.texi: Likewise.
2253 * doc/c-tic54x.texi: Likewise.
2254 * doc/c-v850.texi: Likewise.
2255 * doc/c-vax.texi: Likewise.
2256 * doc/internals.texi: Likewise.
2258 2002-12-18 Chris Demetriou <cgd@broadcom.com>
2260 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
2261 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
2262 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
2263 arrange not to issue warnings about use of AT when AT is not
2266 2002-12-17 Nick Clifton <nickc@redhat.com>
2268 * as.c (std_longopts): Duplicate --keep-locals entry in order to
2269 prevent it being confused with -k.
2271 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
2273 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
2274 has already been set up, use it.
2276 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
2278 * ChangeLog-9295: Fix a typo.
2280 * config/tc-d10v.c: Fix a comment typo.
2281 * config/tc-dlx.c: Likewise.
2282 * config/tc-h8300.h: Likewise.
2283 * config/tc-h8500.h: Likewise.
2284 * config/tc-mips.c: Likewise.
2285 * config/tc-s390.c: Likewise.
2286 * config/tc-sh.h: Likewise.
2287 * config/tc-tic80.h: Likewise.
2288 * config/tc-w65.h: Likewise.
2289 * config/tc-z8k.c: Likewise.
2290 * config/tc-z8k.h: Likewise.
2291 * testsuite/gas/h8300/cmpsi2.s: Likewise.
2293 2002-12-16 Alan Modra <amodra@bigpond.net.au>
2295 * config/tc-d30v.c (check_range): Warning fixes, formatting.
2296 Simplify sign extension. Remove redundant unsigned < 0 test.
2297 * config/tc-i960.c (md_ri_to_chars): Prototype.
2298 * config/tc-mcore.c (md_pseudo_table): Fix typo.
2299 (dump_literals): Init brarsym, and test later instead of isforce.
2301 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
2302 (parse): Constify line and lineptr.
2303 (md_begin): Calculate endop here.
2305 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2307 * config/obj-vms.c: Formatting. Include fnctl.h.
2308 (Create_VMS_Object_File): Fix creat call for sane unix systems.
2309 (Object_Record_Offset): Make it a size_t.
2310 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
2311 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
2312 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
2313 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
2314 (vms_fixup_data_section <data_size>): Add here instead.
2315 * config/e-criself.c: Fix typo in last change.
2317 2002-12-13 Alan Modra <amodra@bigpond.net.au>
2319 * write.c (write_object_file): Fix signed/unsigned warning.
2320 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
2321 * config/e-criself.c (criself_bfd_name): Prototype.
2322 * config/obj-aout.c (s_sect): Remove unused function.
2323 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
2324 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
2325 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
2326 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
2327 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
2328 (VMS_RSYM_Parse <Current_Routine>): Likewise.
2329 (vms_fixup_text_section <text_siz>): Likewise.
2330 (synthesize_data_segment <data_size>): Likewise.
2331 (vms_fixup_xtors_section <sect_no>): Likewise.
2332 (structure_count): Don't use implicit int type.
2333 * config/tc-a29k.c (insert_sreg): Prototype.
2334 (define_some_regs): Prototype, make static.
2335 (parse_operand): Likewise.
2336 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2337 (md_show_usage <stream>): Likewise.
2338 (md_section_align <segment>): Likewise.
2339 (md_convert_frag <all args>): Likewise.
2340 (md_estimate_size_before_relax <all args>): Likewise.
2341 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
2342 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
2343 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2344 (md_undefined_symbol <name>): Likewise.
2345 (md_convert_frag <all args>): Likewise.
2346 (write_long <opcode>): Likewise.
2347 (tc_gen_reloc <seg>): Likewise.
2348 (md_estimate_size_before_relax <all args>): Likewise.
2349 (md_apply_fix3 <seg>): Likewise.
2350 (s_d30v_align <ignore>): Likewise.
2351 (build_insn): Correct format string.
2352 (md_apply_fix3): Likewise.
2353 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
2354 (md_undefined_symbol <name>): Likewise.
2355 (md_convert_frag <all args>): Likewise.
2356 (md_cgen_lookup_reloc <insn>): Likewise.
2357 (md_begin): Delete unused vars.
2358 (md_assemble): Likewise.
2359 (md_estimate_size_before_relax): Likewise.
2360 (fr30_relax_frag): #if 0 out, seems unused.
2361 (md_atof): Remove declaration of atof_ieee.
2362 (restore_colon): Prototype.
2363 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
2364 (frv_find_in_vliw): Likewise.
2365 (frv_debug_tomcat): Likewise.
2366 (frv_adjust_vliw_count): Likewise.
2367 (frv_tomcat_shuffle): Likewise.
2368 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
2369 frv_find_in_vliw call.
2370 (md_atof): Remove declaration of atof_ieee.
2371 * config/tc-h8500.c (cons): Delete declaration.
2372 (md_begin <opcode>): Constify.
2373 (displacement_size, immediate_size, absolute_size): Remove.
2374 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
2375 (tc_crawl_symbol_chain <headers>): Likewise.
2376 (md_undefined_symbol <name>): Likewise.
2377 (tc_headers_hook <headers>): Likewise.
2378 (md_parse_option <c,arg>): Likewise.
2379 (md_show_usage <stream>): Likewise.
2380 (md_convert_frag <headers, seg>): Likewise.
2381 (tc_coff_symbol_emit_hook <ignore>): Likewise.
2382 (md_atof): Remove declaration of atof_ieee.
2383 (tc_aout_fix_to_chars): Remove unused function.
2384 (parse_reg): Prototype.
2385 (parse_exp): Prototype.
2386 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
2387 (parse_reglist): Prototype.
2388 (get_operand): Prototype.
2389 (get_operands): Prototype.
2390 (get_specific): Prototype. Make "this_index" signed.
2391 (check): Prototype, make static.
2393 (build_relaxable_instruction): Prototype, make static.
2394 (build_bytes): Prototype.
2395 (wordify_scb): Prototype.
2396 * config/tc-h8500.h (start_label): Declare.
2397 (tc_coff_sizemachdep): Declare.
2398 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
2399 (i370_rmode <unused>): Likewise.
2400 (i370_csect <unused>): Likewise.
2401 (i370_dc <unused>): Likewise.
2402 (i370_ds <unused>): Likewise.
2403 (i370_elf_lcomm <unused>): Likewise.
2404 (i370_ltorg <ignore>): Likewise.
2405 (i370_using <ignore>): Likewise.
2406 (i370_drop <ignore>): Likewise.
2407 (i370_byte <ignore>): Likewise.
2408 (i370_tc <ignore>): Likewise.
2409 (md_estimate_size_before_relax <fragp, seg>): Likewise.
2410 (md_convert_frag <all args>): Likewise.
2411 (md_undefined_symbol <name>): Likewise.
2412 (md_pcrel_from_section <sec>): Likewise.
2413 (tc_gen_reloc <seg>): Likewise.
2414 (i370_section_letter): #if 0 unused functions.
2415 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
2416 (symbol_locate): Prototype.
2417 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
2418 (md_number_to_disp, md_number_to_field): Remove.
2419 (md_apply_fix3): Correct format string and cast "fup".
2420 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
2421 (s_endian <ignore>): Likewise.
2422 (md_undefined_symbol <name>): Likewise.
2423 (tc_crawl_symbol_chain <headers>): Likewise.
2424 (tc_set_bal_of_call): Likewise.
2425 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
2426 (i960_handle_align <fragp>): Likewise.
2427 (i960_validate_fix <this_segment_type>): Likewise
2428 (tc_gen_reloc <section>): Likewise.
2429 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
2430 (struct memS, struct regop): Forward declare.
2431 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
2432 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
2433 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
2434 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
2435 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
2436 (md_chars_to_number, md_number_to_imm): Make static, prototype.
2437 (md_number_to_field): Likewise.
2438 (md_number_to_disp): Remove unused function.
2439 (md_atof): Remove declaration of atof_ieee.
2440 (md_apply_fix3): Correct md_number_to_imm call.
2441 * config/tc-ip2k.c (md_assemble): Warning fix.
2442 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
2443 (fill_insn <ignore>): Likewise.
2444 (debug_sym <ignore>): Likewise.
2445 (md_undefined_symbol <name>): Likewise.
2446 (m32r_scomm <ignore>): Likewise.
2447 (md_convert_frag <abfd>): Likewise.
2448 (md_cgen_lookup_reloc <insn>): Likewise.
2449 (m32r_record_hi16 <seg>): Likewise.
2450 (md_estimate_size_before_relax): #if 0 old_fr_fix.
2451 (allow_m32rx): Prototype.
2452 (first_writes_to_seconds_operands): Prototype.
2453 (writes_to_pc): Prototype.
2454 (can_make_parallel): Prototype.
2455 (make_parallel): Prototype.
2456 (target_make_parallel): Prototype.
2457 (assemble_two_insns): Prototype.
2458 (m32r_record_hi16): Prototype.
2459 (md_atof): Remove declaration of atof_ieee.
2460 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
2461 (m32r_force_relocation): Prototype.
2462 (m32r_elf_section_change_hook): Prototype.
2463 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
2464 (md_show_usage): Fix signed/unsigned warning.
2465 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
2466 (calcop): Ditto for reg_prefix var.
2467 (hexval): Add cast to fix signed/unsigned warning.
2468 (md_number_to_disp): Delete unused function.
2469 (md_number_to_field): Likewise.
2470 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
2471 (match_name): Prototype.
2472 (get_bf2): Prototype.
2473 (get_bf_offset_expression): Prototype.
2474 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
2475 (md_undefined_symbol <ignore>): Likewise.
2476 (md_create_short_jump <all args>): Likewise.
2477 (md_create_long_jump <all args>): Likewise.
2478 (md_convert_frag <abfd, sec>): Likewise.
2479 (md_apply_fix3 <segment>): Likewise.
2480 (md_section_align <segment>): Likewise.
2481 (md_pcrel_from_section <sec>): Likewise.
2482 (tc_gen_reloc <section>): Likewise.
2483 (reg_m, reg_n, immediate): Delete unused vars.
2484 (dump_literals): Fix signed/unsigned warning.
2485 (enter_literal): Likewise.
2486 (parse_imm): Likewise. Also fix format string.
2487 (parse_mem): Remove unused var.
2488 (md_assemble <LS>): Abort on unexpected inst.
2489 (md_atof): Remove declaration of atof_ieee.
2490 (md_parse_option): Remove unused vars.
2491 (md_apply_fix3): Fix format strings, cast args.
2492 (tc_gen_reloc): Delete unused var.
2493 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
2494 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
2495 (md_undefined_symbol <name>): Likewise.
2496 (md_convert_frag <abfd>): Likewise.
2497 (tc_gen_reloc <seg>): Likewise.
2498 (check_operand <insn>): Likewise.
2499 (md_convert_frag): Fix format strings.
2500 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
2501 * config/tc-openrisc.c (ignore_pseudo): Prototype.
2502 (md_atof): Remove declaration of atof_ieee.
2503 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
2504 (md_apply_fix3): Fix bogus >>='s.
2505 (md_undefined_symbol): Delete unused var.
2506 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
2507 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
2508 (fake_opcode): Adjust for pj_opc_int_t change.
2509 (md_begin): Likewise.
2510 (md_assemble): Likewise.
2511 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
2512 instead of non-existent third arg of parse_exp_save_ilp.
2513 (md_parse_option): Correct "little" and "big" calls.
2514 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
2515 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
2516 (tc_gen_reloc <section>): Likewise.
2517 * config/tc-tic30.c: #include stdarg.h or varargs.h.
2518 (debug): Rewrite using VA_* macros.
2519 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
2520 (md_convert_frag): Likewise.
2521 (md_parse_option): Likewise.
2522 (md_show_usage): Likewise.
2523 (md_undefined_symbol): Likewise.
2524 (tc_gen_reloc): Likewise.
2525 (md_operand): Likewise.
2526 (tc_aout_pre_write_hook): Delete.
2527 (struct tic30_insn): Make "operands" unsigned.
2528 (struct tic30_par_insn): Likewise.
2529 (md_assemble): Likewise for "count", "i" and "numops".
2530 (tic30_parallel_insn): Likewise for vars here.
2531 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
2532 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
2533 * config/tc-tic80.c (obj_coff_section): Delete declaration.
2534 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
2535 (md_undefined_symbol): Likewise.
2536 (md_parse_option): Likewise.
2537 (md_convert_frag): Likewise.
2538 (tc_coff_symbol_emit_hook): Likewise.
2539 (md_atof): Remove declaration of atof_ieee.
2540 (const_overflow): Warning fixes, tidy.
2541 (get_operands): Delete unused vars.
2542 (internal_error_a): Adjust format string to expect a long for arg.
2543 (find_opcode): Warning fixes, simplify.
2544 (build_insn): Cast internal_error_a arg.
2545 (md_begin): Likewise.
2546 (md_apply_fix3): Likewise.
2547 (md_assemble): Delete unused var.
2548 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
2549 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
2550 (whatreg, parse_reg, parse_exp): Make static, prototype.
2551 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
2552 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
2553 (get_operand, get_operands, get_specific, newfix): Likewise.
2554 (apply_fix, build_bytes): Likewise.
2555 (md_atof): Remove declaration of atof_ieee.
2556 (tc_aout_fix_to_chars): Delete.
2557 (md_begin): Constify "opcode". Don't try to init opcode->idx.
2559 (md_parse_option): Fix s_segm and s_unseg calls.
2561 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2563 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
2565 (RELAX_BRANCH_RELOC_S2): Delete.
2566 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
2567 Do not handle BFD_RELOC_16_PCREL.
2568 (macro_build, mips_ip): Likewise.
2569 (md_pcrel_from): Return 4 for undefined symbols regardless of
2571 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
2572 Don't dereference howto if no such relocation is available.
2573 Do not apply hack for in-place zero addend in NEWABI.
2574 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
2576 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
2577 Alan Modra <amodra@bigpond.net.au>
2579 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
2580 (TC_LINKRELAX_FIXUP): Add comments.
2582 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2584 * config/tc-mn10300.c (set_arch_mach): Change argument type to
2586 (r_register_name, xr_register_name): Add prototype declarations.
2588 2002-12-08 H.J. Lu <hjl@gnu.org>
2590 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
2591 copied from tc-i386.c.
2593 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
2595 Fix Bug savannah/1825:
2596 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
2597 (md_relax_table): Define specific relax for PC-rel offsets.
2598 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
2599 (m68hc11_relax_frag): Handle the new relax code.
2600 (md_convert_frag): Likewise.
2601 (md_estimate_size_before_relax): Likewise.
2603 2002-12-08 Alan Modra <amodra@bigpond.net.au>
2605 * subsegs.c (section_symbol): Use the symbol, not the section, name.
2607 2002-12-05 Richard Henderson <rth@redhat.com>
2609 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
2610 (ia64_gen_real_reloc_type): Handle it.
2611 (pseudo_func): Add @ltoffx.
2612 (md_begin): Build .<ltoffx>.
2613 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
2615 2002-12-05 Alan Modra <amodra@bigpond.net.au>
2617 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
2618 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
2619 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
2620 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
2621 COFF to call arm_force_relocation.
2623 2002-12-04 David Mosberger <davidm@hpl.hp.com>
2625 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
2627 (emit_one_bundle): Handle "hint" instruction.
2628 (operand_match): Match IA64_OPND_AR_CSD.
2630 2002-12-04 Alan Modra <amodra@bigpond.net.au>
2632 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
2635 2002-12-03 Nick Clifton <nickc@redhat.com>
2637 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
2638 .PPC.EMB.apuinfo sections.
2640 2002-12-03 Richard Henderson <rth@redhat.com>
2642 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
2644 2002-12-03 Alan Modra <amodra@bigpond.net.au>
2646 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
2647 (cons, s_align_bytes): Delete declaration.
2649 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
2651 (dot): Delete unused function.
2652 (w65_expression): Remove unused arg.
2653 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
2655 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
2657 (get_specific): Prototype. Constify "struct opinfo *" arg and return
2659 (check): Remove unused function.
2660 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
2661 on unhandled switch case.
2662 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
2664 (tc_crawl_symbol_chain): Delete unused function.
2665 (tc_headers_hook): Likewise.
2666 (tc_Nout_fix_to_chars): Likewise.
2667 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
2668 (md_parse_option): Likewise.
2669 (md_convert_frag): Likewise.
2670 (tc_coff_symbol_emit_hook): Likewise.
2671 (md_show_usage): Likewise.
2672 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
2673 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
2674 (w65_expression): Declare.
2676 * po/POTFILES.in: Regenerate.
2678 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
2679 and ARM_ADRL_IMMEDIATE.
2681 2002-12-02 Nick Clifton <nickc@redhat.com>
2683 * gasp.c: Delete. It has been deprecated.
2684 * NEWS: Mention that gasp has been removed.
2685 * Makefile.am: Remove references to gasp.
2686 * makefile.vms: Likewise.
2687 * mpw-make.sed: Likewise.
2688 * Makeile.in: Regenerate.
2689 * doc/gasp.texi: Delete.
2690 * doc/Makefile.am: Remove references to gasp.texi.
2691 * doc/Makefile.in: Regenerate.
2692 * macro.c: Delete references to gasp.
2693 Remove use of comment_char function parameter as it is no longer
2695 * macro.h: Update prototypes to remove comment_char parameter.
2697 * read.c (read_a_source_file, s_irp): Remove comment_char
2698 parameter from invocation of functions in macro.c
2700 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
2702 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
2704 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2706 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
2707 (tc_gen_reloc): Mark section param as not used.
2709 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2711 Fix Bug savannah/1825:
2712 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
2713 that are not pc-relative.
2714 (m68hc11_relax_frag): Declare.
2716 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2717 the offsetable indexed addressing modes (n,r).
2718 (build_insn): Cleanup some locals.
2719 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2720 relaxation of difference between two symbols of same section.
2721 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2722 only when this is a PC-relative operand and the offset is not absolute.
2723 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2724 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2725 be handled by m68hc11_relax_frag.
2727 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2729 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2730 (32-bit int, 64-bit double).
2731 (md_longopts): New options -mshort, -mlong, -mshort-double and
2732 -mlong-double to control the ABI.
2733 (md_show_usage): Update.
2734 (md_parse_option): Handle new options.
2735 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2737 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2739 * symbols.c (report_op_error): New function, broken out of ...
2740 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2743 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2745 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2746 for BFD_RELOC_32_PLT_PCREL.
2748 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2750 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2751 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2752 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2753 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2754 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2755 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2756 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2757 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2758 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2759 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2760 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2761 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2762 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2763 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2764 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2765 TRUE/FALSE. Formatting.
2767 2002-11-29 Nick Clifton <nickc@redhat.com>
2769 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2770 assume a value of zero.
2771 (do_bkpt): Likewise.
2773 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2775 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2776 for TLS relocations.
2778 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2780 * config/tc-ia64.c (md_apply_fix3): Add default case.
2782 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2784 * symbols.c (S_SET_THREAD_LOCAL): New function.
2785 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2786 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2787 for TLS relocations.
2788 * config/tc-ia64.c (md_apply_fix3): Likewise.
2789 * config/tc-alpha.c (md_apply_fix3): Likewise.
2791 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2793 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2796 2002-11-26 DJ Delorie <dj@redhat.com.
2798 * dwarf2dbg.c (scale_addr_delta): New.
2799 (size_inc_line_addr): Use it.
2800 (emit_inc_line_addr): Use it.
2802 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2804 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2805 (md_assemble): Don't pass on branches to constants as relaxable.
2808 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2810 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2812 2002-11-21 Randolph Chung <randolph@tausq.org>
2814 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2815 only if they have default visibility.
2817 2002-11-21 Richard Henderson <rth@redhat.com>
2819 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2822 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2824 * config/tc-mcore.c (mcore_pool_count): New function.
2825 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2827 2002-11-20 Klee Dienes <kdienes@apple.com>
2829 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2830 coalesce the name fields to use the same pointer.
2832 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2833 the name fields to use the same pointer.
2834 (get_specific): Check for opcodes with the same name using strcmp
2835 as well as comparing the pointer.
2837 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2839 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2842 2002-11-19 Richard Henderson <rth@redhat.com>
2844 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2845 visibility portion of st_other.
2847 2002-11-19 Klee Dienes <kdienes@apple.com>
2849 * config/tc-h8300.c (struct h8_instruction): New type, used to
2850 wrap h8_opcodes with length, noperands, idx, and size fields
2851 (computed at run-time).
2852 (h8_instructions): New variable.
2853 (md_begin): Allocate the storage for h8_instructions. Fill
2854 h8_instructions with pointers to the appropriate opcode and the
2855 correct value for the additional fields.
2856 (clever_message): Update to use h8_instructions instead of
2858 (build_bytes): Ditto.
2859 (get_specific): Ditto.
2860 (md_assemble): Ditto.
2862 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2864 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2865 adjustments to symbols in merge sections.
2867 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2869 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2871 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2873 * dwarf2dbg.h (dwarf2_format): New enum.
2874 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2875 (out_debug_line, out_debug_info): Add code for handling 64-bit
2877 * config/tc-mips.h (mips_dwarf2_format): Declare.
2878 * config/tc-mips.c (mips_dwarf2_format): New function.
2879 * doc/internals.texi (DWARF2_FORMAT): Document.
2881 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2883 * config/tc-mips.c (s_change_section): Make sure input buffer
2884 is not accessed past the end. Don't hand
2885 obj_elf_change_section a pointer into the input buffer.
2887 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2889 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2892 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2894 * config/tc-tic4x.c: Fixed proper commandline
2895 parameters. Added support for new opcode-list format. General
2896 error message fixups.
2897 (c4x_inst_add): Reject insn not for our CPU
2898 (md_begin): Added matrix for setting the proper opcode-level &
2899 device-flags according to cpu type and revision. Rewrite the
2901 (c4x_operand_parse): Fix opcode bug
2902 (c4x_operands_match): New function argument. Added dry-run
2903 mechanism, that is optional error generation. Added constraint 'i'
2905 (c4x_insn_check): Added new function for post-verification of the
2907 (md_assemble): Check all opcodes before croaking because of an
2908 argument mismatch. Need this to be able to fully support
2909 ortogonally arguments.
2910 (md_parse_options): Revised commandprompt swicthes and added new
2912 (md_show_usage): Complete rewrite of printout.
2914 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2916 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2917 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2918 warning when using constant direct bigger than 2^16. Add the new
2921 2002-11-11 Christopher Faylor <cgf@redhat.com>
2923 * configure.in: Use .gdbinit under Cygwin.
2924 * configure: Regenerate.
2926 2002-11-11 Christopher Faylor <cgf@redhat.com>
2928 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2931 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2933 * config/tc-tic4x.c: Declare as many functions as possible as
2934 static. Maintenance on the general indenting. Removed unnecessary
2935 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2936 function. Add support for new DSP, TMS320VC33. Fix bug for
2937 converting flonum constants.
2938 (c4x_do_align): Add proper align handling. Setup align to insert
2940 (c4x_gen_to_words): Support for extended TI type floats.
2941 (md_atof): Proper dumping of multiple-word littlenums.
2942 (c4x_atof): Added support for extended TI type floats.
2943 (c4x_stringer): Added new function to handle compact strings.
2944 (c4x_emit_char): Added new function argument to handle custom
2945 length inserts, like single-byte strings.
2946 * config/tc-tic4x.h: Add proper align handling with NOP's.
2947 * Makefile.am: Added tic4x dependecy
2948 * Makefile.in: Regenerate
2950 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2952 * macro.c (get_any_string): Correct logic for not going beyond end
2955 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2957 * config/tc-mmix.c (get_putget_operands): Mark both possible
2958 operands as invalid at beginning.
2960 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2961 Initialize target of fixup to zero.
2963 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2965 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2966 NEWABI, but we should still emit HI16_S for non-PIC n32.
2968 2002-11-06 Richard Henderson <rth@redhat.com>
2970 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2971 (alpha_fix_adjustable): ... here.
2972 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2974 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2976 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2979 2002-11-05 H.J. Lu <hjl@gnu.org>
2981 * config/tc-mips.c (support_64bit_objects): Check *l before it
2984 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2986 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2987 SEC_LOAD flags for sections marked as 's'.
2989 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2991 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2992 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2993 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2996 * dep-in.sed: Fix typo.
2998 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3000 * configure.in: Update ARM CPU patterns.
3001 * configure: Regenerated.
3003 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3005 * itbl-lex.l: Use #include <> for generated headers.
3006 * itbl-ops.c: Likewise.
3008 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3010 * doc/gasp.texi: Fix typo in deprecation note.
3012 2002-10-23 Nick Clifton <nickc@redhat.com>
3014 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3015 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3017 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3019 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3020 (tc_frob_file_before_adjust): Don't define.
3021 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3023 (mmix_frob_file_before_adjust): Remove ineffective function.
3025 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3027 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3028 (cris_relax_frag): New function.
3029 (md_estimate_size_before_relax) <case ENCODE_RELAX
3030 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3031 expressions that will become absolute expressions to relaxation.
3032 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3033 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3034 value, not distance to symbol.
3035 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3036 Ditto. Correct placement of fixup.
3037 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3039 * config/tc-cris.h (cris_relax_frag): Declare.
3040 (md_relax_frag): Define.
3042 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3044 * config/obj-elf.c (special_sections): Use correct types for init
3046 (obj_elf_change_section): Don't mess with init array section type.
3048 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3050 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3051 for relocs against symbols in a merged section.
3053 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3055 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3056 table as register names.
3058 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3060 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3063 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3065 * expr.c (operand): Add support for n.nn flonums.
3067 2002-10-17 Johannes Stezenbach <js@convergence.de>
3069 * itbl-parse.y (entry): Provide empty action.
3071 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3073 * configure.in (BFDVER_H): Set and subst.
3074 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3075 * Makefile.am: Run "make dep-am".
3077 * configure: Regenerate.
3078 * Makefile.in: Regenerate.
3079 * doc/Makefile.in: Regenerate.
3081 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3083 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3084 (MD_APPLY_SYM_VALUE): Define for PE too.
3086 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3088 * Makefile.am: Run "make dep-am".
3089 (CPU_OBJ_VALID): sh64 coff is invalid.
3090 * as.c: #include "bfdver.h".
3091 * Makefile.in: Regenerate.
3092 * config.in: Regenerate.
3094 2002-10-14 Momchil Velikov <velco@fadata.bg>
3096 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3098 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3100 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3101 * configure: Regenerate.
3103 2002-10-13 Eric Christopher <echristo@redhat.com>
3104 Alexandre Oliva <aoliva@redhat.com>
3106 * config/tc-mips.c (s_gpdword): New function.
3107 (mips_pseudo_table): Add .gpdword.
3108 (mips_need_elf_addend_fixup): never for NEWABI.
3109 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3111 (s_cpadd): Generate .cpadd on NEWABI.
3113 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3115 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3117 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3119 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3120 (md_relax_frag): Adjust macro.
3121 * config/tc-mips.c (mips_relax_branch): New variable.
3122 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3123 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3124 (RELAX_MIPS16_P): Adjust.
3125 (append_insn): Emit branch to non-constant in a frag_var if
3126 branch-relaxation is desirable and possible.
3127 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3128 (OPTION_ELF_BASE): Adjust.
3129 (md_parse_option): Handle new options.
3130 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3132 (relaxed_branch_length): New function.
3133 (md_estimate_size_before_relax): Handle branch frags.
3134 (mips_relax_frag): Likewise.
3135 (md_convert_frag): Handle branch frags. Warn if branch is
3138 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3140 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3142 (md_apply_fix3): Add TLS relocs.
3143 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3146 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3147 Alan Modra <amodra@bigpond.net.au>
3149 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3150 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3152 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3154 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3157 2002-10-09 Richard Shann <richard.shann@superh.com>
3158 Stephen Clarke <stephen.clarke@superh.com>
3160 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3163 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3165 * contig/tc-sh.c (sh_local_pcrel): New.
3166 (sh_force_relocation): Use sh_local_pcrel.
3167 (md_pcrel_from_section): Check the relocation type whether it
3168 should be resolved locally. Use S_FORCE_RELOC.
3170 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3172 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3173 (TC_FORCE_RELOCATION): Tidy arg.
3175 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3176 Ken Raeburn <raeburn@cygnus.com>
3177 Aldy Hernandez <aldyh@redhat.com>
3178 DJ Delorie <dj@redhat.com>
3179 Michael Meissner <meissner@redhat.com>
3180 Eric Christopher <echristo@redhat.com>
3181 Richard Sandiford <rsandifo@redhat.com>
3183 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3184 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3185 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3186 (hilo_interlocks): True for CPU_VR5500.
3187 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3188 (mips_fix_vr4122_bugs): New.
3189 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3190 (mips_emit_delays): Likewise.
3191 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3192 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3193 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3194 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3195 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3196 (OPTION_ELF_BASE): Bump.
3197 (md_parse_option): Handle the new options.
3198 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3201 2002-09-29 H.J. Lu <hjl@gnu.org>
3203 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3204 twice if howto->pcrel_offset is true.
3206 2002-09-28 Matt Thomas <matt@3am-software.com>
3207 Jason Thorpe <thorpej@wasabisystems.com>
3209 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3210 convert undefined references to GOT32/PLT32 if PIC code is
3211 requested. Fix comment.
3213 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3215 * config/tc-sh.c (sh_force_relocation): Return 0 for
3216 some PC relative relocations when not relaxing.
3218 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3220 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3221 Define them if not BFD_ASSEMBLER.
3222 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3224 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3225 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3226 (tc_gen_reloc): Handle x86-64 TLS relocs.
3228 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3230 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3231 fixups to current or absolute section.
3233 2002-09-26 Jim Wilson <wilson@redhat.com>
3235 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
3238 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3240 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
3241 capable configuration.
3242 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
3244 (mips_ip): Likewise.
3246 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3248 * config/tc-mips.c (append_insn): Fix jump overflow check.
3250 2002-09-24 Alan Modra <amodra@bigpond.net.au>
3252 * config/tc-i386.c (process_operands): Warn about "lea" segment
3255 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
3257 * write.c: Delete set_segment_vma and prototype. Update all callers.
3259 2002-09-21 Alan Modra <amodra@bigpond.net.au>
3261 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
3262 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
3263 Rename "fseg" to "sym_seg".
3264 * Makefile.am: Run "make dep-am".
3265 * Makefile.in: Regenerate.
3266 * doc/Makefile.in: Regenerate.
3268 2002-09-20 Nick Clifton <nickc@redhat.com>
3270 * symbols.c (colon): Do not allow symbols to be created in the
3271 absolute section if WORKING_DOT_WORD is not defined and
3272 new_broken_words would require a new frag to be created.
3274 2002-09-20 Alan Modra <amodra@bigpond.net.au>
3276 * expr.c (expr): Simplify foo-foo here.
3277 (clean_up_expression): Remove O_subtract code.
3279 * write.h (struct fix): Add fx_dot_value.
3280 (dot_value): Declare.
3281 * write.c (dot_value): New var.
3282 (fix_new_internal): Save dot_value as fx_dot_value.
3283 (fixup_segment): Adjust fx_offset using fx_dot_value.
3284 * expr.c (expr): Update dot_value.
3286 2002-09-19 Jakub Jelinek <jakub@redhat.com>
3288 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
3289 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
3290 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
3292 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
3293 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
3294 BFD_RELOC_386_TLS_GOTIE.
3296 2002-09-19 Richard Henderson <rth@redhat.com>
3298 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
3300 (alpha_force_relocation): Don't special-case branch type relocs.
3302 2002-09-19 Nick Clifton <nickc@redhat.com>
3304 * config/tc-m68k.c (select_control_regs): Handle situation where
3305 architecture has not yet been selected.
3307 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3309 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
3310 (IS_SEXT_16BIT_NUM): New macro.
3311 (macro_build_ldst_constoffset): New function, to build a set of
3312 instructions to do a load or store from a constant offset relative
3313 to a given register.
3314 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
3315 .cprestore pseudo-op.
3317 2002-09-18 Chris Demetriou <cgd@broadcom.com>
3319 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
3321 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3323 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
3325 2002-09-17 Stan Cox <scox@redhat.com>
3327 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
3328 (macro): Likewise for la. Likewise for ld.
3329 (mips_after_parse_args): Make -xgot optional, not the default.
3330 (md_apply_fix3): Allow composite relocation to set up gp.
3331 (tc_gen_reloc): Allow relaxing for newabi.
3332 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
3333 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
3335 2002-09-17 Nick Clifton <nickc@redhat.com>
3337 * config/tc-arm.c (md_apply_fix3): Note that an implemented
3338 BFD_RELOC_ARM_IMMEDIATE has been done.
3339 (tc_gen_reloc): Do not issue reloc number of unimplemented
3340 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
3341 their name is already in the error message - plus remove them
3342 from the default case.
3344 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
3345 behavior of instructions.
3347 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
3349 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
3350 Convert functions to K&R format.
3352 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3354 * config/tc-mips.c (pdr_seg): Define only for ELF.
3355 (s_change_section): Remove unused variable. Don't use for nonELF.
3357 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3359 * config/obj-elf.c (obj_elf_change_section): Move prototype to
3361 * config/obj-elf.h (obj_elf_change_section): Likewise.
3363 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
3365 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
3366 (out_debug_info): Likewise.
3368 2002-09-16 Bruno Haible <bruno@clisp.org>
3370 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
3371 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
3372 * config/tc-i386.c (i386_target_format): Likewise.
3373 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
3374 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
3376 2002-09-13 Nick Clifton <nickc@redhat.com>
3378 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
3379 when deciding if any operands have been skipped.
3381 2002-09-11 Nick Clifton <nickc@redhat.com>
3383 * NEWS: New TI port supports both C4x and C3x series of DSPs.
3385 * po/tr.po: Updated Turkish translation.
3387 2002-09-11 Jakub Jelinek <jakub@redhat.com>
3389 * config/tc-i386.c (md_apply_fix3): Allow addend for
3390 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
3391 BFD_RELOC_386_TLS_LE_32.
3393 2002-09-05 Jeff Law <law@redhat.com>
3395 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
3396 marker relocations such as ENTRY/EXIT.
3397 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
3398 to both OBJ_ELF and OBJ_SOM.
3400 2002-09-05 Alan Modra <amodra@bigpond.net.au>
3402 * doc/internals.texi (md_apply_fix3): Expand.
3403 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
3404 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
3405 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
3406 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
3407 EXTERN_FORCE_RELOC): Document.
3408 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
3409 * as.h: Don't include struc-symbol.h for arc.
3411 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
3412 subtract absolute symbol.
3413 * obj.h (struct format_ops): Add frob_file_before_fix.
3414 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
3415 * symbols.c (S_FORCE_RELOC): New function.
3416 * symbols.h (S_FORCE_RELOC): Declare.
3417 * write.c (TC_FORCE_RELOCATION): Change default.
3418 (TC_FORCE_RELOCATION_ABS): Define.
3419 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3420 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3421 (TC_FORCE_RELOCATION_SECTION): Don't define.
3422 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
3423 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3424 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
3425 (TC_VALIDATE_FIX_SUB): Define.
3426 (TC_FIX_ADJUSTABLE): Don't define.
3427 (MD_APPLY_SYM_VALUE): Define this instead.
3428 (abs_section_sym): New variable.
3429 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
3430 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
3431 Don't put the absolute section sym on fixups here.
3432 (fix_segment): New function.
3433 (write_relocs): Don't call fixup_segment from here.
3434 (write_object_file): Instead call tc_frob_file_before_fix,
3435 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
3436 Don't output the absolute section symbol.
3437 (fixup_segment): Rewrite.
3438 * write.h (abs_section_sym): Declare.
3439 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
3441 (aout_format_ops): Adjust to suit.
3442 * config/obj-aout.h (obj_frob_file): Don't define.
3443 (obj_frob_file_before_fix): Define.
3444 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
3445 (S_FORCE_RELOC): Define.
3446 * config/obj-bout.h (S_FORCE_RELOC): Define.
3447 * config/obj-coff.c (coff_format_ops): Init new field.
3448 * config/obj-coff.h: Formatting fixes.
3449 (obj_sec_sym_ok_for_reloc): Define.
3450 (S_FORCE_RELOC): Define.
3451 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
3452 (ecoff_frob_file): .. from here.
3453 (ecoff_format_ops): Add new function.
3454 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
3455 (obj_frob_file_before_fix): Define.
3456 * config/obj-elf.c (elf_format_ops): Init new field.
3457 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
3458 * config/obj-ieee.h: Formatting fixes.
3459 (S_FORCE_RELOC): Define.
3460 * config/obj-multi.h (obj_frob_file_before_fix): Define.
3461 * config/obj-vms.h (S_FORCE_RELOC): Define.
3462 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
3463 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
3464 for BFD_RELOC_32 and BFD_RELOC_64.
3465 (alpha_fix_adjustable): Remove extern and weak tests.
3466 (alpha_before_fix): Rename from alpha_adjust_symtab.
3467 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
3468 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
3469 (TC_VALIDATE_FIX): Tweak param name.
3470 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
3471 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3472 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3473 (MD_APPLY_SYM_VALUE): Define.
3474 (tc_adjust_symtab): Don't define.
3475 (alpha_adjust_symtab): Don't declare.
3476 (tc_frob_file_before_fix): Define.
3477 (alpha_before_fix): Declare.
3478 (TC_INIT_FIX_DATA): Tweak param names.
3479 * config/tc-arc.c: Include "struc-symbol.h".
3480 (md_pcrel_from): Remove undefined sym fudge.
3481 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3482 Don't set fx_addnumber.
3483 (tc_gen_reloc): Remove spurious fx_addnumber comment.
3484 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
3485 (EXTERN_FORCE_RELOC): Define.
3486 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
3487 (tc_gen_reloc): Fudge ARM_GOTPC addend.
3488 (arm_validate_fix): Return void.
3489 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
3490 Add plt and got reloc tests.
3491 (arm_force_relocation): Call S_FORCE_RELOC.
3492 * config/tc-arm.h (struct fix): Forward declare.
3493 (TC_VALIDATE_FIX): No longer set add_symbolP.
3494 (arm_validate_fix): Adjust declaration.
3495 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
3496 (TC_FORCE_RELOCATION): Tweak param name.
3497 (TC_INIT_FIX_DATA): Likewise.
3498 (obj_fix_adjustable): Don't define.
3499 (tc_fix_adjustable): Call arm_fix_adjustable.
3500 (TC_FIX_ADJUSTABLE): Don't define.
3501 (MD_APPLY_SYM_VALUE): Define.
3502 (EXTERN_FORCE_RELOC): Define.
3503 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3504 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3505 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
3506 Remove *valP fudges and code to subtract abs sym. Don't set
3508 * config/tc-avr.h: Formatting.
3509 (EXTERN_FORCE_RELOC): Define.
3510 (MD_APPLY_SYM_VALUE): Define.
3511 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
3512 (md_apply_fix3): Remove code to subtract abs sym.
3513 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
3514 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
3515 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
3516 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3517 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3518 (tc_fix_adjustable): Remove extern, weak tests.
3519 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
3520 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
3521 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3522 and code to subtract abs sym.
3523 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3524 (d10v_force_relocation): Call S_FORCE_RELOC.
3525 * config/tc-d10v.h: Don't include write.h.
3526 (struct fix): Instead, forward declare.
3527 (MD_PCREL_FROM_SECTION): Tweak param names.
3528 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3529 (d10v_fix_adjustable): Likewise.
3530 (obj_fix_adjustable): Don't define.
3531 (tc_fix_adjustable): Define.
3532 (TC_FORCE_RELOCATION): Tweak param name.
3533 (MD_APPLY_SYM_VALUE): Define.
3534 (EXTERN_FORCE_RELOC): Define.
3535 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
3536 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
3537 and code to subtract abs sym.
3538 * config/tc-d30v.h: Don't include write.h.
3539 (struct fix): Instead, forward declare.
3540 (MD_PCREL_FROM_SECTION): Tweak param names.
3541 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
3542 (MD_APPLY_SYM_VALUE): Define.
3543 (EXTERN_FORCE_RELOC): Define.
3544 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
3545 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
3546 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
3547 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3548 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3549 Don't use fx_addnumber.
3550 * config/tc-dlx.h: Don't include write.h.
3551 (md_convert_frag): We're not alpha twice over.
3552 (EXTERN_FORCE_RELOC): Define.
3553 (obj_fix_adjustable): Don't define.
3554 (tc_fix_adjustable): Define.
3555 (TC_FIX_ADJUSTABLE): Don't define.
3556 (MD_APPLY_SYM_VALUE): Define.
3557 (LOCAL_LABELS_DOLLAR): Undef always.
3558 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
3559 (fr30_fix_adjustable): Remove extern, weak tests.
3560 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
3561 (obj_fix_adjustable): Don't define.
3562 (tc_fix_adjustable): Define.
3563 (struct fix): Forward declare.
3564 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
3565 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
3566 (frv_fix_adjustable): Don't do extern, weak tests.
3567 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
3568 (TC_FIX_ADJUSTABLE): Don't define.
3569 (obj_fix_adjustable): Don't define.
3570 (tc_fix_adjustable): Define.
3571 (struct fix): Forward declare.
3572 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
3573 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
3574 * config/tc-h8300.h (struct fix): Forward declare.
3575 (EXTERN_FORCE_RELOC): Define.
3576 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
3577 (hppa_fix_adjustable): Don't test extern or weak. Don't
3578 symbol_mark_used_in_reloc.
3579 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
3581 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
3582 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
3583 (TC_FORCE_RELOCATION_SECTION): Don't define.
3584 (MD_APPLY_SYM_VALUE): Define.
3585 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
3586 to subtract abs sym.
3587 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
3588 (MD_APPLY_SYM_VALUE): Define.
3589 (MD_PCREL_FROM_SECTION): Tweak param name.
3590 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
3591 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
3592 (i386_force_relocation): New function.
3593 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
3594 (TC_VALIDATE_FIX): Likewise.
3595 (TC_FIX_ADJUSTABLE): Don't define.
3596 (MD_APPLY_SYM_VALUE): Define.
3597 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
3598 (i386_force_relocation): Declare.
3599 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3600 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3601 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
3602 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
3603 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
3604 (EXTERN_FORCE_RELOC): Define.
3605 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
3606 (md_apply_fix3): Don't cast valP pointer type. Move code here from
3607 old fixup_segment. No need to test fx_pcrel before setting fx_done.
3608 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
3609 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
3610 Remove #if 0 code. Invert return boolean.
3611 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
3612 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
3613 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
3614 (tc_coff_sizemachdep): Prototype.
3615 (i960_handle_align): Likewise.
3616 (i960_validate_fix): Adjust declaration.
3617 (reloc_callj): Likewise.
3618 (EXTERN_FORCE_RELOC): Define.
3619 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3620 (TC_FORCE_RELOCATION_ABS): Define.
3621 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3622 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3623 (TC_FIX_ADJUSTABLE): Don't define.
3624 (MD_APPLY_SYM_VALUE): Define.
3625 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
3626 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
3627 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3628 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3629 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
3630 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
3631 (MD_APPLY_SYM_VALUE): Define.
3632 (EXTERN_FORCE_RELOC): Define.
3633 (TC_FORCE_RELOCATION): Tweak param name.
3634 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
3635 (m32r_fix_adjustable): Don't test extern, weak.
3636 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
3637 (MD_APPLY_SYM_VALUE): Define.
3638 (obj_fix_adjustable): Don't define.
3639 (tc_fix_adjustable): Define.
3640 (tc_frob_file): Don't define.
3641 (tc_frob_file_before_fix): Define.
3642 (EXTERN_FORCE_RELOC): Define.
3643 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
3644 BFD_RELOC_VTABLE_ENTRY address.
3645 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
3646 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
3647 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
3648 Remove duplicated fx_done code.
3649 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
3650 (EXTERN_FORCE_RELOC): Define.
3651 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
3653 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
3654 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3655 (TC_FIX_ADJUSTABLE): Don't define.
3656 (EXTERN_FORCE_RELOC): Define.
3657 (MD_APPLY_SYM_VALUE): Define.
3658 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3659 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
3660 Remove fx_addsy tests.
3661 (mcore_force_relocation): Call S_FORCE_RELOC.
3662 (mcore_fix_adjustable): Don't test fx_addsy.
3663 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
3664 (EXTERN_FORCE_RELOC): Define.
3665 (obj_fix_adjustable): Don't define.
3666 (tc_fix_adjustable): Define.
3667 (MD_APPLY_SYM_VALUE): Define.
3668 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
3669 (mips_pic): No longer static.
3670 (mips_force_relocation): Call S_FORCE_RELOC.
3671 (mips_fix_adjustable): Remove extern, weak tests.
3672 * config/tc-mips.h (enum mips_pic_level): Declare.
3673 (mips_pic): Declare.
3674 (tc_frob_file): Don't define.
3675 (tc_frob_file_before_fix): Define this instead.
3676 (EXTERN_FORCE_RELOC): Define.
3677 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
3678 with reg_section tests. Set fx_done instead of calling
3679 symbol_clear_used_in_reloc on bad relocs.
3680 (tc_gen_reloc): Zero fx_addsy on bad relocs.
3681 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
3682 (mmix_adjust_symtab): Simplify list handling. Abort on any
3684 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
3685 BFD_RELOC_MMIX_LOCAL.
3686 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
3687 (EXTERN_FORCE_RELOC): Define.
3688 (MD_PCREL_FROM_SECTION): Tweak param name.
3689 (tc_frob_file): Don't define.
3690 (tc_frob_file_before_fix): Define this instead.
3691 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
3692 Remove SEC_CODE checks.
3693 (mn10300_fix_adjustable): Remove extern and weak tests.
3694 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
3695 (TC_FORCE_RELOCATION): Tweak param name.
3696 (obj_fix_adjustable): Don't define.
3697 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
3698 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
3699 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
3700 (openrisc_fix_adjustable): Don't test fx_addsy.
3701 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
3702 (obj_fix_adjustable): Don't define.
3703 (tc_fix_adjustable): Define this instead.
3704 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3705 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
3706 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
3707 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
3708 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
3709 (MD_APPLY_SYM_VALUE): Define.
3710 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
3711 Don't subtract symbol value.
3712 * config/tc-pj.h (md_pcrel_from): Tweak param name.
3713 (EXTERN_FORCE_RELOC): Define.
3714 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
3715 (MD_APPLY_SYM_VALUE): Define.
3716 (obj_fix_adjustable): Don't define.
3717 (tc_fix_adjustable): Define this instead.
3718 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3720 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3721 (ppc_force_relocation <elf version>): New.
3722 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3723 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3724 comments. Don't subtract fx_subsy as that is already done.
3725 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3726 (MD_PCREL_FROM_SECTION): Likewise.
3727 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3728 ppc_force_relocation.
3729 (TC_FORCE_RELOCATION_SECTION): Delete.
3730 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3731 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3732 (MD_APPLY_SYM_VALUE): Define.
3733 * config/tc-s390.c: #include "dwarf2dbg.h".
3734 (s390_insn): Remove excess parens.
3735 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3736 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3737 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3738 non-NULL. Don't subtract off fx_addsy value.
3739 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3740 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3741 (TC_FIX_ADJUSTABLE): Don't define.
3742 (MD_APPLY_SYM_VALUE): Define.
3743 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3744 (SWITCH_TABLE): Likewise.
3745 (sh_force_relocation): Call S_FORCE_RELOC.
3746 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3747 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3748 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3749 fx_addnumber is zero on entry. Save val in fx_addnumber.
3750 (tc_gen_reloc): Don't subtract fx_subsy.
3751 * config/tc-sh.h (struct fix): Move.
3752 (obj_fix_adjustable): Don't define.
3753 (tc_fix_adjustable): Define this instead.
3754 (TC_FIX_ADJUSTABLE): Don't define.
3755 (MD_APPLY_SYM_VALUE): Define.
3756 (SWITCH_TABLE_CONS): Define.
3757 (SWITCH_TABLE): Define.
3758 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3759 (TC_VALIDATE_FIX_SUB): Define.
3760 (MD_PCREL_FROM_SECTION): Tweak param name.
3761 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3762 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3763 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3764 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3765 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3766 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3767 (TC_VALIDATE_FIX_SUB): Define.
3768 (MD_PCREL_FROM_SECTION): Tweak param name.
3769 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3770 (tc_gen_reloc): Use S_FORCE_RELOC.
3771 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3772 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3773 (TC_FORCE_RELOCATION_ABS): Define this instead.
3774 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3775 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3776 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3777 (MD_APPLY_SYM_VALUE): Define.
3778 (TC_FIX_DATA_PRINT): Tweak param name.
3779 * config/tc-tic30.c (USE_STDOUT): Don't define.
3780 (md_parse_option): Remove stupid debug code.
3781 (tc_gen_reloc): Don't use fx_addnumber.
3782 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3783 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3784 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3785 (tc_fix_adjustable): Define this instead.
3786 (TC_FIX_ADJUSTABLE): Don't define.
3787 (MD_APPLY_SYM_VALUE): Define this instead.
3788 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3789 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3790 (TC_FIX_ADJUSTABLE): Don't define.
3791 (MD_APPLY_SYM_VALUE): Define this instead.
3792 (tc_fix_adjustable): Remove extern and weak tests.
3793 * config/tc-w65.h (struct fix): Forward declare.
3794 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3796 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3797 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3798 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3800 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3801 (MD_APPLY_SYM_VALUE): Define.
3802 (obj_fix_adjustable): Don't define.
3803 (tc_fix_adjustable): Define this instead.
3804 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3806 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3808 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3809 (ppc_fix_adjustable <coff version>): Cleanup.
3811 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3812 (md_parse_option): No -a64 without BFD64.
3813 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3814 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3816 2002-09-04 Nick Clifton <nickc@redhat.com>
3818 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3819 instructions into the hash table if the target cpu is the BookE32.
3821 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3823 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3826 2000-08-28 Catherine Moore <clm@redhat.com>
3828 * tc-v850.c (v850_relax): Declare.
3829 (v850_longcode): New routine.
3830 (v850_handle_align): New routine.
3831 (md_pseudo_table): Add longcall and longjump.
3832 (md_parse_option): Check for relax option.
3833 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3834 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3835 (md_apply_fix3): Likewise.
3836 (v850_force_relocation): Likewise.
3837 (v850_comm): Change the current section.
3838 (md_assemble): Ensure that the correct value is put in the
3840 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3841 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3842 Remove redundant v850ea support.
3843 * tc-v850.h (HANDLE_ALIGN): Define.
3844 (v850_handle_align): Declare.
3845 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3847 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3849 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3850 * configure: Regenerate.
3851 * NEWS: Mention new port.
3853 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3855 * config/obj-coff.c: Add sdef definition.
3856 * config/obj-coff.h: Add tic4x include file and set
3858 * config/tc-tic4x.c: New file.
3859 * config/tc-tic4x.h: New file.
3861 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3863 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3864 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3865 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3866 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3867 (RELOC_ENUM): Define.
3868 (fix_new_internal): Use RELOC_ENUM.
3869 (fix_new, fix_new_exp): Likewise.
3870 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3871 Replace gotos with continue.
3872 (write_relocs): Formatting. Avoid symbol loops in
3873 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3874 errors, and error number in other cases.
3875 (fixup_segment): Remove param names from prototype. Rename
3876 "this_segment_type" to "this_segment". Update linkrelax comment.
3877 Remove "size, "place" and "where" local vars. Formatting. Update
3878 "no symbol" comment. Remove #if 0 and #if 1.
3880 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3882 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3884 * dwarf2dbg.c: Always include dwarf2dbg.h.
3885 (dwarf2_directive_file): Adjust dummy version args.
3886 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3887 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3888 when symbol values differ.
3889 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3890 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3891 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3893 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3895 * config/tc-w65.c (md_section_align): Fix typo.
3896 (md_parse_option): Return 0, not 1.
3898 2002-08-22 Nick Clifton <nickc@redhat.com>
3900 * doc/as.texinfo (Section): Note that if '@' is a comment
3901 character then another symbol is used to prefix the section's
3904 2002-08-22 Christian Groessler <chris@groessler.org>
3906 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3909 2002-08-12 Graeme Peterson <gp@qnx.com>
3911 * configure.in: Add support for sh-**-nto* target.
3912 * configure: Regenerate.
3914 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3916 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3918 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3920 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3922 (ppc_apuinfo_section_add): Define only if format is ELF.
3923 (md_assemble): Emit APUinfo section only if format is ELF.
3926 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3928 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3929 * config/tc-frv.c: Likewise.
3930 * config/tc-hppa.c: Likewise.
3931 * config/tc-ia64.c: Likewise.
3932 * config/tc-ip2k.c: Likewise.
3933 * config/tc-m68hc11.c: Likewise.
3934 * config/tc-m68k.c: Likewise.
3935 * config/tc-mmix.c: Likewise.
3936 * config/tc-mn10300.c: Likewise.
3937 * config/tc-sh.c: Likewise.
3938 * config/tc-sparc.c: Likewise.
3939 * config/tc-v850.c: Likewise.
3941 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3943 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3946 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3948 From matthew green <mrg@redhat.com>
3950 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3951 PPC_OPCODE_PPC is, except for BookE architectures.
3952 (md_parse_option): Add support for -mspe.
3953 (md_show_usage): Add -mspe.
3954 (md_parse_option): Add support for -me500 and
3955 -me500x2 to generate code for Motorola e500 core complex.
3956 (md_show_usage): Add -me500 and -me500x2.
3958 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3959 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3960 PPC_APUINFO_BRLOCK): New macros.
3962 (ppc_cleanup): New function.
3963 (ppc_apuinfo_section_add): New function.
3965 (md_assemble): Collect info and write the APUinfo section.
3967 * config/tc-ppc.h (md_cleanup): Define.
3968 (ppc_cleanup): Export.
3969 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3971 2002-08-17 Stan Cox <scox@redhat.com>
3973 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3974 config/tc-mips.c (s_change_section): New function to support
3975 IRIX .section pseudo-op.
3977 2002-08-16 Nick Clifton <nickc@redhat.com>
3979 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3981 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3983 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3984 the fix-up against on the right frag.
3985 (s_cpsetup): Likewise. Parse third argument as expression, to
3986 handle global symbols and forward/backward labels correctly.
3988 2002-08-14 Nick Clifton <nickc@redhat.com>
3990 * read.c (stringer): Catch attempts to create strings in the abs
3993 * config/tc-alpha.c: Fix compiling for COFF targets.
3994 Some minor formatting tidyups.
3996 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3998 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3999 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4000 according to the reloc.
4001 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4002 (TC_FORCE_RELOCATION): Define.
4003 (tc_m68hc11_force_relocation): Declare.
4005 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4006 (s_m68hc11_relax): New function for relax group.
4007 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4008 beginning of jump instruction.
4009 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4010 address computation.
4011 (tc-gen_reloc): Update.
4012 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4014 (tc_m68hc11_force_relocation): New function, handle new relocs.
4015 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4016 reloc for the linker relax pass.
4017 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4020 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4022 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4023 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4024 (s_m68hc11_mode): New function for .mode pseudo op.
4025 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4027 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4028 (m68hc11_elf_final_processing): Declare.
4030 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4032 * config/tc-m68hc11.c (md_begin): Take into account additional
4033 page operand for call instruction.
4034 (print_opcode_format): Likewise.
4035 (check_range): Likewise for page range checking.
4036 (get_operand): Don't skip a possible comma in operands.
4037 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4038 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4039 (fixup24): New to handle call reloc.
4040 (build_insn): Handle missing page operand for call instruction.
4042 (md_apply_fix3): Take into account new relocs.
4043 (get_operand): Fix the mode for indexed indirect addressing.
4044 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4046 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4048 * config/tc-mips.c (mips_ip): Don't work out the value of
4049 constant %hi()s here.
4051 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4053 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4054 for ELF, and don't bother checking ELF relocs when non-ELF.
4055 (i386_immediate): Allow absolute_section expressions for aout.
4056 (i386_displacement): Likewise. Also test bfd_is_com_section.
4057 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4058 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4059 not when fx_addsy. Remove dead code.
4061 2002-08-09 Graeme Peterson <gp@qnx.com>
4063 * configure.in: Add support for ppc-*-nto* target.
4064 * configure: Regenerate.
4066 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4068 * config/tc-i386.h: Reorganize.
4070 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4072 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4073 immediate offset in "dla" and "la" expansions.
4075 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4077 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4078 Remove "bfd_gas=yes" from target table when covered later.
4079 Consolidate some entries.
4080 * configure: Regenerate
4082 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4084 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4085 at start of insn, pass it to output_disp and output_imm.
4086 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4087 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4089 (output_imm): Added arguments. Compute properly addend for
4091 (md_apply_fix3): Remove R_386_GOTPC handling.
4093 2002-08-06 George France <france@handhelds.org>
4095 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4096 and m21264b processor names and cpu types.
4097 * doc/c-alpha.texi: Documented new types.
4099 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4101 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4103 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4105 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4106 handling to BFD_RELOC_MIPS16_GPREL.
4108 2002-08-01 Nick Clifton <nickc@redhat.com>
4110 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4111 pool is computed using signed arithmetic so that proper sign
4112 extension is performed if X_add_number is a 64-bit integer.
4114 2002-08-01 H.J. Lu <hjl@gnu.org>
4115 Daniel Jacobowitz <drow@mvista.com>
4117 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4118 .debug_line section unless it has line information.
4120 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4122 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4123 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4124 Allow default displacement size to be an option "--disp-size-default".
4125 (md_number_to_disp): Make error messages include value. Use %d to
4126 print integers, not %s.
4127 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4128 get duplicate messages sometimes.
4129 (convert_iif): Grow frag to max possible instruction size. Avoid
4130 creating unnecessary fixes.
4131 (md_number_to_field) Add prototype.
4132 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4133 prototypes and make static.
4134 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4135 (evaluate_expr): Use resultP argument instead of exprP global.
4136 (get_addr_mode): Quiten compiler warnings.
4137 (encode_operand): eliminate unused variables. Quiten compiler
4138 warnings. Eliminate nul character in format strings.
4139 (parse): argc is unsigned.
4140 (reloc): Type cast index to quieten compiler.
4141 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4142 (md_convert_frag): Note unused parameters. Remove unused
4144 (md_create_long_jump, md_create_short_jump,
4145 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4148 2002-07-31 Nick Clifton <nickc@redhat.com>
4150 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4151 of the PDP-11 and 2.11BSD a.out support.
4153 2002-07-31 Momchil Velikov <velco@fadata.bg>
4155 * config/tc-v850.c (md_assemble): Fix range check for immediate
4158 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4160 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4161 to Broadcom SB-1 core support.
4163 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4165 * config/tc-mips.c (mips_target_format): Fix formatting.
4166 Add recognition of n32 ABI formats.
4168 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4170 * tc-mips.c (load_address): Don't clobber $at when loading a
4171 64-bit address in non-PIC code if noat is in effect.
4174 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4176 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4177 used in division/multiply macro expansions similarly to how they
4178 are used in the variants with break instructions.
4181 2002-07-30 Graeme Peterson <gp@qnx.com>
4183 * configure.in: Add support for arm-*-nto target.
4184 * configure: Regenerate.
4186 2002-07-30 Nick Clifton <nickc@redhat.com>
4188 * config/tc-arm.c (struct literal_pool): Add fields to allow
4189 multiple literal pools to be maintained.
4190 (find_literal_pool): New function.
4191 (find_or_make_literal_pool): New function.
4192 (add_to_literal_pool): Use find_or_make_literal_pool.
4193 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4195 (s_ltorg): Use find_literal_pool.
4196 (arm_cleanup): Dump all literal pools.
4197 * doc/c-arm.texi: Document new behaviour of only dumping literal
4200 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4202 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4203 rather than PPC_OPCODE_32 for powerpc64*.
4205 2002-07-25 Nick Clifton <nickc@redhat.com>
4207 * po/es.po: Updated Spanish translation.
4208 * po/fr.po: Updated French translation.
4210 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4212 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4213 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4214 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4215 * configure, config.in: Regenerate.
4216 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4217 (mips_set_options): Remove "abi" field.
4218 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4221 (mips_arch_string, mips_arch_info): New vars.
4222 (mips_tune_string, mips_tune_info): New vars.
4223 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4224 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4225 (mips_isa_to_str, mips_cpu_to_str): Remove.
4226 (mips_ip): If the selected architecture is a generic ISA rather
4227 than a processor, only mention the ISA level in error messages.
4228 (OPTION_MCPU): Remove.
4230 (md_longopts): Add -mfp64, remove -mcpu.
4231 (mips_set_option_string): New fn.
4232 (md_parse_option): Make -mipsN update file_mips_isa rather than
4233 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
4234 Don't let -mgp32 and -mfp32 change the ABI.
4235 (show): Move to end of file. Constify string argument.
4236 (md_show_usage): Move to the end of the file. Read available
4237 architectures from mips_cpu_info_table.
4238 (mips_set_architecture): New fn.
4239 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
4240 is an alias for -march=mipsN. Don't change the ABI based on other
4241 flags. Infer the register size from the ABI as well as the
4242 architecture. Complain about more conflicting arguments.
4243 Unify logic with GCC.
4244 (s_mipsset): Don't change the ABI.
4245 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
4246 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
4247 "mipsN"-type entries. Remove entries that vary only in the
4248 manufacturer's prefix, or that have "000" replaced by "k".
4249 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
4250 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4251 (mips_parse_cpu): New fn.
4252 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
4253 (mips_cpu_info_from_isa): Minor formatting tweak.
4255 2002-07-24 Nick Clifton <nickc@redhat.com>
4257 * po/sv.po: Updated Swedish translation.
4258 * po/es.po: Updated Spanish translation.
4260 2002-07-23 Alan Modra <amodra@bigpond.net.au>
4262 * Makefile.am: Run "make dep-am".
4263 * Makefile.in: Regenerate.
4264 * doc/Makefile.in: Regenerate.
4265 * config.in: Regenerate.
4266 * po/POTFILES.in: Regenerate.
4268 2002-07-23 Nick Clifton <nickc@redhat.com>
4270 * po/fr.po: Updated French translation.
4272 2002-07-23 Nick Clifton <nickc@redhat.com>
4274 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
4277 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4279 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
4280 instead of S_IS_EXTERN.
4281 (md_estimate_size_before_relax): Likewise.
4282 (mips_fix_adjustable): Likewise.
4284 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4286 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
4288 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
4289 Nick Clifton <nickc@redhat.com>
4291 * cond.c (s_ifdef): Treat a referenced but not yet defined
4292 symbol as if it were undefined, in exactly the same way as
4295 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
4296 consider referenced bug not yet defined symbols to be
4299 2002-07-18 Denis Chertykov <denisc@overta.ru>
4300 Frank Ch. Eigler <fche@redhat.com>
4301 Alan Lehotsky <alehotsky@cygnus.com>
4302 John Healy <jhealy@redhat.com>
4303 Jeff Johnston <jjohnstn@redhat.com>
4305 * configure.in: Add ip2k configuraton.
4306 * configure: Regenerate.
4307 * Makefile.am: Add ip2k configuraton.
4308 * Makefile.in: Regenerate.
4309 * configure: Regenerate.
4310 * Makefile.in: Regenerate.
4311 * config/tc-ip2k.c: New file.
4312 * config/tc-ip2k.h: New files.
4313 * NEWS: Mention new support.
4314 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
4315 * doc/Makefile.in: Regenerate.
4316 * doc/all.texi: Set IP2K
4317 * doc/as.texinfo: Add IP2K description.
4318 * doc/c-ip2k.texi: New file.
4320 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
4322 * NEWS: Reformat to match style of other NEWS files.
4324 2002-07-17 Jan Hubicka <jh@suse.cz>
4326 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
4328 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
4330 * config/tc-z8k.c (build_bytes): Correct order of memset args.
4332 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
4334 * NEWS: Add 'Changes in 2.13'.
4336 2002-07-15 Matt Fredette <fredette@netbsd.org>
4338 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
4340 2002-07-12 Alan Modra <amodra@bigpond.net.au>
4342 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
4343 case with non CODE_64BIT case. Don't warn on "qword ptr" if
4346 2002-07-11 Alan Modra <amodra@bigpond.net.au>
4348 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
4349 (ppc_frob_file_before_adjust): New function.
4350 * config/tc-ppc.h (tc_frob_symbol): Don't define.
4351 (ppc_elf_frob_symbol): Don't declare.
4352 (tc_frob_file_before_adjust): Define.
4353 (ppc_frob_file_before_adjust): Declare.
4355 * config/tc-ppc.c (md_pseudo_table): Warning fix.
4356 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
4359 (ppc_xcoff64): Rename to ppc_obj64.
4360 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
4361 (ppc_set_cpu): Set PPC_OPCODE_32 too.
4362 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
4364 (ppc_target_format): Use ppc_obj64 to select format.
4365 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
4366 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
4367 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
4368 (tc_frob_symbol): Likewise.
4369 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
4370 BFD_DEFAULT_TARGET_SIZE.
4372 (ppc_is_toc_sym): Likewise.
4373 (md_apply_fix3): Likewise.
4374 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
4375 BFD_DEFAULT_TARGET_SIZE.
4376 (ELF_TC_SPECIAL_SECTIONS): Likewise.
4377 (tc_frob_symbol): Likewise.
4379 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4381 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
4382 (mips_ip): Likewise.
4384 2002-07-09 Alan Modra <amodra@bigpond.net.au>
4386 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
4387 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
4388 (md_apply_fix3): Formatting. Remove redundant test.
4389 (tc_gen_reloc): Remove redundant code.
4390 (tc_i386_force_relocation): Delete. Movy body of function to..
4391 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
4393 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
4395 * configure.in: Add hppa-*-openbsd* target, change
4396 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
4398 * configure: Regenerate.
4400 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4402 * config/tc-mips.c (macro): Shift the 32-bit address range
4403 accessible with a lone "lui" down by 32768.
4405 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4407 * config/tc-mips.c (load_address): Use non-trapping "daddu"
4408 instead of "dadd" in address calculations.
4411 2002-07-08 Alan Modra <amodra@bigpond.net.au>
4413 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
4415 (md_assemble): Instead, zap the suffix here.
4417 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
4419 * NEWS: Remove next release number until the release is actually
4422 2002-07-03 Alan Modra <amodra@bigpond.net.au>
4424 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
4426 * Makefile.in: Regenerate.
4428 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
4430 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
4431 to symbols in merge sections, even non pc-relative ones.
4433 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4435 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
4437 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
4439 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
4440 .softregs and .eeprom.
4442 2002-06-28 David O'Brien <obrien@FreeBSD.org>
4444 * NEWS: Note the next release is 2.13.
4446 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
4448 * po/tr.po: New translation imported.
4450 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
4452 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
4453 (ecoff_directive_def): Likewise.
4454 (ecoff_directive_tag): Likewise.
4455 * listing.c (file_info): Likewise.
4456 * hash.c (what): Likewise.
4458 2002-06-25 H.J. Lu <hjl@gnu.org>
4460 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
4461 * Makefile.in: Regenerated.
4463 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
4465 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
4466 (assemble_ppi): Generate warning if the same register is used
4467 twice as destination in the same padd / pmuls instruction.
4469 2002-06-18 Dave Brolley <brolley@redhat.com>
4471 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
4472 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
4473 * configure.in: Support frv-*-*.
4474 * Makefile.am (CPU_TYPES): Add frv.
4475 (TARGET_CPU_CFILES): Add tc-frv.c.
4476 (TARGET_CPU_HFILES): Add tc-frv.h.
4477 (DEPTC_frv_coff): New variable.
4478 (DEPTC_frv_elf): New variable.
4479 (DEPOBJ_frv_coff): New variable.
4480 (DEPOBJ_frv_elf): New variable.
4481 (DEP_frv_coff): New variable.
4482 (DEP_frv_elf): New variable.
4483 * tc-frv.c: New file.
4484 * tc-frv.h: New file.
4486 2002-06-17 Catherine Moore <clm@redhat.com>
4488 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
4490 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
4492 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
4494 2002-06-17 Tom Rix <trix@redhat.com>
4496 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
4498 2002-06-14 H.J. Lu <hjl@gnu.org>
4499 Daniel Jacobowitz <drow@mvista.com>
4501 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
4502 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
4503 * config/tc-mips.c (s_mips_file): Call s_app_file_string
4504 and new_logical_line for the first .file directive.
4505 * read.c (s_app_file_string): New function.
4506 (s_app_file): Call it.
4507 * read.h (s_app_file_string): Add declaration.
4509 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
4511 * configure.in: Remove MIPS_STABS_ELF.
4512 * configure: Regenerated.
4513 * config.in: Regenerated.
4514 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
4516 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
4518 (pdr_seg): Declare unconditionally.
4519 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
4520 (s_mips_end): Likewise. Generate stabs function markers.
4521 (s_mips_ent): Generate stabs function markers.
4522 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
4524 (s_mips_mask): Likewise.
4525 (mips_flag_mdebug): New.
4526 (md_longopts): Add "mdebug" and "no-mdebug".
4527 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
4528 (mips_after_parse_args): Set mips_flag_mdebug.
4529 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
4531 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4533 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
4534 value twice for RELA relocations.
4536 2002-06-12 Ben Elliston <bje@redhat.com>
4538 * symbols.c (resolve_symbol_value): Initialise final_val.
4540 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
4542 2002-06-11 Tom Rix <trix@redhat.com>
4544 * config/tc-ppc.c (ppc_subseg_align): Delete.
4545 (ppc_change_csect): Default csect align is 2.
4546 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
4548 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
4550 * config/tc-avr.c (mcu_types): Update.
4552 2002-06-08 Matt Thomas <matt@3am-software.com>
4554 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
4555 (vax-*-netbsd*): New targets.
4556 * configure: Regenerate.
4557 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
4558 * config/tc-vax.c: Add support for ELF and PIC.
4559 (flag_want_pic): New flag.
4560 (float_cons): Fix prototype.
4561 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
4562 (md_assemble): Introduce a new is_absolute local, and use it
4563 rather than repeating the test. Make fatal errors actually
4564 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
4565 Add support for ELF. Add support for PIC.
4566 (md_convert_frag): Adjust for BFD_ASSEMBLER.
4567 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
4569 (vax_reg_parse): Make the % register prefix mandatory for ELF,
4570 optional for a.out, and not allowed for VMS. Adjust all callers.
4571 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
4572 (md_create_long_jump): Likewise.
4573 (md_undefined_symbol): Likewise.
4574 (md_section_align): Likewise.
4575 (md_shortopts): Allow -k and -K for ELF.
4576 (md_parse_option): Set flag_want_pic if -k or -K.
4577 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
4578 (tc_gen_reloc): New function if BFD_ASSEMBLER.
4579 * config/tc-vax.h (tc_headers_hook): Remove.
4580 (TARGET_FORMAT): Set according to object format and target
4582 (BFD_ARCH, TARGET_ARCH): Define.
4583 (NO_RELOC): Adjust for BFD_ASSEMBLER.
4584 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
4585 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
4586 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
4588 2002-06-08 Alan Modra <amodra@bigpond.net.au>
4590 * Makefile.am: Run "make dep-am".
4591 * Makefile.in: Regenerate.
4593 * as.c: Replace CONST with const.
4594 * write.c: Likewise.
4595 * config/obj-coff.c: Likewise.
4596 * config/tc-a29k.c: Likewise.
4597 * config/tc-arm.c: Likewise.
4598 * config/tc-dlx.c: Likewise.
4599 * config/tc-h8300.c: Likewise.
4600 * config/tc-h8500.c: Likewise.
4601 * config/tc-i370.c: Likewise.
4602 * config/tc-i860.c: Likewise.
4603 * config/tc-i960.c: Likewise.
4604 * config/tc-m68hc11.c: Likewise.
4605 * config/tc-m68k.c: Likewise.
4606 * config/tc-m88k.c: Likewise.
4607 * config/tc-mcore.c: Likewise.
4608 * config/tc-mips.c: Likewise.
4609 * config/tc-ns32k.c: Likewise.
4610 * config/tc-pdp11.c: Likewise.
4611 * config/tc-pj.c: Likewise.
4612 * config/tc-s390.c: Likewise.
4613 * config/tc-sh.c: Likewise.
4614 * config/tc-sparc.c: Likewise.
4615 * config/tc-tahoe.c: Likewise.
4616 * config/tc-tic80.c: Likewise.
4617 * config/tc-v850.c: Likewise.
4618 * config/tc-vax.c: Likewise.
4619 * config/tc-w65.c: Likewise.
4620 * config/tc-z8k.c: Likewise.
4622 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
4624 Based on patch from Matt Green:
4625 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
4626 * config/tc-mips.c (s_mips_file): Renamed from s_file.
4627 (s_mips_loc): New function.
4628 (mips_nonecoff_pseudo_table): Call them.
4629 (append_insn): Call dwarf2_emit_insn.
4631 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4633 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
4635 (file_ase_mips16): New veriable.
4636 (mips_eabi64): Remove.
4637 (CPU_HAS_MIPS16): New define.
4638 (CPU_HAS_MDMX): Fix data type.
4639 (md_begin): Code cleanup. Use file_ase_mips16.
4640 (mips_elf_final_processing): Handle mips16 header flag.
4641 Handle EABI flag without intermediate variable.
4643 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4645 * doc/as.texinfo: Update MIPS documentation.
4647 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4649 * config/tc-mips.c: Add define for $zero register.
4650 (md_begin): Add $zero as alias name for $0.
4651 (insn_uses_reg): Use ZERO define.
4652 (mips_ip): Add $zero as alias name for $0.
4653 (mips16_ip): Likewise.
4654 (s_cplocal): Demand empty rest of input line.
4655 (tc_get_register): Likewise. Add support for $kt0, kt1 register
4656 names. Use ZERO define. Fix input_line_pointer progress.
4658 2002-06-07 Alan Modra <amodra@bigpond.net.au>
4660 * symbols.c: Replace CONST by const throughout.
4661 (symbol_find_exact): Split out from..
4662 (symbol_find_base): ..here.
4663 * symbols.h: Replace CONST by const throughout.
4664 (symbol_find_exact): Declare.
4665 * config/obj-elf.c: #include "struc-symbol.h".
4666 (elf_frob_file): If group name matches an exported symbol, use that
4667 symbol for the signature and ".group" as the section name.
4669 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4671 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
4674 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
4676 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
4677 and mips_opts.ase_mdmx if they are uninitialized.
4679 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
4681 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
4682 (hppa_force_relocation): Check if a stub just before the start symbol
4683 of the last call_info is reachable before forcing relocation. Fix
4686 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4688 * config/tc-mips.c (mips_after_parse_args): New function.
4689 (md_begin): Move processing of defaults to mips_after_parse_args.
4690 config/tc-mips.h (md_after_parse_args): Define.
4692 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4694 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
4695 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
4696 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
4697 * configure: Regenerate.
4698 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
4701 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
4703 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
4705 2002-06-04 Alan Modra <amodra@bigpond.net.au>
4707 * config/obj-elf.c (obj_elf_change_section): Set and check elf
4708 linkonce flag. Print all warnings.
4709 (obj_elf_section): Parse ",comdat" for groups.
4710 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
4711 consistency of comdat flag.
4713 2002-06-02 Richard Henderson <rth@redhat.com>
4715 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
4716 with LITERALs without sequence numbers.
4718 2002-06-01 Richard Henderson <rth@redhat.com>
4720 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4721 Rename them LITUSE_ALPHA_*.
4723 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4725 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4726 accept parentheses enclosed register lists.
4728 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4730 * Makefile.am: Run "make dep-am".
4731 * Makefile.in: Regenerate.
4732 * po/POTFILES.in: Regenerate.
4734 2002-05-31 Graeme Peterson <gp@qnx.com>
4736 * configure.in: Add i386-*-nto-qnx*.
4737 * configure: Regenerate.
4739 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4741 * config/tc-mips.c (mips_ip): Use unsigned long values for
4744 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4746 * config/tc-mips.c (s_cpsetup): Fix initialization of
4747 mips_cpreturn_register and mips_cpreturn_offset.
4749 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4751 * config/tc-mips.c (s_cpsetup): Fix comment.
4753 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4755 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4756 (mips_ip): Likewise.
4757 (mips16_ip): Likewise.
4758 (tc_get_register): Likewise.
4760 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4761 Ed Satterthwaite <ehs@broadcom.com>
4763 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4764 (mips_opts): Initialize "ase_mdmx" member.
4765 (file_ase_mdmx): New variable.
4766 (CPU_HAS_MDMX): New macro.
4767 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4768 based on command line options and configuration defaults.
4769 (macro_build): Note in comment that use of MDMX in macros is
4770 not currently allowed.
4771 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4772 "Z" MDMX operand types.
4773 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4774 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4776 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4777 Add support for "-mdmx" and "-no-mdmx" options.
4778 (OPTION_ELF_BASE): Move to accomodate new options.
4779 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4780 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4781 file_ase_mdmx was set.
4782 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4783 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4786 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4788 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4789 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4790 command line switch conforming to gcc conventions.
4791 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4793 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4795 * config/tc-mips.c (macro_build_jalr): New Function.
4796 (md_begin): NewABI uses big GOTs.
4797 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4798 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4799 (load_address): Add some NewABI PIC support.
4801 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4802 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4804 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4806 * config/tc-mips.c (load_address): Use mips_gp_register instead
4807 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4809 (macro): Use mips_gp_register instead of hardcoded value.
4811 2002-05-30 Richard Henderson <rth@redhat.com>
4813 * expr.h (operatorT): Add O_md17..O_md32.
4814 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4815 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4816 O_tprelhi, O_tprello, O_tprel): New.
4817 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4818 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4819 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4820 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4821 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4822 (md_apply_fix3): Handle TLS relocations.
4823 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4824 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4825 associated TLS reloc. Check lituse_tls relocs match up.
4826 (emit_insn): Handle TLS relocations.
4829 * doc/c-alpha.texi: Add docs for tls relocations.
4831 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4833 * config/tc-mips.c (mips_gprel_offset): New variable.
4834 (s_gpvalue): Use it.
4836 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4838 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4839 write-write conflicts.
4840 (md_assemble): Reformat introductory comment.
4841 (parallel_ok): Prevent packing only if the first
4842 instruction cannot be packed.
4844 2002-05-30 Jason Eckhardt <jle@redhat.com>
4845 Tom Rix <trix@redhat.com>
4847 * config/tc-d10v.c (build_insn): Check for immediates.
4849 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4851 * config/tc-mips.c: Replace GP in comments by $gp.
4852 (mips_big_got): Initialize.
4853 (mips_trap): Initialize.
4854 (load_address): Use mips_gp_register instead of hardcoded value.
4855 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4856 (macro): Use mips_gp_register instead of hardcoded value.
4857 (macro2): Change load_address calls.
4858 (md_pcrel_from): Comment formatting.
4859 (s_cpload): Use mips_gp_register instead of hardcoded value.
4860 (s_cprestore): Likewise. Comment formatting.
4861 (s_gpword): Fix data type.
4862 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4863 (nopic_need_relax): Replace GP in comments by $gp.
4864 (mips_elf_final_processing): Better comment.
4866 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4868 * configure.in: Add DLX configuraton
4869 * Makefile.am: Add DLX configuraton
4870 * configure: Regenerate.
4871 * Makefile.in: Regenerate.
4872 * config/tc-dlx.c: New file.
4873 * config/tc-dlx.h: New files.
4874 * NEWS: Mention new support.
4876 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4878 * config/obj-coff.c (write_object_file): Add missing semicolon.
4880 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4882 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4883 by the define. Remove superfluous check of mips_opts.mips16.
4884 (append_insn): Likewise. Canonicalize variable increments.
4885 (macro_build): Canonicalize variable increments.
4886 (macro_build_lui): Likewise.
4887 (load_register): Likewise.
4888 (load_address): Move pointer initialization.
4889 (macro): Move pointer to a more local scope. Canonicalize variable
4890 increments. Better comments. Replace magic constant for RA by the
4892 (macro2): Replace magic constant for RA by the define. Canonicalize
4893 variable increments.
4894 (mips_ip): Canonicalize variable increments.
4895 (mips16_ip): Replace magic constant for RA by the define.
4896 (my_getSmallParser): Canonicalize variable increments/decrements.
4897 (my_getPercentOp): Likewise.
4898 (my_getSmallExpression): Likewise.
4899 (s_align): Likewise.
4900 (s_mipsset): Likewise.
4901 (s_cpsetup): Likewise.
4902 (s_insn): Remove superfluous check of mips_opts.mips16.
4903 (s_mips_stab): Likewise.
4904 (mips_handle_align): Canonicalize variable increments.
4905 (s_mips_ent): Likewise.
4906 (s_mips_end): Add comment.
4908 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4910 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4911 * configure: Regenerate.
4913 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4915 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4916 * Makefile.in: Regenerate.
4917 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4918 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4919 * configure: Regenerate.
4920 * as.h: Use #include "" instead of <> for local header files.
4921 * flonum-konst.c: Likewise.
4922 * flonum-mult.c: Likewise.
4924 * listing.c: Likewise.
4925 * config/tc-ia64.h: Likewise.
4926 * config/tc-v850.h: Likewise.
4928 2002-05-24 TAMURA Kent <kent@netbsd.org>
4930 * configure.in: Add a target for i386-netbsdpe.
4931 * configure: Regenerate.
4933 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4935 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4936 (obj_elf_common): Call elf_common.
4937 (obj_elf_tls_common): New function.
4938 (elf_pseudo_tab): Support .tls_common.
4939 (special_sections): Add .tdata and .tbss.
4940 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4942 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4943 (obj_elf_parse_section_letters): Include T in error message.
4944 * config/tc-ppc.c (ppc_section_letter): Likewise.
4945 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4946 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4948 * config/tc-sparc.c (md_apply_fix3): Likewise.
4949 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4950 Define them if not BFD_ASSEMBLER.
4951 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4953 (md_apply_fix3): Add TLS relocs.
4954 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4955 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4956 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4957 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4958 (ia64_elf_section_letter): Include T in error message.
4959 (md_begin): Support TLS operators.
4960 (md_operand): Likewise.
4961 (ia64_gen_real_reloc_type): Support TLS relocs.
4962 * write.c (adjust_reloc_syms): Don't change symbols in
4963 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4965 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4967 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4968 round the relocation up rather than down.
4970 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4972 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4974 * doc/as.texinfo: Document that the COFF version of .section
4975 ignores the 'a' flag.
4977 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4979 * config/tc-alpha.c (assemble_tokens): Protect use of
4980 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4982 * write.c (size_seg): Check adjustment to last frag.
4983 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4985 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4986 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4987 (write_object_file): Invoke md_do_align if available, and use
4988 frag_align_code on text sections.
4989 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4990 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4991 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4992 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4993 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4996 2002-05-22 H.J. Lu <hjl@gnu.org>
4998 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5001 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5003 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5006 2002-05-22 H.J. Lu <hjl@gnu.org>
5008 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5009 for one .loc for compiler.
5011 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5013 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5016 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5018 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5019 Optimize the rotate by zero case.
5021 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5023 * configure.in: Remove accidental enabling of bfd_gas=yes for
5025 * configure: Regenerate.
5027 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5029 * app.c: Fix formatting.
5031 * ehopt.c: Likewise.
5033 * input-file.c: Likewise.
5034 * listing.c: Likewise.
5035 * macro.h: Likewise.
5036 * stabs.c: Likewise.
5037 * symbols.c: Likewise.
5039 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5041 * config/obj-generic.c: Delete file.
5042 * config/obj-generic.h: Likewise.
5044 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5046 * config/tc-avr.c (mcu_types): Update for new devices.
5048 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5050 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5052 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5054 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5055 worked sometimes by accident. Fix copy&paste comment.
5057 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5059 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5060 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5061 (mips_elf_final_processing): Let n32 use .reginfo.
5063 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5065 * config/tc-mips.c (append_insn): Fix too small range of variable.
5067 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5069 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5070 listing_prev_line().
5072 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5074 * config/tc-arm.c (md_assemble): Remove redundant call to
5077 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5080 * stabs.c (s_stab_generic): Fix grammatical error in warning
5083 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5085 * write.c (subsegs_finish): Don't specially align last subseg.
5087 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5089 * stabs.c (s_stab_generic): Warn about a description field that is
5092 * config/obj-coff.c: Fix compile time warnings when compiling
5093 without BFD_ASSEMBLER defined.
5096 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5098 (md_pcrel_from_section): Use md_pcrel_from().
5100 2002-05-11 Bruno Haible <bruno@clisp.org>
5102 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5103 by dwarf2_directive_loc, instead of calling dwarf2_where.
5105 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5107 * config/obj-coff.h: Fix formatting.
5108 * config/tc-mcore.c: Likewise.
5109 * config/tc-mn10300.c: Likewise.
5110 * config/tc-openrisc.c: Likewise.
5111 * config/tc-or32.c: Likewise.
5112 * config/tc-pdp11.c: Likewise.
5113 * config/tc-ppc.c: Likewise.
5114 * config/tc-ppc.h: Likewise.
5115 * config/tc-sh64.c: Likewise.
5116 * config/tc-sh.c: Likewise.
5117 * config/tc-tic54x.c: Likewise.
5118 * config/tc-xstormy16.c: Likewise.
5119 * config/tc-xstormy16.h: Likewise.
5121 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5123 * config/obj-coff.c: Fix formatting.
5124 * config/obj-elf.c: Likewise.
5125 * config/tc-alpha.c: Likewise.
5126 * config/tc-arm.c: Likewise.
5127 * config/tc-d10v.c: Likewise.
5128 * config/tc-d30v.c: Likewise.
5129 * config/tc-h8300.c: Likewise.
5130 * config/tc-hppa.c: Likewise.
5132 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5134 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5135 reloc when no_cond_jump_promotion.
5137 2002-05-08 Jim Wilson <wilson@redhat.com>
5139 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5140 current variable part of frag.
5142 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5144 * config/tc-mmix.c: Fix formatting.
5145 * config/tc-mmix.h: Likewise.
5147 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5149 * configure: Regenerate.
5151 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5153 * config/tc-m68k.c: Fix formatting.
5155 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5157 * Makefile.am: Honour DESTDIR.
5158 * Makefile.in: Regenerate.
5160 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5162 * config/tc-ia64.c: Fix formatting.
5163 * config/tc-ia64.h: Likewise.
5165 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5167 * config/tc-mips.c: Fix formatting.
5168 * config/tc-s390.c: Likewise.
5169 * config/tc-s390.h: Likewise.
5171 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5173 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5174 information for instructions.
5176 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5178 * as.h: Fix formatting.
5181 * dwarf2dbg.c: Likewise.
5182 * frags.h: Likewise.
5184 * macro.c: Likewise.
5186 * stabs.c: Likewise.
5187 * symbols.c: Likewise.
5189 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5191 * app.c (mri_pseudo): Only declare for TC_M68K.
5193 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5194 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5195 BFD_RELOC_16_BASEREL.
5196 (md_assemble): Likewise.
5197 (md_apply_fix3): Likewise.
5199 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5201 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5202 zero into an add of zero - it is not the same.
5204 2002-05-01 Arati Dikey <aratid@kpit.com>
5206 * tc-sh.c (get_specific): Generate warning if the same
5207 destination register is used in parallel instructions.
5209 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5211 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5213 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5215 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5216 backwards to prevent cascading errors.
5218 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5220 * configure.in: Add support for powerpc-*-windiss.
5221 * configure: Regenerated.
5223 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5225 * config/tc-s390.c (md_parse_option): Formatting.
5227 * config/tc-i386.c: Formatting fixes, add missing space in error
5230 2002-04-24 Christian Groessler <chris@groessler.org>
5232 * config/tc-z8k.c (build_bytes): Add support for new cases:
5233 CLASS_IGNORE and ARG_NIM4.
5234 (md_assemble): Prevent destruction of input_line_pointer if
5235 get_operands returns failure.
5237 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
5239 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
5240 instructions to be generated by macros.
5242 2002-04-24 Andreas Schwab <schwab@suse.de>
5244 * config/tc-i386.c (output_jump, output_disp)
5245 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
5247 (md_apply_fix3): Remember addend value for rela relocations.
5248 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
5250 2002-04-22 Chris Demetriou <cgd@broadcom.com>
5252 * config/tc-mips.c (macro_build): Add close-parenthesis missing
5253 from previous change.
5255 2002-04-22 Eric Christopher <echristo@redhat.com>
5257 * config/tc-mips.c (macro_build): Add warning if macro instructions
5258 are expanded into a branch delay slot.
5260 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
5262 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
5263 numbers, gdb relies on them to detect the start of the prologue.
5265 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
5267 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
5268 symbols in merge sections.
5270 2002-04-16 Alan Modra <amodra@bigpond.net.au>
5272 * as.c (main): Don't reference _bfd_chunksize.
5274 2002-04-15 Tom Rix <trix@redhat.com>
5276 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
5277 symbols in merge sections.
5279 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
5281 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
5282 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
5283 argument for the precision.
5284 (gen_to_words): Update accordingly.
5286 2002-04-10 Alan Modra <amodra@bigpond.net.au>
5288 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
5289 BFD_VERSION_STRING unavailable.
5290 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
5292 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
5294 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
5295 symbol_used_in_reloc_p is true.
5297 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
5300 2002-04-04 Alan Modra <amodra@bigpond.net.au>
5302 * dep-in.sed: Cope with absolute paths.
5303 * Makefile.am (dep.sed): Subst TOPDIR.
5305 * Makefile.in: Regenerate.
5307 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5309 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
5310 (mips_ip): Remove unused variable.
5311 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
5312 unsigned char with bfd_byte.
5313 (s_file): Remove unused variable.
5314 (s_mips_ent): Likewise.
5316 2002-04-03 Tom Rix <trix@redhat.com>
5318 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
5320 (find_opcode): Fix warning in as_warn.
5321 * config/tc-d10v.h: Update Copyright.
5323 2002-04-03 Alan Matsuoka <alanm@redhat.com>
5324 Tom Rix <trix@redhat.com>
5326 From Jeff Knaggs <jknaggs@redhat.com>
5327 * config/tc-d10v.c (check_resource_conflict): New function to
5328 check for resource conflicts.
5330 From Jason Eckhardt <jle@redhat.com>
5331 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5333 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
5334 reserved control registers is used.
5335 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
5338 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
5339 * tc-d10v.c (parallel_ok): Prevent packing only if the first
5340 instruction cannot be packed.
5342 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
5343 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5344 write-write conflicts.
5345 (md_assemble): Reformat introductory comment.
5346 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
5349 2002-04-03 Alan Modra <amodra@bigpond.net.au>
5351 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
5352 O_logical_not>): Derive final_seg from add_symbol.
5353 <O_multiply..O_logical_or>: More final_seg twiddles.
5355 2002-04-01 Jessica Han <jessica@cup.hp.com>
5357 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
5360 2002-03-27 Andreas Schwab <schwab@suse.de>
5362 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
5363 field for pc-relative fixups.
5364 (output_disp): Likewise.
5365 (md_estimate_size_before_relax): Likewise.
5366 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
5367 pc-relative fixups in 64bit mode.
5369 2002-03-22 Alan Modra <amodra@bigpond.net.au>
5371 * config/te-aix5.h: Typo fix.
5373 2002-03-21 Alan Modra <amodra@bigpond.net.au>
5375 * Makefile.am: Run "make dep-am".
5376 * Makefile.in: Regenerate.
5377 * doc/Makefile.in: Regenerate.
5379 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
5381 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
5382 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
5384 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
5386 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
5387 the EXTENDED bit here; report the estimate according to the
5390 2002-03-18 Tom Rix <trix@redhat.com>
5392 * configure.in: Add AIX 5 support.
5393 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
5394 * config/te-aix5.h: New file. AIX 5 support.
5395 * configure: Regenerate.
5397 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
5399 * po/fr.po: Updated version.
5401 2002-03-16 Andreas Jaeger <aj@suse.de>
5403 * doc/c-mips.texi (Machine Dependencies): Add new node.
5405 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
5407 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
5408 (mips_opts): Initialize "ase_mips3d" member.
5409 (file_ase_mips3d): New variable.
5410 (CPU_HAS_MIPS3D): New macro.
5411 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
5412 based on command line options and configuration defaults.
5413 (macro_build, mips_ip): Accept MIPS-3D instructions if
5414 mips_opts.ase_mips3d is set.
5415 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
5416 Add support for "-mips3d" and "-no-mips3d" options.
5417 (OPTION_ELF_BASE): Move to accomodate new options.
5418 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
5419 (mips_elf_final_processing): Add a comment indicating that a
5420 MIPS-3D ASE ELF header flag should be set, when one exists.
5421 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
5422 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
5423 nomips3d" directives.
5425 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
5427 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
5428 a weak symbol in same section to be within reach.
5430 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
5432 * po/fr.po: Updated version.
5434 2002-03-12 Andreas Schwab <schwab@suse.de>
5436 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
5437 body record so that an error is given for misplaced .save
5440 2002-03-09 Alan Modra <amodra@bigpond.net.au>
5442 * config/tc-i386.h (REX_OPCODE): Define.
5443 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
5444 (rex_byte): typedef to int.
5445 * config/tc-i386.c: Group prototypes and vars together.
5446 Formatting fixes. Remove occurrences of "register" keyword.
5449 (mode_from_disp_size): Add INLINE keyword to prototype.
5450 (fits_in_signed_byte): Likewise.
5451 (fits_in_unsigned_byte): Likewise.
5452 (fits_in_unsigned_word): Likewise.
5453 (fits_in_signed_word): Likewise.
5454 (fits_in_unsigned_long): Likewise.
5455 (fits_in_signed_long): Likewise.
5456 (type_names): Constify.
5457 (intel_float_operand): Constify param.
5458 (add_prefix): Use REX_OPCODE.
5459 (md_assemble): Likewise. Modify for changed rex_byte.
5460 (parse_insn): Split out of md_assemble.
5461 (parse_operands): Likewise.
5462 (swap_operands): Likewise.
5463 (optimize_imm): Likewise.
5464 (optimize_disp): Likewise.
5465 (match_template): Likewise.
5466 (check_string): Likewise.
5467 (process_suffix): Likewise.
5468 (check_byte_reg): Likewise.
5469 (check_long_reg): Likewise.
5470 (check_qword_reg): Likewise.
5471 (check_word_reg): Likewise.
5472 (finalize_imm): Likewise.
5473 (process_operands): Likewise.
5474 (build_modrm_byte): Likewise.
5475 (output_insn): Likewise.
5476 (output_branch): Likewise.
5477 (output_jump): Likewise.
5478 (output_interseg_jump): Likewise.
5479 (output_disp): Likewise.
5480 (output_imm): Likewise.
5482 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
5484 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
5486 2002-03-06 Alan Modra <amodra@bigpond.net.au>
5488 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
5489 relocs except when BFD64.
5491 * write.c (number_to_chars_bigendian): Don't abort when N is
5492 larger than sizeof (VAL).
5493 (number_to_chars_littleendian): Likewise.
5495 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
5497 * config/tc-hppa.c (md_apply_fix3): Add cast.
5498 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
5501 2002-03-05 Paul Koning <pkoning@equallogic.com>
5503 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
5504 (parse_ac5): New function for parsing float regs in float operand.
5505 (parse_expression): Remove attempt to make literals be octal.
5506 (parse_op_no_deferred): Support float literals.
5507 (parse_op): Reject attempts to refer to float regs.
5508 (parse_fop): New function, like parse_op but for float operand.
5509 (md_assemble): Add cases to parse float operands. Also fix
5510 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
5512 2002-03-04 H.J. Lu <hjl@gnu.org>
5514 * config/obj-elf.c (special_section): Add .init_array,
5515 .fini_array and .preinit_array.
5517 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
5518 .init_array and .fini_array.
5520 2002-03-01 Jakub Jelinek <jakub@redhat.com>
5522 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
5524 (obj_frob_symbol): Copy visibility.
5526 2002-02-28 Jakub Jelinek <jakub@redhat.com>
5528 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
5530 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
5532 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
5534 * po/es.po: Updated.
5536 2002-02-26 Chris Demetriou <cgd@broadcom.com>
5538 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
5539 only, undo the changes made on 2001-06-08, with the
5540 effect being that common or extern symbols are
5541 adjusted for embedded-PIC, but weak symbols are not.
5542 (md_estimate_size_before_relax: Likewise, with the effect
5543 that extern symbols are treated the same as weak symbols
5544 only if not embedded-PIC.
5545 (mips_fix_adjustable) Likewise, with the effect that
5546 weak or extern symbols are not adjusted for embedded-PIC.
5547 (md_apply_fix3): Tweak so that the case where value is zero
5548 is handled more correctly for embedded-PIC code.
5550 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
5552 * doc/as.texinfo (Overview): Add missing @ifset IA64
5554 * configure.in (LINGUAS): Add es.po.
5555 * configure: Regenerate.
5556 * po/es.po: New file.
5558 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5560 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
5561 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
5562 and NO_PIC cases. Code cleanup.
5563 (macro2): Fix handling of 64bit register loads.
5565 2002-02-25 David Mosberger <davidm@hpl.hp.com>
5567 * doc/as.texinfo: Add entry for IA64.
5568 * doc/c-ia64.texi: New file.
5570 2002-02-25 Alan Modra <amodra@bigpond.net.au>
5572 * config/tc-hppa.c: Update copyright date.
5574 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
5575 Remove references to chip manufacturers.
5576 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
5578 (md_show_usage): Remove references to chip manufacturers. Mention
5580 (md_begin): Test power4 opcode flag bits.
5582 2002-02-22 David Mosberger <davidm@hpl.hp.com>
5584 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
5585 count exceeds prologue count.
5586 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
5587 (unwind.label_prologue_count): New member.
5589 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
5591 (get_saved_prologue_count): New function.
5592 (save_prologue_count): New function.
5593 (free_saved_prologue_count): New function.
5594 (dot_label_state): Record state label by calling save_prologue_count().
5595 (dot_copy_state): Restore prologue count by calling
5596 get_saved_prologue_count().
5597 (generate_unwind_image): Free up list of saved prologue
5598 counts by calling free_saved_prologue_counts().
5600 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
5602 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
5603 function declarations.
5605 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
5607 * NEWS: Note that GASP is now deprecated.
5608 * Makefile.am: Do not build gasp-new by default.
5609 * Makefile.in: Regenerate.
5610 * doc/Makefile.am: Do not install gasp.info.
5611 * doc/Makefile.in: Regenerate.
5612 * gas/gasp.texi: Note that gasp is now deprecated.
5614 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
5616 * NEWS: Mark 2.12 branch.
5618 2002-02-19 Tom Tromey <tromey@redhat.com>
5620 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
5622 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5624 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
5627 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
5629 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
5630 Make bit size independent of architecture switch.
5631 (md_begin): Add warning for -m64 with -Aesa.
5632 (s390_md_end): Use renamed architecture defines.
5634 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
5636 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
5638 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
5640 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
5643 2002-02-15 Chris Demetriou <cgd@broadcom.com>
5645 * config/tc-mips.c (md_estimate_size_before_relax): Really
5646 make sure we treat weak like extern only for ELF. (Fixes
5647 patch from 2001-07-25.)
5649 2002-02-15 Ben Elliston <bje@redhat.com>
5651 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
5654 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
5656 * NEWS: Mention support for MMIX.
5658 2002-02-13 Chris Demetriou <cgd@broadcom.com>
5660 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
5661 a sequence of indpendent 'if' statements for easier debugging
5662 and future modification.
5664 2002-02-13 Matt Fredette <fredette@netbsd.org>
5666 * config/tc-m68k.c (md_show_usage): No longer display a
5667 hard-coded "68020" for the default CPU, instead display the
5668 canonical name of the true, configured default CPU.
5669 (m68k_elf_final_processing): Mark objects for sub-68020
5670 CPUs with the new EF_M68000 flag.
5672 2002-02-13 Andreas Schwab <schwab@suse.de>
5674 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
5675 pc-relative relocations to merge sections in 64-bit mode.
5677 2002-02-13 Ben Elliston <bje@redhat.com>
5679 * NEWS: Document floating point number handling in gasp.
5680 * gasp.c: Include <assert.h> and "xregex.h".
5681 (is_flonum): New function.
5682 (chew_flownum): Likewise.
5683 (change_base): Consume flonums from the input, where possible.
5684 * doc/gasp.texi (Constants): Document floating point numbers.
5686 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
5688 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
5689 that implicitly use LR and RR selectors.
5691 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
5693 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
5694 and `epsw' as available on AM33 and above only.
5695 (other_register_name): Add logic to handle machine type encoded in
5698 2002-02-11 Tom Rix <trix@redhat.com>
5700 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
5703 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
5705 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
5708 2002-02-11 Jan Hubicka <jh@suse.cz>
5710 * i386.c (md_assemble): Support 32bit address prefix.
5711 (i386_displacement): Likewise.
5712 (i386_index_check): Accept 32bit addressing in 64bit mode.
5714 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
5716 * config/tc-sh.c (dot): Removed unused function.
5718 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5720 * Makefile.am: "make dep-am".
5721 * Makefile.in: Regenerate.
5722 * aclocal.m4: Regenerate.
5723 * config.in: Regenerate.
5724 * configure: Regenerate.
5725 * doc/Makefile.in: Regenerate.
5727 2002-02-10 Richard Henderson <rth@redhat.com>
5729 * doc/c-alpha.texi: New file.
5730 * doc/Makefile.am (CPU_DOCS): Add it.
5731 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5733 2002-02-09 Richard Henderson <rth@redhat.com>
5735 * config/tc-alpha.c (O_samegp): New.
5736 (USER_RELOC_P): Include it.
5737 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5738 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5739 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5740 (alpha_validate_fix): New.
5741 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5743 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5745 * doc/c-cris.texi: New.
5746 * doc/all.texi: @set CRIS.
5747 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5748 Include c-cris.texi.
5749 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5750 * doc/Makefile.in: Regenerate.
5752 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5754 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5755 determine if a number is a sign-extended 32-bit number.
5756 (load_register): Use IS_SEXT_32BIT_NUM.
5757 (macro): Check if load/store macro handling is using a
5758 constant 32-bit address on 64-bit address systems, and if
5759 so optimize the generation of that address.
5761 2002-02-08 Richard Henderson <rth@redhat.com>
5763 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5764 we've eliminated all foreign relocation types yet.
5765 (alpha_fix_adjustable): Likewise.
5767 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5769 Contribute sh64-elf.
5770 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5771 Stephen Clarke <Stephen.Clarke@st.com>
5772 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5773 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5774 * config/tc-sh.c (md_relax_table): Added default sizes for
5775 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5776 MOVI_16, MOVI_32 and MOVI_48.
5777 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5778 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5780 (shmedia_md_estimate_size_before_relax): Remove redundant
5781 blocks. Set fragP->fr_var even if relaxation type unchanged.
5782 Retain UNDEF_MOVI until expression decays to number.
5783 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5784 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5785 relocation types. Take fixP->fx_addnumber into account too.
5786 (shmedia_md_apply_fix): Likewise.
5787 (shmedia_md_convert_frag): Likewise.
5788 (shmedia_build_Mytes): Likewise.
5789 (sh64_consume_datalabel): Complain about nested datalabel.
5790 Support PIC relocs. Call sh_parse_name.
5791 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5792 in tc-sh.h to SHmedia reloc types.
5793 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5794 MOVI_GOTPC): New relaxation constants.
5795 (md_relax_table): Introduce relaxation directives for PIC-related
5797 (sh_PIC_related_p): Handle datalabel.
5798 (sh_check_fixup): Choose SH5 PIC relocations.
5799 (sh_cons_fix_new): Added BDF_RELOC_64.
5800 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5801 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5802 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5803 current ISA is SHmedia, get 7 bytes.
5804 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5805 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5807 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5808 shmedia_apply_fix3 and make void.
5809 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5810 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5812 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5813 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5814 2001-03-14 DJ Delorie <dj@redhat.com>
5815 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5816 * doc/Makefile.in(CPU_DOCS): Ditto.
5817 * doc/c-sh64.texi: New file.
5818 * doc/as.texinfo: Add SH64 support.
5819 2001-03-13 DJ Delorie <dj@redhat.com>
5820 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5821 A_REUSE_PREV so that its purpose is more obvious.
5822 (shmedia_build_Mytes): Ditto.
5823 2001-03-07 DJ Delorie <dj@redhat.com>
5824 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5826 (sh64_vtable_inherit): Ditto.
5827 (strip_datalabels): New, strip "datalabel" from given line.
5828 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5830 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5831 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5833 (shmedia_build_Mytes): ... to here.
5834 2001-03-06 DJ Delorie <dj@redhat.com>
5835 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5837 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5838 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5839 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5840 address by one in call to dwarf2_emit_insn.
5841 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5842 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5843 alignment handling broken by imported changes.
5844 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5845 (sh64_handle_align): Declare.
5846 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5847 (sh64_max_mem_for_rs_align_code): Declare.
5848 (enum sh64_isa_values): Moved here from tc-sh64.c.
5849 (md_do_align): Define.
5850 (sh64_do_align): Declare.
5851 (struct sh64_tc_frag_data): New.
5852 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5854 (TC_FRAG_INIT): Change to set new datatype.
5855 (struct sh64_segment_info_type): Rename member
5856 last_flushed_location to last_contents_mark. All users changed.
5857 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5858 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5859 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5860 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5861 of unsetting seen_insn.
5862 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5863 call sh64_update_contents_mark.
5864 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5865 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5866 enum sh64_isa_values.
5867 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5868 (emitting_crange): Boolean guard moved to file scope from function
5869 scope in sh64_set_contents_type.
5871 (sh64_update_contents_mark): New; most split out from
5872 sh64_flush_pending_output.
5873 (shmedia_md_end): Call sh64_update_contents_mark. Set
5874 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5875 (sh64_do_align): New function.
5876 (sh64_max_mem_for_rs_align_code): New function.
5877 (sh64_handle_align): Rename from shmedia_do_align. Make
5878 non-static. Add head comment. Emit zero bytes for n bytes modulo
5879 four. Change return-type to void.
5880 (shmedia_elf_new_section): Remove.
5881 (shmedia_md_assemble): Call sh64_update_contents_mark.
5882 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5883 new frag. Call sh64_update_contents_mark after making the new
5885 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5886 and sh_flush_pending_output.
5887 (sh64_flag_output): Also call md_flush_pending_output, but add
5888 condition on not emitting_crange.
5889 (sh64_tc_cons_fix_new): Remove.
5890 2001-01-12 Nick Clifton <nickc@redhat.com>
5891 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5892 alignment handling scheme imported from sourceware.
5893 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5894 * config/tc-sh64.h (TARGET_FORMAT): Define.
5895 (sh64_target_format): Prototype.
5896 * config/tc-sh64.c (sh64_target_mach): New function.
5897 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5898 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5899 zero_address_frag instead of copying the frag of the symbol.
5900 (shmedia_frob_file_before_adjust): Ditto.
5901 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5902 to valueT to remove signedness.
5903 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5904 headers to output_bfd. Do not evaluate symbols if final is false;
5906 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5907 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5908 to the current frag, call shmedia_md_convert_frag to emit fixups
5909 and make frag_wane neutralize the frag. Update comments.
5910 * config/tc-sh.c (md_convert_frag): Change caller of
5911 shmedia_md_convert_frag.
5912 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5913 * config/tc-sh64.h: Tweak comments and correct formatting.
5914 * config/tc-sh64.c: Ditto.
5915 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5916 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5917 for the no-relocation case.
5918 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5919 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5921 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5923 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5924 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5926 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5928 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5929 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5930 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5931 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5932 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5933 if reloc is emitted.
5934 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5935 New options plus bugfixes.
5936 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5938 (md_parse_option): Handle new options.
5939 (md_show_usage): Add blurb for new options.
5940 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5941 (sh64_expand, sh64_pt32): New variables.
5942 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5943 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5944 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5945 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5946 <resolved previously-pc-relative relocs>: Handle
5947 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5948 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5949 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5950 points to SHcompact code.
5951 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5952 SH64PCREL16)>: Check that ISA of what operand points at and
5953 PTA/PTB matches, or emit error.
5954 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5955 SHMEDIA_BFD_RELOC_PT.
5956 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5958 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5959 condition for MOVI expansion.
5960 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5961 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5963 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5965 (sh64_target_format): Error-check setting of sh64_pt32 and
5966 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5967 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5968 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5969 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5970 * config/tc-sh64.c: Improve comments.
5971 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5972 not say the linker will check correctness of PTA/PTB expansion.
5973 (shmedia_md_end): Make non-static.
5974 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5976 * config/tc-sh.c (sh_finalize): Remove.
5977 * config/tc-sh.h (md_end): Do not define.
5978 Remove prototype for sh_finalize.
5979 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5980 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5981 sh64_section_data container when storing section type in tdata
5982 field in elf_section_data.
5983 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5985 * Makefile.am: Update dependencies.
5986 * Makefile.in: Regenerate.
5987 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5988 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5989 dwarf2_emit_insn call with test on debug_type.
5990 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5991 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5992 CRT_SH5_ISA32 sticky for 64-bit.
5993 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5994 Generate .crange sections when switching ISA mode or emitting
5995 constants in same section as code.
5996 * config/tc-sh64.c: Reformat structure definitions.
5997 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5999 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6000 to emit a .cranges descriptor when contents type changes. Only
6001 emit error if changing contents type and -no-mix is in effect.
6002 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6003 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6004 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6005 sh64_flush_last_crange over sections.
6006 When checking main symbol of datalabel symbol, check for
6007 STO_SH5_ISA32, not ISA type of section in definition.
6008 (shmedia_frob_file_before_adjust): Check main symbol for
6009 STO_SH5_ISA32; don't check ISA type of section in definition.
6010 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6011 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6012 .cranges entries have been output.
6013 (shmedia_elf_new_section): Just call md_flush_pending_output.
6014 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6015 fix. Do not set tc_segment_info_data.in_code for section. Call
6016 sh64_set_contents_type for SHmedia code.
6017 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6018 false. Call md_flush_pending_output.
6019 (sh64_target_format): Check that -no-mix and
6020 -shcompact-const-crange are used in sane combination with other
6022 (shmedia_md_pcrel_from_section): Check type of fix for how to
6024 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6025 not ISA type of section in definition.
6026 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6027 hold contents-type state.
6028 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6029 (sh64_flush_pending_output): Declare.
6030 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6031 (sh64_tc_cons_fix_new): Declare.
6032 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6033 call sh64_flag_output.
6034 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6035 call sh64_set_contents_type to mark SHcompact code and set
6037 (md_longopts): New options "-no-mix" and
6038 "-shcompact-const-crange".
6039 (md_parse_option): Handle new options.
6040 (md_show_usage): Add blurb for new options.
6041 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6042 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6043 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6044 (sh64_last_insn_frag): New.
6045 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6046 to get frag for insn opcode for generating fixups; do not assume it
6048 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6050 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6052 (TC_FRAG_TYPE): Define as fragS *.
6053 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6054 (sh64_last_insn_frag): Declare.
6055 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6056 not == NULL before dereferencing.
6057 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6058 Get rid of BFD section flag and EF_SH64_ABI64.
6059 * config/tc-sh64.c (shmedia_frob_section_type): Use
6060 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6061 communicate the section as containing SHmedia code. Describe why.
6062 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6063 EF_SH64 regardless of ABI.
6064 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6065 in error message. Handle resolved expressions for
6066 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6067 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6068 (shmedia_check_limits): Handle BFD_RELOC_64.
6069 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6070 a STO_SH5_ISA32 symbol, only the BFD value.
6071 2000-12-11 Ben Elliston <bje@redhat.com>
6072 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6073 dwarf2_generate_asm_lineno.
6074 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6075 Handle PC-relative MOVI expansions with assembler relaxation.
6076 Generate PC-relative relocs from 16-bit PC-relative expressions.
6077 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6078 (shmedia_md_pcrel_from_section): ...here.
6079 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6080 turned completely resolved. Adjust relocation type for 16-bit
6081 immediate operands that has turned PC-relative. Adjust back for
6082 MD_PCREL_FROM_SECTION being applied twice.
6083 (shmedia_md_convert_frag): Always emit reloc for expression with
6084 global or weak symbol. Handle relaxation result for PC-relative
6086 (shmedia_md_estimate_size_before_relax): An expression with a weak
6087 or global symbol can not be relaxed. Break out tests for
6088 relaxable symbol into variable sym_relaxable.
6089 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6090 UNDEF_MOVI)>: Break out any PC-relative expression and change
6092 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6094 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6095 MOVI expansion. If X_op_symbol of the immediate expression is
6096 set, make an expression symbol for the argument to frag_var.
6097 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6099 (END): Adjust for new relaxations.
6100 (md_relax_table): Add entries for new relaxations.
6101 2000-12-07 Ben Elliston <bje@redhat.com>
6102 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6103 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6104 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6105 SHORI operand offsets in PT/PTA/PTB expansions.
6106 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6107 Implement DataLabel semantics.
6108 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6109 shmedia_frob_file_before_adjust.
6110 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6111 (DATALABEL_SUFFIX): Define.
6112 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6113 symbol list to update "datalabel" symbols to their main symbol
6115 (shmedia_frob_file_before_adjust): New.
6116 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6117 undefined and set STT_DATALABEL.
6118 (sh64_frob_label): Initialize TC symbol field.
6119 (sh64_consume_datalabel): Actually implement semantics. New
6120 parameter operandf, call it instead of expression.
6121 (sh64_exclude_symbol): New.
6122 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6123 to sh64_consume_datalabel.
6124 (tc_symbol_new_hook): Define to tc_frob_symbol.
6125 (TC_SYMFIELD_TYPE): Define to symbolS *.
6126 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6127 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6128 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6130 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6131 generating dwarf2 debug information.
6132 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6133 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6134 elf64-sh64 for the 64-bit ABI.
6135 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6137 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6138 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6140 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6141 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6142 (enum sh64_abi_values): New type.
6143 (enum sh64_isa_values): New type.
6144 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6145 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6146 (sh64_abi): Replace shmedia_64.
6147 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6148 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6149 (s_sh64_mode): Check validity for this target.
6150 (sh64_target_format): Initialize defaults for ISA and ABI.
6151 Fallback to old object format if no SH64 ISA or ABI has been
6153 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6154 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6155 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6156 * config/tc-sh64.h: Fix typo in comment.
6157 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6158 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6159 <PT fixups for absolute values>: Size will be longest, not
6161 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6162 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6163 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6164 and l1 to hold lowercase of two first characters. Change all
6165 remaining TO_LOWER to tolower.
6166 * config/tc-sh64.c (TO_LOWER): Delete.
6167 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6168 (md_parse_name): Define.
6169 (sh64_consume_datalabel): Declare.
6170 (DOLLAR_DOT): Define.
6171 * config/tc-sh64.c (shmedia_parse_exp): New.
6172 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6173 (shmedia_parse_reg): Remove const from src
6175 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6176 (shmedia_md_assemble): Ditto for op_end variable.
6177 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6178 Use shmedia_parse_exp, not parse_exp.
6179 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6180 parameter. All callers changed.
6181 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6183 (shmedia_parse_reg): Put first two character in local variables.
6184 Use tolower, not TO_LOWER. If no register is found and argtype
6185 indicates a control register, scan shmedia_creg_table
6187 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6188 * Makefile.am (CPU_TYPES): Add sh64.
6189 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6190 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6191 Regenerate dependencies.
6192 * Makefile.in: Regenerate.
6193 * configure.in: Add support for sh64-*-elf*.
6194 * configure: Regenerate.
6195 * config/tc-sh64.h: New.
6196 * config/tc-sh64.c: New.
6197 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6198 .mode, .isa and .uaquad.
6199 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6200 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6201 [HAVE_SH64] (END): Define as 10.
6202 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6203 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6205 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6206 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6207 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6208 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6210 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6211 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6212 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6213 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6214 SHmedia instructions. Handle state-change after switching to
6216 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6217 (md_parse_option) [HAVE_SH64]: Parse new options.
6218 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6219 (md_convert_frag) [HAVE_SH64] <default>: Call
6220 shmedia_md_convert_frag instead of abort.
6221 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6222 BFD_RELOC_SH_SHMEDIA_CODE.
6223 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6224 SHcompact or SHmedia code.
6225 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6226 shmedia_md_apply_fix instead of abort.
6227 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6228 result from calling shmedia_md_estimate_size_before_relax instead
6230 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
6232 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
6233 shmedia_init_reloc and do nothing more if it returns non-zero.
6234 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
6235 * po/POTFILES.in: Regenerate.
6236 * po/gas.pot: Regenerate.
6238 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
6240 * config/tc-sh.c (parse_at): Install the correct version of
6243 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
6244 assume fixP->fx_subsy is non-NULL.
6246 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
6248 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
6249 A_DISP_PC_ABS, and adjust it by -4.
6250 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
6252 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
6253 the operand type is not A_DISP_PC_ABS.
6255 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
6257 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
6258 common and weak symbols. Handle common and weak symbols as
6259 undefined symbols with regards to GREG handling and merging.
6260 (mmix_frob_file): Ditto.
6262 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
6264 * configure.in (hppa-*-netbsd*): New target.
6265 * configure: Regenerate.
6266 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
6268 2002-02-02 Alan Modra <amodra@bigpond.net.au>
6270 * config/tc-v850.c: Add missing prototypes amd use old-style
6271 function definitions.
6272 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
6273 (sdata_section tdata_section, zdata_section, sbss_section,
6274 tbss_section, zbss_section, rosdata_section, rozdata_section,
6275 scommon_section, tcommon_section, zcommon_section,
6276 call_table_data_section, call_table_text_section): Delete.
6277 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
6278 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
6279 v850_call_table_data, v850_call_table_text): Delete.
6280 (struct v850_seg_entry): New.
6281 (v850_seg_table): New.
6282 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
6283 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
6284 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
6285 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
6288 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
6289 recording of alignment.
6290 (md_pseudo_table): Use v850_seg.
6291 (md_begin): Don't init .call_table_data and .call_table_text here.
6292 Set v850_seg_table bss entry.
6294 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
6296 Support on-demand global register allocation by passing on
6297 base-plus-offset relocs to the linker.
6298 * config/tc-mmix.c: Tweak and fix typos in comments.
6299 (allocate_undefined_gregs_in_linker): New variable.
6300 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
6301 (md_longopts): Add --linker-allocated-gregs.
6302 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
6303 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
6304 (md_show_usage): Update text for -x. Add text for
6305 --linker-allocated-gregs.
6306 (tc_gen_reloc): Derive default value for addend from val and
6307 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
6308 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
6309 GREG if allocate_undefined_gregs_in_linker.
6310 * doc/as.texinfo (Overview) <Target MMIX options>: Add
6311 --linker-allocated-gregs.
6312 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
6313 --linker-allocated-gregs. Mention that it's implied by -x.
6314 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
6315 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
6317 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
6319 2002-02-01 Alan Modra <amodra@bigpond.net.au>
6321 * Makefile.am: Run "make dep-am"
6322 * Makefile.in: Regenerate.
6324 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
6326 * config/tc-or32.c: New file.
6327 * config/tc-or32.h: New file.
6328 * configure.in: Add support for or32 targets.
6329 * configure: Regenerate.
6330 * config/obj-coff.c: Add support for or32 targets.
6331 * config/obj-coff.h: Add support for or32 targets.
6332 * Makefile.am: Add support for or32 targets.
6333 * Makefile.in: Regenerate.
6334 * NEWS: Mention support for OpenRISC.
6335 * doc/Makefile.in: Regenerate.
6336 * po/POTFILES.in: Regenerate.
6337 * po/gas.pot: Regenerate.
6339 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
6341 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
6344 2002-01-29 Chris Demetriou <cgd@broadcom.com>
6346 * config/tc-mips.c (tc_gen_reloc): Arrange for
6347 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
6348 their LO16 parts, even for ELF.
6350 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
6352 * config/tc-i386.c: Protect definitions of true and false
6355 2002-01-28 Jakub Jelinek <jakub@redhat.com>
6357 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
6358 made because of .weak, if they are neither defined nor used in any
6361 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
6363 * configure: Regenerated.
6365 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
6367 * doc/Makefile.am (install): Depend on install-info.
6368 * doc/Makefile.in: Regenerate.
6370 2002-01-26 Nick Clifton <nick@redhat.com>
6372 * po/fr.po: Updated version
6374 2002-01-24 Kazu Hirata <kazu@hxi.com>
6376 * config/tc-h8300.c (check_operand): Don't print a warning
6377 when a valid 24-bit address is given to a 16-bit address
6380 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6382 * config/tc-sh.c (sh_elf_suffix): Removed.
6383 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
6384 sh_end_of_match, sh_parse_name): New functions.
6385 (sh_elf_cons): Simplify.
6386 (parse_exp): Reject misplaced PIC operands.
6387 (md_undefined_symbol): Simplify.
6388 (sh_fix_adjustable): Let @GOTOFF be adjusted.
6389 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
6390 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
6391 Complain if subsy remains at the end.
6392 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
6393 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
6395 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
6397 * config/tc-mn10300.c (xr_registers): Move `pc'...
6398 (other_registers): ... here.
6400 2002-01-22 Alan Modra <amodra@bigpond.net.au>
6402 * Makefile.am: Run "make dep-am".
6403 * Makefile.in: Regenerate.
6404 * gas/po/POTFILES.in: Regenerate.
6406 2002-01-21 DJ Delorie <dj@redhat.com>
6408 * config/obj-coff.c (obj_coff_init_stab_section): Make the
6409 stabstr_name allocation permanent, as it will be referenced from
6412 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
6414 * configure.in (ia64-*-netbsd*): New target.
6415 * configure: Regenerate.
6417 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
6419 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
6421 <Detailed description, ARM options>: Ditto.
6422 * doc/c-arm.texi (ARM Options): Ditto.
6424 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6426 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
6427 do_mia, do_mar and do_mra respectively.
6428 (do_mav_*): Renamed from do_c_*.
6429 (mav_reg_required_here, mav_parse_offset): Renamed from
6430 cirrus_reg_required_here and cirrus_parse_offset respectively.
6431 (MAV_MODE?): Renamed from CIRRUS_MODE?.
6433 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6434 Keith Walker <keith.walker@arm.com>
6436 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
6437 (insns): Add pattern for bxj instruction.
6438 (do_bxj): New function.
6439 (arm_cpus): Add arm926ej.
6440 (arm_archs): Add armv5tej.
6442 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6444 * doc/c-arm.texi: Add new fpe options to list of supported flags.
6446 2002-01-19 Keith Walker <keith.walker@arm.com>
6448 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
6450 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
6452 * NEWS: Mention new ARM command-line options and VFP support.
6454 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
6456 (ARM_CEXT_MAVERICK): Similarly.
6457 (ARM_ANY): Now means any core instruction.
6458 (CPU_DEFAULT): Default to ARM_ANY.
6459 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
6460 (pic_code): Declare for all object types. Make type int.
6461 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
6462 (march_fpu_opt, mfpu_opt): Declare.
6463 (md_longopts): Tidy up conditional definitions.
6464 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
6465 (arm_long_opts): New tables.
6466 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
6467 (arm_parse_extension): New function.
6468 (md_parse_option): Rewrite using new table-driven system.
6469 (md_show_usage): Use new table-driven system.
6470 (md_begin): Calculate cpu_variant from command line option data.
6471 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
6472 command-line options.
6473 * doc/c-arm.texi: Likewise.
6475 2002-01-18 Andreas Jaeger <aj@suse.de>
6477 * as.c (parse_args): Update year.
6479 2002-01-17 Timothy Wall <twall@alum.mit.edu>
6481 * config/tc-tic54x.c (encode_address): Add a more informative
6482 warning about incorrect syntax.
6484 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6486 * po/gas.pot: Regenerate.
6488 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
6490 * macro.c (get_any_string): Add no-c-format comment to prevent
6491 confusion when translating string.
6492 * gasp.c (get_any_string): Add no-c-format comment to prevent
6493 confusion when translating string.
6495 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6496 Johannes Stezenbach <js@convergence.de>
6497 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
6498 matched before the shorter ones.
6499 (my_getSmallParser): Fix handling of nested parentheses in
6500 percent_op's. Code cleanup.
6501 (my_getPercentOp): New function, code from my_getSmallParser.
6502 (my_getSmallExpression): Fix handling of closing parentheses.
6503 Code cleanup. Better comments.
6505 2002-01-16 Nick Clifton <nickc@redhat.com>
6507 po/tr.po: New file: Turkish translation.
6508 configure.in (LINGUAS): Add "tr".
6509 configure: Regenerate.
6511 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6513 Support for VFP instructions
6514 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
6515 (cp_address_required_here): New argument wb_ok. When false, do not
6516 accept write-back forms of addressing. Change all callers.
6517 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
6518 (FPU_VFP_EXT_V2): Define.
6519 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
6520 Define in terms of above.
6521 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
6522 (vfp_reg): New struct.
6523 (vfp_regs): New array of registers.
6524 (insns): Add VFP instructions.
6525 (sn_table): New array of VFP single-precision register names.
6526 (dn_table): New array of VFP double-precision register names.
6527 (all_reg_maps): Add the new register tables.
6528 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
6529 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
6530 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
6531 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
6532 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
6533 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
6534 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
6535 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
6536 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
6537 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
6538 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
6539 (do_vfp_sp_dp_cvt): New functions.
6540 (md_begin): Set soft-float flag for appropriate VFP work.
6541 (md_atof): Handle VFP-format doubles.
6542 (md_parse_option): Handle VFP command-line options.
6543 (md_show_usage): Display VFP command-line options.
6545 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
6547 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
6548 various command line options.
6550 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
6552 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
6554 (xstormy16_md_apply_fix3): Do not return a value.
6556 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6558 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
6559 the -EL/-EB option that matches the target's endianness.
6560 (md_parse_option): Likewise.
6562 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6564 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
6565 is not dependent on ARM_BI_ENDIAN.
6567 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
6569 * tc-arm.c (all error messages): Normalize capitalization of messages.
6571 * tc-arm.h (md_operand): Delete define.
6572 * tc-arm.c (in_my_get_expression): New static variable.
6573 (my_get_expression): Set and clear it.
6574 (md_operand): New function. If called from my_get_expression
6575 put the error in inst.error.
6576 (output_inst): Now takes argument of instruction being assembled.
6577 Print it out with any error message.
6578 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
6580 (end_of_line): Don't update inst.error if it is already set.
6582 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
6584 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
6585 op that can be translated into a mvn instruction.
6587 2002-01-11 Steve Ellcey <sje@cup.hp.com>
6589 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
6590 setting default md.flags.
6591 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
6592 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
6593 * gas/config/tc-ia64.c (setup_unwind_header): Add support
6594 for 32 bit unwind info blocks.
6595 (generate_unwind_image): Add support for different types
6596 of unwind images (32 bits and/or big-endian).
6597 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
6598 (ia64_target_format): Add support for hpux target formats.
6599 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
6600 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
6601 SHT_FINI_ARRAY elf section types.
6603 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
6605 * tc-arm.c (struct reg_entry): Move before prototypes.
6606 (int_register, cp_register, fp_register): Delete.
6607 (reg_table): Delete. Replaced with ...
6608 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
6609 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
6610 (mav_dspsc_table): ... one table per register set.
6611 (arm_reg_hsh): Delete.
6612 (struct reg_map): New structure.
6613 (all_reg_maps): New array.
6614 (enum arm_reg_type): New enums.
6615 (build_reg_hsh): New function.
6616 (insert_reg_alias): Use hash table passed by caller. Adjust all
6618 (create_register_alias): New function, split out from ...
6619 (md_assemble): ... here.
6620 (md_begin): Build new register hash tables.
6621 (arm_reg_parse): New argument for the hash table to search. Adjust all
6623 (arm_reg_parse_any): New function.
6624 (co_proc_number): Look up the processor number in the processor hash
6626 (cirrus_regtype): Delete.
6627 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
6628 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
6629 (ARM_EXT_MAVERICKsc_register): Delete.
6630 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
6631 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
6633 (do_c_triple_4, do_c_triple_5): Delete.
6634 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
6635 (do_c_quad_6): Delete.
6636 (do_c_quad_6[ab]): New functions.
6637 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
6638 arguments to use new register parsing methods.
6639 (cirrus_reg_required_here): Likewise.
6640 (insns): Reclassify cirrus maverick worker functions.
6641 (cirrus_valid_reg): Delete.
6643 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
6645 * configure.in (sh*le): Set cpu_type=sh and endian=little.
6646 (sh*-*-netbsdelf*): New target.
6647 * configure: Regenerate.
6648 * tc-sh.h: Update copyright years.
6649 (TARGET_FORMAT): Add version for TE_NetBSD.
6651 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
6653 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
6656 2002-01-06 Alan Modra <amodra@bigpond.net.au>
6658 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
6659 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
6661 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
6663 * tc-mips.c (mips_cprestore_valid): New flag.
6664 (mips_frame_reg_valid): New flag.
6665 (macro) [M_JAL_2]: Check both flags.
6666 [M_JAL_A]: Likewise.
6667 (s_cprestore): Set mips_cprestore_valid.
6668 (tc_get_register): If setting mips_frame_reg, set
6669 mips_frame_reg_valid and clear mips_cprestore_valid.
6670 (s_mips_ent): Clear both flags.
6671 (s_mips_end): Clear both flags.
6673 2002-01-05 Alan Modra <amodra@bigpond.net.au>
6675 * write.c (write_object_file): Make use of bfd_section_list_remove.
6676 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
6677 * config/tc-mmix.c (mmix_frob_file): Likewise.
6679 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6681 * configure.in (i386-*-netbsdelf*): Collapse target into...
6682 (i386-*-netbsd*): ...this. Add support for x86-64.
6683 * configure: Regenerated.
6685 2002-01-03 matthew green <mrg@redhat.com>
6687 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
6689 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
6691 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
6694 For older changes see ChangeLog-0001
6700 version-control: never