1 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
3 * configure.in: Add specific case for cris-*-linux-gnu* with
5 * configure: Regenerate.
6 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
7 if TE_LINUX defined, else FALSE.
8 (bfd_boolean demand_register_prefix): Set default from
9 DEFAULT_CRIS_AXIS_LINUX_GNU.
10 (symbols_have_leading_underscore): Similar.
11 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
13 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
15 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
16 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
17 FPU_ARCH_FPA for AOUT.
18 (md_begin): Don't try to guess the floating point architecture from
19 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
21 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
23 * configure.in: Add i386-netbsd-gnu target.
24 * configure: Regenerate.
26 2003-06-12 Tom Tromey <tromey@redhat.com>
28 * doc/as.texinfo (Comm): Added @node. Moved before CFI
31 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
33 * config/tc-mips.c (append_insn): In a compound relocation, take the
34 field width from the final (outermost) operator.
36 2003-06-11 Richard Henderson <rth@redhat.com>
38 * dw2gencfi.c (struct cfi_escape_data): New.
39 (cfi_add_CFA_nop): Remove.
40 (CFI_escape, dot_cfi_escape): New.
41 (dot_cfi): Remove nop.
42 (cfi_pseudo_table): Remove nop; add escape.
43 (output_cfi_insn): Likewise.
44 (select_cie_for_fde): Stop on escape.
45 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
46 * read.c, read.h (do_parse_cons_expression): New.
47 * doc/as.texinfo (.cfi_escape): New.
49 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
51 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
52 (s_cprestore): Likewise.
53 (s_cpreturn): Likewise.
55 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
57 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
60 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
62 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
63 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
64 exceptions from size assert. Remove most of the addend fixup
65 specialcasing. Remove value, use valP directly. simplify fx_addnumber
66 handling. Remove zero addend specialcases.
67 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
68 the addend fixup specialcase.
69 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
71 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
73 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
74 in the RELOC_EXPANSION_POSSIBLE case.
76 2003-06-11 Alan Modra <amodra@bigpond.net.au>
78 * config/tc-i960.c (line_comment_chars): Add '#'.
79 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
81 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
83 * po/Make-in (DESTDIR): New.
84 (install-data-yes): Support $(DESTDIR).
85 (uninstall): Likewise.
87 2003-06-11 Alan Modra <amodra@bigpond.net.au>
89 * Makefile.am: Run "make dep-am".
90 * Makefile.in: Regenerate.
91 * po/POTFILES.in: Regenerate.
93 2003-06-10 Doug Evans <dje@sebabeach.org>
95 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
97 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
98 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
99 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
101 2003-06-10 Alan Modra <amodra@bigpond.net.au>
102 Gary Hade <garyhade@us.ibm.com>
104 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
105 (md_apply_fix3): Special case lq insn.
107 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
109 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
110 lists. Allow single-register ranges.
112 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
114 * config/tc-h8300.c (h8300sxnmode): New.
115 (md_pseudo_table): Add .h8300sxn entry.
117 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
119 * NEWS: Updated for the new -n option for the i386 assembler.
121 * config/tc-i386.c (optimize_align_code): New.
122 (md_shortopts): Add 'n'.
123 (md_parse_option): Handle 'n'.
124 (md_show_usage): Add '-n'.
126 * config/tc-i386.h (optimize_align_code): Declared.
127 (md_do_align): Optimize code alignment only if optimize_align_code
130 * doc/as.texinfo: Add the new -n option.
132 * doc/c-i386.texi: Document the new -n option.
134 2003-06-07 Richard Henderson <rth@redhat.com>
136 * doc/as.texinfo: Document .cfi_rel_offset.
138 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
139 (cfi_add_CFA_offset): Detect invalid offsets.
140 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
141 (cfi_add_CFA_restore_state): Restore it.
142 (CFI_rel_offset): New.
143 (cfi_pseudo_table): Add it.
144 (dot_cfi): Handle it.
146 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
148 * app.c (do_scrub_chars): Add states 14 and 15 to handle
151 2003-06-05 Michael Snyder <msnyder@redhat.com>
153 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
154 (build_bytes): Ditto.
156 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
158 * config/tc-h8sx.c (DMODE): Remove.
159 (colonmod24): Don't choose a default if the operand is a 16-bit
161 (fix_operand_size): New function.
162 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
163 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
165 2003-06-05 Michal Ludvig <mludvig@suse.cz>
167 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
168 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
169 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
170 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
171 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
172 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
173 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
174 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
175 (cfi_pseudo_table): New directives .cfi_return_column,
176 .cfi_restore, .cfi_undefined, .cfi_same_value,
177 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
178 (dot_cfi, output_cfi_insn): Handle new directives.
179 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
180 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
181 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
183 2003-06-04 Richard Henderson <rth@redhat.com>
185 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
187 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
189 2003-06-04 Richard Henderson <rth@redhat.com>
191 * config/tc-alpha.c (s_alpha_usepv): New.
192 (md_pseudo_table): Add it.
193 (alpha_cfi_frame_initial_instructions): New.
194 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
195 (tc_cfi_frame_initial_instructions): New.
196 * doc/c-alpha.texi: Document .usepv.
198 2003-06-04 Jakub Jelinek <jakub@redhat.com>
200 * as.c (show_usage): Document --execstack and --noexecstack.
201 (parse_args): Add --execstack and --noexecstack.
202 (main): Create .note.GNU-stack section if --execstack or
203 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
204 * as.h (flag_execstack, flag_noexecstack): New.
206 2003-06-03 Chris Demetriou <cgd@broadcom.com>
208 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
209 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
210 (OPTION_MISC_BASE): New defines.
211 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
212 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
213 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
214 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
215 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
216 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
217 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
218 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
219 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
220 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
221 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
222 (OPTION_TRAP): Redefine in terms of new defines.
223 (md_longopts): Reorder entries.
225 2003-05-14 Michael Snyder <msnyder@redhat.com>
226 From Bernd Schmidt <bernds@redhat.com>
227 and Michael Snyder <msnyder@redhat.com>
228 and Alexandre Oliva <aoliva@redhat.com>
229 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
230 * config/tc-h8300.h: Ditto.
232 2003-06-03 Nick Clifton <nickc@redhat.com>
234 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
235 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
236 before calling bfd_reloc_type_lookup.
238 2003-06-02 Alan Modra <amodra@bigpond.net.au>
240 * read.c (emit_expr): Set dot_value.
241 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
243 2003-06-02 Alan Modra <amodra@bigpond.net.au>
245 * macro.c (sub_actual): Don't lose string if it turns out that
246 &string wasn't an arg.
248 2003-05-31 Richard Henderson <rth@redhat.com>
250 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
251 (cfi_finish): Set flag_traditional_format around .eh_frame data.
253 2003-05-29 Richard Henderson <rth@redhat.com>
255 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
256 (all_frame_data, plast_frame_data, cur_frame_data): New.
257 (s_alpha_ent): Record data for dwarf2 cfi.
258 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
259 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
260 * config/tc-alpha.h (md_end): New.
261 (DWARF2_DEFAULT_RETURN_COLUMN): New.
262 (DWARF2_CIE_DATA_ALIGNMENT): New.
264 2003-05-29 Nick Clifton <nickc@redhat.com>
266 * configure.in: Add i386-*-freebsd* entry.
267 * configure: Regenerate.
269 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
271 * config/tc-m32r.c: Amend comment to refer to Renesas
273 2003-05-27 Richard Henderson <rth@redhat.com>
275 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
277 (current_location): Use symbol_temp_new_now.
278 * stabs.c (s_stab_generic): Use symbol_temp_new.
279 * symbols.c (temp_label_name): Remove.
280 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
282 2003-05-27 Richard Henderson <rth@redhat.com>
284 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
285 * as.c (main): Always call cfi_finish.
286 * config/tc-i386.c (x86_dwarf2_return_column): New.
287 (x86_cie_data_alignment): New.
288 (md_begin): Set them.
289 (tc_x86_cfi_init): Remove.
290 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
291 return int, not unsigned long; don't as_bad here.
292 (tc_x86_frame_initial_instructions): Streamline; use
294 * config/tc-i386.h (tc_cfi_init): Remove.
295 (DWARF2_DEFAULT_RETURN_COLUMN): New.
296 (DWARF2_CIE_DATA_ALIGNMENT): New.
298 2003-05-27 Richard Henderson <rth@redhat.com>
300 * symbols.c (temp_label_name): New.
301 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
302 (symbol_set_value_now): New.
303 * symbols.h: Prototype them.
304 * dwarf2dbg.c: Use them.
305 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
307 2003-05-23 Jason Eckhardt <jle@rice.edu>
309 * config/tc-i860.c (target_xp): Declare variable.
310 (OPTION_XP): Declare macro.
311 (md_longopts): Add option -mxp.
312 (md_parse_option): Set target_xp.
313 (md_show_usage): Add -mxp usage.
314 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
315 (md_assemble): Don't try expansions if XP_ONLY is set.
316 * doc/c-i860.texi: Document -mxp option and i860XP support.
318 2003-05-23 Eric Christopher <echristo@redhat.com>
320 * config/tc-mips.c (macro_build_jalr): Warning patrol.
322 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
324 * config/tc-mips.c (append_insn): Use actual relocation size for new
325 fixp's. Don't relax overflow checking for partial_inplace relocations.
326 Use the actual relocation type in combined relocs, not just the type
328 (macro_build_jalr): Use actual relocation size for new fix.
329 (s_cpsetup, s_gpdword): Likewise.
331 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
333 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
335 2003-05-22 Nick Clifton <nickc@redhat.com>
337 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
338 section relative offsets for relocs that will not be based on the
340 (xstormy16_md_apply_fix3): Remove previous patch to this
343 2003-05-07 Eric Christopher <echristo@redhat.com>
345 * config/tc-mips.c (mips_abicalls): New variable.
346 (md_parse_option): Use.
349 (mips_elf_final_processing): Set EF_MIPS_PIC and
350 EF_MIPS_CPIC dependent on above.
352 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
354 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
356 2003-05-21 Nick Clifton <nickc@redhat.com>
358 * config/obj-elf.c: Include dwarf2dbg.h.
359 (elf_pseudo_tab): Add .file and .loc.
360 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
361 * config/tc-arm.c: Likewise.
362 * config/tc-h8300.c: Likewise.
363 * config/tc-hppa.c: Likewise.
364 * config/tc-ia64.c: Likewise.
365 * config/tc-m68hc11.c: Likewise.
366 * config/tc-m68k.c: Likewise.
367 * config/tc-mmix.c: Likewise.
368 * config/tc-mn10300.c: Likewise.
369 * config/tc-ppc.c: Likewise.
370 * config/tc-sh.c: Likewise.
371 * config/tc-sparc.c: Likewise.
372 * config/tc-v850.c: Likewise.
373 * config/tc-frv.c: Likewise, and remove redundant inclusion of
375 * config/tc-ip2k.c: Likewise.
376 * config/tc-iq2000.c: Likewise.
377 * config/tc-xstormy16.c: Likewise.
378 * config/tc-xtensa.c: Likewise.
379 * Makefile.am: Regenerate dependencies.
380 * Makefile.in: Regenerate.
381 * aclocal.m4: Regenerate.
382 * config.in: Regenerate.
383 * configure: Regenerate.
384 * po/POTFILES.in: Regenerate.
385 * po/gas.pot: Regenerate.
387 2003-05-21 Nick Clifton <nickc@redhat.com>
389 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
390 BFD_ASSEMBLER targets.
391 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
392 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
393 defining BFD_ASSEMBLER.
395 2003-05-20 Michal Ludvig <mludvig@suse.cz>
397 * as.c (main): Remove tc_cfi_init().
398 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
400 (cfi_pseudo_table): Add "cfi_register" entry.
401 (cfi_make_insn): Handle CFA_register.
402 (cfi_output_insn): Ditto.
404 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
405 (dot_cfi_endproc): Reuse already emitted CIEs.
406 * testsuite/gas/cfi/cfi-i386.d: New pattern.
407 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
409 2003-05-20 Nick Clifton <nickc@redhat.com>
411 * config/tc-xstormy16.c: Include dwarf2dbg.h.
412 (md_pseudo_table): Add entries for .loc and .line.
414 2003-05-20 Alan Modra <amodra@bigpond.net.au>
416 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
418 (dot_cfi_endproc): Avoid C99 construct.
420 2003-05-20 Michal Ludvig <mludvig@suse.cz>
422 * dw2gencfi.c, dw2gencfi.h: New files.
423 * config/tc-i386.c (tc_x86_cfi_init): New function.
424 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
425 * as.c (parse_args): Set verbose flag on --verbose.
426 (main): Call tc_cfi_init()/cfi_finish().
427 * as.h (verbose): New external variable.
428 * read.c (pobegin): Insert CFI pops to the list.
429 * symbols.c (local_symbol_make): Make symbol external.
430 * symbols.h (local_symbol_make): New prototype.
431 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
432 * Makefile.in: Regenerate.
433 * doc/as.texinfo: Added node "CFI directives" with description of
434 all implemented .cfi_* directives.
435 * doc/Makefile.in: Regenerate.
436 * po/POTFILES.in: Regenerate.
438 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
440 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
442 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
444 2003-05-18 Jason Eckhardt <jle@rice.edu>
446 * config/tc-i860.c (i860_process_insn): Initialize fc after
447 each opcode mismatch.
449 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
451 * configure.in: Accept i[3-7]86 variants.
452 * configure: Regenerate.
454 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
456 * config/tc-mips.h: Fix comment formatting.
458 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
460 * read.c (old_buffer, old_input, old_limit): Remove variables.
461 (read_a_source_file): Delete label contin.
462 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
463 input as with macros, instead of in separate old_* variables.
464 Zero-terminate string being scrubbed.
466 2003-05-12 Nick Clifton <nickc@redhat.com>
468 * config/tc-xstormy16.c (skipping_fptr): New local variable.
469 (md_assemble): Reset skipping_fptr.
470 (md_operand): If @fptr() is followed by a minus sign, set
471 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
472 @fptr is detected, ignore it and reset skipping_fptr.
474 2003-05-11 Jason Eckhardt <jle@rice.edu>
476 * config/tc-i860.c (MAX_FIXUPS): Define.
477 (struct i860_fi fi[]): New struct.
478 (struct i860_it the_insn): Add above as member and move fields
479 exp, reloc, pcrel and fup into i860_fi.
480 (md_assemble): Replace all instances of exp, reloc, pcrel
481 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
482 Add a loop to possibly emit multiple fix-ups for each insn.
483 (i860_process_insn): Likewise.
484 (i860_get_expression): Likewise.
485 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
487 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
489 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
491 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
493 * config/tc-ia64.c (alias_hash): New.
494 (alias_name_hash): New.
495 (secalias_hash): New.
496 (secalias_name_hash): New.
497 (md_pseudo_table): Add "secalias".
498 (md_begin): Initialize alias_hash, alias_name_hash,
499 secalias_hash and secalias_name_hash.
501 (dot_alias): Implement .alias and .secalias directives.
503 (ia64_adjust_symtab): New.
505 (ia64_frob_file): New.
507 * config/tc-ia64.h (ia64_adjust_symtab): New.
508 (tc_adjust_symtab): Defined.
509 (ia64_frob_file): New.
510 (tc_frob_file): Defined.
512 2003-05-07 Dmitry Diky <diwil@mail.ru>
514 * tc-msp430.c: Add missing lines to known cpus list.
516 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
518 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
519 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
520 * config.in, configure: Rebuilt.
522 2003-05-05 H.J. Lu <hjl@gnu.org>
524 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
525 howto->partial_inplace is false.
527 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
529 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
530 symbol_used_in_reloc_p check.
531 (md_apply_fix3): Remove check for howto->pcrel_offset.
533 2003-05-03 H.J. Lu <hjl@gnu.org>
535 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
536 fatal error for unknown section attribute.
538 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
539 unknown section attribute.
540 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
541 * config/tc-ppc.c (ppc_section_letter): Likewise.
543 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
544 (ia64_elf_section_type): Accept "unwind".
546 2003-05-02 H.J. Lu <hjl@gnu.org>
548 * read.h (demand_copy_string): New.
550 * config/tc-alpha.c (demand_copy_string): Removed.
552 2003-05-02 Michael Snyder <msnyder@redhat.com>
554 * write.h (FAKE_LABEL_NAME): Allow override
555 (for targets that like eg. a leading dot in a local label).
557 2003-05-02 Nick Clifton <nickc@redhat.com>
559 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
560 addend with the symbol's value for pc-relative relocations against
561 a defined symbol - this will be done automatically.
563 2003-05-01 H.J. Lu <hjl@gnu.org>
565 * config/obj-elf.c (obj_elf_type): Accept "notype" and
568 2003-05-01 H.J. Lu <hjl@gnu.org>
570 * config/tc-ia64.h (tc_canonicalize_section_name): New.
572 * config/obj-elf.c (obj_elf_section_name): Call
573 tc_canonicalize_section_name if it is defined.
575 2003-05-01 H.J. Lu <hjl@gnu.org>
577 * config/tc-ia64.c (ia64_check_label): New.
578 * config/tc-ia64.h (tc_check_label): New.
580 * read.c (read_a_source_file): Call tc_check_label after
581 creating a user-defined label if defined.
583 2003-05-02 Alan Modra <amodra@bigpond.net.au>
585 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
586 -be and split strings to below 509 bytes in length.
588 2003-05-01 Christian Groessler <chris@groessler.org>
590 * expr.h: Fix comments in operatorT typedef.
591 * config/tc-z8k.c: Add 2003 to copyright message.
592 Fold s_segm() and s_unseg() into one function s_segm(parm) which
593 decides by the parameter.
594 (md_begin): Don't set linkrelax. Only set Z8002 default if no
595 command line argument was given to select the intended
597 (get_interrupt_operand): Warn if NOP type code is emitted.
598 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
599 (apply_fix): Call newfix with additional 'size' parameter.
600 (build_bytes): Remove unused variable 'nib'. Detect overflow in
601 4 bit immediate arguments.
602 (md_longopts): Add 'linkrelax' option.
603 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
604 variable when 'linkrelax' command line option is specified.
605 (md_show_usage): Display 'linkrelax' option.
606 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
608 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
610 2003-04-30 H.J. Lu <hjl@gnu.org>
612 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
613 (ia64_float_to_chars): Likewise.
614 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
615 and ia64_float_to_chars by tc_segment_info_data.endian from
616 the current segment if byteorder == -1.
617 (md_begin): Call dot_byteorder to set target_big_endian.
618 (md_atof): Call ia64_float_to_chars to convert floating point.
619 (ia64_float_to_chars_bigendian): New function.
620 (ia64_float_to_chars_littleendian): Likewise.
621 (ia64_elf_section_change_hook): Likewise.
623 * config/tc-ia64.h (ia64_number_to_chars): New.
624 (md_number_to_chars): Changed to (*ia64_number_to_chars)
625 (ia64_elf_section_change_hook): New.
626 (md_elf_section_change_hook): Defined.
627 (ia64_segment_info_type): New struct.
628 (TC_SEGMENT_INFO_TYPE): Defined.
630 2003-04-30 H.J. Lu <hjl@gnu.org>
632 * config/tc-ia64.c (md_section_align): Deleted.
634 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
635 (md_section_align): New.
637 2003-04-30 H.J. Lu <hjl@gnu.org>
639 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
641 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
643 (md_atof): Add 6 byte padding of zero for real16.
645 2003-04-29 Nick Clifton <nickc@redhat.com>
647 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
648 start of a version name.
650 2003-04-28 Chris Demetriou <cgd@broadcom.com>
652 * configure.in (mips-*-*n*bsd*): Replace with...
653 (mips-*-netbsd*, mips-*-openbsd*): These.
654 * configure: Regenerate.
656 2003-04-28 H.J. Lu <hjl@gnu.org>
658 * config/tc-hppa.c (hppa_symbol_chars): New.
659 * config/tc-hppa.h (tc_symbol_chars): Likewise.
661 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
663 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
665 2003-04-25 Chris Demetriou <cgd@broadcom.com>
667 * NEWS: Belatedly mention support for MIPS32 Release 2.
669 2003-04-24 Eric Christopher <echristo@redhat.com>
671 * config/tc-mips.c (nopic_need_relax): Revert previous
674 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
676 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
677 * config/tc-h8300.c (dwarf2dbg.h): Include
678 (md_pseudo_table): Handle .loc and .file
679 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
680 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
681 * Makefile.in: Regenerate.
683 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
685 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
686 (md_pseudo_table): Add h8300hn, h8300sn.
687 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
688 * doc/c-h8300.texi : Add documentation for new machine directives.
690 2003-04-24 Nick Clifton <nickc@redhat.com>
692 * config/tc-ppc.c (ppc_symbol_chars): Define.
693 * config/tc-ppc.h (tc_symbol_chars): Define.
695 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
697 * config/tc-sh.c: Amend comment to refer to SuperH.
698 * config/tc-sh.h: Likewise.
699 (LISTING_HEADER): Amend to refer to SuperH.
700 * config/tc-sh64.c: Change comment to refer to SuperH.
701 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
702 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
703 * doc/c-sh.texi: Amend to refer to SuperH.
704 Add SuperH architecture documentation references.
705 * doc/c-sh64.texi: Change to refer to SuperH.
707 2003-04-23 H.J. Lu <hjl@gnu.org>
709 * app.c (do_scrub_chars): More checks for valid labels.
711 2003-04-22 H.J. Lu <hjl@gnu.org>
713 * app.c (do_scrub_chars): Check for valid label.
715 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
717 * doc/as.texinfo: Replace references to Mitsubishi M32R with
718 references to Renesas M32R.
719 * doc/c-m32r.texi: Likewise.
721 2003-04-21 Richard Henderson <rth@redhat.com>
723 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
724 (out_file_list): Assign non-null filename after generating error.
726 2003-04-18 Jakub Jelinek <jakub@redhat.com>
728 * ehopt.c (check_eh_frame): For aug_size == 0
729 in state_seeing_aug_size state skip the state_skipping_aug
732 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
734 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
736 * doc/c-h8500.texi: Likewise.
737 * doc/c-sh.texi: Likewise.
738 * doc/c-sh64.texi: Likewise.
739 * doc/h8.texi: Likewise.
740 * config/tc-h8300.c: Likewise.
741 * config/tc-h8300.h: Likewise.
742 * config/tc-h8500.c: Likewise.
743 * config/tc-h8500.h: Likewise.
744 * config/tc-sh.c: Likewise.
745 * config/tc-sh.h: Likewise.
746 * config/tc-sh64.c: Likewise.
747 * config/tc-sh64.h: Likewise.
749 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
751 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
752 * config/tc-mips.c: Use signed add for n32 address arithmetic.
753 (append_insn): When filling delay slots with instructions
754 that have fixups that tc_gen_reloc might consider modifyable
755 in variant frags, start a new frag.
756 (load_address): Generate GOT_DISP with of without offset
757 depending on whether symbol is local. For -xgot, use
758 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
759 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
760 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
761 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
762 <ld_st>: In NewABI with small got, always use
763 GOT_PAGE/GOT_OFST, with the latter in the load/store
764 instruction. With big got, use GOT_HI16/GOT_LO16 or
766 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
767 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
768 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
769 (md_convert_frag): Use memmove for safe copying of overlapping
772 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
774 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
775 -mlong, -mshort-double and -mlong-double options; use table @code.
776 (M68HC11-Syntax): Update to document 68HC12 operands.
777 (M68HC11-Modifiers): New section for operand modifiers.
778 (M68HC11-Directives): New section for specific assembler directives.
779 (M68HC11-Branch): Fix Overfull hbox error.
781 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
783 * config/tc-mips.c (macro): Add comments explaining the rationale
786 2003-04-09 Chris Demetriou <cgd@broadcom.com>
788 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
789 constant address that Alexandre took out by accident. Reject
790 64-bit addresses that are not sign extensions of 32 bits only if
791 we don't support 64-bit address constants.
793 2003-04-09 Alan Modra <amodra@bigpond.net.au>
795 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
797 2003-04-08 Nick Clifton <nickc@redhat.com>
799 * as.c (perform_an_assembly_pass): If using cgen, call
801 * cgen.c (gas_cgen_begin): New function. If
802 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
803 otherwise call cgen_clear_signed_overflow_ok.
804 * cgen.h: Prototype gas_cgen_begin.
806 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
808 * write.c (write_relocs): Remove unused variable.
810 2003-04-06 Chris Demetriou <cgd@broadcom.com>
812 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
813 (macro): Use new macro to decide whether to emit constant address
814 as 32 or 64 bits if addresses are 32-bit wide but registers are
817 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
819 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
820 (M6811_OP_PAGE_ADDR): New internal define.
821 (get_operand): New modifier %page and %addr to obtain page and
822 address part of a far-function.
823 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
824 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
826 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
827 (find_opcode): Add comment.
828 (md_estimate_size_before_relax): Force relocation of
829 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
830 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
831 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
832 on the symbol itself so that DWARF2 strings are merged correctly.
834 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
836 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
837 default tic4x target format to 'coff2-tic4x'.
838 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
840 * config/tc-tic4x.h: Ditto
842 2003-04-03 Nick Clifton <nickc@redhat.com>
844 * NEWS: Mention support for Xtensa architecture.
846 2003-04-02 Philip Blundell <philb@gnu.org>
848 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
850 2003-04-02 Chris Demetriou <cgd@broadcom.com>
852 * config/tc-mips.c (macro2): Adjust implementation of
853 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
854 in the case where the source and destination registers
857 2003-04-01 Bob Wilson <bob.wilson@acm.org>
859 * Makefile.am (CPU_TYPES): Add xtensa.
860 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
861 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
862 (xtensa-relax.o): New target.
864 * Makefile.in: Regenerate.
865 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
866 extra_objects for xtensa targets.
867 * configure: Regenerate.
868 * write.c (write_object_file): Add new md_post_relax_hook.
869 * config/tc-xtensa.c: New file.
870 * config/tc-xtensa.h: Likewise.
871 * config/xtensa-istack.h: Likewise.
872 * config/xtensa-relax.c: Likewise.
873 * config/xtensa-relax.h: Likewise.
874 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
875 * doc/Makefile.in: Regenerate.
876 * doc/all.texi: Set new XTENSA variable.
877 * doc/as.texinfo: Set new Xtensa variable. Describe
878 Xtensa-specific options. Define line comment character for
879 Xtensa. Add Xtensa processors to list of ELF targets where
880 alignment is specified in bytes. Add new Xtensa-Dependent node.
881 Add acknowledgements for those contributing to the Xtensa port.
882 * doc/internals.texi: Describe new md_post_relax_hook.
883 * doc/c-xtensa.texi: New file.
885 2003-04-01 Nick Clifton <nickc@redhat.com>
886 Richard Earnshaw <rearnsha@arm.com>
888 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
889 (ARM_ARCH_IWMMXT): Simplify.
890 (insns): Place iwmmx instructions in correct place in table.
891 (arm_add_note): New function: Add a note entry to a .note section.
892 (md_begin): Make the default architecture be unknown.
893 Suppress the creation of an arm note section.
895 2003-03-26 Eric Christopher <echristo@redhat.com>
897 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
899 2003-03-25 Stan Cox <scox@redhat.com>
900 Nick Clifton <nickc@redhat.com>
902 Contribute support for Intel's iWMMXt chip - an ARM variant:
904 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
905 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
906 (enum wreg_type, enum iwmmxt_insn_type): New types.
907 (wr_register, wc_register, wcg_register): New macros.
908 (iwmmxt_table): New variable.
909 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
910 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
911 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
912 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
913 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
914 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
915 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
916 cp_byte_address_offset, cp_byte_address_required_here,
917 check_iwmmxt_insn): New functions.
918 (asm_opcode_insns): Add iWMMXt instructions.
919 (md_begin): Set the mach value for iWMMXt targets. Create a note
920 section to identify iwmmxt binaries.
921 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
922 * doc/c-arm.texi: Document the support for the iWMMXt.
923 * NEWS: Mention new support.
925 2003-03-24 Daniel Néri <dne@mayonnaise.net>
927 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
928 * doc/all.texi: Likewise.
929 * doc/c-tic54x.texi: Likewise.
931 2003-03-21 Andreas Schwab <schwab@suse.de>
933 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
934 avoid aliasing issue.
936 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
938 * config/tc-s390.c (s390_arch_size): Initialize to zero.
939 (current_arch_mask): Rename to current_mode_mask.
940 (current_arch_requested): Remove variable.
941 (current_cpu): New variable.
942 (init_default_arch): Set defaults values for s390_arch_size,
943 current_mode_mask and current_cpu.
944 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
945 (md_begin): Replace current_arch_mask by current_cpu.
946 (md_assemble): Adapt check and error message to current_mode_mask and
949 2003-03-09 James E Wilson <wilson@tuliptree.org>
951 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
952 * read.c (get_line_sb): Return end of line character or '\n' if
953 it is zero or non-existent.
955 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
957 * config/tc-mips.c (mips_validate_fix): New function.
958 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
959 (mips_validate_fix): Declare.
961 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
963 * Reverted 2003-03-02's patch.
965 2003-03-11 Steve Ellcey <sje@cup.hp.com>
967 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
968 (TC_DWARF2_EMIT_OFFSET): Provide default.
969 (out_debug_aranges, out_debug_info): Use it.
970 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
971 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
972 (ia64_gen_real_reloc_type): ... here.
973 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
975 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
977 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
978 (s_mips_ent): Likewise.
980 2003-03-04 Dmitry Diky <diwil@mail.ru>
982 * config/tc-msp430.c (mcu_types): Add recently announced x1122
983 and x1123 devices, add missed x437.
984 (md_show_usage): Sort device list.
986 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
988 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
989 (md_begin): Use preset_target_arch.
990 (md_longopts): Make isa option unconditional.
991 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
992 set preset_target_arch.
993 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
994 by -S_GET_VALUE (fixP->fx_subsy).
995 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
997 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
998 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1000 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1002 * config/tc-mips.c (append_insn): Add handling of
1003 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1004 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1005 misaligned address and reange overflow.
1006 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1007 earlier warnings about misaligned address and reange overflow.
1008 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1009 (md_apply_fix): Likewise. Fix warning output.
1010 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1011 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1012 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1014 2003-02-21 Nick Clifton <nickc@redhat.com>
1016 * NEWS: Mention availability of test generator program.
1018 2003-02-21 Miles Bader <miles@gnu.org>
1020 * config/tc-v850.c (system_registers): Add v850e debug registers.
1021 (system_register_name): Accept up to 27 (the last v850e sys register).
1023 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1025 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1026 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1027 Capitalize section headings consistently. Format index entries more
1028 consistently. Unconditionalize text about whether text and data
1029 sections are alterable. Use @ifnottex for alternatives to @tex output
1030 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1031 .size and .type directives. Be more polite about bad bug reports.
1032 Move FDL into a separate file.
1033 * doc/fdl.texi: New file.
1035 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1037 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1038 (macro): Check it to decide whether a new frag is needed.
1039 (my_getSmallExpression): Set it.
1041 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1043 * cgen.c: Fix typo: intial -> initial.
1045 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1047 * app.c (do_scrub_chars): Handle '||' in two states.
1049 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1051 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1052 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1054 2003-02-11 Uwe Stieber <uwe@wwws.de>
1056 * configure.in: Add support for kaOS as cross build target system.
1057 * configure: Regenerated.
1059 2003-02-10 Nick Clifton <nickc@redhat.com>
1061 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1062 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1063 bfd_mach_arm_ep9312 machine number.
1065 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1067 * config/tc-mips.c (reloc_needs_lo_p): New function.
1068 (fixup_has_matching_lo_p): New function.
1069 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1070 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1071 if that fixup already has a matching %lo(). Don't call frag_wane here.
1072 (macro): Call frag_wane here if the last unmatched hi was in the
1074 (pic_need_relax): New function, split out from...
1075 (md_estimate_size_before_relax): ...here.
1076 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1077 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1079 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1081 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1083 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1085 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1088 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1090 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1091 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1092 accept x@got+off etc.
1093 (md_assemble): Handle TLS relocs.
1094 (ppc_force_relocation): Force for all TLS relocs.
1095 (ppc_fix_adjustable): Likewise.
1096 (md_apply_fix3): Handle TLS relocs.
1098 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1100 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1101 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1103 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1105 * config/tc-mips.c (enum small_ex_type): Remove.
1106 (imm_unmatched_hi): Remove.
1107 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1108 argument from calls to append_insn.
1109 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1111 (macro_build): Update append_insn calls.
1112 (mips16_macro_build, macro_build_lui): Likewise.
1113 (mips_ip): Rework handling of small expressions. Move explicit
1114 relocation handling into my_getSmallExpression. Assume that the
1115 value of 'o' operands is zero if there is only one bracketed
1117 (percent_op): Make constant. Record the BFD relocation code
1118 associated with each operator.
1119 (my_getSmallParser, my_getPercentOp): Remove.
1120 (parse_relocation): New function.
1121 (my_getSamllExpression): Rework. Fill in relocations here
1122 rather than in mips_ip.
1124 2003-01-29 Nick Clifton <nickc@redhat.com>
1126 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1127 assembler's handling of # <linenum> "<filename>" directives work.
1129 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1131 * dwarf2dbg.c: Include filenames.h.
1132 (struct file_entry): Make filename const char *.
1133 (dirs, dirs_in_use, dirs_allocated): New variables.
1134 (get_filenum): Add NUM argument. Build directory table.
1135 (dwarf2_where): Adjust caller.
1136 (dwarf2_directive_file): Use get_filenum to allocate
1137 slot in file and directory tables.
1138 (dwarf2_directive_loc): Recreate full filename from
1139 directory and filename part if needed for listing.
1140 (out_file_list): Output directory table.
1141 Output main source file dirname before its filename.
1143 2003-01-28 Dmitry Diky <diwil@mail.ru>
1145 * config/tc-msp430.c: Replace occurences of 'tolower' with
1148 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1150 * config/tc-ia64.c (dot_vframesp): Correct error message.
1151 (dot_vframepsp): Ditto.
1153 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1155 * configure.in (em): Set to irix on all Irix systems.
1156 * configure: Rebuilt.
1157 * config/te-irix.h: New file.
1158 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1159 whether to use Irix-specific 64-bit format.
1161 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1163 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1165 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1167 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1168 (tc_gen_reloc): Handle TLS relocs.
1169 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1170 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1172 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1173 (obj_elf_type): Handle tls_object.
1175 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1177 * config/tc-s390.c (s390_tls_suffix): New function.
1178 (elf_suffix_type): Add suffix enums for TLS relocations.
1179 (s390_elf_suffix): Add suffix strings for TLS relocations.
1180 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1182 (md_gather_operands): Map new instruction operand/elf suffix
1183 combinations for TLS to bfd relocations.
1184 (tc_s390_fix_adjustable): Add new TLS relocations.
1185 (tc_s390_force_relocation): Likewise.
1186 (md_apply_fix3): Likewise.
1188 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1190 * as.h: Update copyright date.
1191 * symbols.c: Likewise.
1192 * config/tc-d10v.h: Likewise.
1193 * config/tc-fr30.h: Likewise.
1194 * config/tc-i960.h: Likewise.
1195 * config/tc-mips.h: Likewise.
1197 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1198 (MD_APPLY_SYM_VALUE): Move.
1200 2003-01-23 Nick Clifton <nickc@redhat.com>
1202 * NEWS: Announce sh2e support.
1205 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1206 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1207 (sh_elf_final_processing): Handle arch_sh2e.
1209 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1211 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1212 * symbols.h (S_FORCE_RELOC): Likewise.
1213 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1214 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1215 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1216 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1217 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1218 * write.c (generic_force_reloc): New function.
1219 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1220 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1221 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1222 * as.h (generic_force_reloc): Declare.
1223 * doc/internals.texi (S_FORCE_RELOC): Update.
1224 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1226 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1227 generic_force_reloc.
1228 (alpha_fix_adjustable): Likewise.
1229 * config/tc-arm.c (arm_force_relocation): Likewise.
1230 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1231 * config/tc-frv.c (frv_force_relocation): Likewise.
1232 * config/tc-i386.c (md_apply_fix3): Likewise.
1233 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1234 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1235 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1236 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1237 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1238 * config/tc-mips.c (mips_force_relocation): Likewise.
1239 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1240 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1241 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1242 * config/tc-sh.c (sh_force_relocation): Likewise.
1243 (md_pcrel_from_section): Likewise.
1244 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1245 * config/tc-v850.c (v850_force_relocation): Likewise.
1246 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1247 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1248 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1249 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1251 * config/tc-d10v.c (d10v_force_relocation): Delete.
1252 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1253 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1254 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1255 * config/tc-fr30.c (fr30_force_relocation): Delete.
1256 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1257 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1258 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1259 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1260 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1261 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1262 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1263 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1264 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1265 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1266 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1267 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1268 * config/tc-i386.c (i386_force_relocation): Delete.
1269 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1271 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1272 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1273 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1274 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1276 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1277 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1279 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1281 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1282 sh64_elf_section_data.
1283 * config/tc-sh64.h: Include elf32-sh64.h.
1284 * config/tc-m68hc11.c: Don't include stdio.h.
1285 (md_show_usage): Fix missing continuation.
1286 * Makefile.am: Run "make dep-am".
1287 * Makefile.in: Regenerate.
1289 2003-01-22 Nick Clifton <nickc@redhat.com>
1291 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1293 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1295 * configure.in: Handle *-*-aros*.
1296 * configure: Regenerated from configure.in.
1298 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1300 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1301 gotplt and pltoff relocations.
1302 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1303 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1304 gotplt and pltoff to bfd relocations.
1305 (md_gather_operands): Map new instruction operand/elf suffix
1306 combinations to bfd relocations.
1307 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1308 to the list of unadjustable relocations.
1309 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1310 and pltoff relocations.
1311 (md_apply_fix3): Add the new relocations.
1313 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1315 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1316 with a subsy symbol.
1318 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1320 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1321 of relocs for memory bank addressing.
1323 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1325 * config/tc-m68hc11.c (md_show_usage): Update usage.
1326 (md_parse_option): Recognize -m68hcs12.
1327 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1329 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1331 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1333 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1335 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1337 * Makefile.am: Run "make dep-am".
1338 * Makefile.in: Regenerate.
1339 * po/POTFILES.in: Regenerate.
1341 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1343 * read.c (get_absolute_expr): New, split out from..
1344 (get_absolute_expression): ..here.
1345 * read.h (get_absolute_expr): Declare.
1346 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1347 Trim size to arch bits_per_address, and test for negative input
1348 via get_absolute_expr.
1350 2003-01-07 DJ Delorie <dj@redhat.com>
1352 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1354 (xstormy16_md_apply_fix3): Use adjustment.
1356 2003-01-02 Ben Elliston <bje@redhat.com>
1358 * configure.in: Add iq2000-elf target.
1359 * configure: Regenerate.
1360 * config/tc-iq2000.c: New file.
1361 * config/tc-iq2000.h: Likewise.
1362 * po/gas.pot: Regenerate.
1364 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1366 * config/tc-mips.c: Update copyright years to include 2003.
1367 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1368 Additionally, clean up their code slightly and clean up their
1371 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1373 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1375 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1377 * doc/Makefile.in: Regenerate.
1379 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1381 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1382 of .init and .fini sections for array initializers and finalizers.
1384 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1386 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1387 the "+D" operand, which will be used only by the disassembler.
1389 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1391 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1393 * configure: Regenerate.
1394 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1395 (macro_build): Handle "K" operand.
1396 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1397 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1398 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1399 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1400 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1401 (validate_mips_insn): Implement "+" as a way to extend the
1402 allowed operands, and implement "K", "+A", "+B", and "+C"
1404 (OPTION_MIPS32R2): New define.
1405 (md_longopts): Add entry for OPTION_MIPS32R2.
1406 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1407 (md_parse_option): Handle OPTION_MIPS32R2.
1408 (s_mipsset): Reimplement handling of ".set mipsN" options
1409 and add support for ".set mips32r2".
1410 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1411 (md_show_usage): Document "-mips32r2" option.
1412 * doc/as.texinfo: Document "-mips32r2" option.
1413 * doc/c-mips.texi: Likewise.
1415 2002-12-30 Dmitry Diky <diwil@mail.ru>
1417 * configure.in: Add msp430 target.
1418 * configure: Regenerate.
1419 * Makefile.am: Add msp430 target.
1420 * Makefile.in: Regenerate.
1421 * config/tc-msp430.c: New file: msp430 assembler.
1422 * config/tc-msp430.h: New file: target macros for msp430.
1423 * doc/Makefile.am: Add msp430 target.
1424 * doc/Makefile.in: Regenerate.
1425 * doc/as.texinfo: Include msp430 documenation.
1426 * doc/all.texi: Enable msp430 documentation.
1427 * doc/c-msp430.texi: New file: document msp430 specific features
1430 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1432 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1433 (dwarf2_finish): Use it.
1434 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1435 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1437 2002-12-20 DJ Delorie <dj@redhat.com>
1439 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1440 BFD_RELOC_XSTORMY16_12.
1442 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1444 * doc/as.texinfo (Invoking): Typo fix.
1445 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1447 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1449 * doc/c-alpha.texi: Fix typos.
1450 * doc/c-arm.texi: Likewise.
1451 * doc/c-d10v.texi: Likewise.
1452 * doc/c-i370.texi: Likewise.
1453 * doc/c-i960.texi: Likewise.
1454 * doc/c-ia64.texi: Likewise.
1455 * doc/c-mmix.texi: Likewise.
1456 * doc/c-ns32k.texi: Likewise.
1457 * doc/c-pdp11.texi: Likewise.
1458 * doc/c-pj.texi: Likewise.
1459 * doc/c-sh64.texi: Likewise.
1460 * doc/c-sparc.texi: Likewise.
1461 * doc/c-tic54x.texi: Likewise.
1462 * doc/c-v850.texi: Likewise.
1463 * doc/c-vax.texi: Likewise.
1464 * doc/internals.texi: Likewise.
1466 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1468 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1469 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1470 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1471 arrange not to issue warnings about use of AT when AT is not
1474 2002-12-17 Nick Clifton <nickc@redhat.com>
1476 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1477 prevent it being confused with -k.
1479 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1481 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1482 has already been set up, use it.
1484 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1486 * ChangeLog-9295: Fix a typo.
1488 * config/tc-d10v.c: Fix a comment typo.
1489 * config/tc-dlx.c: Likewise.
1490 * config/tc-h8300.h: Likewise.
1491 * config/tc-h8500.h: Likewise.
1492 * config/tc-mips.c: Likewise.
1493 * config/tc-s390.c: Likewise.
1494 * config/tc-sh.h: Likewise.
1495 * config/tc-tic80.h: Likewise.
1496 * config/tc-w65.h: Likewise.
1497 * config/tc-z8k.c: Likewise.
1498 * config/tc-z8k.h: Likewise.
1499 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1501 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1503 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1504 Simplify sign extension. Remove redundant unsigned < 0 test.
1505 * config/tc-i960.c (md_ri_to_chars): Prototype.
1506 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1507 (dump_literals): Init brarsym, and test later instead of isforce.
1509 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1510 (parse): Constify line and lineptr.
1511 (md_begin): Calculate endop here.
1513 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1515 * config/obj-vms.c: Formatting. Include fnctl.h.
1516 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1517 (Object_Record_Offset): Make it a size_t.
1518 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1519 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1520 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1521 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1522 (vms_fixup_data_section <data_size>): Add here instead.
1523 * config/e-criself.c: Fix typo in last change.
1525 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1527 * write.c (write_object_file): Fix signed/unsigned warning.
1528 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1529 * config/e-criself.c (criself_bfd_name): Prototype.
1530 * config/obj-aout.c (s_sect): Remove unused function.
1531 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1532 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1533 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1534 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1535 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1536 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1537 (vms_fixup_text_section <text_siz>): Likewise.
1538 (synthesize_data_segment <data_size>): Likewise.
1539 (vms_fixup_xtors_section <sect_no>): Likewise.
1540 (structure_count): Don't use implicit int type.
1541 * config/tc-a29k.c (insert_sreg): Prototype.
1542 (define_some_regs): Prototype, make static.
1543 (parse_operand): Likewise.
1544 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1545 (md_show_usage <stream>): Likewise.
1546 (md_section_align <segment>): Likewise.
1547 (md_convert_frag <all args>): Likewise.
1548 (md_estimate_size_before_relax <all args>): Likewise.
1549 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1550 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1551 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1552 (md_undefined_symbol <name>): Likewise.
1553 (md_convert_frag <all args>): Likewise.
1554 (write_long <opcode>): Likewise.
1555 (tc_gen_reloc <seg>): Likewise.
1556 (md_estimate_size_before_relax <all args>): Likewise.
1557 (md_apply_fix3 <seg>): Likewise.
1558 (s_d30v_align <ignore>): Likewise.
1559 (build_insn): Correct format string.
1560 (md_apply_fix3): Likewise.
1561 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1562 (md_undefined_symbol <name>): Likewise.
1563 (md_convert_frag <all args>): Likewise.
1564 (md_cgen_lookup_reloc <insn>): Likewise.
1565 (md_begin): Delete unused vars.
1566 (md_assemble): Likewise.
1567 (md_estimate_size_before_relax): Likewise.
1568 (fr30_relax_frag): #if 0 out, seems unused.
1569 (md_atof): Remove declaration of atof_ieee.
1570 (restore_colon): Prototype.
1571 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1572 (frv_find_in_vliw): Likewise.
1573 (frv_debug_tomcat): Likewise.
1574 (frv_adjust_vliw_count): Likewise.
1575 (frv_tomcat_shuffle): Likewise.
1576 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1577 frv_find_in_vliw call.
1578 (md_atof): Remove declaration of atof_ieee.
1579 * config/tc-h8500.c (cons): Delete declaration.
1580 (md_begin <opcode>): Constify.
1581 (displacement_size, immediate_size, absolute_size): Remove.
1582 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1583 (tc_crawl_symbol_chain <headers>): Likewise.
1584 (md_undefined_symbol <name>): Likewise.
1585 (tc_headers_hook <headers>): Likewise.
1586 (md_parse_option <c,arg>): Likewise.
1587 (md_show_usage <stream>): Likewise.
1588 (md_convert_frag <headers, seg>): Likewise.
1589 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1590 (md_atof): Remove declaration of atof_ieee.
1591 (tc_aout_fix_to_chars): Remove unused function.
1592 (parse_reg): Prototype.
1593 (parse_exp): Prototype.
1594 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1595 (parse_reglist): Prototype.
1596 (get_operand): Prototype.
1597 (get_operands): Prototype.
1598 (get_specific): Prototype. Make "this_index" signed.
1599 (check): Prototype, make static.
1601 (build_relaxable_instruction): Prototype, make static.
1602 (build_bytes): Prototype.
1603 (wordify_scb): Prototype.
1604 * config/tc-h8500.h (start_label): Declare.
1605 (tc_coff_sizemachdep): Declare.
1606 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1607 (i370_rmode <unused>): Likewise.
1608 (i370_csect <unused>): Likewise.
1609 (i370_dc <unused>): Likewise.
1610 (i370_ds <unused>): Likewise.
1611 (i370_elf_lcomm <unused>): Likewise.
1612 (i370_ltorg <ignore>): Likewise.
1613 (i370_using <ignore>): Likewise.
1614 (i370_drop <ignore>): Likewise.
1615 (i370_byte <ignore>): Likewise.
1616 (i370_tc <ignore>): Likewise.
1617 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1618 (md_convert_frag <all args>): Likewise.
1619 (md_undefined_symbol <name>): Likewise.
1620 (md_pcrel_from_section <sec>): Likewise.
1621 (tc_gen_reloc <seg>): Likewise.
1622 (i370_section_letter): #if 0 unused functions.
1623 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1624 (symbol_locate): Prototype.
1625 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1626 (md_number_to_disp, md_number_to_field): Remove.
1627 (md_apply_fix3): Correct format string and cast "fup".
1628 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1629 (s_endian <ignore>): Likewise.
1630 (md_undefined_symbol <name>): Likewise.
1631 (tc_crawl_symbol_chain <headers>): Likewise.
1632 (tc_set_bal_of_call): Likewise.
1633 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1634 (i960_handle_align <fragp>): Likewise.
1635 (i960_validate_fix <this_segment_type>): Likewise
1636 (tc_gen_reloc <section>): Likewise.
1637 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1638 (struct memS, struct regop): Forward declare.
1639 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1640 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1641 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1642 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1643 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1644 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1645 (md_number_to_field): Likewise.
1646 (md_number_to_disp): Remove unused function.
1647 (md_atof): Remove declaration of atof_ieee.
1648 (md_apply_fix3): Correct md_number_to_imm call.
1649 * config/tc-ip2k.c (md_assemble): Warning fix.
1650 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1651 (fill_insn <ignore>): Likewise.
1652 (debug_sym <ignore>): Likewise.
1653 (md_undefined_symbol <name>): Likewise.
1654 (m32r_scomm <ignore>): Likewise.
1655 (md_convert_frag <abfd>): Likewise.
1656 (md_cgen_lookup_reloc <insn>): Likewise.
1657 (m32r_record_hi16 <seg>): Likewise.
1658 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1659 (allow_m32rx): Prototype.
1660 (first_writes_to_seconds_operands): Prototype.
1661 (writes_to_pc): Prototype.
1662 (can_make_parallel): Prototype.
1663 (make_parallel): Prototype.
1664 (target_make_parallel): Prototype.
1665 (assemble_two_insns): Prototype.
1666 (m32r_record_hi16): Prototype.
1667 (md_atof): Remove declaration of atof_ieee.
1668 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1669 (m32r_force_relocation): Prototype.
1670 (m32r_elf_section_change_hook): Prototype.
1671 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1672 (md_show_usage): Fix signed/unsigned warning.
1673 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1674 (calcop): Ditto for reg_prefix var.
1675 (hexval): Add cast to fix signed/unsigned warning.
1676 (md_number_to_disp): Delete unused function.
1677 (md_number_to_field): Likewise.
1678 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1679 (match_name): Prototype.
1680 (get_bf2): Prototype.
1681 (get_bf_offset_expression): Prototype.
1682 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1683 (md_undefined_symbol <ignore>): Likewise.
1684 (md_create_short_jump <all args>): Likewise.
1685 (md_create_long_jump <all args>): Likewise.
1686 (md_convert_frag <abfd, sec>): Likewise.
1687 (md_apply_fix3 <segment>): Likewise.
1688 (md_section_align <segment>): Likewise.
1689 (md_pcrel_from_section <sec>): Likewise.
1690 (tc_gen_reloc <section>): Likewise.
1691 (reg_m, reg_n, immediate): Delete unused vars.
1692 (dump_literals): Fix signed/unsigned warning.
1693 (enter_literal): Likewise.
1694 (parse_imm): Likewise. Also fix format string.
1695 (parse_mem): Remove unused var.
1696 (md_assemble <LS>): Abort on unexpected inst.
1697 (md_atof): Remove declaration of atof_ieee.
1698 (md_parse_option): Remove unused vars.
1699 (md_apply_fix3): Fix format strings, cast args.
1700 (tc_gen_reloc): Delete unused var.
1701 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1702 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1703 (md_undefined_symbol <name>): Likewise.
1704 (md_convert_frag <abfd>): Likewise.
1705 (tc_gen_reloc <seg>): Likewise.
1706 (check_operand <insn>): Likewise.
1707 (md_convert_frag): Fix format strings.
1708 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1709 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1710 (md_atof): Remove declaration of atof_ieee.
1711 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1712 (md_apply_fix3): Fix bogus >>='s.
1713 (md_undefined_symbol): Delete unused var.
1714 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1715 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1716 (fake_opcode): Adjust for pj_opc_int_t change.
1717 (md_begin): Likewise.
1718 (md_assemble): Likewise.
1719 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1720 instead of non-existent third arg of parse_exp_save_ilp.
1721 (md_parse_option): Correct "little" and "big" calls.
1722 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1723 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1724 (tc_gen_reloc <section>): Likewise.
1725 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1726 (debug): Rewrite using VA_* macros.
1727 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1728 (md_convert_frag): Likewise.
1729 (md_parse_option): Likewise.
1730 (md_show_usage): Likewise.
1731 (md_undefined_symbol): Likewise.
1732 (tc_gen_reloc): Likewise.
1733 (md_operand): Likewise.
1734 (tc_aout_pre_write_hook): Delete.
1735 (struct tic30_insn): Make "operands" unsigned.
1736 (struct tic30_par_insn): Likewise.
1737 (md_assemble): Likewise for "count", "i" and "numops".
1738 (tic30_parallel_insn): Likewise for vars here.
1739 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1740 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1741 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1742 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1743 (md_undefined_symbol): Likewise.
1744 (md_parse_option): Likewise.
1745 (md_convert_frag): Likewise.
1746 (tc_coff_symbol_emit_hook): Likewise.
1747 (md_atof): Remove declaration of atof_ieee.
1748 (const_overflow): Warning fixes, tidy.
1749 (get_operands): Delete unused vars.
1750 (internal_error_a): Adjust format string to expect a long for arg.
1751 (find_opcode): Warning fixes, simplify.
1752 (build_insn): Cast internal_error_a arg.
1753 (md_begin): Likewise.
1754 (md_apply_fix3): Likewise.
1755 (md_assemble): Delete unused var.
1756 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1757 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1758 (whatreg, parse_reg, parse_exp): Make static, prototype.
1759 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1760 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1761 (get_operand, get_operands, get_specific, newfix): Likewise.
1762 (apply_fix, build_bytes): Likewise.
1763 (md_atof): Remove declaration of atof_ieee.
1764 (tc_aout_fix_to_chars): Delete.
1765 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1767 (md_parse_option): Fix s_segm and s_unseg calls.
1769 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1771 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1773 (RELAX_BRANCH_RELOC_S2): Delete.
1774 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1775 Do not handle BFD_RELOC_16_PCREL.
1776 (macro_build, mips_ip): Likewise.
1777 (md_pcrel_from): Return 4 for undefined symbols regardless of
1779 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1780 Don't dereference howto if no such relocation is available.
1781 Do not apply hack for in-place zero addend in NEWABI.
1782 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1784 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1785 Alan Modra <amodra@bigpond.net.au>
1787 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1788 (TC_LINKRELAX_FIXUP): Add comments.
1790 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1792 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1794 (r_register_name, xr_register_name): Add prototype declarations.
1796 2002-12-08 H.J. Lu <hjl@gnu.org>
1798 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1799 copied from tc-i386.c.
1801 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1803 Fix Bug savannah/1825:
1804 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1805 (md_relax_table): Define specific relax for PC-rel offsets.
1806 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1807 (m68hc11_relax_frag): Handle the new relax code.
1808 (md_convert_frag): Likewise.
1809 (md_estimate_size_before_relax): Likewise.
1811 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1813 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1815 2002-12-05 Richard Henderson <rth@redhat.com>
1817 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1818 (ia64_gen_real_reloc_type): Handle it.
1819 (pseudo_func): Add @ltoffx.
1820 (md_begin): Build .<ltoffx>.
1821 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1823 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1825 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1826 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1827 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1828 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1829 COFF to call arm_force_relocation.
1831 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1833 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1835 (emit_one_bundle): Handle "hint" instruction.
1836 (operand_match): Match IA64_OPND_AR_CSD.
1838 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1840 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1843 2002-12-03 Nick Clifton <nickc@redhat.com>
1845 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1846 .PPC.EMB.apuinfo sections.
1848 2002-12-03 Richard Henderson <rth@redhat.com>
1850 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1852 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1854 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1855 (cons, s_align_bytes): Delete declaration.
1857 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1859 (dot): Delete unused function.
1860 (w65_expression): Remove unused arg.
1861 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1863 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1865 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1867 (check): Remove unused function.
1868 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1869 on unhandled switch case.
1870 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1872 (tc_crawl_symbol_chain): Delete unused function.
1873 (tc_headers_hook): Likewise.
1874 (tc_Nout_fix_to_chars): Likewise.
1875 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1876 (md_parse_option): Likewise.
1877 (md_convert_frag): Likewise.
1878 (tc_coff_symbol_emit_hook): Likewise.
1879 (md_show_usage): Likewise.
1880 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1881 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1882 (w65_expression): Declare.
1884 * po/POTFILES.in: Regenerate.
1886 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1887 and ARM_ADRL_IMMEDIATE.
1889 2002-12-02 Nick Clifton <nickc@redhat.com>
1891 * gasp.c: Delete. It has been deprecated.
1892 * NEWS: Mention that gasp has been removed.
1893 * Makefile.am: Remove references to gasp.
1894 * makefile.vms: Likewise.
1895 * mpw-make.sed: Likewise.
1896 * Makeile.in: Regenerate.
1897 * doc/gasp.texi: Delete.
1898 * doc/Makefile.am: Remove references to gasp.texi.
1899 * doc/Makefile.in: Regenerate.
1900 * macro.c: Delete references to gasp.
1901 Remove use of comment_char function parameter as it is no longer
1903 * macro.h: Update prototypes to remove comment_char parameter.
1905 * read.c (read_a_source_file, s_irp): Remove comment_char
1906 parameter from invocation of functions in macro.c
1908 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1910 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1912 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1914 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1915 (tc_gen_reloc): Mark section param as not used.
1917 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1919 Fix Bug savannah/1825:
1920 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1921 that are not pc-relative.
1922 (m68hc11_relax_frag): Declare.
1924 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1925 the offsetable indexed addressing modes (n,r).
1926 (build_insn): Cleanup some locals.
1927 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1928 relaxation of difference between two symbols of same section.
1929 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1930 only when this is a PC-relative operand and the offset is not absolute.
1931 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1932 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1933 be handled by m68hc11_relax_frag.
1935 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1937 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1938 (32-bit int, 64-bit double).
1939 (md_longopts): New options -mshort, -mlong, -mshort-double and
1940 -mlong-double to control the ABI.
1941 (md_show_usage): Update.
1942 (md_parse_option): Handle new options.
1943 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1945 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1947 * symbols.c (report_op_error): New function, broken out of ...
1948 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1951 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1953 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1954 for BFD_RELOC_32_PLT_PCREL.
1956 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1958 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1959 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1960 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1961 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1962 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1963 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1964 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1965 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1966 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1967 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1968 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1969 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1970 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1971 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1972 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1973 TRUE/FALSE. Formatting.
1975 2002-11-29 Nick Clifton <nickc@redhat.com>
1977 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1978 assume a value of zero.
1979 (do_bkpt): Likewise.
1981 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1983 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1984 for TLS relocations.
1986 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1988 * config/tc-ia64.c (md_apply_fix3): Add default case.
1990 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1992 * symbols.c (S_SET_THREAD_LOCAL): New function.
1993 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1994 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1995 for TLS relocations.
1996 * config/tc-ia64.c (md_apply_fix3): Likewise.
1997 * config/tc-alpha.c (md_apply_fix3): Likewise.
1999 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2001 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2004 2002-11-26 DJ Delorie <dj@redhat.com.
2006 * dwarf2dbg.c (scale_addr_delta): New.
2007 (size_inc_line_addr): Use it.
2008 (emit_inc_line_addr): Use it.
2010 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2012 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2013 (md_assemble): Don't pass on branches to constants as relaxable.
2016 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2018 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2020 2002-11-21 Randolph Chung <randolph@tausq.org>
2022 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2023 only if they have default visibility.
2025 2002-11-21 Richard Henderson <rth@redhat.com>
2027 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2030 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2032 * config/tc-mcore.c (mcore_pool_count): New function.
2033 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2035 2002-11-20 Klee Dienes <kdienes@apple.com>
2037 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2038 coalesce the name fields to use the same pointer.
2040 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2041 the name fields to use the same pointer.
2042 (get_specific): Check for opcodes with the same name using strcmp
2043 as well as comparing the pointer.
2045 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2047 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2050 2002-11-19 Richard Henderson <rth@redhat.com>
2052 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2053 visibility portion of st_other.
2055 2002-11-19 Klee Dienes <kdienes@apple.com>
2057 * config/tc-h8300.c (struct h8_instruction): New type, used to
2058 wrap h8_opcodes with length, noperands, idx, and size fields
2059 (computed at run-time).
2060 (h8_instructions): New variable.
2061 (md_begin): Allocate the storage for h8_instructions. Fill
2062 h8_instructions with pointers to the appropriate opcode and the
2063 correct value for the additional fields.
2064 (clever_message): Update to use h8_instructions instead of
2066 (build_bytes): Ditto.
2067 (get_specific): Ditto.
2068 (md_assemble): Ditto.
2070 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2072 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2073 adjustments to symbols in merge sections.
2075 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2077 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2079 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2081 * dwarf2dbg.h (dwarf2_format): New enum.
2082 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2083 (out_debug_line, out_debug_info): Add code for handling 64-bit
2085 * config/tc-mips.h (mips_dwarf2_format): Declare.
2086 * config/tc-mips.c (mips_dwarf2_format): New function.
2087 * doc/internals.texi (DWARF2_FORMAT): Document.
2089 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2091 * config/tc-mips.c (s_change_section): Make sure input buffer
2092 is not accessed past the end. Don't hand
2093 obj_elf_change_section a pointer into the input buffer.
2095 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2097 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2100 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2102 * config/tc-tic4x.c: Fixed proper commandline
2103 parameters. Added support for new opcode-list format. General
2104 error message fixups.
2105 (c4x_inst_add): Reject insn not for our CPU
2106 (md_begin): Added matrix for setting the proper opcode-level &
2107 device-flags according to cpu type and revision. Rewrite the
2109 (c4x_operand_parse): Fix opcode bug
2110 (c4x_operands_match): New function argument. Added dry-run
2111 mechanism, that is optional error generation. Added constraint 'i'
2113 (c4x_insn_check): Added new function for post-verification of the
2115 (md_assemble): Check all opcodes before croaking because of an
2116 argument mismatch. Need this to be able to fully support
2117 ortogonally arguments.
2118 (md_parse_options): Revised commandprompt swicthes and added new
2120 (md_show_usage): Complete rewrite of printout.
2122 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2124 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2125 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2126 warning when using constant direct bigger than 2^16. Add the new
2129 2002-11-11 Christopher Faylor <cgf@redhat.com>
2131 * configure.in: Use .gdbinit under Cygwin.
2132 * configure: Regenerate.
2134 2002-11-11 Christopher Faylor <cgf@redhat.com>
2136 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2139 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2141 * config/tc-tic4x.c: Declare as many functions as possible as
2142 static. Maintenance on the general indenting. Removed unnecessary
2143 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2144 function. Add support for new DSP, TMS320VC33. Fix bug for
2145 converting flonum constants.
2146 (c4x_do_align): Add proper align handling. Setup align to insert
2148 (c4x_gen_to_words): Support for extended TI type floats.
2149 (md_atof): Proper dumping of multiple-word littlenums.
2150 (c4x_atof): Added support for extended TI type floats.
2151 (c4x_stringer): Added new function to handle compact strings.
2152 (c4x_emit_char): Added new function argument to handle custom
2153 length inserts, like single-byte strings.
2154 * config/tc-tic4x.h: Add proper align handling with NOP's.
2155 * Makefile.am: Added tic4x dependecy
2156 * Makefile.in: Regenerate
2158 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2160 * macro.c (get_any_string): Correct logic for not going beyond end
2163 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2165 * config/tc-mmix.c (get_putget_operands): Mark both possible
2166 operands as invalid at beginning.
2168 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2169 Initialize target of fixup to zero.
2171 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2173 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2174 NEWABI, but we should still emit HI16_S for non-PIC n32.
2176 2002-11-06 Richard Henderson <rth@redhat.com>
2178 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2179 (alpha_fix_adjustable): ... here.
2180 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2182 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2184 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2187 2002-11-05 H.J. Lu <hjl@gnu.org>
2189 * config/tc-mips.c (support_64bit_objects): Check *l before it
2192 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2194 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2195 SEC_LOAD flags for sections marked as 's'.
2197 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2199 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2200 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2201 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2204 * dep-in.sed: Fix typo.
2206 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2208 * configure.in: Update ARM CPU patterns.
2209 * configure: Regenerated.
2211 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2213 * itbl-lex.l: Use #include <> for generated headers.
2214 * itbl-ops.c: Likewise.
2216 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2218 * doc/gasp.texi: Fix typo in deprecation note.
2220 2002-10-23 Nick Clifton <nickc@redhat.com>
2222 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2223 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2225 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2227 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2228 (tc_frob_file_before_adjust): Don't define.
2229 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2231 (mmix_frob_file_before_adjust): Remove ineffective function.
2233 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2235 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2236 (cris_relax_frag): New function.
2237 (md_estimate_size_before_relax) <case ENCODE_RELAX
2238 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2239 expressions that will become absolute expressions to relaxation.
2240 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2241 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2242 value, not distance to symbol.
2243 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2244 Ditto. Correct placement of fixup.
2245 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2247 * config/tc-cris.h (cris_relax_frag): Declare.
2248 (md_relax_frag): Define.
2250 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2252 * config/obj-elf.c (special_sections): Use correct types for init
2254 (obj_elf_change_section): Don't mess with init array section type.
2256 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2258 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2259 for relocs against symbols in a merged section.
2261 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2263 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2264 table as register names.
2266 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2268 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2271 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2273 * expr.c (operand): Add support for n.nn flonums.
2275 2002-10-17 Johannes Stezenbach <js@convergence.de>
2277 * itbl-parse.y (entry): Provide empty action.
2279 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2281 * configure.in (BFDVER_H): Set and subst.
2282 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2283 * Makefile.am: Run "make dep-am".
2285 * configure: Regenerate.
2286 * Makefile.in: Regenerate.
2287 * doc/Makefile.in: Regenerate.
2289 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2291 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2292 (MD_APPLY_SYM_VALUE): Define for PE too.
2294 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2296 * Makefile.am: Run "make dep-am".
2297 (CPU_OBJ_VALID): sh64 coff is invalid.
2298 * as.c: #include "bfdver.h".
2299 * Makefile.in: Regenerate.
2300 * config.in: Regenerate.
2302 2002-10-14 Momchil Velikov <velco@fadata.bg>
2304 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2306 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2308 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2309 * configure: Regenerate.
2311 2002-10-13 Eric Christopher <echristo@redhat.com>
2312 Alexandre Oliva <aoliva@redhat.com>
2314 * config/tc-mips.c (s_gpdword): New function.
2315 (mips_pseudo_table): Add .gpdword.
2316 (mips_need_elf_addend_fixup): never for NEWABI.
2317 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2319 (s_cpadd): Generate .cpadd on NEWABI.
2321 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2323 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2325 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2327 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2328 (md_relax_frag): Adjust macro.
2329 * config/tc-mips.c (mips_relax_branch): New variable.
2330 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2331 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2332 (RELAX_MIPS16_P): Adjust.
2333 (append_insn): Emit branch to non-constant in a frag_var if
2334 branch-relaxation is desirable and possible.
2335 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2336 (OPTION_ELF_BASE): Adjust.
2337 (md_parse_option): Handle new options.
2338 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2340 (relaxed_branch_length): New function.
2341 (md_estimate_size_before_relax): Handle branch frags.
2342 (mips_relax_frag): Likewise.
2343 (md_convert_frag): Handle branch frags. Warn if branch is
2346 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2348 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2350 (md_apply_fix3): Add TLS relocs.
2351 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2354 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2355 Alan Modra <amodra@bigpond.net.au>
2357 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2358 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2360 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2362 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2365 2002-10-09 Richard Shann <richard.shann@superh.com>
2366 Stephen Clarke <stephen.clarke@superh.com>
2368 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2371 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2373 * contig/tc-sh.c (sh_local_pcrel): New.
2374 (sh_force_relocation): Use sh_local_pcrel.
2375 (md_pcrel_from_section): Check the relocation type whether it
2376 should be resolved locally. Use S_FORCE_RELOC.
2378 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2380 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2381 (TC_FORCE_RELOCATION): Tidy arg.
2383 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2384 Ken Raeburn <raeburn@cygnus.com>
2385 Aldy Hernandez <aldyh@redhat.com>
2386 DJ Delorie <dj@redhat.com>
2387 Michael Meissner <meissner@redhat.com>
2388 Eric Christopher <echristo@redhat.com>
2389 Richard Sandiford <rsandifo@redhat.com>
2391 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2392 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2393 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2394 (hilo_interlocks): True for CPU_VR5500.
2395 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2396 (mips_fix_vr4122_bugs): New.
2397 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2398 (mips_emit_delays): Likewise.
2399 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2400 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2401 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2402 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2403 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2404 (OPTION_ELF_BASE): Bump.
2405 (md_parse_option): Handle the new options.
2406 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2409 2002-09-29 H.J. Lu <hjl@gnu.org>
2411 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2412 twice if howto->pcrel_offset is true.
2414 2002-09-28 Matt Thomas <matt@3am-software.com>
2415 Jason Thorpe <thorpej@wasabisystems.com>
2417 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2418 convert undefined references to GOT32/PLT32 if PIC code is
2419 requested. Fix comment.
2421 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2423 * config/tc-sh.c (sh_force_relocation): Return 0 for
2424 some PC relative relocations when not relaxing.
2426 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2428 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2429 Define them if not BFD_ASSEMBLER.
2430 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2432 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2433 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2434 (tc_gen_reloc): Handle x86-64 TLS relocs.
2436 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2438 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2439 fixups to current or absolute section.
2441 2002-09-26 Jim Wilson <wilson@redhat.com>
2443 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2446 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2448 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2449 capable configuration.
2450 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2452 (mips_ip): Likewise.
2454 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2456 * config/tc-mips.c (append_insn): Fix jump overflow check.
2458 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2460 * config/tc-i386.c (process_operands): Warn about "lea" segment
2463 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2465 * write.c: Delete set_segment_vma and prototype. Update all callers.
2467 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2469 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2470 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2471 Rename "fseg" to "sym_seg".
2472 * Makefile.am: Run "make dep-am".
2473 * Makefile.in: Regenerate.
2474 * doc/Makefile.in: Regenerate.
2476 2002-09-20 Nick Clifton <nickc@redhat.com>
2478 * symbols.c (colon): Do not allow symbols to be created in the
2479 absolute section if WORKING_DOT_WORD is not defined and
2480 new_broken_words would require a new frag to be created.
2482 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2484 * expr.c (expr): Simplify foo-foo here.
2485 (clean_up_expression): Remove O_subtract code.
2487 * write.h (struct fix): Add fx_dot_value.
2488 (dot_value): Declare.
2489 * write.c (dot_value): New var.
2490 (fix_new_internal): Save dot_value as fx_dot_value.
2491 (fixup_segment): Adjust fx_offset using fx_dot_value.
2492 * expr.c (expr): Update dot_value.
2494 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2496 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2497 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2498 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2500 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2501 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2502 BFD_RELOC_386_TLS_GOTIE.
2504 2002-09-19 Richard Henderson <rth@redhat.com>
2506 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2508 (alpha_force_relocation): Don't special-case branch type relocs.
2510 2002-09-19 Nick Clifton <nickc@redhat.com>
2512 * config/tc-m68k.c (select_control_regs): Handle situation where
2513 architecture has not yet been selected.
2515 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2517 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2518 (IS_SEXT_16BIT_NUM): New macro.
2519 (macro_build_ldst_constoffset): New function, to build a set of
2520 instructions to do a load or store from a constant offset relative
2521 to a given register.
2522 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2523 .cprestore pseudo-op.
2525 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2527 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2529 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2531 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2533 2002-09-17 Stan Cox <scox@redhat.com>
2535 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2536 (macro): Likewise for la. Likewise for ld.
2537 (mips_after_parse_args): Make -xgot optional, not the default.
2538 (md_apply_fix3): Allow composite relocation to set up gp.
2539 (tc_gen_reloc): Allow relaxing for newabi.
2540 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2541 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2543 2002-09-17 Nick Clifton <nickc@redhat.com>
2545 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2546 BFD_RELOC_ARM_IMMEDIATE has been done.
2547 (tc_gen_reloc): Do not issue reloc number of unimplemented
2548 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2549 their name is already in the error message - plus remove them
2550 from the default case.
2552 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2553 behavior of instructions.
2555 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2557 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2558 Convert functions to K&R format.
2560 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2562 * config/tc-mips.c (pdr_seg): Define only for ELF.
2563 (s_change_section): Remove unused variable. Don't use for nonELF.
2565 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2567 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2569 * config/obj-elf.h (obj_elf_change_section): Likewise.
2571 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2573 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2574 (out_debug_info): Likewise.
2576 2002-09-16 Bruno Haible <bruno@clisp.org>
2578 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2579 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2580 * config/tc-i386.c (i386_target_format): Likewise.
2581 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2582 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2584 2002-09-13 Nick Clifton <nickc@redhat.com>
2586 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2587 when deciding if any operands have been skipped.
2589 2002-09-11 Nick Clifton <nickc@redhat.com>
2591 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2593 * po/tr.po: Updated Turkish translation.
2595 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2597 * config/tc-i386.c (md_apply_fix3): Allow addend for
2598 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2599 BFD_RELOC_386_TLS_LE_32.
2601 2002-09-05 Jeff Law <law@redhat.com>
2603 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2604 marker relocations such as ENTRY/EXIT.
2605 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2606 to both OBJ_ELF and OBJ_SOM.
2608 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2610 * doc/internals.texi (md_apply_fix3): Expand.
2611 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2612 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2613 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2614 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2615 EXTERN_FORCE_RELOC): Document.
2616 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2617 * as.h: Don't include struc-symbol.h for arc.
2619 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2620 subtract absolute symbol.
2621 * obj.h (struct format_ops): Add frob_file_before_fix.
2622 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2623 * symbols.c (S_FORCE_RELOC): New function.
2624 * symbols.h (S_FORCE_RELOC): Declare.
2625 * write.c (TC_FORCE_RELOCATION): Change default.
2626 (TC_FORCE_RELOCATION_ABS): Define.
2627 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2628 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2629 (TC_FORCE_RELOCATION_SECTION): Don't define.
2630 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2631 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2632 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2633 (TC_VALIDATE_FIX_SUB): Define.
2634 (TC_FIX_ADJUSTABLE): Don't define.
2635 (MD_APPLY_SYM_VALUE): Define this instead.
2636 (abs_section_sym): New variable.
2637 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2638 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2639 Don't put the absolute section sym on fixups here.
2640 (fix_segment): New function.
2641 (write_relocs): Don't call fixup_segment from here.
2642 (write_object_file): Instead call tc_frob_file_before_fix,
2643 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2644 Don't output the absolute section symbol.
2645 (fixup_segment): Rewrite.
2646 * write.h (abs_section_sym): Declare.
2647 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2649 (aout_format_ops): Adjust to suit.
2650 * config/obj-aout.h (obj_frob_file): Don't define.
2651 (obj_frob_file_before_fix): Define.
2652 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2653 (S_FORCE_RELOC): Define.
2654 * config/obj-bout.h (S_FORCE_RELOC): Define.
2655 * config/obj-coff.c (coff_format_ops): Init new field.
2656 * config/obj-coff.h: Formatting fixes.
2657 (obj_sec_sym_ok_for_reloc): Define.
2658 (S_FORCE_RELOC): Define.
2659 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2660 (ecoff_frob_file): .. from here.
2661 (ecoff_format_ops): Add new function.
2662 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2663 (obj_frob_file_before_fix): Define.
2664 * config/obj-elf.c (elf_format_ops): Init new field.
2665 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2666 * config/obj-ieee.h: Formatting fixes.
2667 (S_FORCE_RELOC): Define.
2668 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2669 * config/obj-vms.h (S_FORCE_RELOC): Define.
2670 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2671 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2672 for BFD_RELOC_32 and BFD_RELOC_64.
2673 (alpha_fix_adjustable): Remove extern and weak tests.
2674 (alpha_before_fix): Rename from alpha_adjust_symtab.
2675 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2676 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2677 (TC_VALIDATE_FIX): Tweak param name.
2678 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2679 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2680 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2681 (MD_APPLY_SYM_VALUE): Define.
2682 (tc_adjust_symtab): Don't define.
2683 (alpha_adjust_symtab): Don't declare.
2684 (tc_frob_file_before_fix): Define.
2685 (alpha_before_fix): Declare.
2686 (TC_INIT_FIX_DATA): Tweak param names.
2687 * config/tc-arc.c: Include "struc-symbol.h".
2688 (md_pcrel_from): Remove undefined sym fudge.
2689 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2690 Don't set fx_addnumber.
2691 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2692 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2693 (EXTERN_FORCE_RELOC): Define.
2694 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2695 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2696 (arm_validate_fix): Return void.
2697 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2698 Add plt and got reloc tests.
2699 (arm_force_relocation): Call S_FORCE_RELOC.
2700 * config/tc-arm.h (struct fix): Forward declare.
2701 (TC_VALIDATE_FIX): No longer set add_symbolP.
2702 (arm_validate_fix): Adjust declaration.
2703 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2704 (TC_FORCE_RELOCATION): Tweak param name.
2705 (TC_INIT_FIX_DATA): Likewise.
2706 (obj_fix_adjustable): Don't define.
2707 (tc_fix_adjustable): Call arm_fix_adjustable.
2708 (TC_FIX_ADJUSTABLE): Don't define.
2709 (MD_APPLY_SYM_VALUE): Define.
2710 (EXTERN_FORCE_RELOC): Define.
2711 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2712 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2713 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2714 Remove *valP fudges and code to subtract abs sym. Don't set
2716 * config/tc-avr.h: Formatting.
2717 (EXTERN_FORCE_RELOC): Define.
2718 (MD_APPLY_SYM_VALUE): Define.
2719 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2720 (md_apply_fix3): Remove code to subtract abs sym.
2721 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2722 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2723 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2724 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2725 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2726 (tc_fix_adjustable): Remove extern, weak tests.
2727 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2728 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2729 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2730 and code to subtract abs sym.
2731 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2732 (d10v_force_relocation): Call S_FORCE_RELOC.
2733 * config/tc-d10v.h: Don't include write.h.
2734 (struct fix): Instead, forward declare.
2735 (MD_PCREL_FROM_SECTION): Tweak param names.
2736 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2737 (d10v_fix_adjustable): Likewise.
2738 (obj_fix_adjustable): Don't define.
2739 (tc_fix_adjustable): Define.
2740 (TC_FORCE_RELOCATION): Tweak param name.
2741 (MD_APPLY_SYM_VALUE): Define.
2742 (EXTERN_FORCE_RELOC): Define.
2743 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2744 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2745 and code to subtract abs sym.
2746 * config/tc-d30v.h: Don't include write.h.
2747 (struct fix): Instead, forward declare.
2748 (MD_PCREL_FROM_SECTION): Tweak param names.
2749 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2750 (MD_APPLY_SYM_VALUE): Define.
2751 (EXTERN_FORCE_RELOC): Define.
2752 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2753 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2754 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2755 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2756 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2757 Don't use fx_addnumber.
2758 * config/tc-dlx.h: Don't include write.h.
2759 (md_convert_frag): We're not alpha twice over.
2760 (EXTERN_FORCE_RELOC): Define.
2761 (obj_fix_adjustable): Don't define.
2762 (tc_fix_adjustable): Define.
2763 (TC_FIX_ADJUSTABLE): Don't define.
2764 (MD_APPLY_SYM_VALUE): Define.
2765 (LOCAL_LABELS_DOLLAR): Undef always.
2766 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2767 (fr30_fix_adjustable): Remove extern, weak tests.
2768 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2769 (obj_fix_adjustable): Don't define.
2770 (tc_fix_adjustable): Define.
2771 (struct fix): Forward declare.
2772 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2773 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2774 (frv_fix_adjustable): Don't do extern, weak tests.
2775 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2776 (TC_FIX_ADJUSTABLE): Don't define.
2777 (obj_fix_adjustable): Don't define.
2778 (tc_fix_adjustable): Define.
2779 (struct fix): Forward declare.
2780 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2781 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2782 * config/tc-h8300.h (struct fix): Forward declare.
2783 (EXTERN_FORCE_RELOC): Define.
2784 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2785 (hppa_fix_adjustable): Don't test extern or weak. Don't
2786 symbol_mark_used_in_reloc.
2787 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2789 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2790 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2791 (TC_FORCE_RELOCATION_SECTION): Don't define.
2792 (MD_APPLY_SYM_VALUE): Define.
2793 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2794 to subtract abs sym.
2795 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2796 (MD_APPLY_SYM_VALUE): Define.
2797 (MD_PCREL_FROM_SECTION): Tweak param name.
2798 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2799 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2800 (i386_force_relocation): New function.
2801 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2802 (TC_VALIDATE_FIX): Likewise.
2803 (TC_FIX_ADJUSTABLE): Don't define.
2804 (MD_APPLY_SYM_VALUE): Define.
2805 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2806 (i386_force_relocation): Declare.
2807 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2808 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2809 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2810 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2811 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2812 (EXTERN_FORCE_RELOC): Define.
2813 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2814 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2815 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2816 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2817 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2818 Remove #if 0 code. Invert return boolean.
2819 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2820 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2821 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2822 (tc_coff_sizemachdep): Prototype.
2823 (i960_handle_align): Likewise.
2824 (i960_validate_fix): Adjust declaration.
2825 (reloc_callj): Likewise.
2826 (EXTERN_FORCE_RELOC): Define.
2827 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2828 (TC_FORCE_RELOCATION_ABS): Define.
2829 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2830 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2831 (TC_FIX_ADJUSTABLE): Don't define.
2832 (MD_APPLY_SYM_VALUE): Define.
2833 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2834 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2835 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2836 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2837 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2838 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2839 (MD_APPLY_SYM_VALUE): Define.
2840 (EXTERN_FORCE_RELOC): Define.
2841 (TC_FORCE_RELOCATION): Tweak param name.
2842 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2843 (m32r_fix_adjustable): Don't test extern, weak.
2844 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2845 (MD_APPLY_SYM_VALUE): Define.
2846 (obj_fix_adjustable): Don't define.
2847 (tc_fix_adjustable): Define.
2848 (tc_frob_file): Don't define.
2849 (tc_frob_file_before_fix): Define.
2850 (EXTERN_FORCE_RELOC): Define.
2851 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2852 BFD_RELOC_VTABLE_ENTRY address.
2853 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2854 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2855 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2856 Remove duplicated fx_done code.
2857 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2858 (EXTERN_FORCE_RELOC): Define.
2859 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2861 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2862 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2863 (TC_FIX_ADJUSTABLE): Don't define.
2864 (EXTERN_FORCE_RELOC): Define.
2865 (MD_APPLY_SYM_VALUE): Define.
2866 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2867 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2868 Remove fx_addsy tests.
2869 (mcore_force_relocation): Call S_FORCE_RELOC.
2870 (mcore_fix_adjustable): Don't test fx_addsy.
2871 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2872 (EXTERN_FORCE_RELOC): Define.
2873 (obj_fix_adjustable): Don't define.
2874 (tc_fix_adjustable): Define.
2875 (MD_APPLY_SYM_VALUE): Define.
2876 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2877 (mips_pic): No longer static.
2878 (mips_force_relocation): Call S_FORCE_RELOC.
2879 (mips_fix_adjustable): Remove extern, weak tests.
2880 * config/tc-mips.h (enum mips_pic_level): Declare.
2881 (mips_pic): Declare.
2882 (tc_frob_file): Don't define.
2883 (tc_frob_file_before_fix): Define this instead.
2884 (EXTERN_FORCE_RELOC): Define.
2885 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2886 with reg_section tests. Set fx_done instead of calling
2887 symbol_clear_used_in_reloc on bad relocs.
2888 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2889 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2890 (mmix_adjust_symtab): Simplify list handling. Abort on any
2892 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2893 BFD_RELOC_MMIX_LOCAL.
2894 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2895 (EXTERN_FORCE_RELOC): Define.
2896 (MD_PCREL_FROM_SECTION): Tweak param name.
2897 (tc_frob_file): Don't define.
2898 (tc_frob_file_before_fix): Define this instead.
2899 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2900 Remove SEC_CODE checks.
2901 (mn10300_fix_adjustable): Remove extern and weak tests.
2902 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2903 (TC_FORCE_RELOCATION): Tweak param name.
2904 (obj_fix_adjustable): Don't define.
2905 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2906 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2907 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2908 (openrisc_fix_adjustable): Don't test fx_addsy.
2909 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2910 (obj_fix_adjustable): Don't define.
2911 (tc_fix_adjustable): Define this instead.
2912 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2913 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2914 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2915 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2916 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2917 (MD_APPLY_SYM_VALUE): Define.
2918 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2919 Don't subtract symbol value.
2920 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2921 (EXTERN_FORCE_RELOC): Define.
2922 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2923 (MD_APPLY_SYM_VALUE): Define.
2924 (obj_fix_adjustable): Don't define.
2925 (tc_fix_adjustable): Define this instead.
2926 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2928 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2929 (ppc_force_relocation <elf version>): New.
2930 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2931 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2932 comments. Don't subtract fx_subsy as that is already done.
2933 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2934 (MD_PCREL_FROM_SECTION): Likewise.
2935 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2936 ppc_force_relocation.
2937 (TC_FORCE_RELOCATION_SECTION): Delete.
2938 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2939 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2940 (MD_APPLY_SYM_VALUE): Define.
2941 * config/tc-s390.c: #include "dwarf2dbg.h".
2942 (s390_insn): Remove excess parens.
2943 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2944 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2945 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2946 non-NULL. Don't subtract off fx_addsy value.
2947 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2948 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2949 (TC_FIX_ADJUSTABLE): Don't define.
2950 (MD_APPLY_SYM_VALUE): Define.
2951 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2952 (SWITCH_TABLE): Likewise.
2953 (sh_force_relocation): Call S_FORCE_RELOC.
2954 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2955 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2956 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2957 fx_addnumber is zero on entry. Save val in fx_addnumber.
2958 (tc_gen_reloc): Don't subtract fx_subsy.
2959 * config/tc-sh.h (struct fix): Move.
2960 (obj_fix_adjustable): Don't define.
2961 (tc_fix_adjustable): Define this instead.
2962 (TC_FIX_ADJUSTABLE): Don't define.
2963 (MD_APPLY_SYM_VALUE): Define.
2964 (SWITCH_TABLE_CONS): Define.
2965 (SWITCH_TABLE): Define.
2966 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2967 (TC_VALIDATE_FIX_SUB): Define.
2968 (MD_PCREL_FROM_SECTION): Tweak param name.
2969 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2970 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2971 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2972 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2973 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2974 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2975 (TC_VALIDATE_FIX_SUB): Define.
2976 (MD_PCREL_FROM_SECTION): Tweak param name.
2977 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2978 (tc_gen_reloc): Use S_FORCE_RELOC.
2979 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2980 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2981 (TC_FORCE_RELOCATION_ABS): Define this instead.
2982 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2983 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2984 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2985 (MD_APPLY_SYM_VALUE): Define.
2986 (TC_FIX_DATA_PRINT): Tweak param name.
2987 * config/tc-tic30.c (USE_STDOUT): Don't define.
2988 (md_parse_option): Remove stupid debug code.
2989 (tc_gen_reloc): Don't use fx_addnumber.
2990 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2991 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2992 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2993 (tc_fix_adjustable): Define this instead.
2994 (TC_FIX_ADJUSTABLE): Don't define.
2995 (MD_APPLY_SYM_VALUE): Define this instead.
2996 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2997 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2998 (TC_FIX_ADJUSTABLE): Don't define.
2999 (MD_APPLY_SYM_VALUE): Define this instead.
3000 (tc_fix_adjustable): Remove extern and weak tests.
3001 * config/tc-w65.h (struct fix): Forward declare.
3002 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3004 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3005 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3006 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3008 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3009 (MD_APPLY_SYM_VALUE): Define.
3010 (obj_fix_adjustable): Don't define.
3011 (tc_fix_adjustable): Define this instead.
3012 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3014 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3016 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3017 (ppc_fix_adjustable <coff version>): Cleanup.
3019 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3020 (md_parse_option): No -a64 without BFD64.
3021 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3022 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3024 2002-09-04 Nick Clifton <nickc@redhat.com>
3026 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3027 instructions into the hash table if the target cpu is the BookE32.
3029 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3031 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3034 2000-08-28 Catherine Moore <clm@redhat.com>
3036 * tc-v850.c (v850_relax): Declare.
3037 (v850_longcode): New routine.
3038 (v850_handle_align): New routine.
3039 (md_pseudo_table): Add longcall and longjump.
3040 (md_parse_option): Check for relax option.
3041 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3042 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3043 (md_apply_fix3): Likewise.
3044 (v850_force_relocation): Likewise.
3045 (v850_comm): Change the current section.
3046 (md_assemble): Ensure that the correct value is put in the
3048 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3049 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3050 Remove redundant v850ea support.
3051 * tc-v850.h (HANDLE_ALIGN): Define.
3052 (v850_handle_align): Declare.
3053 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3055 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3057 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3058 * configure: Regenerate.
3059 * NEWS: Mention new port.
3061 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3063 * config/obj-coff.c: Add sdef definition.
3064 * config/obj-coff.h: Add tic4x include file and set
3066 * config/tc-tic4x.c: New file.
3067 * config/tc-tic4x.h: New file.
3069 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3071 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3072 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3073 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3074 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3075 (RELOC_ENUM): Define.
3076 (fix_new_internal): Use RELOC_ENUM.
3077 (fix_new, fix_new_exp): Likewise.
3078 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3079 Replace gotos with continue.
3080 (write_relocs): Formatting. Avoid symbol loops in
3081 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3082 errors, and error number in other cases.
3083 (fixup_segment): Remove param names from prototype. Rename
3084 "this_segment_type" to "this_segment". Update linkrelax comment.
3085 Remove "size, "place" and "where" local vars. Formatting. Update
3086 "no symbol" comment. Remove #if 0 and #if 1.
3088 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3090 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3092 * dwarf2dbg.c: Always include dwarf2dbg.h.
3093 (dwarf2_directive_file): Adjust dummy version args.
3094 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3095 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3096 when symbol values differ.
3097 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3098 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3099 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3101 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3103 * config/tc-w65.c (md_section_align): Fix typo.
3104 (md_parse_option): Return 0, not 1.
3106 2002-08-22 Nick Clifton <nickc@redhat.com>
3108 * doc/as.texinfo (Section): Note that if '@' is a comment
3109 character then another symbol is used to prefix the section's
3112 2002-08-22 Christian Groessler <chris@groessler.org>
3114 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3117 2002-08-12 Graeme Peterson <gp@qnx.com>
3119 * configure.in: Add support for sh-**-nto* target.
3120 * configure: Regenerate.
3122 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3124 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3126 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3128 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3130 (ppc_apuinfo_section_add): Define only if format is ELF.
3131 (md_assemble): Emit APUinfo section only if format is ELF.
3134 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3136 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3137 * config/tc-frv.c: Likewise.
3138 * config/tc-hppa.c: Likewise.
3139 * config/tc-ia64.c: Likewise.
3140 * config/tc-ip2k.c: Likewise.
3141 * config/tc-m68hc11.c: Likewise.
3142 * config/tc-m68k.c: Likewise.
3143 * config/tc-mmix.c: Likewise.
3144 * config/tc-mn10300.c: Likewise.
3145 * config/tc-sh.c: Likewise.
3146 * config/tc-sparc.c: Likewise.
3147 * config/tc-v850.c: Likewise.
3149 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3151 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3154 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3156 From matthew green <mrg@redhat.com>
3158 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3159 PPC_OPCODE_PPC is, except for BookE architectures.
3160 (md_parse_option): Add support for -mspe.
3161 (md_show_usage): Add -mspe.
3162 (md_parse_option): Add support for -me500 and
3163 -me500x2 to generate code for Motorola e500 core complex.
3164 (md_show_usage): Add -me500 and -me500x2.
3166 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3167 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3168 PPC_APUINFO_BRLOCK): New macros.
3170 (ppc_cleanup): New function.
3171 (ppc_apuinfo_section_add): New function.
3173 (md_assemble): Collect info and write the APUinfo section.
3175 * config/tc-ppc.h (md_cleanup): Define.
3176 (ppc_cleanup): Export.
3177 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3179 2002-08-17 Stan Cox <scox@redhat.com>
3181 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3182 config/tc-mips.c (s_change_section): New function to support
3183 IRIX .section pseudo-op.
3185 2002-08-16 Nick Clifton <nickc@redhat.com>
3187 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3189 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3191 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3192 the fix-up against on the right frag.
3193 (s_cpsetup): Likewise. Parse third argument as expression, to
3194 handle global symbols and forward/backward labels correctly.
3196 2002-08-14 Nick Clifton <nickc@redhat.com>
3198 * read.c (stringer): Catch attempts to create strings in the abs
3201 * config/tc-alpha.c: Fix compiling for COFF targets.
3202 Some minor formatting tidyups.
3204 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3206 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3207 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3208 according to the reloc.
3209 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3210 (TC_FORCE_RELOCATION): Define.
3211 (tc_m68hc11_force_relocation): Declare.
3213 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3214 (s_m68hc11_relax): New function for relax group.
3215 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3216 beginning of jump instruction.
3217 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3218 address computation.
3219 (tc-gen_reloc): Update.
3220 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3222 (tc_m68hc11_force_relocation): New function, handle new relocs.
3223 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3224 reloc for the linker relax pass.
3225 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3228 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3230 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3231 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3232 (s_m68hc11_mode): New function for .mode pseudo op.
3233 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3235 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3236 (m68hc11_elf_final_processing): Declare.
3238 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3240 * config/tc-m68hc11.c (md_begin): Take into account additional
3241 page operand for call instruction.
3242 (print_opcode_format): Likewise.
3243 (check_range): Likewise for page range checking.
3244 (get_operand): Don't skip a possible comma in operands.
3245 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3246 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3247 (fixup24): New to handle call reloc.
3248 (build_insn): Handle missing page operand for call instruction.
3250 (md_apply_fix3): Take into account new relocs.
3251 (get_operand): Fix the mode for indexed indirect addressing.
3252 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3254 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3256 * config/tc-mips.c (mips_ip): Don't work out the value of
3257 constant %hi()s here.
3259 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3261 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3262 for ELF, and don't bother checking ELF relocs when non-ELF.
3263 (i386_immediate): Allow absolute_section expressions for aout.
3264 (i386_displacement): Likewise. Also test bfd_is_com_section.
3265 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3266 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3267 not when fx_addsy. Remove dead code.
3269 2002-08-09 Graeme Peterson <gp@qnx.com>
3271 * configure.in: Add support for ppc-*-nto* target.
3272 * configure: Regenerate.
3274 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3276 * config/tc-i386.h: Reorganize.
3278 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3280 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3281 immediate offset in "dla" and "la" expansions.
3283 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3285 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3286 Remove "bfd_gas=yes" from target table when covered later.
3287 Consolidate some entries.
3288 * configure: Regenerate
3290 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3292 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3293 at start of insn, pass it to output_disp and output_imm.
3294 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3295 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3297 (output_imm): Added arguments. Compute properly addend for
3299 (md_apply_fix3): Remove R_386_GOTPC handling.
3301 2002-08-06 George France <france@handhelds.org>
3303 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3304 and m21264b processor names and cpu types.
3305 * doc/c-alpha.texi: Documented new types.
3307 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3309 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3311 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3313 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3314 handling to BFD_RELOC_MIPS16_GPREL.
3316 2002-08-01 Nick Clifton <nickc@redhat.com>
3318 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3319 pool is computed using signed arithmetic so that proper sign
3320 extension is performed if X_add_number is a 64-bit integer.
3322 2002-08-01 H.J. Lu <hjl@gnu.org>
3323 Daniel Jacobowitz <drow@mvista.com>
3325 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3326 .debug_line section unless it has line information.
3328 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3330 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3331 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3332 Allow default displacement size to be an option "--disp-size-default".
3333 (md_number_to_disp): Make error messages include value. Use %d to
3334 print integers, not %s.
3335 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3336 get duplicate messages sometimes.
3337 (convert_iif): Grow frag to max possible instruction size. Avoid
3338 creating unnecessary fixes.
3339 (md_number_to_field) Add prototype.
3340 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3341 prototypes and make static.
3342 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3343 (evaluate_expr): Use resultP argument instead of exprP global.
3344 (get_addr_mode): Quiten compiler warnings.
3345 (encode_operand): eliminate unused variables. Quiten compiler
3346 warnings. Eliminate nul character in format strings.
3347 (parse): argc is unsigned.
3348 (reloc): Type cast index to quieten compiler.
3349 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3350 (md_convert_frag): Note unused parameters. Remove unused
3352 (md_create_long_jump, md_create_short_jump,
3353 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3356 2002-07-31 Nick Clifton <nickc@redhat.com>
3358 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3359 of the PDP-11 and 2.11BSD a.out support.
3361 2002-07-31 Momchil Velikov <velco@fadata.bg>
3363 * config/tc-v850.c (md_assemble): Fix range check for immediate
3366 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3368 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3369 to Broadcom SB-1 core support.
3371 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3373 * config/tc-mips.c (mips_target_format): Fix formatting.
3374 Add recognition of n32 ABI formats.
3376 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3378 * tc-mips.c (load_address): Don't clobber $at when loading a
3379 64-bit address in non-PIC code if noat is in effect.
3382 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3384 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3385 used in division/multiply macro expansions similarly to how they
3386 are used in the variants with break instructions.
3389 2002-07-30 Graeme Peterson <gp@qnx.com>
3391 * configure.in: Add support for arm-*-nto target.
3392 * configure: Regenerate.
3394 2002-07-30 Nick Clifton <nickc@redhat.com>
3396 * config/tc-arm.c (struct literal_pool): Add fields to allow
3397 multiple literal pools to be maintained.
3398 (find_literal_pool): New function.
3399 (find_or_make_literal_pool): New function.
3400 (add_to_literal_pool): Use find_or_make_literal_pool.
3401 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3403 (s_ltorg): Use find_literal_pool.
3404 (arm_cleanup): Dump all literal pools.
3405 * doc/c-arm.texi: Document new behaviour of only dumping literal
3408 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3410 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3411 rather than PPC_OPCODE_32 for powerpc64*.
3413 2002-07-25 Nick Clifton <nickc@redhat.com>
3415 * po/es.po: Updated Spanish translation.
3416 * po/fr.po: Updated French translation.
3418 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3420 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3421 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3422 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3423 * configure, config.in: Regenerate.
3424 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3425 (mips_set_options): Remove "abi" field.
3426 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3429 (mips_arch_string, mips_arch_info): New vars.
3430 (mips_tune_string, mips_tune_info): New vars.
3431 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3432 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3433 (mips_isa_to_str, mips_cpu_to_str): Remove.
3434 (mips_ip): If the selected architecture is a generic ISA rather
3435 than a processor, only mention the ISA level in error messages.
3436 (OPTION_MCPU): Remove.
3438 (md_longopts): Add -mfp64, remove -mcpu.
3439 (mips_set_option_string): New fn.
3440 (md_parse_option): Make -mipsN update file_mips_isa rather than
3441 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3442 Don't let -mgp32 and -mfp32 change the ABI.
3443 (show): Move to end of file. Constify string argument.
3444 (md_show_usage): Move to the end of the file. Read available
3445 architectures from mips_cpu_info_table.
3446 (mips_set_architecture): New fn.
3447 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3448 is an alias for -march=mipsN. Don't change the ABI based on other
3449 flags. Infer the register size from the ABI as well as the
3450 architecture. Complain about more conflicting arguments.
3451 Unify logic with GCC.
3452 (s_mipsset): Don't change the ABI.
3453 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3454 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3455 "mipsN"-type entries. Remove entries that vary only in the
3456 manufacturer's prefix, or that have "000" replaced by "k".
3457 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3458 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3459 (mips_parse_cpu): New fn.
3460 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3461 (mips_cpu_info_from_isa): Minor formatting tweak.
3463 2002-07-24 Nick Clifton <nickc@redhat.com>
3465 * po/sv.po: Updated Swedish translation.
3466 * po/es.po: Updated Spanish translation.
3468 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3470 * Makefile.am: Run "make dep-am".
3471 * Makefile.in: Regenerate.
3472 * doc/Makefile.in: Regenerate.
3473 * config.in: Regenerate.
3474 * po/POTFILES.in: Regenerate.
3476 2002-07-23 Nick Clifton <nickc@redhat.com>
3478 * po/fr.po: Updated French translation.
3480 2002-07-23 Nick Clifton <nickc@redhat.com>
3482 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3485 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3487 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3488 instead of S_IS_EXTERN.
3489 (md_estimate_size_before_relax): Likewise.
3490 (mips_fix_adjustable): Likewise.
3492 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3494 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3496 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3497 Nick Clifton <nickc@redhat.com>
3499 * cond.c (s_ifdef): Treat a referenced but not yet defined
3500 symbol as if it were undefined, in exactly the same way as
3503 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3504 consider referenced bug not yet defined symbols to be
3507 2002-07-18 Denis Chertykov <denisc@overta.ru>
3508 Frank Ch. Eigler <fche@redhat.com>
3509 Alan Lehotsky <alehotsky@cygnus.com>
3510 John Healy <jhealy@redhat.com>
3511 Jeff Johnston <jjohnstn@redhat.com>
3513 * configure.in: Add ip2k configuraton.
3514 * configure: Regenerate.
3515 * Makefile.am: Add ip2k configuraton.
3516 * Makefile.in: Regenerate.
3517 * configure: Regenerate.
3518 * Makefile.in: Regenerate.
3519 * config/tc-ip2k.c: New file.
3520 * config/tc-ip2k.h: New files.
3521 * NEWS: Mention new support.
3522 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3523 * doc/Makefile.in: Regenerate.
3524 * doc/all.texi: Set IP2K
3525 * doc/as.texinfo: Add IP2K description.
3526 * doc/c-ip2k.texi: New file.
3528 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3530 * NEWS: Reformat to match style of other NEWS files.
3532 2002-07-17 Jan Hubicka <jh@suse.cz>
3534 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3536 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3538 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3540 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3542 * NEWS: Add 'Changes in 2.13'.
3544 2002-07-15 Matt Fredette <fredette@netbsd.org>
3546 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3548 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3550 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3551 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3554 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3556 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3557 (ppc_frob_file_before_adjust): New function.
3558 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3559 (ppc_elf_frob_symbol): Don't declare.
3560 (tc_frob_file_before_adjust): Define.
3561 (ppc_frob_file_before_adjust): Declare.
3563 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3564 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3567 (ppc_xcoff64): Rename to ppc_obj64.
3568 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3569 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3570 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3572 (ppc_target_format): Use ppc_obj64 to select format.
3573 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3574 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3575 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3576 (tc_frob_symbol): Likewise.
3577 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3578 BFD_DEFAULT_TARGET_SIZE.
3580 (ppc_is_toc_sym): Likewise.
3581 (md_apply_fix3): Likewise.
3582 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3583 BFD_DEFAULT_TARGET_SIZE.
3584 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3585 (tc_frob_symbol): Likewise.
3587 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3589 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3590 (mips_ip): Likewise.
3592 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3594 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3595 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3596 (md_apply_fix3): Formatting. Remove redundant test.
3597 (tc_gen_reloc): Remove redundant code.
3598 (tc_i386_force_relocation): Delete. Movy body of function to..
3599 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3601 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3603 * configure.in: Add hppa-*-openbsd* target, change
3604 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3606 * configure: Regenerate.
3608 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3610 * config/tc-mips.c (macro): Shift the 32-bit address range
3611 accessible with a lone "lui" down by 32768.
3613 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3615 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3616 instead of "dadd" in address calculations.
3619 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3621 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3623 (md_assemble): Instead, zap the suffix here.
3625 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3627 * NEWS: Remove next release number until the release is actually
3630 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3632 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3634 * Makefile.in: Regenerate.
3636 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3638 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3639 to symbols in merge sections, even non pc-relative ones.
3641 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3643 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3645 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3647 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3648 .softregs and .eeprom.
3650 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3652 * NEWS: Note the next release is 2.13.
3654 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3656 * po/tr.po: New translation imported.
3658 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3660 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3661 (ecoff_directive_def): Likewise.
3662 (ecoff_directive_tag): Likewise.
3663 * listing.c (file_info): Likewise.
3664 * hash.c (what): Likewise.
3666 2002-06-25 H.J. Lu <hjl@gnu.org>
3668 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3669 * Makefile.in: Regenerated.
3671 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3673 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3674 (assemble_ppi): Generate warning if the same register is used
3675 twice as destination in the same padd / pmuls instruction.
3677 2002-06-18 Dave Brolley <brolley@redhat.com>
3679 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3680 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3681 * configure.in: Support frv-*-*.
3682 * Makefile.am (CPU_TYPES): Add frv.
3683 (TARGET_CPU_CFILES): Add tc-frv.c.
3684 (TARGET_CPU_HFILES): Add tc-frv.h.
3685 (DEPTC_frv_coff): New variable.
3686 (DEPTC_frv_elf): New variable.
3687 (DEPOBJ_frv_coff): New variable.
3688 (DEPOBJ_frv_elf): New variable.
3689 (DEP_frv_coff): New variable.
3690 (DEP_frv_elf): New variable.
3691 * tc-frv.c: New file.
3692 * tc-frv.h: New file.
3694 2002-06-17 Catherine Moore <clm@redhat.com>
3696 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3698 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3700 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3702 2002-06-17 Tom Rix <trix@redhat.com>
3704 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3706 2002-06-14 H.J. Lu <hjl@gnu.org>
3707 Daniel Jacobowitz <drow@mvista.com>
3709 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3710 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3711 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3712 and new_logical_line for the first .file directive.
3713 * read.c (s_app_file_string): New function.
3714 (s_app_file): Call it.
3715 * read.h (s_app_file_string): Add declaration.
3717 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3719 * configure.in: Remove MIPS_STABS_ELF.
3720 * configure: Regenerated.
3721 * config.in: Regenerated.
3722 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3724 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3726 (pdr_seg): Declare unconditionally.
3727 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3728 (s_mips_end): Likewise. Generate stabs function markers.
3729 (s_mips_ent): Generate stabs function markers.
3730 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3732 (s_mips_mask): Likewise.
3733 (mips_flag_mdebug): New.
3734 (md_longopts): Add "mdebug" and "no-mdebug".
3735 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3736 (mips_after_parse_args): Set mips_flag_mdebug.
3737 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3739 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3741 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3742 value twice for RELA relocations.
3744 2002-06-12 Ben Elliston <bje@redhat.com>
3746 * symbols.c (resolve_symbol_value): Initialise final_val.
3748 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3750 2002-06-11 Tom Rix <trix@redhat.com>
3752 * config/tc-ppc.c (ppc_subseg_align): Delete.
3753 (ppc_change_csect): Default csect align is 2.
3754 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3756 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3758 * config/tc-avr.c (mcu_types): Update.
3760 2002-06-08 Matt Thomas <matt@3am-software.com>
3762 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3763 (vax-*-netbsd*): New targets.
3764 * configure: Regenerate.
3765 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3766 * config/tc-vax.c: Add support for ELF and PIC.
3767 (flag_want_pic): New flag.
3768 (float_cons): Fix prototype.
3769 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3770 (md_assemble): Introduce a new is_absolute local, and use it
3771 rather than repeating the test. Make fatal errors actually
3772 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3773 Add support for ELF. Add support for PIC.
3774 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3775 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3777 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3778 optional for a.out, and not allowed for VMS. Adjust all callers.
3779 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3780 (md_create_long_jump): Likewise.
3781 (md_undefined_symbol): Likewise.
3782 (md_section_align): Likewise.
3783 (md_shortopts): Allow -k and -K for ELF.
3784 (md_parse_option): Set flag_want_pic if -k or -K.
3785 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3786 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3787 * config/tc-vax.h (tc_headers_hook): Remove.
3788 (TARGET_FORMAT): Set according to object format and target
3790 (BFD_ARCH, TARGET_ARCH): Define.
3791 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3792 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3793 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3794 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3796 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3798 * Makefile.am: Run "make dep-am".
3799 * Makefile.in: Regenerate.
3801 * as.c: Replace CONST with const.
3802 * write.c: Likewise.
3803 * config/obj-coff.c: Likewise.
3804 * config/tc-a29k.c: Likewise.
3805 * config/tc-arm.c: Likewise.
3806 * config/tc-dlx.c: Likewise.
3807 * config/tc-h8300.c: Likewise.
3808 * config/tc-h8500.c: Likewise.
3809 * config/tc-i370.c: Likewise.
3810 * config/tc-i860.c: Likewise.
3811 * config/tc-i960.c: Likewise.
3812 * config/tc-m68hc11.c: Likewise.
3813 * config/tc-m68k.c: Likewise.
3814 * config/tc-m88k.c: Likewise.
3815 * config/tc-mcore.c: Likewise.
3816 * config/tc-mips.c: Likewise.
3817 * config/tc-ns32k.c: Likewise.
3818 * config/tc-pdp11.c: Likewise.
3819 * config/tc-pj.c: Likewise.
3820 * config/tc-s390.c: Likewise.
3821 * config/tc-sh.c: Likewise.
3822 * config/tc-sparc.c: Likewise.
3823 * config/tc-tahoe.c: Likewise.
3824 * config/tc-tic80.c: Likewise.
3825 * config/tc-v850.c: Likewise.
3826 * config/tc-vax.c: Likewise.
3827 * config/tc-w65.c: Likewise.
3828 * config/tc-z8k.c: Likewise.
3830 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3832 Based on patch from Matt Green:
3833 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3834 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3835 (s_mips_loc): New function.
3836 (mips_nonecoff_pseudo_table): Call them.
3837 (append_insn): Call dwarf2_emit_insn.
3839 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3841 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3843 (file_ase_mips16): New veriable.
3844 (mips_eabi64): Remove.
3845 (CPU_HAS_MIPS16): New define.
3846 (CPU_HAS_MDMX): Fix data type.
3847 (md_begin): Code cleanup. Use file_ase_mips16.
3848 (mips_elf_final_processing): Handle mips16 header flag.
3849 Handle EABI flag without intermediate variable.
3851 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3853 * doc/as.texinfo: Update MIPS documentation.
3855 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3857 * config/tc-mips.c: Add define for $zero register.
3858 (md_begin): Add $zero as alias name for $0.
3859 (insn_uses_reg): Use ZERO define.
3860 (mips_ip): Add $zero as alias name for $0.
3861 (mips16_ip): Likewise.
3862 (s_cplocal): Demand empty rest of input line.
3863 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3864 names. Use ZERO define. Fix input_line_pointer progress.
3866 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3868 * symbols.c: Replace CONST by const throughout.
3869 (symbol_find_exact): Split out from..
3870 (symbol_find_base): ..here.
3871 * symbols.h: Replace CONST by const throughout.
3872 (symbol_find_exact): Declare.
3873 * config/obj-elf.c: #include "struc-symbol.h".
3874 (elf_frob_file): If group name matches an exported symbol, use that
3875 symbol for the signature and ".group" as the section name.
3877 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3879 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3882 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3884 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3885 and mips_opts.ase_mdmx if they are uninitialized.
3887 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3889 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3890 (hppa_force_relocation): Check if a stub just before the start symbol
3891 of the last call_info is reachable before forcing relocation. Fix
3894 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3896 * config/tc-mips.c (mips_after_parse_args): New function.
3897 (md_begin): Move processing of defaults to mips_after_parse_args.
3898 config/tc-mips.h (md_after_parse_args): Define.
3900 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3902 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3903 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3904 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3905 * configure: Regenerate.
3906 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3909 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3911 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3913 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3915 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3916 linkonce flag. Print all warnings.
3917 (obj_elf_section): Parse ",comdat" for groups.
3918 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3919 consistency of comdat flag.
3921 2002-06-02 Richard Henderson <rth@redhat.com>
3923 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3924 with LITERALs without sequence numbers.
3926 2002-06-01 Richard Henderson <rth@redhat.com>
3928 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3929 Rename them LITUSE_ALPHA_*.
3931 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3933 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3934 accept parentheses enclosed register lists.
3936 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3938 * Makefile.am: Run "make dep-am".
3939 * Makefile.in: Regenerate.
3940 * po/POTFILES.in: Regenerate.
3942 2002-05-31 Graeme Peterson <gp@qnx.com>
3944 * configure.in: Add i386-*-nto-qnx*.
3945 * configure: Regenerate.
3947 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3949 * config/tc-mips.c (mips_ip): Use unsigned long values for
3952 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3954 * config/tc-mips.c (s_cpsetup): Fix initialization of
3955 mips_cpreturn_register and mips_cpreturn_offset.
3957 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3959 * config/tc-mips.c (s_cpsetup): Fix comment.
3961 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3963 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3964 (mips_ip): Likewise.
3965 (mips16_ip): Likewise.
3966 (tc_get_register): Likewise.
3968 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3969 Ed Satterthwaite <ehs@broadcom.com>
3971 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3972 (mips_opts): Initialize "ase_mdmx" member.
3973 (file_ase_mdmx): New variable.
3974 (CPU_HAS_MDMX): New macro.
3975 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3976 based on command line options and configuration defaults.
3977 (macro_build): Note in comment that use of MDMX in macros is
3978 not currently allowed.
3979 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3980 "Z" MDMX operand types.
3981 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3982 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3984 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3985 Add support for "-mdmx" and "-no-mdmx" options.
3986 (OPTION_ELF_BASE): Move to accomodate new options.
3987 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3988 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3989 file_ase_mdmx was set.
3990 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3991 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3994 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3996 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3997 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3998 command line switch conforming to gcc conventions.
3999 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4001 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4003 * config/tc-mips.c (macro_build_jalr): New Function.
4004 (md_begin): NewABI uses big GOTs.
4005 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4006 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4007 (load_address): Add some NewABI PIC support.
4009 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4010 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4012 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4014 * config/tc-mips.c (load_address): Use mips_gp_register instead
4015 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4017 (macro): Use mips_gp_register instead of hardcoded value.
4019 2002-05-30 Richard Henderson <rth@redhat.com>
4021 * expr.h (operatorT): Add O_md17..O_md32.
4022 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4023 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4024 O_tprelhi, O_tprello, O_tprel): New.
4025 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4026 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4027 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4028 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4029 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4030 (md_apply_fix3): Handle TLS relocations.
4031 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4032 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4033 associated TLS reloc. Check lituse_tls relocs match up.
4034 (emit_insn): Handle TLS relocations.
4037 * doc/c-alpha.texi: Add docs for tls relocations.
4039 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4041 * config/tc-mips.c (mips_gprel_offset): New variable.
4042 (s_gpvalue): Use it.
4044 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4046 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4047 write-write conflicts.
4048 (md_assemble): Reformat introductory comment.
4049 (parallel_ok): Prevent packing only if the first
4050 instruction cannot be packed.
4052 2002-05-30 Jason Eckhardt <jle@redhat.com>
4053 Tom Rix <trix@redhat.com>
4055 * config/tc-d10v.c (build_insn): Check for immediates.
4057 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4059 * config/tc-mips.c: Replace GP in comments by $gp.
4060 (mips_big_got): Initialize.
4061 (mips_trap): Initialize.
4062 (load_address): Use mips_gp_register instead of hardcoded value.
4063 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4064 (macro): Use mips_gp_register instead of hardcoded value.
4065 (macro2): Change load_address calls.
4066 (md_pcrel_from): Comment formatting.
4067 (s_cpload): Use mips_gp_register instead of hardcoded value.
4068 (s_cprestore): Likewise. Comment formatting.
4069 (s_gpword): Fix data type.
4070 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4071 (nopic_need_relax): Replace GP in comments by $gp.
4072 (mips_elf_final_processing): Better comment.
4074 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4076 * configure.in: Add DLX configuraton
4077 * Makefile.am: Add DLX configuraton
4078 * configure: Regenerate.
4079 * Makefile.in: Regenerate.
4080 * config/tc-dlx.c: New file.
4081 * config/tc-dlx.h: New files.
4082 * NEWS: Mention new support.
4084 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4086 * config/obj-coff.c (write_object_file): Add missing semicolon.
4088 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4090 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4091 by the define. Remove superfluous check of mips_opts.mips16.
4092 (append_insn): Likewise. Canonicalize variable increments.
4093 (macro_build): Canonicalize variable increments.
4094 (macro_build_lui): Likewise.
4095 (load_register): Likewise.
4096 (load_address): Move pointer initialization.
4097 (macro): Move pointer to a more local scope. Canonicalize variable
4098 increments. Better comments. Replace magic constant for RA by the
4100 (macro2): Replace magic constant for RA by the define. Canonicalize
4101 variable increments.
4102 (mips_ip): Canonicalize variable increments.
4103 (mips16_ip): Replace magic constant for RA by the define.
4104 (my_getSmallParser): Canonicalize variable increments/decrements.
4105 (my_getPercentOp): Likewise.
4106 (my_getSmallExpression): Likewise.
4107 (s_align): Likewise.
4108 (s_mipsset): Likewise.
4109 (s_cpsetup): Likewise.
4110 (s_insn): Remove superfluous check of mips_opts.mips16.
4111 (s_mips_stab): Likewise.
4112 (mips_handle_align): Canonicalize variable increments.
4113 (s_mips_ent): Likewise.
4114 (s_mips_end): Add comment.
4116 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4118 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4119 * configure: Regenerate.
4121 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4123 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4124 * Makefile.in: Regenerate.
4125 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4126 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4127 * configure: Regenerate.
4128 * as.h: Use #include "" instead of <> for local header files.
4129 * flonum-konst.c: Likewise.
4130 * flonum-mult.c: Likewise.
4132 * listing.c: Likewise.
4133 * config/tc-ia64.h: Likewise.
4134 * config/tc-v850.h: Likewise.
4136 2002-05-24 TAMURA Kent <kent@netbsd.org>
4138 * configure.in: Add a target for i386-netbsdpe.
4139 * configure: Regenerate.
4141 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4143 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4144 (obj_elf_common): Call elf_common.
4145 (obj_elf_tls_common): New function.
4146 (elf_pseudo_tab): Support .tls_common.
4147 (special_sections): Add .tdata and .tbss.
4148 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4150 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4151 (obj_elf_parse_section_letters): Include T in error message.
4152 * config/tc-ppc.c (ppc_section_letter): Likewise.
4153 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4154 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4156 * config/tc-sparc.c (md_apply_fix3): Likewise.
4157 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4158 Define them if not BFD_ASSEMBLER.
4159 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4161 (md_apply_fix3): Add TLS relocs.
4162 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4163 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4164 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4165 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4166 (ia64_elf_section_letter): Include T in error message.
4167 (md_begin): Support TLS operators.
4168 (md_operand): Likewise.
4169 (ia64_gen_real_reloc_type): Support TLS relocs.
4170 * write.c (adjust_reloc_syms): Don't change symbols in
4171 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4173 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4175 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4176 round the relocation up rather than down.
4178 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4180 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4182 * doc/as.texinfo: Document that the COFF version of .section
4183 ignores the 'a' flag.
4185 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4187 * config/tc-alpha.c (assemble_tokens): Protect use of
4188 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4190 * write.c (size_seg): Check adjustment to last frag.
4191 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4193 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4194 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4195 (write_object_file): Invoke md_do_align if available, and use
4196 frag_align_code on text sections.
4197 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4198 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4199 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4200 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4201 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4204 2002-05-22 H.J. Lu <hjl@gnu.org>
4206 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4209 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4211 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4214 2002-05-22 H.J. Lu <hjl@gnu.org>
4216 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4217 for one .loc for compiler.
4219 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4221 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4224 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4226 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4227 Optimize the rotate by zero case.
4229 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4231 * configure.in: Remove accidental enabling of bfd_gas=yes for
4233 * configure: Regenerate.
4235 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4237 * app.c: Fix formatting.
4239 * ehopt.c: Likewise.
4241 * input-file.c: Likewise.
4242 * listing.c: Likewise.
4243 * macro.h: Likewise.
4244 * stabs.c: Likewise.
4245 * symbols.c: Likewise.
4247 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4249 * config/obj-generic.c: Delete file.
4250 * config/obj-generic.h: Likewise.
4252 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4254 * config/tc-avr.c (mcu_types): Update for new devices.
4256 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4258 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4260 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4262 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4263 worked sometimes by accident. Fix copy&paste comment.
4265 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4267 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4268 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4269 (mips_elf_final_processing): Let n32 use .reginfo.
4271 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4273 * config/tc-mips.c (append_insn): Fix too small range of variable.
4275 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4277 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4278 listing_prev_line().
4280 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4282 * config/tc-arm.c (md_assemble): Remove redundant call to
4285 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4288 * stabs.c (s_stab_generic): Fix grammatical error in warning
4291 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4293 * write.c (subsegs_finish): Don't specially align last subseg.
4295 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4297 * stabs.c (s_stab_generic): Warn about a description field that is
4300 * config/obj-coff.c: Fix compile time warnings when compiling
4301 without BFD_ASSEMBLER defined.
4304 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4306 (md_pcrel_from_section): Use md_pcrel_from().
4308 2002-05-11 Bruno Haible <bruno@clisp.org>
4310 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4311 by dwarf2_directive_loc, instead of calling dwarf2_where.
4313 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4315 * config/obj-coff.h: Fix formatting.
4316 * config/tc-mcore.c: Likewise.
4317 * config/tc-mn10300.c: Likewise.
4318 * config/tc-openrisc.c: Likewise.
4319 * config/tc-or32.c: Likewise.
4320 * config/tc-pdp11.c: Likewise.
4321 * config/tc-ppc.c: Likewise.
4322 * config/tc-ppc.h: Likewise.
4323 * config/tc-sh64.c: Likewise.
4324 * config/tc-sh.c: Likewise.
4325 * config/tc-tic54x.c: Likewise.
4326 * config/tc-xstormy16.c: Likewise.
4327 * config/tc-xstormy16.h: Likewise.
4329 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4331 * config/obj-coff.c: Fix formatting.
4332 * config/obj-elf.c: Likewise.
4333 * config/tc-alpha.c: Likewise.
4334 * config/tc-arm.c: Likewise.
4335 * config/tc-d10v.c: Likewise.
4336 * config/tc-d30v.c: Likewise.
4337 * config/tc-h8300.c: Likewise.
4338 * config/tc-hppa.c: Likewise.
4340 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4342 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4343 reloc when no_cond_jump_promotion.
4345 2002-05-08 Jim Wilson <wilson@redhat.com>
4347 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4348 current variable part of frag.
4350 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4352 * config/tc-mmix.c: Fix formatting.
4353 * config/tc-mmix.h: Likewise.
4355 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4357 * configure: Regenerate.
4359 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4361 * config/tc-m68k.c: Fix formatting.
4363 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4365 * Makefile.am: Honour DESTDIR.
4366 * Makefile.in: Regenerate.
4368 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4370 * config/tc-ia64.c: Fix formatting.
4371 * config/tc-ia64.h: Likewise.
4373 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4375 * config/tc-mips.c: Fix formatting.
4376 * config/tc-s390.c: Likewise.
4377 * config/tc-s390.h: Likewise.
4379 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4381 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4382 information for instructions.
4384 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4386 * as.h: Fix formatting.
4389 * dwarf2dbg.c: Likewise.
4390 * frags.h: Likewise.
4392 * macro.c: Likewise.
4394 * stabs.c: Likewise.
4395 * symbols.c: Likewise.
4397 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4399 * app.c (mri_pseudo): Only declare for TC_M68K.
4401 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4402 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4403 BFD_RELOC_16_BASEREL.
4404 (md_assemble): Likewise.
4405 (md_apply_fix3): Likewise.
4407 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4409 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4410 zero into an add of zero - it is not the same.
4412 2002-05-01 Arati Dikey <aratid@kpit.com>
4414 * tc-sh.c (get_specific): Generate warning if the same
4415 destination register is used in parallel instructions.
4417 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4419 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4421 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4423 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4424 backwards to prevent cascading errors.
4426 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4428 * configure.in: Add support for powerpc-*-windiss.
4429 * configure: Regenerated.
4431 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4433 * config/tc-s390.c (md_parse_option): Formatting.
4435 * config/tc-i386.c: Formatting fixes, add missing space in error
4438 2002-04-24 Christian Groessler <chris@groessler.org>
4440 * config/tc-z8k.c (build_bytes): Add support for new cases:
4441 CLASS_IGNORE and ARG_NIM4.
4442 (md_assemble): Prevent destruction of input_line_pointer if
4443 get_operands returns failure.
4445 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4447 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4448 instructions to be generated by macros.
4450 2002-04-24 Andreas Schwab <schwab@suse.de>
4452 * config/tc-i386.c (output_jump, output_disp)
4453 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4455 (md_apply_fix3): Remember addend value for rela relocations.
4456 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4458 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4460 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4461 from previous change.
4463 2002-04-22 Eric Christopher <echristo@redhat.com>
4465 * config/tc-mips.c (macro_build): Add warning if macro instructions
4466 are expanded into a branch delay slot.
4468 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4470 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4471 numbers, gdb relies on them to detect the start of the prologue.
4473 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4475 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4476 symbols in merge sections.
4478 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4480 * as.c (main): Don't reference _bfd_chunksize.
4482 2002-04-15 Tom Rix <trix@redhat.com>
4484 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4485 symbols in merge sections.
4487 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4489 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4490 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4491 argument for the precision.
4492 (gen_to_words): Update accordingly.
4494 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4496 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4497 BFD_VERSION_STRING unavailable.
4498 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4500 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4502 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4503 symbol_used_in_reloc_p is true.
4505 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4508 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4510 * dep-in.sed: Cope with absolute paths.
4511 * Makefile.am (dep.sed): Subst TOPDIR.
4513 * Makefile.in: Regenerate.
4515 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4517 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4518 (mips_ip): Remove unused variable.
4519 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4520 unsigned char with bfd_byte.
4521 (s_file): Remove unused variable.
4522 (s_mips_ent): Likewise.
4524 2002-04-03 Tom Rix <trix@redhat.com>
4526 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4528 (find_opcode): Fix warning in as_warn.
4529 * config/tc-d10v.h: Update Copyright.
4531 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4532 Tom Rix <trix@redhat.com>
4534 From Jeff Knaggs <jknaggs@redhat.com>
4535 * config/tc-d10v.c (check_resource_conflict): New function to
4536 check for resource conflicts.
4538 From Jason Eckhardt <jle@redhat.com>
4539 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4541 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4542 reserved control registers is used.
4543 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4546 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4547 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4548 instruction cannot be packed.
4550 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4551 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4552 write-write conflicts.
4553 (md_assemble): Reformat introductory comment.
4554 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4557 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4559 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4560 O_logical_not>): Derive final_seg from add_symbol.
4561 <O_multiply..O_logical_or>: More final_seg twiddles.
4563 2002-04-01 Jessica Han <jessica@cup.hp.com>
4565 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4568 2002-03-27 Andreas Schwab <schwab@suse.de>
4570 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4571 field for pc-relative fixups.
4572 (output_disp): Likewise.
4573 (md_estimate_size_before_relax): Likewise.
4574 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4575 pc-relative fixups in 64bit mode.
4577 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4579 * config/te-aix5.h: Typo fix.
4581 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4583 * Makefile.am: Run "make dep-am".
4584 * Makefile.in: Regenerate.
4585 * doc/Makefile.in: Regenerate.
4587 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4589 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4590 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4592 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4594 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4595 the EXTENDED bit here; report the estimate according to the
4598 2002-03-18 Tom Rix <trix@redhat.com>
4600 * configure.in: Add AIX 5 support.
4601 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4602 * config/te-aix5.h: New file. AIX 5 support.
4603 * configure: Regenerate.
4605 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4607 * po/fr.po: Updated version.
4609 2002-03-16 Andreas Jaeger <aj@suse.de>
4611 * doc/c-mips.texi (Machine Dependencies): Add new node.
4613 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4615 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4616 (mips_opts): Initialize "ase_mips3d" member.
4617 (file_ase_mips3d): New variable.
4618 (CPU_HAS_MIPS3D): New macro.
4619 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4620 based on command line options and configuration defaults.
4621 (macro_build, mips_ip): Accept MIPS-3D instructions if
4622 mips_opts.ase_mips3d is set.
4623 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4624 Add support for "-mips3d" and "-no-mips3d" options.
4625 (OPTION_ELF_BASE): Move to accomodate new options.
4626 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4627 (mips_elf_final_processing): Add a comment indicating that a
4628 MIPS-3D ASE ELF header flag should be set, when one exists.
4629 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4630 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4631 nomips3d" directives.
4633 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4635 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4636 a weak symbol in same section to be within reach.
4638 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4640 * po/fr.po: Updated version.
4642 2002-03-12 Andreas Schwab <schwab@suse.de>
4644 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4645 body record so that an error is given for misplaced .save
4648 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4650 * config/tc-i386.h (REX_OPCODE): Define.
4651 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4652 (rex_byte): typedef to int.
4653 * config/tc-i386.c: Group prototypes and vars together.
4654 Formatting fixes. Remove occurrences of "register" keyword.
4657 (mode_from_disp_size): Add INLINE keyword to prototype.
4658 (fits_in_signed_byte): Likewise.
4659 (fits_in_unsigned_byte): Likewise.
4660 (fits_in_unsigned_word): Likewise.
4661 (fits_in_signed_word): Likewise.
4662 (fits_in_unsigned_long): Likewise.
4663 (fits_in_signed_long): Likewise.
4664 (type_names): Constify.
4665 (intel_float_operand): Constify param.
4666 (add_prefix): Use REX_OPCODE.
4667 (md_assemble): Likewise. Modify for changed rex_byte.
4668 (parse_insn): Split out of md_assemble.
4669 (parse_operands): Likewise.
4670 (swap_operands): Likewise.
4671 (optimize_imm): Likewise.
4672 (optimize_disp): Likewise.
4673 (match_template): Likewise.
4674 (check_string): Likewise.
4675 (process_suffix): Likewise.
4676 (check_byte_reg): Likewise.
4677 (check_long_reg): Likewise.
4678 (check_qword_reg): Likewise.
4679 (check_word_reg): Likewise.
4680 (finalize_imm): Likewise.
4681 (process_operands): Likewise.
4682 (build_modrm_byte): Likewise.
4683 (output_insn): Likewise.
4684 (output_branch): Likewise.
4685 (output_jump): Likewise.
4686 (output_interseg_jump): Likewise.
4687 (output_disp): Likewise.
4688 (output_imm): Likewise.
4690 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4692 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4694 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4696 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4697 relocs except when BFD64.
4699 * write.c (number_to_chars_bigendian): Don't abort when N is
4700 larger than sizeof (VAL).
4701 (number_to_chars_littleendian): Likewise.
4703 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4705 * config/tc-hppa.c (md_apply_fix3): Add cast.
4706 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4709 2002-03-05 Paul Koning <pkoning@equallogic.com>
4711 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4712 (parse_ac5): New function for parsing float regs in float operand.
4713 (parse_expression): Remove attempt to make literals be octal.
4714 (parse_op_no_deferred): Support float literals.
4715 (parse_op): Reject attempts to refer to float regs.
4716 (parse_fop): New function, like parse_op but for float operand.
4717 (md_assemble): Add cases to parse float operands. Also fix
4718 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4720 2002-03-04 H.J. Lu <hjl@gnu.org>
4722 * config/obj-elf.c (special_section): Add .init_array,
4723 .fini_array and .preinit_array.
4725 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4726 .init_array and .fini_array.
4728 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4730 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4732 (obj_frob_symbol): Copy visibility.
4734 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4736 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4738 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4740 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4742 * po/es.po: Updated.
4744 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4746 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4747 only, undo the changes made on 2001-06-08, with the
4748 effect being that common or extern symbols are
4749 adjusted for embedded-PIC, but weak symbols are not.
4750 (md_estimate_size_before_relax: Likewise, with the effect
4751 that extern symbols are treated the same as weak symbols
4752 only if not embedded-PIC.
4753 (mips_fix_adjustable) Likewise, with the effect that
4754 weak or extern symbols are not adjusted for embedded-PIC.
4755 (md_apply_fix3): Tweak so that the case where value is zero
4756 is handled more correctly for embedded-PIC code.
4758 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4760 * doc/as.texinfo (Overview): Add missing @ifset IA64
4762 * configure.in (LINGUAS): Add es.po.
4763 * configure: Regenerate.
4764 * po/es.po: New file.
4766 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4768 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4769 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4770 and NO_PIC cases. Code cleanup.
4771 (macro2): Fix handling of 64bit register loads.
4773 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4775 * doc/as.texinfo: Add entry for IA64.
4776 * doc/c-ia64.texi: New file.
4778 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4780 * config/tc-hppa.c: Update copyright date.
4782 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4783 Remove references to chip manufacturers.
4784 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4786 (md_show_usage): Remove references to chip manufacturers. Mention
4788 (md_begin): Test power4 opcode flag bits.
4790 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4792 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4793 count exceeds prologue count.
4794 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4795 (unwind.label_prologue_count): New member.
4797 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4799 (get_saved_prologue_count): New function.
4800 (save_prologue_count): New function.
4801 (free_saved_prologue_count): New function.
4802 (dot_label_state): Record state label by calling save_prologue_count().
4803 (dot_copy_state): Restore prologue count by calling
4804 get_saved_prologue_count().
4805 (generate_unwind_image): Free up list of saved prologue
4806 counts by calling free_saved_prologue_counts().
4808 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4810 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4811 function declarations.
4813 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4815 * NEWS: Note that GASP is now deprecated.
4816 * Makefile.am: Do not build gasp-new by default.
4817 * Makefile.in: Regenerate.
4818 * doc/Makefile.am: Do not install gasp.info.
4819 * doc/Makefile.in: Regenerate.
4820 * gas/gasp.texi: Note that gasp is now deprecated.
4822 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4824 * NEWS: Mark 2.12 branch.
4826 2002-02-19 Tom Tromey <tromey@redhat.com>
4828 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4830 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4832 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4835 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4837 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4838 Make bit size independent of architecture switch.
4839 (md_begin): Add warning for -m64 with -Aesa.
4840 (s390_md_end): Use renamed architecture defines.
4842 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4844 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4846 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4848 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4851 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4853 * config/tc-mips.c (md_estimate_size_before_relax): Really
4854 make sure we treat weak like extern only for ELF. (Fixes
4855 patch from 2001-07-25.)
4857 2002-02-15 Ben Elliston <bje@redhat.com>
4859 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4862 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4864 * NEWS: Mention support for MMIX.
4866 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4868 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4869 a sequence of indpendent 'if' statements for easier debugging
4870 and future modification.
4872 2002-02-13 Matt Fredette <fredette@netbsd.org>
4874 * config/tc-m68k.c (md_show_usage): No longer display a
4875 hard-coded "68020" for the default CPU, instead display the
4876 canonical name of the true, configured default CPU.
4877 (m68k_elf_final_processing): Mark objects for sub-68020
4878 CPUs with the new EF_M68000 flag.
4880 2002-02-13 Andreas Schwab <schwab@suse.de>
4882 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4883 pc-relative relocations to merge sections in 64-bit mode.
4885 2002-02-13 Ben Elliston <bje@redhat.com>
4887 * NEWS: Document floating point number handling in gasp.
4888 * gasp.c: Include <assert.h> and "xregex.h".
4889 (is_flonum): New function.
4890 (chew_flownum): Likewise.
4891 (change_base): Consume flonums from the input, where possible.
4892 * doc/gasp.texi (Constants): Document floating point numbers.
4894 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4896 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4897 that implicitly use LR and RR selectors.
4899 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4901 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4902 and `epsw' as available on AM33 and above only.
4903 (other_register_name): Add logic to handle machine type encoded in
4906 2002-02-11 Tom Rix <trix@redhat.com>
4908 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4911 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4913 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4916 2002-02-11 Jan Hubicka <jh@suse.cz>
4918 * i386.c (md_assemble): Support 32bit address prefix.
4919 (i386_displacement): Likewise.
4920 (i386_index_check): Accept 32bit addressing in 64bit mode.
4922 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4924 * config/tc-sh.c (dot): Removed unused function.
4926 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4928 * Makefile.am: "make dep-am".
4929 * Makefile.in: Regenerate.
4930 * aclocal.m4: Regenerate.
4931 * config.in: Regenerate.
4932 * configure: Regenerate.
4933 * doc/Makefile.in: Regenerate.
4935 2002-02-10 Richard Henderson <rth@redhat.com>
4937 * doc/c-alpha.texi: New file.
4938 * doc/Makefile.am (CPU_DOCS): Add it.
4939 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4941 2002-02-09 Richard Henderson <rth@redhat.com>
4943 * config/tc-alpha.c (O_samegp): New.
4944 (USER_RELOC_P): Include it.
4945 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4946 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4947 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4948 (alpha_validate_fix): New.
4949 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4951 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4953 * doc/c-cris.texi: New.
4954 * doc/all.texi: @set CRIS.
4955 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4956 Include c-cris.texi.
4957 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4958 * doc/Makefile.in: Regenerate.
4960 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4962 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4963 determine if a number is a sign-extended 32-bit number.
4964 (load_register): Use IS_SEXT_32BIT_NUM.
4965 (macro): Check if load/store macro handling is using a
4966 constant 32-bit address on 64-bit address systems, and if
4967 so optimize the generation of that address.
4969 2002-02-08 Richard Henderson <rth@redhat.com>
4971 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4972 we've eliminated all foreign relocation types yet.
4973 (alpha_fix_adjustable): Likewise.
4975 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4977 Contribute sh64-elf.
4978 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4979 Stephen Clarke <Stephen.Clarke@st.com>
4980 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4981 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4982 * config/tc-sh.c (md_relax_table): Added default sizes for
4983 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4984 MOVI_16, MOVI_32 and MOVI_48.
4985 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4986 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4988 (shmedia_md_estimate_size_before_relax): Remove redundant
4989 blocks. Set fragP->fr_var even if relaxation type unchanged.
4990 Retain UNDEF_MOVI until expression decays to number.
4991 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4992 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4993 relocation types. Take fixP->fx_addnumber into account too.
4994 (shmedia_md_apply_fix): Likewise.
4995 (shmedia_md_convert_frag): Likewise.
4996 (shmedia_build_Mytes): Likewise.
4997 (sh64_consume_datalabel): Complain about nested datalabel.
4998 Support PIC relocs. Call sh_parse_name.
4999 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5000 in tc-sh.h to SHmedia reloc types.
5001 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5002 MOVI_GOTPC): New relaxation constants.
5003 (md_relax_table): Introduce relaxation directives for PIC-related
5005 (sh_PIC_related_p): Handle datalabel.
5006 (sh_check_fixup): Choose SH5 PIC relocations.
5007 (sh_cons_fix_new): Added BDF_RELOC_64.
5008 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5009 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5010 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5011 current ISA is SHmedia, get 7 bytes.
5012 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5013 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5015 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5016 shmedia_apply_fix3 and make void.
5017 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5018 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5020 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5021 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5022 2001-03-14 DJ Delorie <dj@redhat.com>
5023 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5024 * doc/Makefile.in(CPU_DOCS): Ditto.
5025 * doc/c-sh64.texi: New file.
5026 * doc/as.texinfo: Add SH64 support.
5027 2001-03-13 DJ Delorie <dj@redhat.com>
5028 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5029 A_REUSE_PREV so that its purpose is more obvious.
5030 (shmedia_build_Mytes): Ditto.
5031 2001-03-07 DJ Delorie <dj@redhat.com>
5032 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5034 (sh64_vtable_inherit): Ditto.
5035 (strip_datalabels): New, strip "datalabel" from given line.
5036 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5038 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5039 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5041 (shmedia_build_Mytes): ... to here.
5042 2001-03-06 DJ Delorie <dj@redhat.com>
5043 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5045 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5046 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5047 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5048 address by one in call to dwarf2_emit_insn.
5049 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5050 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5051 alignment handling broken by imported changes.
5052 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5053 (sh64_handle_align): Declare.
5054 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5055 (sh64_max_mem_for_rs_align_code): Declare.
5056 (enum sh64_isa_values): Moved here from tc-sh64.c.
5057 (md_do_align): Define.
5058 (sh64_do_align): Declare.
5059 (struct sh64_tc_frag_data): New.
5060 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5062 (TC_FRAG_INIT): Change to set new datatype.
5063 (struct sh64_segment_info_type): Rename member
5064 last_flushed_location to last_contents_mark. All users changed.
5065 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5066 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5067 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5068 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5069 of unsetting seen_insn.
5070 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5071 call sh64_update_contents_mark.
5072 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5073 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5074 enum sh64_isa_values.
5075 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5076 (emitting_crange): Boolean guard moved to file scope from function
5077 scope in sh64_set_contents_type.
5079 (sh64_update_contents_mark): New; most split out from
5080 sh64_flush_pending_output.
5081 (shmedia_md_end): Call sh64_update_contents_mark. Set
5082 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5083 (sh64_do_align): New function.
5084 (sh64_max_mem_for_rs_align_code): New function.
5085 (sh64_handle_align): Rename from shmedia_do_align. Make
5086 non-static. Add head comment. Emit zero bytes for n bytes modulo
5087 four. Change return-type to void.
5088 (shmedia_elf_new_section): Remove.
5089 (shmedia_md_assemble): Call sh64_update_contents_mark.
5090 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5091 new frag. Call sh64_update_contents_mark after making the new
5093 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5094 and sh_flush_pending_output.
5095 (sh64_flag_output): Also call md_flush_pending_output, but add
5096 condition on not emitting_crange.
5097 (sh64_tc_cons_fix_new): Remove.
5098 2001-01-12 Nick Clifton <nickc@redhat.com>
5099 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5100 alignment handling scheme imported from sourceware.
5101 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5102 * config/tc-sh64.h (TARGET_FORMAT): Define.
5103 (sh64_target_format): Prototype.
5104 * config/tc-sh64.c (sh64_target_mach): New function.
5105 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5106 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5107 zero_address_frag instead of copying the frag of the symbol.
5108 (shmedia_frob_file_before_adjust): Ditto.
5109 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5110 to valueT to remove signedness.
5111 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5112 headers to output_bfd. Do not evaluate symbols if final is false;
5114 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5115 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5116 to the current frag, call shmedia_md_convert_frag to emit fixups
5117 and make frag_wane neutralize the frag. Update comments.
5118 * config/tc-sh.c (md_convert_frag): Change caller of
5119 shmedia_md_convert_frag.
5120 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5121 * config/tc-sh64.h: Tweak comments and correct formatting.
5122 * config/tc-sh64.c: Ditto.
5123 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5124 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5125 for the no-relocation case.
5126 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5127 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5129 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5131 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5132 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5134 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5136 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5137 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5138 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5139 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5140 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5141 if reloc is emitted.
5142 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5143 New options plus bugfixes.
5144 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5146 (md_parse_option): Handle new options.
5147 (md_show_usage): Add blurb for new options.
5148 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5149 (sh64_expand, sh64_pt32): New variables.
5150 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5151 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5152 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5153 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5154 <resolved previously-pc-relative relocs>: Handle
5155 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5156 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5157 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5158 points to SHcompact code.
5159 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5160 SH64PCREL16)>: Check that ISA of what operand points at and
5161 PTA/PTB matches, or emit error.
5162 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5163 SHMEDIA_BFD_RELOC_PT.
5164 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5166 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5167 condition for MOVI expansion.
5168 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5169 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5171 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5173 (sh64_target_format): Error-check setting of sh64_pt32 and
5174 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5175 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5176 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5177 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5178 * config/tc-sh64.c: Improve comments.
5179 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5180 not say the linker will check correctness of PTA/PTB expansion.
5181 (shmedia_md_end): Make non-static.
5182 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5184 * config/tc-sh.c (sh_finalize): Remove.
5185 * config/tc-sh.h (md_end): Do not define.
5186 Remove prototype for sh_finalize.
5187 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5188 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5189 sh64_section_data container when storing section type in tdata
5190 field in elf_section_data.
5191 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5193 * Makefile.am: Update dependencies.
5194 * Makefile.in: Regenerate.
5195 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5196 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5197 dwarf2_emit_insn call with test on debug_type.
5198 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5199 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5200 CRT_SH5_ISA32 sticky for 64-bit.
5201 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5202 Generate .crange sections when switching ISA mode or emitting
5203 constants in same section as code.
5204 * config/tc-sh64.c: Reformat structure definitions.
5205 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5207 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5208 to emit a .cranges descriptor when contents type changes. Only
5209 emit error if changing contents type and -no-mix is in effect.
5210 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5211 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5212 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5213 sh64_flush_last_crange over sections.
5214 When checking main symbol of datalabel symbol, check for
5215 STO_SH5_ISA32, not ISA type of section in definition.
5216 (shmedia_frob_file_before_adjust): Check main symbol for
5217 STO_SH5_ISA32; don't check ISA type of section in definition.
5218 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5219 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5220 .cranges entries have been output.
5221 (shmedia_elf_new_section): Just call md_flush_pending_output.
5222 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5223 fix. Do not set tc_segment_info_data.in_code for section. Call
5224 sh64_set_contents_type for SHmedia code.
5225 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5226 false. Call md_flush_pending_output.
5227 (sh64_target_format): Check that -no-mix and
5228 -shcompact-const-crange are used in sane combination with other
5230 (shmedia_md_pcrel_from_section): Check type of fix for how to
5232 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5233 not ISA type of section in definition.
5234 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5235 hold contents-type state.
5236 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5237 (sh64_flush_pending_output): Declare.
5238 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5239 (sh64_tc_cons_fix_new): Declare.
5240 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5241 call sh64_flag_output.
5242 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5243 call sh64_set_contents_type to mark SHcompact code and set
5245 (md_longopts): New options "-no-mix" and
5246 "-shcompact-const-crange".
5247 (md_parse_option): Handle new options.
5248 (md_show_usage): Add blurb for new options.
5249 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5250 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5251 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5252 (sh64_last_insn_frag): New.
5253 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5254 to get frag for insn opcode for generating fixups; do not assume it
5256 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5258 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5260 (TC_FRAG_TYPE): Define as fragS *.
5261 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5262 (sh64_last_insn_frag): Declare.
5263 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5264 not == NULL before dereferencing.
5265 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5266 Get rid of BFD section flag and EF_SH64_ABI64.
5267 * config/tc-sh64.c (shmedia_frob_section_type): Use
5268 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5269 communicate the section as containing SHmedia code. Describe why.
5270 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5271 EF_SH64 regardless of ABI.
5272 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5273 in error message. Handle resolved expressions for
5274 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5275 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5276 (shmedia_check_limits): Handle BFD_RELOC_64.
5277 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5278 a STO_SH5_ISA32 symbol, only the BFD value.
5279 2000-12-11 Ben Elliston <bje@redhat.com>
5280 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5281 dwarf2_generate_asm_lineno.
5282 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5283 Handle PC-relative MOVI expansions with assembler relaxation.
5284 Generate PC-relative relocs from 16-bit PC-relative expressions.
5285 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5286 (shmedia_md_pcrel_from_section): ...here.
5287 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5288 turned completely resolved. Adjust relocation type for 16-bit
5289 immediate operands that has turned PC-relative. Adjust back for
5290 MD_PCREL_FROM_SECTION being applied twice.
5291 (shmedia_md_convert_frag): Always emit reloc for expression with
5292 global or weak symbol. Handle relaxation result for PC-relative
5294 (shmedia_md_estimate_size_before_relax): An expression with a weak
5295 or global symbol can not be relaxed. Break out tests for
5296 relaxable symbol into variable sym_relaxable.
5297 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5298 UNDEF_MOVI)>: Break out any PC-relative expression and change
5300 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5302 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5303 MOVI expansion. If X_op_symbol of the immediate expression is
5304 set, make an expression symbol for the argument to frag_var.
5305 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5307 (END): Adjust for new relaxations.
5308 (md_relax_table): Add entries for new relaxations.
5309 2000-12-07 Ben Elliston <bje@redhat.com>
5310 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5311 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5312 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5313 SHORI operand offsets in PT/PTA/PTB expansions.
5314 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5315 Implement DataLabel semantics.
5316 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5317 shmedia_frob_file_before_adjust.
5318 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5319 (DATALABEL_SUFFIX): Define.
5320 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5321 symbol list to update "datalabel" symbols to their main symbol
5323 (shmedia_frob_file_before_adjust): New.
5324 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5325 undefined and set STT_DATALABEL.
5326 (sh64_frob_label): Initialize TC symbol field.
5327 (sh64_consume_datalabel): Actually implement semantics. New
5328 parameter operandf, call it instead of expression.
5329 (sh64_exclude_symbol): New.
5330 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5331 to sh64_consume_datalabel.
5332 (tc_symbol_new_hook): Define to tc_frob_symbol.
5333 (TC_SYMFIELD_TYPE): Define to symbolS *.
5334 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5335 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5336 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5338 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5339 generating dwarf2 debug information.
5340 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5341 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5342 elf64-sh64 for the 64-bit ABI.
5343 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5345 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5346 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5348 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5349 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5350 (enum sh64_abi_values): New type.
5351 (enum sh64_isa_values): New type.
5352 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5353 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5354 (sh64_abi): Replace shmedia_64.
5355 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5356 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5357 (s_sh64_mode): Check validity for this target.
5358 (sh64_target_format): Initialize defaults for ISA and ABI.
5359 Fallback to old object format if no SH64 ISA or ABI has been
5361 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5362 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5363 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5364 * config/tc-sh64.h: Fix typo in comment.
5365 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5366 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5367 <PT fixups for absolute values>: Size will be longest, not
5369 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5370 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5371 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5372 and l1 to hold lowercase of two first characters. Change all
5373 remaining TO_LOWER to tolower.
5374 * config/tc-sh64.c (TO_LOWER): Delete.
5375 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5376 (md_parse_name): Define.
5377 (sh64_consume_datalabel): Declare.
5378 (DOLLAR_DOT): Define.
5379 * config/tc-sh64.c (shmedia_parse_exp): New.
5380 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5381 (shmedia_parse_reg): Remove const from src
5383 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5384 (shmedia_md_assemble): Ditto for op_end variable.
5385 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5386 Use shmedia_parse_exp, not parse_exp.
5387 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5388 parameter. All callers changed.
5389 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5391 (shmedia_parse_reg): Put first two character in local variables.
5392 Use tolower, not TO_LOWER. If no register is found and argtype
5393 indicates a control register, scan shmedia_creg_table
5395 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5396 * Makefile.am (CPU_TYPES): Add sh64.
5397 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5398 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5399 Regenerate dependencies.
5400 * Makefile.in: Regenerate.
5401 * configure.in: Add support for sh64-*-elf*.
5402 * configure: Regenerate.
5403 * config/tc-sh64.h: New.
5404 * config/tc-sh64.c: New.
5405 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5406 .mode, .isa and .uaquad.
5407 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5408 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5409 [HAVE_SH64] (END): Define as 10.
5410 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5411 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5413 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5414 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5415 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5416 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5418 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5419 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5420 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5421 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5422 SHmedia instructions. Handle state-change after switching to
5424 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5425 (md_parse_option) [HAVE_SH64]: Parse new options.
5426 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5427 (md_convert_frag) [HAVE_SH64] <default>: Call
5428 shmedia_md_convert_frag instead of abort.
5429 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5430 BFD_RELOC_SH_SHMEDIA_CODE.
5431 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5432 SHcompact or SHmedia code.
5433 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5434 shmedia_md_apply_fix instead of abort.
5435 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5436 result from calling shmedia_md_estimate_size_before_relax instead
5438 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5440 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5441 shmedia_init_reloc and do nothing more if it returns non-zero.
5442 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5443 * po/POTFILES.in: Regenerate.
5444 * po/gas.pot: Regenerate.
5446 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5448 * config/tc-sh.c (parse_at): Install the correct version of
5451 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5452 assume fixP->fx_subsy is non-NULL.
5454 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5456 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5457 A_DISP_PC_ABS, and adjust it by -4.
5458 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5460 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5461 the operand type is not A_DISP_PC_ABS.
5463 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5465 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5466 common and weak symbols. Handle common and weak symbols as
5467 undefined symbols with regards to GREG handling and merging.
5468 (mmix_frob_file): Ditto.
5470 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5472 * configure.in (hppa-*-netbsd*): New target.
5473 * configure: Regenerate.
5474 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5476 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5478 * config/tc-v850.c: Add missing prototypes amd use old-style
5479 function definitions.
5480 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5481 (sdata_section tdata_section, zdata_section, sbss_section,
5482 tbss_section, zbss_section, rosdata_section, rozdata_section,
5483 scommon_section, tcommon_section, zcommon_section,
5484 call_table_data_section, call_table_text_section): Delete.
5485 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5486 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5487 v850_call_table_data, v850_call_table_text): Delete.
5488 (struct v850_seg_entry): New.
5489 (v850_seg_table): New.
5490 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5491 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5492 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5493 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5496 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5497 recording of alignment.
5498 (md_pseudo_table): Use v850_seg.
5499 (md_begin): Don't init .call_table_data and .call_table_text here.
5500 Set v850_seg_table bss entry.
5502 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5504 Support on-demand global register allocation by passing on
5505 base-plus-offset relocs to the linker.
5506 * config/tc-mmix.c: Tweak and fix typos in comments.
5507 (allocate_undefined_gregs_in_linker): New variable.
5508 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5509 (md_longopts): Add --linker-allocated-gregs.
5510 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5511 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5512 (md_show_usage): Update text for -x. Add text for
5513 --linker-allocated-gregs.
5514 (tc_gen_reloc): Derive default value for addend from val and
5515 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5516 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5517 GREG if allocate_undefined_gregs_in_linker.
5518 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5519 --linker-allocated-gregs.
5520 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5521 --linker-allocated-gregs. Mention that it's implied by -x.
5522 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5523 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5525 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5527 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5529 * Makefile.am: Run "make dep-am"
5530 * Makefile.in: Regenerate.
5532 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5534 * config/tc-or32.c: New file.
5535 * config/tc-or32.h: New file.
5536 * configure.in: Add support for or32 targets.
5537 * configure: Regenerate.
5538 * config/obj-coff.c: Add support for or32 targets.
5539 * config/obj-coff.h: Add support for or32 targets.
5540 * Makefile.am: Add support for or32 targets.
5541 * Makefile.in: Regenerate.
5542 * NEWS: Mention support for OpenRISC.
5543 * doc/Makefile.in: Regenerate.
5544 * po/POTFILES.in: Regenerate.
5545 * po/gas.pot: Regenerate.
5547 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5549 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5552 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5554 * config/tc-mips.c (tc_gen_reloc): Arrange for
5555 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5556 their LO16 parts, even for ELF.
5558 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5560 * config/tc-i386.c: Protect definitions of true and false
5563 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5565 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5566 made because of .weak, if they are neither defined nor used in any
5569 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5571 * configure: Regenerated.
5573 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5575 * doc/Makefile.am (install): Depend on install-info.
5576 * doc/Makefile.in: Regenerate.
5578 2002-01-26 Nick Clifton <nick@redhat.com>
5580 * po/fr.po: Updated version
5582 2002-01-24 Kazu Hirata <kazu@hxi.com>
5584 * config/tc-h8300.c (check_operand): Don't print a warning
5585 when a valid 24-bit address is given to a 16-bit address
5588 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5590 * config/tc-sh.c (sh_elf_suffix): Removed.
5591 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5592 sh_end_of_match, sh_parse_name): New functions.
5593 (sh_elf_cons): Simplify.
5594 (parse_exp): Reject misplaced PIC operands.
5595 (md_undefined_symbol): Simplify.
5596 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5597 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5598 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5599 Complain if subsy remains at the end.
5600 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5601 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5603 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5605 * config/tc-mn10300.c (xr_registers): Move `pc'...
5606 (other_registers): ... here.
5608 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5610 * Makefile.am: Run "make dep-am".
5611 * Makefile.in: Regenerate.
5612 * gas/po/POTFILES.in: Regenerate.
5614 2002-01-21 DJ Delorie <dj@redhat.com>
5616 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5617 stabstr_name allocation permanent, as it will be referenced from
5620 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5622 * configure.in (ia64-*-netbsd*): New target.
5623 * configure: Regenerate.
5625 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5627 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5629 <Detailed description, ARM options>: Ditto.
5630 * doc/c-arm.texi (ARM Options): Ditto.
5632 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5634 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5635 do_mia, do_mar and do_mra respectively.
5636 (do_mav_*): Renamed from do_c_*.
5637 (mav_reg_required_here, mav_parse_offset): Renamed from
5638 cirrus_reg_required_here and cirrus_parse_offset respectively.
5639 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5641 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5642 Keith Walker <keith.walker@arm.com>
5644 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5645 (insns): Add pattern for bxj instruction.
5646 (do_bxj): New function.
5647 (arm_cpus): Add arm926ej.
5648 (arm_archs): Add armv5tej.
5650 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5652 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5654 2002-01-19 Keith Walker <keith.walker@arm.com>
5656 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5658 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5660 * NEWS: Mention new ARM command-line options and VFP support.
5662 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5664 (ARM_CEXT_MAVERICK): Similarly.
5665 (ARM_ANY): Now means any core instruction.
5666 (CPU_DEFAULT): Default to ARM_ANY.
5667 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5668 (pic_code): Declare for all object types. Make type int.
5669 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5670 (march_fpu_opt, mfpu_opt): Declare.
5671 (md_longopts): Tidy up conditional definitions.
5672 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5673 (arm_long_opts): New tables.
5674 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5675 (arm_parse_extension): New function.
5676 (md_parse_option): Rewrite using new table-driven system.
5677 (md_show_usage): Use new table-driven system.
5678 (md_begin): Calculate cpu_variant from command line option data.
5679 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5680 command-line options.
5681 * doc/c-arm.texi: Likewise.
5683 2002-01-18 Andreas Jaeger <aj@suse.de>
5685 * as.c (parse_args): Update year.
5687 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5689 * config/tc-tic54x.c (encode_address): Add a more informative
5690 warning about incorrect syntax.
5692 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5694 * po/gas.pot: Regenerate.
5696 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5698 * macro.c (get_any_string): Add no-c-format comment to prevent
5699 confusion when translating string.
5700 * gasp.c (get_any_string): Add no-c-format comment to prevent
5701 confusion when translating string.
5703 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5704 Johannes Stezenbach <js@convergence.de>
5705 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5706 matched before the shorter ones.
5707 (my_getSmallParser): Fix handling of nested parentheses in
5708 percent_op's. Code cleanup.
5709 (my_getPercentOp): New function, code from my_getSmallParser.
5710 (my_getSmallExpression): Fix handling of closing parentheses.
5711 Code cleanup. Better comments.
5713 2002-01-16 Nick Clifton <nickc@redhat.com>
5715 po/tr.po: New file: Turkish translation.
5716 configure.in (LINGUAS): Add "tr".
5717 configure: Regenerate.
5719 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5721 Support for VFP instructions
5722 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5723 (cp_address_required_here): New argument wb_ok. When false, do not
5724 accept write-back forms of addressing. Change all callers.
5725 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5726 (FPU_VFP_EXT_V2): Define.
5727 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5728 Define in terms of above.
5729 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5730 (vfp_reg): New struct.
5731 (vfp_regs): New array of registers.
5732 (insns): Add VFP instructions.
5733 (sn_table): New array of VFP single-precision register names.
5734 (dn_table): New array of VFP double-precision register names.
5735 (all_reg_maps): Add the new register tables.
5736 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5737 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5738 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5739 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5740 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5741 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5742 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5743 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5744 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5745 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5746 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5747 (do_vfp_sp_dp_cvt): New functions.
5748 (md_begin): Set soft-float flag for appropriate VFP work.
5749 (md_atof): Handle VFP-format doubles.
5750 (md_parse_option): Handle VFP command-line options.
5751 (md_show_usage): Display VFP command-line options.
5753 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5755 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5756 various command line options.
5758 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5760 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5762 (xstormy16_md_apply_fix3): Do not return a value.
5764 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5766 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5767 the -EL/-EB option that matches the target's endianness.
5768 (md_parse_option): Likewise.
5770 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5772 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5773 is not dependent on ARM_BI_ENDIAN.
5775 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5777 * tc-arm.c (all error messages): Normalize capitalization of messages.
5779 * tc-arm.h (md_operand): Delete define.
5780 * tc-arm.c (in_my_get_expression): New static variable.
5781 (my_get_expression): Set and clear it.
5782 (md_operand): New function. If called from my_get_expression
5783 put the error in inst.error.
5784 (output_inst): Now takes argument of instruction being assembled.
5785 Print it out with any error message.
5786 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5788 (end_of_line): Don't update inst.error if it is already set.
5790 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5792 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5793 op that can be translated into a mvn instruction.
5795 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5797 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5798 setting default md.flags.
5799 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5800 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5801 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5802 for 32 bit unwind info blocks.
5803 (generate_unwind_image): Add support for different types
5804 of unwind images (32 bits and/or big-endian).
5805 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5806 (ia64_target_format): Add support for hpux target formats.
5807 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5808 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5809 SHT_FINI_ARRAY elf section types.
5811 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5813 * tc-arm.c (struct reg_entry): Move before prototypes.
5814 (int_register, cp_register, fp_register): Delete.
5815 (reg_table): Delete. Replaced with ...
5816 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5817 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5818 (mav_dspsc_table): ... one table per register set.
5819 (arm_reg_hsh): Delete.
5820 (struct reg_map): New structure.
5821 (all_reg_maps): New array.
5822 (enum arm_reg_type): New enums.
5823 (build_reg_hsh): New function.
5824 (insert_reg_alias): Use hash table passed by caller. Adjust all
5826 (create_register_alias): New function, split out from ...
5827 (md_assemble): ... here.
5828 (md_begin): Build new register hash tables.
5829 (arm_reg_parse): New argument for the hash table to search. Adjust all
5831 (arm_reg_parse_any): New function.
5832 (co_proc_number): Look up the processor number in the processor hash
5834 (cirrus_regtype): Delete.
5835 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5836 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5837 (ARM_EXT_MAVERICKsc_register): Delete.
5838 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5839 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5841 (do_c_triple_4, do_c_triple_5): Delete.
5842 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5843 (do_c_quad_6): Delete.
5844 (do_c_quad_6[ab]): New functions.
5845 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5846 arguments to use new register parsing methods.
5847 (cirrus_reg_required_here): Likewise.
5848 (insns): Reclassify cirrus maverick worker functions.
5849 (cirrus_valid_reg): Delete.
5851 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5853 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5854 (sh*-*-netbsdelf*): New target.
5855 * configure: Regenerate.
5856 * tc-sh.h: Update copyright years.
5857 (TARGET_FORMAT): Add version for TE_NetBSD.
5859 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5861 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5864 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5866 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5867 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5869 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5871 * tc-mips.c (mips_cprestore_valid): New flag.
5872 (mips_frame_reg_valid): New flag.
5873 (macro) [M_JAL_2]: Check both flags.
5874 [M_JAL_A]: Likewise.
5875 (s_cprestore): Set mips_cprestore_valid.
5876 (tc_get_register): If setting mips_frame_reg, set
5877 mips_frame_reg_valid and clear mips_cprestore_valid.
5878 (s_mips_ent): Clear both flags.
5879 (s_mips_end): Clear both flags.
5881 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5883 * write.c (write_object_file): Make use of bfd_section_list_remove.
5884 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5885 * config/tc-mmix.c (mmix_frob_file): Likewise.
5887 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5889 * configure.in (i386-*-netbsdelf*): Collapse target into...
5890 (i386-*-netbsd*): ...this. Add support for x86-64.
5891 * configure: Regenerated.
5893 2002-01-03 matthew green <mrg@redhat.com>
5895 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5897 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5899 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5902 For older changes see ChangeLog-0001
5908 version-control: never