1 2003-06-23 <davidm@hpl.hp.com>
3 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
4 freebsd, openvms, and nsk (non-stop kernel).
6 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
8 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
9 all locals have been declared.
11 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
13 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
14 special handling for n32 ABI.
17 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
19 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
22 2003-06-19 Christian Groessler <chris@groessler.org>
24 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
25 now, not only a warning. Add some more checks to detect invalid
27 (get_operand): For CLASS_IR remember register size in mode struct.
28 (get_specific): Handle new CLASS_IRO type. Add register size
29 checks for CLASS_IR and CLASS_IRO.
30 (md_apply_fix3): Fix undefined usage of buf.
32 2003-06-19 Alan Modra <amodra@bigpond.net.au>
34 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
35 (ppc_change_csect): Add align param. Align frag at start of csect.
36 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
37 (ppc_frob_section): Align vma.
39 2003-06-18 Jakub Jelinek <jakub@redhat.com>
41 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
42 (output_cie): Don't pad.
43 (output_fde): Add align argument. Pad to align if not 0.
44 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
45 Pad just last FDE to EH_FRAME_ALIGNMENT.
47 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
49 * config/tc-s390.c (init_default_arch): Make current_mode_mask
50 dependent on s390_arch_size and current_cpu dependent on
53 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
55 * configure.in: Add c4x as an architecture variant to tic4x.
56 * configure: Regenerate.
57 * Makefile.in: Regenerate.
58 * doc/Makefile.in: Regenerate.
60 2003-06-18 Alan Modra <amodra@bigpond.net.au>
62 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
63 ".TOC." from PPC64_TOC relocs.
65 2003-06-17 Alan Modra <amodra@bigpond.net.au>
67 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
69 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
71 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
72 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
73 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
74 s_cprestore,s_cpadd): Use them.
76 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
78 * configure.in: Add specific case for cris-*-linux-gnu* with
80 * configure: Regenerate.
81 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
82 if TE_LINUX defined, else FALSE.
83 (bfd_boolean demand_register_prefix): Set default from
84 DEFAULT_CRIS_AXIS_LINUX_GNU.
85 (symbols_have_leading_underscore): Similar.
86 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
88 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
90 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
91 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
92 FPU_ARCH_FPA for AOUT.
93 (md_begin): Don't try to guess the floating point architecture from
94 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
96 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
98 * configure.in: Add i386-netbsd-gnu target.
99 * configure: Regenerate.
101 2003-06-12 Tom Tromey <tromey@redhat.com>
103 * doc/as.texinfo (Comm): Added @node. Moved before CFI
106 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
108 * config/tc-mips.c (append_insn): In a compound relocation, take the
109 field width from the final (outermost) operator.
111 2003-06-11 Richard Henderson <rth@redhat.com>
113 * dw2gencfi.c (struct cfi_escape_data): New.
114 (cfi_add_CFA_nop): Remove.
115 (CFI_escape, dot_cfi_escape): New.
116 (dot_cfi): Remove nop.
117 (cfi_pseudo_table): Remove nop; add escape.
118 (output_cfi_insn): Likewise.
119 (select_cie_for_fde): Stop on escape.
120 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
121 * read.c, read.h (do_parse_cons_expression): New.
122 * doc/as.texinfo (.cfi_escape): New.
124 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
126 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
127 (s_cprestore): Likewise.
128 (s_cpreturn): Likewise.
130 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
132 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
135 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
137 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
138 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
139 exceptions from size assert. Remove most of the addend fixup
140 specialcasing. Remove value, use valP directly. simplify fx_addnumber
141 handling. Remove zero addend specialcases.
142 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
143 the addend fixup specialcase.
144 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
146 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
148 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
149 in the RELOC_EXPANSION_POSSIBLE case.
151 2003-06-11 Alan Modra <amodra@bigpond.net.au>
153 * config/tc-i960.c (line_comment_chars): Add '#'.
154 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
156 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
158 * po/Make-in (DESTDIR): New.
159 (install-data-yes): Support $(DESTDIR).
160 (uninstall): Likewise.
162 2003-06-11 Alan Modra <amodra@bigpond.net.au>
164 * Makefile.am: Run "make dep-am".
165 * Makefile.in: Regenerate.
166 * po/POTFILES.in: Regenerate.
168 2003-06-10 Doug Evans <dje@sebabeach.org>
170 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
172 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
173 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
174 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
176 2003-06-10 Alan Modra <amodra@bigpond.net.au>
177 Gary Hade <garyhade@us.ibm.com>
179 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
180 (md_apply_fix3): Special case lq insn.
182 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
184 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
185 lists. Allow single-register ranges.
187 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
189 * config/tc-h8300.c (h8300sxnmode): New.
190 (md_pseudo_table): Add .h8300sxn entry.
192 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
194 * NEWS: Updated for the new -n option for the i386 assembler.
196 * config/tc-i386.c (optimize_align_code): New.
197 (md_shortopts): Add 'n'.
198 (md_parse_option): Handle 'n'.
199 (md_show_usage): Add '-n'.
201 * config/tc-i386.h (optimize_align_code): Declared.
202 (md_do_align): Optimize code alignment only if optimize_align_code
205 * doc/as.texinfo: Add the new -n option.
207 * doc/c-i386.texi: Document the new -n option.
209 2003-06-07 Richard Henderson <rth@redhat.com>
211 * doc/as.texinfo: Document .cfi_rel_offset.
213 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
214 (cfi_add_CFA_offset): Detect invalid offsets.
215 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
216 (cfi_add_CFA_restore_state): Restore it.
217 (CFI_rel_offset): New.
218 (cfi_pseudo_table): Add it.
219 (dot_cfi): Handle it.
221 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
223 * app.c (do_scrub_chars): Add states 14 and 15 to handle
226 2003-06-05 Michael Snyder <msnyder@redhat.com>
228 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
229 (build_bytes): Ditto.
231 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
233 * config/tc-h8sx.c (DMODE): Remove.
234 (colonmod24): Don't choose a default if the operand is a 16-bit
236 (fix_operand_size): New function.
237 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
238 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
240 2003-06-05 Michal Ludvig <mludvig@suse.cz>
242 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
243 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
244 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
245 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
246 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
247 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
248 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
249 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
250 (cfi_pseudo_table): New directives .cfi_return_column,
251 .cfi_restore, .cfi_undefined, .cfi_same_value,
252 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
253 (dot_cfi, output_cfi_insn): Handle new directives.
254 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
255 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
256 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
258 2003-06-04 Richard Henderson <rth@redhat.com>
260 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
262 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
264 2003-06-04 Richard Henderson <rth@redhat.com>
266 * config/tc-alpha.c (s_alpha_usepv): New.
267 (md_pseudo_table): Add it.
268 (alpha_cfi_frame_initial_instructions): New.
269 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
270 (tc_cfi_frame_initial_instructions): New.
271 * doc/c-alpha.texi: Document .usepv.
273 2003-06-04 Jakub Jelinek <jakub@redhat.com>
275 * as.c (show_usage): Document --execstack and --noexecstack.
276 (parse_args): Add --execstack and --noexecstack.
277 (main): Create .note.GNU-stack section if --execstack or
278 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
279 * as.h (flag_execstack, flag_noexecstack): New.
281 2003-06-03 Chris Demetriou <cgd@broadcom.com>
283 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
284 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
285 (OPTION_MISC_BASE): New defines.
286 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
287 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
288 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
289 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
290 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
291 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
292 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
293 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
294 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
295 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
296 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
297 (OPTION_TRAP): Redefine in terms of new defines.
298 (md_longopts): Reorder entries.
300 2003-05-14 Michael Snyder <msnyder@redhat.com>
301 From Bernd Schmidt <bernds@redhat.com>
302 and Michael Snyder <msnyder@redhat.com>
303 and Alexandre Oliva <aoliva@redhat.com>
304 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
305 * config/tc-h8300.h: Ditto.
307 2003-06-03 Nick Clifton <nickc@redhat.com>
309 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
310 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
311 before calling bfd_reloc_type_lookup.
313 2003-06-02 Alan Modra <amodra@bigpond.net.au>
315 * read.c (emit_expr): Set dot_value.
316 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
318 2003-06-02 Alan Modra <amodra@bigpond.net.au>
320 * macro.c (sub_actual): Don't lose string if it turns out that
321 &string wasn't an arg.
323 2003-05-31 Richard Henderson <rth@redhat.com>
325 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
326 (cfi_finish): Set flag_traditional_format around .eh_frame data.
328 2003-05-29 Richard Henderson <rth@redhat.com>
330 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
331 (all_frame_data, plast_frame_data, cur_frame_data): New.
332 (s_alpha_ent): Record data for dwarf2 cfi.
333 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
334 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
335 * config/tc-alpha.h (md_end): New.
336 (DWARF2_DEFAULT_RETURN_COLUMN): New.
337 (DWARF2_CIE_DATA_ALIGNMENT): New.
339 2003-05-29 Nick Clifton <nickc@redhat.com>
341 * configure.in: Add i386-*-freebsd* entry.
342 * configure: Regenerate.
344 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
346 * config/tc-m32r.c: Amend comment to refer to Renesas
348 2003-05-27 Richard Henderson <rth@redhat.com>
350 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
352 (current_location): Use symbol_temp_new_now.
353 * stabs.c (s_stab_generic): Use symbol_temp_new.
354 * symbols.c (temp_label_name): Remove.
355 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
357 2003-05-27 Richard Henderson <rth@redhat.com>
359 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
360 * as.c (main): Always call cfi_finish.
361 * config/tc-i386.c (x86_dwarf2_return_column): New.
362 (x86_cie_data_alignment): New.
363 (md_begin): Set them.
364 (tc_x86_cfi_init): Remove.
365 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
366 return int, not unsigned long; don't as_bad here.
367 (tc_x86_frame_initial_instructions): Streamline; use
369 * config/tc-i386.h (tc_cfi_init): Remove.
370 (DWARF2_DEFAULT_RETURN_COLUMN): New.
371 (DWARF2_CIE_DATA_ALIGNMENT): New.
373 2003-05-27 Richard Henderson <rth@redhat.com>
375 * symbols.c (temp_label_name): New.
376 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
377 (symbol_set_value_now): New.
378 * symbols.h: Prototype them.
379 * dwarf2dbg.c: Use them.
380 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
382 2003-05-23 Jason Eckhardt <jle@rice.edu>
384 * config/tc-i860.c (target_xp): Declare variable.
385 (OPTION_XP): Declare macro.
386 (md_longopts): Add option -mxp.
387 (md_parse_option): Set target_xp.
388 (md_show_usage): Add -mxp usage.
389 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
390 (md_assemble): Don't try expansions if XP_ONLY is set.
391 * doc/c-i860.texi: Document -mxp option and i860XP support.
393 2003-05-23 Eric Christopher <echristo@redhat.com>
395 * config/tc-mips.c (macro_build_jalr): Warning patrol.
397 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
399 * config/tc-mips.c (append_insn): Use actual relocation size for new
400 fixp's. Don't relax overflow checking for partial_inplace relocations.
401 Use the actual relocation type in combined relocs, not just the type
403 (macro_build_jalr): Use actual relocation size for new fix.
404 (s_cpsetup, s_gpdword): Likewise.
406 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
408 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
410 2003-05-22 Nick Clifton <nickc@redhat.com>
412 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
413 section relative offsets for relocs that will not be based on the
415 (xstormy16_md_apply_fix3): Remove previous patch to this
418 2003-05-07 Eric Christopher <echristo@redhat.com>
420 * config/tc-mips.c (mips_abicalls): New variable.
421 (md_parse_option): Use.
424 (mips_elf_final_processing): Set EF_MIPS_PIC and
425 EF_MIPS_CPIC dependent on above.
427 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
429 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
431 2003-05-21 Nick Clifton <nickc@redhat.com>
433 * config/obj-elf.c: Include dwarf2dbg.h.
434 (elf_pseudo_tab): Add .file and .loc.
435 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
436 * config/tc-arm.c: Likewise.
437 * config/tc-h8300.c: Likewise.
438 * config/tc-hppa.c: Likewise.
439 * config/tc-ia64.c: Likewise.
440 * config/tc-m68hc11.c: Likewise.
441 * config/tc-m68k.c: Likewise.
442 * config/tc-mmix.c: Likewise.
443 * config/tc-mn10300.c: Likewise.
444 * config/tc-ppc.c: Likewise.
445 * config/tc-sh.c: Likewise.
446 * config/tc-sparc.c: Likewise.
447 * config/tc-v850.c: Likewise.
448 * config/tc-frv.c: Likewise, and remove redundant inclusion of
450 * config/tc-ip2k.c: Likewise.
451 * config/tc-iq2000.c: Likewise.
452 * config/tc-xstormy16.c: Likewise.
453 * config/tc-xtensa.c: Likewise.
454 * Makefile.am: Regenerate dependencies.
455 * Makefile.in: Regenerate.
456 * aclocal.m4: Regenerate.
457 * config.in: Regenerate.
458 * configure: Regenerate.
459 * po/POTFILES.in: Regenerate.
460 * po/gas.pot: Regenerate.
462 2003-05-21 Nick Clifton <nickc@redhat.com>
464 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
465 BFD_ASSEMBLER targets.
466 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
467 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
468 defining BFD_ASSEMBLER.
470 2003-05-20 Michal Ludvig <mludvig@suse.cz>
472 * as.c (main): Remove tc_cfi_init().
473 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
475 (cfi_pseudo_table): Add "cfi_register" entry.
476 (cfi_make_insn): Handle CFA_register.
477 (cfi_output_insn): Ditto.
479 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
480 (dot_cfi_endproc): Reuse already emitted CIEs.
481 * testsuite/gas/cfi/cfi-i386.d: New pattern.
482 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
484 2003-05-20 Nick Clifton <nickc@redhat.com>
486 * config/tc-xstormy16.c: Include dwarf2dbg.h.
487 (md_pseudo_table): Add entries for .loc and .line.
489 2003-05-20 Alan Modra <amodra@bigpond.net.au>
491 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
493 (dot_cfi_endproc): Avoid C99 construct.
495 2003-05-20 Michal Ludvig <mludvig@suse.cz>
497 * dw2gencfi.c, dw2gencfi.h: New files.
498 * config/tc-i386.c (tc_x86_cfi_init): New function.
499 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
500 * as.c (parse_args): Set verbose flag on --verbose.
501 (main): Call tc_cfi_init()/cfi_finish().
502 * as.h (verbose): New external variable.
503 * read.c (pobegin): Insert CFI pops to the list.
504 * symbols.c (local_symbol_make): Make symbol external.
505 * symbols.h (local_symbol_make): New prototype.
506 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
507 * Makefile.in: Regenerate.
508 * doc/as.texinfo: Added node "CFI directives" with description of
509 all implemented .cfi_* directives.
510 * doc/Makefile.in: Regenerate.
511 * po/POTFILES.in: Regenerate.
513 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
515 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
517 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
519 2003-05-18 Jason Eckhardt <jle@rice.edu>
521 * config/tc-i860.c (i860_process_insn): Initialize fc after
522 each opcode mismatch.
524 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
526 * configure.in: Accept i[3-7]86 variants.
527 * configure: Regenerate.
529 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
531 * config/tc-mips.h: Fix comment formatting.
533 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
535 * read.c (old_buffer, old_input, old_limit): Remove variables.
536 (read_a_source_file): Delete label contin.
537 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
538 input as with macros, instead of in separate old_* variables.
539 Zero-terminate string being scrubbed.
541 2003-05-12 Nick Clifton <nickc@redhat.com>
543 * config/tc-xstormy16.c (skipping_fptr): New local variable.
544 (md_assemble): Reset skipping_fptr.
545 (md_operand): If @fptr() is followed by a minus sign, set
546 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
547 @fptr is detected, ignore it and reset skipping_fptr.
549 2003-05-11 Jason Eckhardt <jle@rice.edu>
551 * config/tc-i860.c (MAX_FIXUPS): Define.
552 (struct i860_fi fi[]): New struct.
553 (struct i860_it the_insn): Add above as member and move fields
554 exp, reloc, pcrel and fup into i860_fi.
555 (md_assemble): Replace all instances of exp, reloc, pcrel
556 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
557 Add a loop to possibly emit multiple fix-ups for each insn.
558 (i860_process_insn): Likewise.
559 (i860_get_expression): Likewise.
560 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
562 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
564 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
566 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
568 * config/tc-ia64.c (alias_hash): New.
569 (alias_name_hash): New.
570 (secalias_hash): New.
571 (secalias_name_hash): New.
572 (md_pseudo_table): Add "secalias".
573 (md_begin): Initialize alias_hash, alias_name_hash,
574 secalias_hash and secalias_name_hash.
576 (dot_alias): Implement .alias and .secalias directives.
578 (ia64_adjust_symtab): New.
580 (ia64_frob_file): New.
582 * config/tc-ia64.h (ia64_adjust_symtab): New.
583 (tc_adjust_symtab): Defined.
584 (ia64_frob_file): New.
585 (tc_frob_file): Defined.
587 2003-05-07 Dmitry Diky <diwil@mail.ru>
589 * tc-msp430.c: Add missing lines to known cpus list.
591 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
593 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
594 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
595 * config.in, configure: Rebuilt.
597 2003-05-05 H.J. Lu <hjl@gnu.org>
599 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
600 howto->partial_inplace is false.
602 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
604 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
605 symbol_used_in_reloc_p check.
606 (md_apply_fix3): Remove check for howto->pcrel_offset.
608 2003-05-03 H.J. Lu <hjl@gnu.org>
610 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
611 fatal error for unknown section attribute.
613 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
614 unknown section attribute.
615 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
616 * config/tc-ppc.c (ppc_section_letter): Likewise.
618 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
619 (ia64_elf_section_type): Accept "unwind".
621 2003-05-02 H.J. Lu <hjl@gnu.org>
623 * read.h (demand_copy_string): New.
625 * config/tc-alpha.c (demand_copy_string): Removed.
627 2003-05-02 Michael Snyder <msnyder@redhat.com>
629 * write.h (FAKE_LABEL_NAME): Allow override
630 (for targets that like eg. a leading dot in a local label).
632 2003-05-02 Nick Clifton <nickc@redhat.com>
634 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
635 addend with the symbol's value for pc-relative relocations against
636 a defined symbol - this will be done automatically.
638 2003-05-01 H.J. Lu <hjl@gnu.org>
640 * config/obj-elf.c (obj_elf_type): Accept "notype" and
643 2003-05-01 H.J. Lu <hjl@gnu.org>
645 * config/tc-ia64.h (tc_canonicalize_section_name): New.
647 * config/obj-elf.c (obj_elf_section_name): Call
648 tc_canonicalize_section_name if it is defined.
650 2003-05-01 H.J. Lu <hjl@gnu.org>
652 * config/tc-ia64.c (ia64_check_label): New.
653 * config/tc-ia64.h (tc_check_label): New.
655 * read.c (read_a_source_file): Call tc_check_label after
656 creating a user-defined label if defined.
658 2003-05-02 Alan Modra <amodra@bigpond.net.au>
660 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
661 -be and split strings to below 509 bytes in length.
663 2003-05-01 Christian Groessler <chris@groessler.org>
665 * expr.h: Fix comments in operatorT typedef.
666 * config/tc-z8k.c: Add 2003 to copyright message.
667 Fold s_segm() and s_unseg() into one function s_segm(parm) which
668 decides by the parameter.
669 (md_begin): Don't set linkrelax. Only set Z8002 default if no
670 command line argument was given to select the intended
672 (get_interrupt_operand): Warn if NOP type code is emitted.
673 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
674 (apply_fix): Call newfix with additional 'size' parameter.
675 (build_bytes): Remove unused variable 'nib'. Detect overflow in
676 4 bit immediate arguments.
677 (md_longopts): Add 'linkrelax' option.
678 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
679 variable when 'linkrelax' command line option is specified.
680 (md_show_usage): Display 'linkrelax' option.
681 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
683 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
685 2003-04-30 H.J. Lu <hjl@gnu.org>
687 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
688 (ia64_float_to_chars): Likewise.
689 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
690 and ia64_float_to_chars by tc_segment_info_data.endian from
691 the current segment if byteorder == -1.
692 (md_begin): Call dot_byteorder to set target_big_endian.
693 (md_atof): Call ia64_float_to_chars to convert floating point.
694 (ia64_float_to_chars_bigendian): New function.
695 (ia64_float_to_chars_littleendian): Likewise.
696 (ia64_elf_section_change_hook): Likewise.
698 * config/tc-ia64.h (ia64_number_to_chars): New.
699 (md_number_to_chars): Changed to (*ia64_number_to_chars)
700 (ia64_elf_section_change_hook): New.
701 (md_elf_section_change_hook): Defined.
702 (ia64_segment_info_type): New struct.
703 (TC_SEGMENT_INFO_TYPE): Defined.
705 2003-04-30 H.J. Lu <hjl@gnu.org>
707 * config/tc-ia64.c (md_section_align): Deleted.
709 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
710 (md_section_align): New.
712 2003-04-30 H.J. Lu <hjl@gnu.org>
714 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
716 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
718 (md_atof): Add 6 byte padding of zero for real16.
720 2003-04-29 Nick Clifton <nickc@redhat.com>
722 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
723 start of a version name.
725 2003-04-28 Chris Demetriou <cgd@broadcom.com>
727 * configure.in (mips-*-*n*bsd*): Replace with...
728 (mips-*-netbsd*, mips-*-openbsd*): These.
729 * configure: Regenerate.
731 2003-04-28 H.J. Lu <hjl@gnu.org>
733 * config/tc-hppa.c (hppa_symbol_chars): New.
734 * config/tc-hppa.h (tc_symbol_chars): Likewise.
736 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
738 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
740 2003-04-25 Chris Demetriou <cgd@broadcom.com>
742 * NEWS: Belatedly mention support for MIPS32 Release 2.
744 2003-04-24 Eric Christopher <echristo@redhat.com>
746 * config/tc-mips.c (nopic_need_relax): Revert previous
749 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
751 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
752 * config/tc-h8300.c (dwarf2dbg.h): Include
753 (md_pseudo_table): Handle .loc and .file
754 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
755 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
756 * Makefile.in: Regenerate.
758 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
760 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
761 (md_pseudo_table): Add h8300hn, h8300sn.
762 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
763 * doc/c-h8300.texi : Add documentation for new machine directives.
765 2003-04-24 Nick Clifton <nickc@redhat.com>
767 * config/tc-ppc.c (ppc_symbol_chars): Define.
768 * config/tc-ppc.h (tc_symbol_chars): Define.
770 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
772 * config/tc-sh.c: Amend comment to refer to SuperH.
773 * config/tc-sh.h: Likewise.
774 (LISTING_HEADER): Amend to refer to SuperH.
775 * config/tc-sh64.c: Change comment to refer to SuperH.
776 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
777 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
778 * doc/c-sh.texi: Amend to refer to SuperH.
779 Add SuperH architecture documentation references.
780 * doc/c-sh64.texi: Change to refer to SuperH.
782 2003-04-23 H.J. Lu <hjl@gnu.org>
784 * app.c (do_scrub_chars): More checks for valid labels.
786 2003-04-22 H.J. Lu <hjl@gnu.org>
788 * app.c (do_scrub_chars): Check for valid label.
790 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
792 * doc/as.texinfo: Replace references to Mitsubishi M32R with
793 references to Renesas M32R.
794 * doc/c-m32r.texi: Likewise.
796 2003-04-21 Richard Henderson <rth@redhat.com>
798 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
799 (out_file_list): Assign non-null filename after generating error.
801 2003-04-18 Jakub Jelinek <jakub@redhat.com>
803 * ehopt.c (check_eh_frame): For aug_size == 0
804 in state_seeing_aug_size state skip the state_skipping_aug
807 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
809 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
811 * doc/c-h8500.texi: Likewise.
812 * doc/c-sh.texi: Likewise.
813 * doc/c-sh64.texi: Likewise.
814 * doc/h8.texi: Likewise.
815 * config/tc-h8300.c: Likewise.
816 * config/tc-h8300.h: Likewise.
817 * config/tc-h8500.c: Likewise.
818 * config/tc-h8500.h: Likewise.
819 * config/tc-sh.c: Likewise.
820 * config/tc-sh.h: Likewise.
821 * config/tc-sh64.c: Likewise.
822 * config/tc-sh64.h: Likewise.
824 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
826 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
827 * config/tc-mips.c: Use signed add for n32 address arithmetic.
828 (append_insn): When filling delay slots with instructions
829 that have fixups that tc_gen_reloc might consider modifyable
830 in variant frags, start a new frag.
831 (load_address): Generate GOT_DISP with of without offset
832 depending on whether symbol is local. For -xgot, use
833 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
834 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
835 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
836 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
837 <ld_st>: In NewABI with small got, always use
838 GOT_PAGE/GOT_OFST, with the latter in the load/store
839 instruction. With big got, use GOT_HI16/GOT_LO16 or
841 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
842 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
843 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
844 (md_convert_frag): Use memmove for safe copying of overlapping
847 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
849 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
850 -mlong, -mshort-double and -mlong-double options; use table @code.
851 (M68HC11-Syntax): Update to document 68HC12 operands.
852 (M68HC11-Modifiers): New section for operand modifiers.
853 (M68HC11-Directives): New section for specific assembler directives.
854 (M68HC11-Branch): Fix Overfull hbox error.
856 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
858 * config/tc-mips.c (macro): Add comments explaining the rationale
861 2003-04-09 Chris Demetriou <cgd@broadcom.com>
863 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
864 constant address that Alexandre took out by accident. Reject
865 64-bit addresses that are not sign extensions of 32 bits only if
866 we don't support 64-bit address constants.
868 2003-04-09 Alan Modra <amodra@bigpond.net.au>
870 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
872 2003-04-08 Nick Clifton <nickc@redhat.com>
874 * as.c (perform_an_assembly_pass): If using cgen, call
876 * cgen.c (gas_cgen_begin): New function. If
877 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
878 otherwise call cgen_clear_signed_overflow_ok.
879 * cgen.h: Prototype gas_cgen_begin.
881 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
883 * write.c (write_relocs): Remove unused variable.
885 2003-04-06 Chris Demetriou <cgd@broadcom.com>
887 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
888 (macro): Use new macro to decide whether to emit constant address
889 as 32 or 64 bits if addresses are 32-bit wide but registers are
892 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
894 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
895 (M6811_OP_PAGE_ADDR): New internal define.
896 (get_operand): New modifier %page and %addr to obtain page and
897 address part of a far-function.
898 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
899 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
901 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
902 (find_opcode): Add comment.
903 (md_estimate_size_before_relax): Force relocation of
904 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
905 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
906 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
907 on the symbol itself so that DWARF2 strings are merged correctly.
909 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
911 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
912 default tic4x target format to 'coff2-tic4x'.
913 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
915 * config/tc-tic4x.h: Ditto
917 2003-04-03 Nick Clifton <nickc@redhat.com>
919 * NEWS: Mention support for Xtensa architecture.
921 2003-04-02 Philip Blundell <philb@gnu.org>
923 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
925 2003-04-02 Chris Demetriou <cgd@broadcom.com>
927 * config/tc-mips.c (macro2): Adjust implementation of
928 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
929 in the case where the source and destination registers
932 2003-04-01 Bob Wilson <bob.wilson@acm.org>
934 * Makefile.am (CPU_TYPES): Add xtensa.
935 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
936 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
937 (xtensa-relax.o): New target.
939 * Makefile.in: Regenerate.
940 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
941 extra_objects for xtensa targets.
942 * configure: Regenerate.
943 * write.c (write_object_file): Add new md_post_relax_hook.
944 * config/tc-xtensa.c: New file.
945 * config/tc-xtensa.h: Likewise.
946 * config/xtensa-istack.h: Likewise.
947 * config/xtensa-relax.c: Likewise.
948 * config/xtensa-relax.h: Likewise.
949 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
950 * doc/Makefile.in: Regenerate.
951 * doc/all.texi: Set new XTENSA variable.
952 * doc/as.texinfo: Set new Xtensa variable. Describe
953 Xtensa-specific options. Define line comment character for
954 Xtensa. Add Xtensa processors to list of ELF targets where
955 alignment is specified in bytes. Add new Xtensa-Dependent node.
956 Add acknowledgements for those contributing to the Xtensa port.
957 * doc/internals.texi: Describe new md_post_relax_hook.
958 * doc/c-xtensa.texi: New file.
960 2003-04-01 Nick Clifton <nickc@redhat.com>
961 Richard Earnshaw <rearnsha@arm.com>
963 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
964 (ARM_ARCH_IWMMXT): Simplify.
965 (insns): Place iwmmx instructions in correct place in table.
966 (arm_add_note): New function: Add a note entry to a .note section.
967 (md_begin): Make the default architecture be unknown.
968 Suppress the creation of an arm note section.
970 2003-03-26 Eric Christopher <echristo@redhat.com>
972 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
974 2003-03-25 Stan Cox <scox@redhat.com>
975 Nick Clifton <nickc@redhat.com>
977 Contribute support for Intel's iWMMXt chip - an ARM variant:
979 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
980 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
981 (enum wreg_type, enum iwmmxt_insn_type): New types.
982 (wr_register, wc_register, wcg_register): New macros.
983 (iwmmxt_table): New variable.
984 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
985 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
986 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
987 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
988 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
989 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
990 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
991 cp_byte_address_offset, cp_byte_address_required_here,
992 check_iwmmxt_insn): New functions.
993 (asm_opcode_insns): Add iWMMXt instructions.
994 (md_begin): Set the mach value for iWMMXt targets. Create a note
995 section to identify iwmmxt binaries.
996 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
997 * doc/c-arm.texi: Document the support for the iWMMXt.
998 * NEWS: Mention new support.
1000 2003-03-24 Daniel Néri <dne@mayonnaise.net>
1002 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
1003 * doc/all.texi: Likewise.
1004 * doc/c-tic54x.texi: Likewise.
1006 2003-03-21 Andreas Schwab <schwab@suse.de>
1008 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
1009 avoid aliasing issue.
1011 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
1013 * config/tc-s390.c (s390_arch_size): Initialize to zero.
1014 (current_arch_mask): Rename to current_mode_mask.
1015 (current_arch_requested): Remove variable.
1016 (current_cpu): New variable.
1017 (init_default_arch): Set defaults values for s390_arch_size,
1018 current_mode_mask and current_cpu.
1019 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
1020 (md_begin): Replace current_arch_mask by current_cpu.
1021 (md_assemble): Adapt check and error message to current_mode_mask and
1024 2003-03-09 James E Wilson <wilson@tuliptree.org>
1026 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
1027 * read.c (get_line_sb): Return end of line character or '\n' if
1028 it is zero or non-existent.
1030 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1032 * config/tc-mips.c (mips_validate_fix): New function.
1033 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
1034 (mips_validate_fix): Declare.
1036 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
1038 * Reverted 2003-03-02's patch.
1040 2003-03-11 Steve Ellcey <sje@cup.hp.com>
1042 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
1043 (TC_DWARF2_EMIT_OFFSET): Provide default.
1044 (out_debug_aranges, out_debug_info): Use it.
1045 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
1046 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
1047 (ia64_gen_real_reloc_type): ... here.
1048 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
1050 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1052 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
1053 (s_mips_ent): Likewise.
1055 2003-03-04 Dmitry Diky <diwil@mail.ru>
1057 * config/tc-msp430.c (mcu_types): Add recently announced x1122
1058 and x1123 devices, add missed x437.
1059 (md_show_usage): Sort device list.
1061 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
1063 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1064 (md_begin): Use preset_target_arch.
1065 (md_longopts): Make isa option unconditional.
1066 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1067 set preset_target_arch.
1068 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1069 by -S_GET_VALUE (fixP->fx_subsy).
1070 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1071 and the addend is 0.
1072 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1073 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1075 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1077 * config/tc-mips.c (append_insn): Add handling of
1078 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1079 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1080 misaligned address and reange overflow.
1081 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1082 earlier warnings about misaligned address and reange overflow.
1083 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1084 (md_apply_fix): Likewise. Fix warning output.
1085 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1086 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1087 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1089 2003-02-21 Nick Clifton <nickc@redhat.com>
1091 * NEWS: Mention availability of test generator program.
1093 2003-02-21 Miles Bader <miles@gnu.org>
1095 * config/tc-v850.c (system_registers): Add v850e debug registers.
1096 (system_register_name): Accept up to 27 (the last v850e sys register).
1098 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1100 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1101 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1102 Capitalize section headings consistently. Format index entries more
1103 consistently. Unconditionalize text about whether text and data
1104 sections are alterable. Use @ifnottex for alternatives to @tex output
1105 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1106 .size and .type directives. Be more polite about bad bug reports.
1107 Move FDL into a separate file.
1108 * doc/fdl.texi: New file.
1110 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1112 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1113 (macro): Check it to decide whether a new frag is needed.
1114 (my_getSmallExpression): Set it.
1116 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1118 * cgen.c: Fix typo: intial -> initial.
1120 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1122 * app.c (do_scrub_chars): Handle '||' in two states.
1124 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1126 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1127 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1129 2003-02-11 Uwe Stieber <uwe@wwws.de>
1131 * configure.in: Add support for kaOS as cross build target system.
1132 * configure: Regenerated.
1134 2003-02-10 Nick Clifton <nickc@redhat.com>
1136 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1137 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1138 bfd_mach_arm_ep9312 machine number.
1140 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1142 * config/tc-mips.c (reloc_needs_lo_p): New function.
1143 (fixup_has_matching_lo_p): New function.
1144 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1145 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1146 if that fixup already has a matching %lo(). Don't call frag_wane here.
1147 (macro): Call frag_wane here if the last unmatched hi was in the
1149 (pic_need_relax): New function, split out from...
1150 (md_estimate_size_before_relax): ...here.
1151 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1152 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1154 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1156 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1158 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1160 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1163 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1165 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1166 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1167 accept x@got+off etc.
1168 (md_assemble): Handle TLS relocs.
1169 (ppc_force_relocation): Force for all TLS relocs.
1170 (ppc_fix_adjustable): Likewise.
1171 (md_apply_fix3): Handle TLS relocs.
1173 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1175 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1176 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1178 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1180 * config/tc-mips.c (enum small_ex_type): Remove.
1181 (imm_unmatched_hi): Remove.
1182 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1183 argument from calls to append_insn.
1184 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1186 (macro_build): Update append_insn calls.
1187 (mips16_macro_build, macro_build_lui): Likewise.
1188 (mips_ip): Rework handling of small expressions. Move explicit
1189 relocation handling into my_getSmallExpression. Assume that the
1190 value of 'o' operands is zero if there is only one bracketed
1192 (percent_op): Make constant. Record the BFD relocation code
1193 associated with each operator.
1194 (my_getSmallParser, my_getPercentOp): Remove.
1195 (parse_relocation): New function.
1196 (my_getSamllExpression): Rework. Fill in relocations here
1197 rather than in mips_ip.
1199 2003-01-29 Nick Clifton <nickc@redhat.com>
1201 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1202 assembler's handling of # <linenum> "<filename>" directives work.
1204 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1206 * dwarf2dbg.c: Include filenames.h.
1207 (struct file_entry): Make filename const char *.
1208 (dirs, dirs_in_use, dirs_allocated): New variables.
1209 (get_filenum): Add NUM argument. Build directory table.
1210 (dwarf2_where): Adjust caller.
1211 (dwarf2_directive_file): Use get_filenum to allocate
1212 slot in file and directory tables.
1213 (dwarf2_directive_loc): Recreate full filename from
1214 directory and filename part if needed for listing.
1215 (out_file_list): Output directory table.
1216 Output main source file dirname before its filename.
1218 2003-01-28 Dmitry Diky <diwil@mail.ru>
1220 * config/tc-msp430.c: Replace occurences of 'tolower' with
1223 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1225 * config/tc-ia64.c (dot_vframesp): Correct error message.
1226 (dot_vframepsp): Ditto.
1228 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1230 * configure.in (em): Set to irix on all Irix systems.
1231 * configure: Rebuilt.
1232 * config/te-irix.h: New file.
1233 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1234 whether to use Irix-specific 64-bit format.
1236 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1238 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1240 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1242 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1243 (tc_gen_reloc): Handle TLS relocs.
1244 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1245 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1247 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1248 (obj_elf_type): Handle tls_object.
1250 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1252 * config/tc-s390.c (s390_tls_suffix): New function.
1253 (elf_suffix_type): Add suffix enums for TLS relocations.
1254 (s390_elf_suffix): Add suffix strings for TLS relocations.
1255 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1257 (md_gather_operands): Map new instruction operand/elf suffix
1258 combinations for TLS to bfd relocations.
1259 (tc_s390_fix_adjustable): Add new TLS relocations.
1260 (tc_s390_force_relocation): Likewise.
1261 (md_apply_fix3): Likewise.
1263 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1265 * as.h: Update copyright date.
1266 * symbols.c: Likewise.
1267 * config/tc-d10v.h: Likewise.
1268 * config/tc-fr30.h: Likewise.
1269 * config/tc-i960.h: Likewise.
1270 * config/tc-mips.h: Likewise.
1272 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1273 (MD_APPLY_SYM_VALUE): Move.
1275 2003-01-23 Nick Clifton <nickc@redhat.com>
1277 * NEWS: Announce sh2e support.
1280 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1281 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1282 (sh_elf_final_processing): Handle arch_sh2e.
1284 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1286 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1287 * symbols.h (S_FORCE_RELOC): Likewise.
1288 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1289 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1290 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1291 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1292 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1293 * write.c (generic_force_reloc): New function.
1294 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1295 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1296 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1297 * as.h (generic_force_reloc): Declare.
1298 * doc/internals.texi (S_FORCE_RELOC): Update.
1299 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1301 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1302 generic_force_reloc.
1303 (alpha_fix_adjustable): Likewise.
1304 * config/tc-arm.c (arm_force_relocation): Likewise.
1305 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1306 * config/tc-frv.c (frv_force_relocation): Likewise.
1307 * config/tc-i386.c (md_apply_fix3): Likewise.
1308 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1309 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1310 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1311 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1312 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1313 * config/tc-mips.c (mips_force_relocation): Likewise.
1314 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1315 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1316 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1317 * config/tc-sh.c (sh_force_relocation): Likewise.
1318 (md_pcrel_from_section): Likewise.
1319 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1320 * config/tc-v850.c (v850_force_relocation): Likewise.
1321 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1322 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1323 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1324 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1326 * config/tc-d10v.c (d10v_force_relocation): Delete.
1327 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1328 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1329 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1330 * config/tc-fr30.c (fr30_force_relocation): Delete.
1331 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1332 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1333 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1334 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1335 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1336 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1337 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1338 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1339 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1340 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1341 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1342 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1343 * config/tc-i386.c (i386_force_relocation): Delete.
1344 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1346 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1347 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1348 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1349 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1351 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1352 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1354 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1356 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1357 sh64_elf_section_data.
1358 * config/tc-sh64.h: Include elf32-sh64.h.
1359 * config/tc-m68hc11.c: Don't include stdio.h.
1360 (md_show_usage): Fix missing continuation.
1361 * Makefile.am: Run "make dep-am".
1362 * Makefile.in: Regenerate.
1364 2003-01-22 Nick Clifton <nickc@redhat.com>
1366 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1368 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1370 * configure.in: Handle *-*-aros*.
1371 * configure: Regenerated from configure.in.
1373 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1375 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1376 gotplt and pltoff relocations.
1377 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1378 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1379 gotplt and pltoff to bfd relocations.
1380 (md_gather_operands): Map new instruction operand/elf suffix
1381 combinations to bfd relocations.
1382 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1383 to the list of unadjustable relocations.
1384 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1385 and pltoff relocations.
1386 (md_apply_fix3): Add the new relocations.
1388 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1390 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1391 with a subsy symbol.
1393 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1395 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1396 of relocs for memory bank addressing.
1398 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1400 * config/tc-m68hc11.c (md_show_usage): Update usage.
1401 (md_parse_option): Recognize -m68hcs12.
1402 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1404 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1406 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1408 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1410 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1412 * Makefile.am: Run "make dep-am".
1413 * Makefile.in: Regenerate.
1414 * po/POTFILES.in: Regenerate.
1416 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1418 * read.c (get_absolute_expr): New, split out from..
1419 (get_absolute_expression): ..here.
1420 * read.h (get_absolute_expr): Declare.
1421 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1422 Trim size to arch bits_per_address, and test for negative input
1423 via get_absolute_expr.
1425 2003-01-07 DJ Delorie <dj@redhat.com>
1427 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1429 (xstormy16_md_apply_fix3): Use adjustment.
1431 2003-01-02 Ben Elliston <bje@redhat.com>
1433 * configure.in: Add iq2000-elf target.
1434 * configure: Regenerate.
1435 * config/tc-iq2000.c: New file.
1436 * config/tc-iq2000.h: Likewise.
1437 * po/gas.pot: Regenerate.
1439 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1441 * config/tc-mips.c: Update copyright years to include 2003.
1442 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1443 Additionally, clean up their code slightly and clean up their
1446 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1448 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1450 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1452 * doc/Makefile.in: Regenerate.
1454 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1456 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1457 of .init and .fini sections for array initializers and finalizers.
1459 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1461 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1462 the "+D" operand, which will be used only by the disassembler.
1464 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1466 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1468 * configure: Regenerate.
1469 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1470 (macro_build): Handle "K" operand.
1471 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1472 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1473 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1474 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1475 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1476 (validate_mips_insn): Implement "+" as a way to extend the
1477 allowed operands, and implement "K", "+A", "+B", and "+C"
1479 (OPTION_MIPS32R2): New define.
1480 (md_longopts): Add entry for OPTION_MIPS32R2.
1481 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1482 (md_parse_option): Handle OPTION_MIPS32R2.
1483 (s_mipsset): Reimplement handling of ".set mipsN" options
1484 and add support for ".set mips32r2".
1485 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1486 (md_show_usage): Document "-mips32r2" option.
1487 * doc/as.texinfo: Document "-mips32r2" option.
1488 * doc/c-mips.texi: Likewise.
1490 2002-12-30 Dmitry Diky <diwil@mail.ru>
1492 * configure.in: Add msp430 target.
1493 * configure: Regenerate.
1494 * Makefile.am: Add msp430 target.
1495 * Makefile.in: Regenerate.
1496 * config/tc-msp430.c: New file: msp430 assembler.
1497 * config/tc-msp430.h: New file: target macros for msp430.
1498 * doc/Makefile.am: Add msp430 target.
1499 * doc/Makefile.in: Regenerate.
1500 * doc/as.texinfo: Include msp430 documenation.
1501 * doc/all.texi: Enable msp430 documentation.
1502 * doc/c-msp430.texi: New file: document msp430 specific features
1505 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1507 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1508 (dwarf2_finish): Use it.
1509 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1510 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1512 2002-12-20 DJ Delorie <dj@redhat.com>
1514 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1515 BFD_RELOC_XSTORMY16_12.
1517 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1519 * doc/as.texinfo (Invoking): Typo fix.
1520 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1522 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1524 * doc/c-alpha.texi: Fix typos.
1525 * doc/c-arm.texi: Likewise.
1526 * doc/c-d10v.texi: Likewise.
1527 * doc/c-i370.texi: Likewise.
1528 * doc/c-i960.texi: Likewise.
1529 * doc/c-ia64.texi: Likewise.
1530 * doc/c-mmix.texi: Likewise.
1531 * doc/c-ns32k.texi: Likewise.
1532 * doc/c-pdp11.texi: Likewise.
1533 * doc/c-pj.texi: Likewise.
1534 * doc/c-sh64.texi: Likewise.
1535 * doc/c-sparc.texi: Likewise.
1536 * doc/c-tic54x.texi: Likewise.
1537 * doc/c-v850.texi: Likewise.
1538 * doc/c-vax.texi: Likewise.
1539 * doc/internals.texi: Likewise.
1541 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1543 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1544 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1545 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1546 arrange not to issue warnings about use of AT when AT is not
1549 2002-12-17 Nick Clifton <nickc@redhat.com>
1551 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1552 prevent it being confused with -k.
1554 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1556 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1557 has already been set up, use it.
1559 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1561 * ChangeLog-9295: Fix a typo.
1563 * config/tc-d10v.c: Fix a comment typo.
1564 * config/tc-dlx.c: Likewise.
1565 * config/tc-h8300.h: Likewise.
1566 * config/tc-h8500.h: Likewise.
1567 * config/tc-mips.c: Likewise.
1568 * config/tc-s390.c: Likewise.
1569 * config/tc-sh.h: Likewise.
1570 * config/tc-tic80.h: Likewise.
1571 * config/tc-w65.h: Likewise.
1572 * config/tc-z8k.c: Likewise.
1573 * config/tc-z8k.h: Likewise.
1574 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1576 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1578 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1579 Simplify sign extension. Remove redundant unsigned < 0 test.
1580 * config/tc-i960.c (md_ri_to_chars): Prototype.
1581 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1582 (dump_literals): Init brarsym, and test later instead of isforce.
1584 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1585 (parse): Constify line and lineptr.
1586 (md_begin): Calculate endop here.
1588 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1590 * config/obj-vms.c: Formatting. Include fnctl.h.
1591 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1592 (Object_Record_Offset): Make it a size_t.
1593 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1594 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1595 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1596 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1597 (vms_fixup_data_section <data_size>): Add here instead.
1598 * config/e-criself.c: Fix typo in last change.
1600 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1602 * write.c (write_object_file): Fix signed/unsigned warning.
1603 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1604 * config/e-criself.c (criself_bfd_name): Prototype.
1605 * config/obj-aout.c (s_sect): Remove unused function.
1606 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1607 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1608 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1609 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1610 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1611 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1612 (vms_fixup_text_section <text_siz>): Likewise.
1613 (synthesize_data_segment <data_size>): Likewise.
1614 (vms_fixup_xtors_section <sect_no>): Likewise.
1615 (structure_count): Don't use implicit int type.
1616 * config/tc-a29k.c (insert_sreg): Prototype.
1617 (define_some_regs): Prototype, make static.
1618 (parse_operand): Likewise.
1619 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1620 (md_show_usage <stream>): Likewise.
1621 (md_section_align <segment>): Likewise.
1622 (md_convert_frag <all args>): Likewise.
1623 (md_estimate_size_before_relax <all args>): Likewise.
1624 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1625 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1626 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1627 (md_undefined_symbol <name>): Likewise.
1628 (md_convert_frag <all args>): Likewise.
1629 (write_long <opcode>): Likewise.
1630 (tc_gen_reloc <seg>): Likewise.
1631 (md_estimate_size_before_relax <all args>): Likewise.
1632 (md_apply_fix3 <seg>): Likewise.
1633 (s_d30v_align <ignore>): Likewise.
1634 (build_insn): Correct format string.
1635 (md_apply_fix3): Likewise.
1636 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1637 (md_undefined_symbol <name>): Likewise.
1638 (md_convert_frag <all args>): Likewise.
1639 (md_cgen_lookup_reloc <insn>): Likewise.
1640 (md_begin): Delete unused vars.
1641 (md_assemble): Likewise.
1642 (md_estimate_size_before_relax): Likewise.
1643 (fr30_relax_frag): #if 0 out, seems unused.
1644 (md_atof): Remove declaration of atof_ieee.
1645 (restore_colon): Prototype.
1646 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1647 (frv_find_in_vliw): Likewise.
1648 (frv_debug_tomcat): Likewise.
1649 (frv_adjust_vliw_count): Likewise.
1650 (frv_tomcat_shuffle): Likewise.
1651 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1652 frv_find_in_vliw call.
1653 (md_atof): Remove declaration of atof_ieee.
1654 * config/tc-h8500.c (cons): Delete declaration.
1655 (md_begin <opcode>): Constify.
1656 (displacement_size, immediate_size, absolute_size): Remove.
1657 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1658 (tc_crawl_symbol_chain <headers>): Likewise.
1659 (md_undefined_symbol <name>): Likewise.
1660 (tc_headers_hook <headers>): Likewise.
1661 (md_parse_option <c,arg>): Likewise.
1662 (md_show_usage <stream>): Likewise.
1663 (md_convert_frag <headers, seg>): Likewise.
1664 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1665 (md_atof): Remove declaration of atof_ieee.
1666 (tc_aout_fix_to_chars): Remove unused function.
1667 (parse_reg): Prototype.
1668 (parse_exp): Prototype.
1669 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1670 (parse_reglist): Prototype.
1671 (get_operand): Prototype.
1672 (get_operands): Prototype.
1673 (get_specific): Prototype. Make "this_index" signed.
1674 (check): Prototype, make static.
1676 (build_relaxable_instruction): Prototype, make static.
1677 (build_bytes): Prototype.
1678 (wordify_scb): Prototype.
1679 * config/tc-h8500.h (start_label): Declare.
1680 (tc_coff_sizemachdep): Declare.
1681 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1682 (i370_rmode <unused>): Likewise.
1683 (i370_csect <unused>): Likewise.
1684 (i370_dc <unused>): Likewise.
1685 (i370_ds <unused>): Likewise.
1686 (i370_elf_lcomm <unused>): Likewise.
1687 (i370_ltorg <ignore>): Likewise.
1688 (i370_using <ignore>): Likewise.
1689 (i370_drop <ignore>): Likewise.
1690 (i370_byte <ignore>): Likewise.
1691 (i370_tc <ignore>): Likewise.
1692 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1693 (md_convert_frag <all args>): Likewise.
1694 (md_undefined_symbol <name>): Likewise.
1695 (md_pcrel_from_section <sec>): Likewise.
1696 (tc_gen_reloc <seg>): Likewise.
1697 (i370_section_letter): #if 0 unused functions.
1698 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1699 (symbol_locate): Prototype.
1700 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1701 (md_number_to_disp, md_number_to_field): Remove.
1702 (md_apply_fix3): Correct format string and cast "fup".
1703 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1704 (s_endian <ignore>): Likewise.
1705 (md_undefined_symbol <name>): Likewise.
1706 (tc_crawl_symbol_chain <headers>): Likewise.
1707 (tc_set_bal_of_call): Likewise.
1708 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1709 (i960_handle_align <fragp>): Likewise.
1710 (i960_validate_fix <this_segment_type>): Likewise
1711 (tc_gen_reloc <section>): Likewise.
1712 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1713 (struct memS, struct regop): Forward declare.
1714 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1715 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1716 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1717 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1718 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1719 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1720 (md_number_to_field): Likewise.
1721 (md_number_to_disp): Remove unused function.
1722 (md_atof): Remove declaration of atof_ieee.
1723 (md_apply_fix3): Correct md_number_to_imm call.
1724 * config/tc-ip2k.c (md_assemble): Warning fix.
1725 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1726 (fill_insn <ignore>): Likewise.
1727 (debug_sym <ignore>): Likewise.
1728 (md_undefined_symbol <name>): Likewise.
1729 (m32r_scomm <ignore>): Likewise.
1730 (md_convert_frag <abfd>): Likewise.
1731 (md_cgen_lookup_reloc <insn>): Likewise.
1732 (m32r_record_hi16 <seg>): Likewise.
1733 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1734 (allow_m32rx): Prototype.
1735 (first_writes_to_seconds_operands): Prototype.
1736 (writes_to_pc): Prototype.
1737 (can_make_parallel): Prototype.
1738 (make_parallel): Prototype.
1739 (target_make_parallel): Prototype.
1740 (assemble_two_insns): Prototype.
1741 (m32r_record_hi16): Prototype.
1742 (md_atof): Remove declaration of atof_ieee.
1743 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1744 (m32r_force_relocation): Prototype.
1745 (m32r_elf_section_change_hook): Prototype.
1746 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1747 (md_show_usage): Fix signed/unsigned warning.
1748 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1749 (calcop): Ditto for reg_prefix var.
1750 (hexval): Add cast to fix signed/unsigned warning.
1751 (md_number_to_disp): Delete unused function.
1752 (md_number_to_field): Likewise.
1753 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1754 (match_name): Prototype.
1755 (get_bf2): Prototype.
1756 (get_bf_offset_expression): Prototype.
1757 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1758 (md_undefined_symbol <ignore>): Likewise.
1759 (md_create_short_jump <all args>): Likewise.
1760 (md_create_long_jump <all args>): Likewise.
1761 (md_convert_frag <abfd, sec>): Likewise.
1762 (md_apply_fix3 <segment>): Likewise.
1763 (md_section_align <segment>): Likewise.
1764 (md_pcrel_from_section <sec>): Likewise.
1765 (tc_gen_reloc <section>): Likewise.
1766 (reg_m, reg_n, immediate): Delete unused vars.
1767 (dump_literals): Fix signed/unsigned warning.
1768 (enter_literal): Likewise.
1769 (parse_imm): Likewise. Also fix format string.
1770 (parse_mem): Remove unused var.
1771 (md_assemble <LS>): Abort on unexpected inst.
1772 (md_atof): Remove declaration of atof_ieee.
1773 (md_parse_option): Remove unused vars.
1774 (md_apply_fix3): Fix format strings, cast args.
1775 (tc_gen_reloc): Delete unused var.
1776 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1777 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1778 (md_undefined_symbol <name>): Likewise.
1779 (md_convert_frag <abfd>): Likewise.
1780 (tc_gen_reloc <seg>): Likewise.
1781 (check_operand <insn>): Likewise.
1782 (md_convert_frag): Fix format strings.
1783 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1784 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1785 (md_atof): Remove declaration of atof_ieee.
1786 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1787 (md_apply_fix3): Fix bogus >>='s.
1788 (md_undefined_symbol): Delete unused var.
1789 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1790 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1791 (fake_opcode): Adjust for pj_opc_int_t change.
1792 (md_begin): Likewise.
1793 (md_assemble): Likewise.
1794 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1795 instead of non-existent third arg of parse_exp_save_ilp.
1796 (md_parse_option): Correct "little" and "big" calls.
1797 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1798 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1799 (tc_gen_reloc <section>): Likewise.
1800 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1801 (debug): Rewrite using VA_* macros.
1802 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1803 (md_convert_frag): Likewise.
1804 (md_parse_option): Likewise.
1805 (md_show_usage): Likewise.
1806 (md_undefined_symbol): Likewise.
1807 (tc_gen_reloc): Likewise.
1808 (md_operand): Likewise.
1809 (tc_aout_pre_write_hook): Delete.
1810 (struct tic30_insn): Make "operands" unsigned.
1811 (struct tic30_par_insn): Likewise.
1812 (md_assemble): Likewise for "count", "i" and "numops".
1813 (tic30_parallel_insn): Likewise for vars here.
1814 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1815 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1816 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1817 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1818 (md_undefined_symbol): Likewise.
1819 (md_parse_option): Likewise.
1820 (md_convert_frag): Likewise.
1821 (tc_coff_symbol_emit_hook): Likewise.
1822 (md_atof): Remove declaration of atof_ieee.
1823 (const_overflow): Warning fixes, tidy.
1824 (get_operands): Delete unused vars.
1825 (internal_error_a): Adjust format string to expect a long for arg.
1826 (find_opcode): Warning fixes, simplify.
1827 (build_insn): Cast internal_error_a arg.
1828 (md_begin): Likewise.
1829 (md_apply_fix3): Likewise.
1830 (md_assemble): Delete unused var.
1831 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1832 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1833 (whatreg, parse_reg, parse_exp): Make static, prototype.
1834 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1835 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1836 (get_operand, get_operands, get_specific, newfix): Likewise.
1837 (apply_fix, build_bytes): Likewise.
1838 (md_atof): Remove declaration of atof_ieee.
1839 (tc_aout_fix_to_chars): Delete.
1840 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1842 (md_parse_option): Fix s_segm and s_unseg calls.
1844 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1846 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1848 (RELAX_BRANCH_RELOC_S2): Delete.
1849 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1850 Do not handle BFD_RELOC_16_PCREL.
1851 (macro_build, mips_ip): Likewise.
1852 (md_pcrel_from): Return 4 for undefined symbols regardless of
1854 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1855 Don't dereference howto if no such relocation is available.
1856 Do not apply hack for in-place zero addend in NEWABI.
1857 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1859 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1860 Alan Modra <amodra@bigpond.net.au>
1862 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1863 (TC_LINKRELAX_FIXUP): Add comments.
1865 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1867 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1869 (r_register_name, xr_register_name): Add prototype declarations.
1871 2002-12-08 H.J. Lu <hjl@gnu.org>
1873 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1874 copied from tc-i386.c.
1876 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1878 Fix Bug savannah/1825:
1879 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1880 (md_relax_table): Define specific relax for PC-rel offsets.
1881 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1882 (m68hc11_relax_frag): Handle the new relax code.
1883 (md_convert_frag): Likewise.
1884 (md_estimate_size_before_relax): Likewise.
1886 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1888 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1890 2002-12-05 Richard Henderson <rth@redhat.com>
1892 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1893 (ia64_gen_real_reloc_type): Handle it.
1894 (pseudo_func): Add @ltoffx.
1895 (md_begin): Build .<ltoffx>.
1896 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1898 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1900 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1901 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1902 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1903 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1904 COFF to call arm_force_relocation.
1906 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1908 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1910 (emit_one_bundle): Handle "hint" instruction.
1911 (operand_match): Match IA64_OPND_AR_CSD.
1913 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1915 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1918 2002-12-03 Nick Clifton <nickc@redhat.com>
1920 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1921 .PPC.EMB.apuinfo sections.
1923 2002-12-03 Richard Henderson <rth@redhat.com>
1925 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1927 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1929 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1930 (cons, s_align_bytes): Delete declaration.
1932 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1934 (dot): Delete unused function.
1935 (w65_expression): Remove unused arg.
1936 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1938 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1940 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1942 (check): Remove unused function.
1943 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1944 on unhandled switch case.
1945 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1947 (tc_crawl_symbol_chain): Delete unused function.
1948 (tc_headers_hook): Likewise.
1949 (tc_Nout_fix_to_chars): Likewise.
1950 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1951 (md_parse_option): Likewise.
1952 (md_convert_frag): Likewise.
1953 (tc_coff_symbol_emit_hook): Likewise.
1954 (md_show_usage): Likewise.
1955 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1956 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1957 (w65_expression): Declare.
1959 * po/POTFILES.in: Regenerate.
1961 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1962 and ARM_ADRL_IMMEDIATE.
1964 2002-12-02 Nick Clifton <nickc@redhat.com>
1966 * gasp.c: Delete. It has been deprecated.
1967 * NEWS: Mention that gasp has been removed.
1968 * Makefile.am: Remove references to gasp.
1969 * makefile.vms: Likewise.
1970 * mpw-make.sed: Likewise.
1971 * Makeile.in: Regenerate.
1972 * doc/gasp.texi: Delete.
1973 * doc/Makefile.am: Remove references to gasp.texi.
1974 * doc/Makefile.in: Regenerate.
1975 * macro.c: Delete references to gasp.
1976 Remove use of comment_char function parameter as it is no longer
1978 * macro.h: Update prototypes to remove comment_char parameter.
1980 * read.c (read_a_source_file, s_irp): Remove comment_char
1981 parameter from invocation of functions in macro.c
1983 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1985 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1987 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1989 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1990 (tc_gen_reloc): Mark section param as not used.
1992 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1994 Fix Bug savannah/1825:
1995 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1996 that are not pc-relative.
1997 (m68hc11_relax_frag): Declare.
1999 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
2000 the offsetable indexed addressing modes (n,r).
2001 (build_insn): Cleanup some locals.
2002 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
2003 relaxation of difference between two symbols of same section.
2004 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
2005 only when this is a PC-relative operand and the offset is not absolute.
2006 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
2007 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
2008 be handled by m68hc11_relax_frag.
2010 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
2012 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
2013 (32-bit int, 64-bit double).
2014 (md_longopts): New options -mshort, -mlong, -mshort-double and
2015 -mlong-double to control the ABI.
2016 (md_show_usage): Update.
2017 (md_parse_option): Handle new options.
2018 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
2020 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
2022 * symbols.c (report_op_error): New function, broken out of ...
2023 (resolve_symbol_value): ... here. Use for both monadic and dyadic
2026 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2028 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
2029 for BFD_RELOC_32_PLT_PCREL.
2031 2002-11-30 Alan Modra <amodra@bigpond.net.au>
2033 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
2034 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
2035 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
2036 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
2037 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
2038 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
2039 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
2040 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
2041 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
2042 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
2043 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
2044 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
2045 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
2046 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
2047 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
2048 TRUE/FALSE. Formatting.
2050 2002-11-29 Nick Clifton <nickc@redhat.com>
2052 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
2053 assume a value of zero.
2054 (do_bkpt): Likewise.
2056 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2058 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2059 for TLS relocations.
2061 2002-11-29 Jakub Jelinek <jakub@redhat.com>
2063 * config/tc-ia64.c (md_apply_fix3): Add default case.
2065 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2067 * symbols.c (S_SET_THREAD_LOCAL): New function.
2068 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2069 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2070 for TLS relocations.
2071 * config/tc-ia64.c (md_apply_fix3): Likewise.
2072 * config/tc-alpha.c (md_apply_fix3): Likewise.
2074 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2076 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2079 2002-11-26 DJ Delorie <dj@redhat.com.
2081 * dwarf2dbg.c (scale_addr_delta): New.
2082 (size_inc_line_addr): Use it.
2083 (emit_inc_line_addr): Use it.
2085 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2087 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2088 (md_assemble): Don't pass on branches to constants as relaxable.
2091 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2093 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2095 2002-11-21 Randolph Chung <randolph@tausq.org>
2097 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2098 only if they have default visibility.
2100 2002-11-21 Richard Henderson <rth@redhat.com>
2102 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2105 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2107 * config/tc-mcore.c (mcore_pool_count): New function.
2108 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2110 2002-11-20 Klee Dienes <kdienes@apple.com>
2112 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2113 coalesce the name fields to use the same pointer.
2115 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2116 the name fields to use the same pointer.
2117 (get_specific): Check for opcodes with the same name using strcmp
2118 as well as comparing the pointer.
2120 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2122 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2125 2002-11-19 Richard Henderson <rth@redhat.com>
2127 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2128 visibility portion of st_other.
2130 2002-11-19 Klee Dienes <kdienes@apple.com>
2132 * config/tc-h8300.c (struct h8_instruction): New type, used to
2133 wrap h8_opcodes with length, noperands, idx, and size fields
2134 (computed at run-time).
2135 (h8_instructions): New variable.
2136 (md_begin): Allocate the storage for h8_instructions. Fill
2137 h8_instructions with pointers to the appropriate opcode and the
2138 correct value for the additional fields.
2139 (clever_message): Update to use h8_instructions instead of
2141 (build_bytes): Ditto.
2142 (get_specific): Ditto.
2143 (md_assemble): Ditto.
2145 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2147 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2148 adjustments to symbols in merge sections.
2150 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2152 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2154 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2156 * dwarf2dbg.h (dwarf2_format): New enum.
2157 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2158 (out_debug_line, out_debug_info): Add code for handling 64-bit
2160 * config/tc-mips.h (mips_dwarf2_format): Declare.
2161 * config/tc-mips.c (mips_dwarf2_format): New function.
2162 * doc/internals.texi (DWARF2_FORMAT): Document.
2164 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2166 * config/tc-mips.c (s_change_section): Make sure input buffer
2167 is not accessed past the end. Don't hand
2168 obj_elf_change_section a pointer into the input buffer.
2170 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2172 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2175 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2177 * config/tc-tic4x.c: Fixed proper commandline
2178 parameters. Added support for new opcode-list format. General
2179 error message fixups.
2180 (c4x_inst_add): Reject insn not for our CPU
2181 (md_begin): Added matrix for setting the proper opcode-level &
2182 device-flags according to cpu type and revision. Rewrite the
2184 (c4x_operand_parse): Fix opcode bug
2185 (c4x_operands_match): New function argument. Added dry-run
2186 mechanism, that is optional error generation. Added constraint 'i'
2188 (c4x_insn_check): Added new function for post-verification of the
2190 (md_assemble): Check all opcodes before croaking because of an
2191 argument mismatch. Need this to be able to fully support
2192 ortogonally arguments.
2193 (md_parse_options): Revised commandprompt swicthes and added new
2195 (md_show_usage): Complete rewrite of printout.
2197 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2199 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2200 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2201 warning when using constant direct bigger than 2^16. Add the new
2204 2002-11-11 Christopher Faylor <cgf@redhat.com>
2206 * configure.in: Use .gdbinit under Cygwin.
2207 * configure: Regenerate.
2209 2002-11-11 Christopher Faylor <cgf@redhat.com>
2211 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2214 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2216 * config/tc-tic4x.c: Declare as many functions as possible as
2217 static. Maintenance on the general indenting. Removed unnecessary
2218 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2219 function. Add support for new DSP, TMS320VC33. Fix bug for
2220 converting flonum constants.
2221 (c4x_do_align): Add proper align handling. Setup align to insert
2223 (c4x_gen_to_words): Support for extended TI type floats.
2224 (md_atof): Proper dumping of multiple-word littlenums.
2225 (c4x_atof): Added support for extended TI type floats.
2226 (c4x_stringer): Added new function to handle compact strings.
2227 (c4x_emit_char): Added new function argument to handle custom
2228 length inserts, like single-byte strings.
2229 * config/tc-tic4x.h: Add proper align handling with NOP's.
2230 * Makefile.am: Added tic4x dependecy
2231 * Makefile.in: Regenerate
2233 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2235 * macro.c (get_any_string): Correct logic for not going beyond end
2238 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2240 * config/tc-mmix.c (get_putget_operands): Mark both possible
2241 operands as invalid at beginning.
2243 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2244 Initialize target of fixup to zero.
2246 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2248 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2249 NEWABI, but we should still emit HI16_S for non-PIC n32.
2251 2002-11-06 Richard Henderson <rth@redhat.com>
2253 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2254 (alpha_fix_adjustable): ... here.
2255 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2257 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2259 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2262 2002-11-05 H.J. Lu <hjl@gnu.org>
2264 * config/tc-mips.c (support_64bit_objects): Check *l before it
2267 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2269 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2270 SEC_LOAD flags for sections marked as 's'.
2272 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2274 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2275 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2276 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2279 * dep-in.sed: Fix typo.
2281 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2283 * configure.in: Update ARM CPU patterns.
2284 * configure: Regenerated.
2286 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2288 * itbl-lex.l: Use #include <> for generated headers.
2289 * itbl-ops.c: Likewise.
2291 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2293 * doc/gasp.texi: Fix typo in deprecation note.
2295 2002-10-23 Nick Clifton <nickc@redhat.com>
2297 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2298 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2300 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2302 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2303 (tc_frob_file_before_adjust): Don't define.
2304 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2306 (mmix_frob_file_before_adjust): Remove ineffective function.
2308 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2310 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2311 (cris_relax_frag): New function.
2312 (md_estimate_size_before_relax) <case ENCODE_RELAX
2313 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2314 expressions that will become absolute expressions to relaxation.
2315 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2316 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2317 value, not distance to symbol.
2318 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2319 Ditto. Correct placement of fixup.
2320 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2322 * config/tc-cris.h (cris_relax_frag): Declare.
2323 (md_relax_frag): Define.
2325 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2327 * config/obj-elf.c (special_sections): Use correct types for init
2329 (obj_elf_change_section): Don't mess with init array section type.
2331 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2333 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2334 for relocs against symbols in a merged section.
2336 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2338 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2339 table as register names.
2341 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2343 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2346 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2348 * expr.c (operand): Add support for n.nn flonums.
2350 2002-10-17 Johannes Stezenbach <js@convergence.de>
2352 * itbl-parse.y (entry): Provide empty action.
2354 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2356 * configure.in (BFDVER_H): Set and subst.
2357 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2358 * Makefile.am: Run "make dep-am".
2360 * configure: Regenerate.
2361 * Makefile.in: Regenerate.
2362 * doc/Makefile.in: Regenerate.
2364 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2366 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2367 (MD_APPLY_SYM_VALUE): Define for PE too.
2369 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2371 * Makefile.am: Run "make dep-am".
2372 (CPU_OBJ_VALID): sh64 coff is invalid.
2373 * as.c: #include "bfdver.h".
2374 * Makefile.in: Regenerate.
2375 * config.in: Regenerate.
2377 2002-10-14 Momchil Velikov <velco@fadata.bg>
2379 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2381 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2383 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2384 * configure: Regenerate.
2386 2002-10-13 Eric Christopher <echristo@redhat.com>
2387 Alexandre Oliva <aoliva@redhat.com>
2389 * config/tc-mips.c (s_gpdword): New function.
2390 (mips_pseudo_table): Add .gpdword.
2391 (mips_need_elf_addend_fixup): never for NEWABI.
2392 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2394 (s_cpadd): Generate .cpadd on NEWABI.
2396 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2398 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2400 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2402 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2403 (md_relax_frag): Adjust macro.
2404 * config/tc-mips.c (mips_relax_branch): New variable.
2405 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2406 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2407 (RELAX_MIPS16_P): Adjust.
2408 (append_insn): Emit branch to non-constant in a frag_var if
2409 branch-relaxation is desirable and possible.
2410 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2411 (OPTION_ELF_BASE): Adjust.
2412 (md_parse_option): Handle new options.
2413 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2415 (relaxed_branch_length): New function.
2416 (md_estimate_size_before_relax): Handle branch frags.
2417 (mips_relax_frag): Likewise.
2418 (md_convert_frag): Handle branch frags. Warn if branch is
2421 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2423 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2425 (md_apply_fix3): Add TLS relocs.
2426 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2429 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2430 Alan Modra <amodra@bigpond.net.au>
2432 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2433 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2435 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2437 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2440 2002-10-09 Richard Shann <richard.shann@superh.com>
2441 Stephen Clarke <stephen.clarke@superh.com>
2443 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2446 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2448 * contig/tc-sh.c (sh_local_pcrel): New.
2449 (sh_force_relocation): Use sh_local_pcrel.
2450 (md_pcrel_from_section): Check the relocation type whether it
2451 should be resolved locally. Use S_FORCE_RELOC.
2453 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2455 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2456 (TC_FORCE_RELOCATION): Tidy arg.
2458 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2459 Ken Raeburn <raeburn@cygnus.com>
2460 Aldy Hernandez <aldyh@redhat.com>
2461 DJ Delorie <dj@redhat.com>
2462 Michael Meissner <meissner@redhat.com>
2463 Eric Christopher <echristo@redhat.com>
2464 Richard Sandiford <rsandifo@redhat.com>
2466 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2467 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2468 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2469 (hilo_interlocks): True for CPU_VR5500.
2470 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2471 (mips_fix_vr4122_bugs): New.
2472 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2473 (mips_emit_delays): Likewise.
2474 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2475 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2476 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2477 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2478 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2479 (OPTION_ELF_BASE): Bump.
2480 (md_parse_option): Handle the new options.
2481 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2484 2002-09-29 H.J. Lu <hjl@gnu.org>
2486 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2487 twice if howto->pcrel_offset is true.
2489 2002-09-28 Matt Thomas <matt@3am-software.com>
2490 Jason Thorpe <thorpej@wasabisystems.com>
2492 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2493 convert undefined references to GOT32/PLT32 if PIC code is
2494 requested. Fix comment.
2496 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2498 * config/tc-sh.c (sh_force_relocation): Return 0 for
2499 some PC relative relocations when not relaxing.
2501 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2503 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2504 Define them if not BFD_ASSEMBLER.
2505 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2507 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2508 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2509 (tc_gen_reloc): Handle x86-64 TLS relocs.
2511 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2513 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2514 fixups to current or absolute section.
2516 2002-09-26 Jim Wilson <wilson@redhat.com>
2518 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2521 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2523 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2524 capable configuration.
2525 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2527 (mips_ip): Likewise.
2529 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2531 * config/tc-mips.c (append_insn): Fix jump overflow check.
2533 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2535 * config/tc-i386.c (process_operands): Warn about "lea" segment
2538 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2540 * write.c: Delete set_segment_vma and prototype. Update all callers.
2542 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2544 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2545 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2546 Rename "fseg" to "sym_seg".
2547 * Makefile.am: Run "make dep-am".
2548 * Makefile.in: Regenerate.
2549 * doc/Makefile.in: Regenerate.
2551 2002-09-20 Nick Clifton <nickc@redhat.com>
2553 * symbols.c (colon): Do not allow symbols to be created in the
2554 absolute section if WORKING_DOT_WORD is not defined and
2555 new_broken_words would require a new frag to be created.
2557 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2559 * expr.c (expr): Simplify foo-foo here.
2560 (clean_up_expression): Remove O_subtract code.
2562 * write.h (struct fix): Add fx_dot_value.
2563 (dot_value): Declare.
2564 * write.c (dot_value): New var.
2565 (fix_new_internal): Save dot_value as fx_dot_value.
2566 (fixup_segment): Adjust fx_offset using fx_dot_value.
2567 * expr.c (expr): Update dot_value.
2569 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2571 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2572 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2573 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2575 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2576 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2577 BFD_RELOC_386_TLS_GOTIE.
2579 2002-09-19 Richard Henderson <rth@redhat.com>
2581 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2583 (alpha_force_relocation): Don't special-case branch type relocs.
2585 2002-09-19 Nick Clifton <nickc@redhat.com>
2587 * config/tc-m68k.c (select_control_regs): Handle situation where
2588 architecture has not yet been selected.
2590 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2592 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2593 (IS_SEXT_16BIT_NUM): New macro.
2594 (macro_build_ldst_constoffset): New function, to build a set of
2595 instructions to do a load or store from a constant offset relative
2596 to a given register.
2597 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2598 .cprestore pseudo-op.
2600 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2602 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2604 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2606 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2608 2002-09-17 Stan Cox <scox@redhat.com>
2610 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2611 (macro): Likewise for la. Likewise for ld.
2612 (mips_after_parse_args): Make -xgot optional, not the default.
2613 (md_apply_fix3): Allow composite relocation to set up gp.
2614 (tc_gen_reloc): Allow relaxing for newabi.
2615 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2616 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2618 2002-09-17 Nick Clifton <nickc@redhat.com>
2620 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2621 BFD_RELOC_ARM_IMMEDIATE has been done.
2622 (tc_gen_reloc): Do not issue reloc number of unimplemented
2623 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2624 their name is already in the error message - plus remove them
2625 from the default case.
2627 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2628 behavior of instructions.
2630 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2632 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2633 Convert functions to K&R format.
2635 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2637 * config/tc-mips.c (pdr_seg): Define only for ELF.
2638 (s_change_section): Remove unused variable. Don't use for nonELF.
2640 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2642 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2644 * config/obj-elf.h (obj_elf_change_section): Likewise.
2646 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2648 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2649 (out_debug_info): Likewise.
2651 2002-09-16 Bruno Haible <bruno@clisp.org>
2653 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2654 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2655 * config/tc-i386.c (i386_target_format): Likewise.
2656 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2657 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2659 2002-09-13 Nick Clifton <nickc@redhat.com>
2661 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2662 when deciding if any operands have been skipped.
2664 2002-09-11 Nick Clifton <nickc@redhat.com>
2666 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2668 * po/tr.po: Updated Turkish translation.
2670 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2672 * config/tc-i386.c (md_apply_fix3): Allow addend for
2673 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2674 BFD_RELOC_386_TLS_LE_32.
2676 2002-09-05 Jeff Law <law@redhat.com>
2678 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2679 marker relocations such as ENTRY/EXIT.
2680 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2681 to both OBJ_ELF and OBJ_SOM.
2683 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2685 * doc/internals.texi (md_apply_fix3): Expand.
2686 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2687 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2688 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2689 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2690 EXTERN_FORCE_RELOC): Document.
2691 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2692 * as.h: Don't include struc-symbol.h for arc.
2694 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2695 subtract absolute symbol.
2696 * obj.h (struct format_ops): Add frob_file_before_fix.
2697 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2698 * symbols.c (S_FORCE_RELOC): New function.
2699 * symbols.h (S_FORCE_RELOC): Declare.
2700 * write.c (TC_FORCE_RELOCATION): Change default.
2701 (TC_FORCE_RELOCATION_ABS): Define.
2702 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2703 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2704 (TC_FORCE_RELOCATION_SECTION): Don't define.
2705 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2706 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2707 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2708 (TC_VALIDATE_FIX_SUB): Define.
2709 (TC_FIX_ADJUSTABLE): Don't define.
2710 (MD_APPLY_SYM_VALUE): Define this instead.
2711 (abs_section_sym): New variable.
2712 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2713 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2714 Don't put the absolute section sym on fixups here.
2715 (fix_segment): New function.
2716 (write_relocs): Don't call fixup_segment from here.
2717 (write_object_file): Instead call tc_frob_file_before_fix,
2718 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2719 Don't output the absolute section symbol.
2720 (fixup_segment): Rewrite.
2721 * write.h (abs_section_sym): Declare.
2722 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2724 (aout_format_ops): Adjust to suit.
2725 * config/obj-aout.h (obj_frob_file): Don't define.
2726 (obj_frob_file_before_fix): Define.
2727 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2728 (S_FORCE_RELOC): Define.
2729 * config/obj-bout.h (S_FORCE_RELOC): Define.
2730 * config/obj-coff.c (coff_format_ops): Init new field.
2731 * config/obj-coff.h: Formatting fixes.
2732 (obj_sec_sym_ok_for_reloc): Define.
2733 (S_FORCE_RELOC): Define.
2734 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2735 (ecoff_frob_file): .. from here.
2736 (ecoff_format_ops): Add new function.
2737 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2738 (obj_frob_file_before_fix): Define.
2739 * config/obj-elf.c (elf_format_ops): Init new field.
2740 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2741 * config/obj-ieee.h: Formatting fixes.
2742 (S_FORCE_RELOC): Define.
2743 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2744 * config/obj-vms.h (S_FORCE_RELOC): Define.
2745 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2746 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2747 for BFD_RELOC_32 and BFD_RELOC_64.
2748 (alpha_fix_adjustable): Remove extern and weak tests.
2749 (alpha_before_fix): Rename from alpha_adjust_symtab.
2750 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2751 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2752 (TC_VALIDATE_FIX): Tweak param name.
2753 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2754 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2755 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2756 (MD_APPLY_SYM_VALUE): Define.
2757 (tc_adjust_symtab): Don't define.
2758 (alpha_adjust_symtab): Don't declare.
2759 (tc_frob_file_before_fix): Define.
2760 (alpha_before_fix): Declare.
2761 (TC_INIT_FIX_DATA): Tweak param names.
2762 * config/tc-arc.c: Include "struc-symbol.h".
2763 (md_pcrel_from): Remove undefined sym fudge.
2764 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2765 Don't set fx_addnumber.
2766 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2767 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2768 (EXTERN_FORCE_RELOC): Define.
2769 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2770 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2771 (arm_validate_fix): Return void.
2772 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2773 Add plt and got reloc tests.
2774 (arm_force_relocation): Call S_FORCE_RELOC.
2775 * config/tc-arm.h (struct fix): Forward declare.
2776 (TC_VALIDATE_FIX): No longer set add_symbolP.
2777 (arm_validate_fix): Adjust declaration.
2778 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2779 (TC_FORCE_RELOCATION): Tweak param name.
2780 (TC_INIT_FIX_DATA): Likewise.
2781 (obj_fix_adjustable): Don't define.
2782 (tc_fix_adjustable): Call arm_fix_adjustable.
2783 (TC_FIX_ADJUSTABLE): Don't define.
2784 (MD_APPLY_SYM_VALUE): Define.
2785 (EXTERN_FORCE_RELOC): Define.
2786 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2787 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2788 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2789 Remove *valP fudges and code to subtract abs sym. Don't set
2791 * config/tc-avr.h: Formatting.
2792 (EXTERN_FORCE_RELOC): Define.
2793 (MD_APPLY_SYM_VALUE): Define.
2794 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2795 (md_apply_fix3): Remove code to subtract abs sym.
2796 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2797 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2798 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2799 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2800 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2801 (tc_fix_adjustable): Remove extern, weak tests.
2802 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2803 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2804 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2805 and code to subtract abs sym.
2806 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2807 (d10v_force_relocation): Call S_FORCE_RELOC.
2808 * config/tc-d10v.h: Don't include write.h.
2809 (struct fix): Instead, forward declare.
2810 (MD_PCREL_FROM_SECTION): Tweak param names.
2811 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2812 (d10v_fix_adjustable): Likewise.
2813 (obj_fix_adjustable): Don't define.
2814 (tc_fix_adjustable): Define.
2815 (TC_FORCE_RELOCATION): Tweak param name.
2816 (MD_APPLY_SYM_VALUE): Define.
2817 (EXTERN_FORCE_RELOC): Define.
2818 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2819 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2820 and code to subtract abs sym.
2821 * config/tc-d30v.h: Don't include write.h.
2822 (struct fix): Instead, forward declare.
2823 (MD_PCREL_FROM_SECTION): Tweak param names.
2824 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2825 (MD_APPLY_SYM_VALUE): Define.
2826 (EXTERN_FORCE_RELOC): Define.
2827 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2828 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2829 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2830 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2831 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2832 Don't use fx_addnumber.
2833 * config/tc-dlx.h: Don't include write.h.
2834 (md_convert_frag): We're not alpha twice over.
2835 (EXTERN_FORCE_RELOC): Define.
2836 (obj_fix_adjustable): Don't define.
2837 (tc_fix_adjustable): Define.
2838 (TC_FIX_ADJUSTABLE): Don't define.
2839 (MD_APPLY_SYM_VALUE): Define.
2840 (LOCAL_LABELS_DOLLAR): Undef always.
2841 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2842 (fr30_fix_adjustable): Remove extern, weak tests.
2843 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2844 (obj_fix_adjustable): Don't define.
2845 (tc_fix_adjustable): Define.
2846 (struct fix): Forward declare.
2847 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2848 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2849 (frv_fix_adjustable): Don't do extern, weak tests.
2850 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2851 (TC_FIX_ADJUSTABLE): Don't define.
2852 (obj_fix_adjustable): Don't define.
2853 (tc_fix_adjustable): Define.
2854 (struct fix): Forward declare.
2855 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2856 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2857 * config/tc-h8300.h (struct fix): Forward declare.
2858 (EXTERN_FORCE_RELOC): Define.
2859 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2860 (hppa_fix_adjustable): Don't test extern or weak. Don't
2861 symbol_mark_used_in_reloc.
2862 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2864 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2865 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2866 (TC_FORCE_RELOCATION_SECTION): Don't define.
2867 (MD_APPLY_SYM_VALUE): Define.
2868 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2869 to subtract abs sym.
2870 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2871 (MD_APPLY_SYM_VALUE): Define.
2872 (MD_PCREL_FROM_SECTION): Tweak param name.
2873 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2874 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2875 (i386_force_relocation): New function.
2876 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2877 (TC_VALIDATE_FIX): Likewise.
2878 (TC_FIX_ADJUSTABLE): Don't define.
2879 (MD_APPLY_SYM_VALUE): Define.
2880 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2881 (i386_force_relocation): Declare.
2882 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2883 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2884 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2885 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2886 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2887 (EXTERN_FORCE_RELOC): Define.
2888 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2889 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2890 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2891 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2892 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2893 Remove #if 0 code. Invert return boolean.
2894 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2895 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2896 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2897 (tc_coff_sizemachdep): Prototype.
2898 (i960_handle_align): Likewise.
2899 (i960_validate_fix): Adjust declaration.
2900 (reloc_callj): Likewise.
2901 (EXTERN_FORCE_RELOC): Define.
2902 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2903 (TC_FORCE_RELOCATION_ABS): Define.
2904 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2905 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2906 (TC_FIX_ADJUSTABLE): Don't define.
2907 (MD_APPLY_SYM_VALUE): Define.
2908 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2909 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2910 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2911 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2912 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2913 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2914 (MD_APPLY_SYM_VALUE): Define.
2915 (EXTERN_FORCE_RELOC): Define.
2916 (TC_FORCE_RELOCATION): Tweak param name.
2917 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2918 (m32r_fix_adjustable): Don't test extern, weak.
2919 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2920 (MD_APPLY_SYM_VALUE): Define.
2921 (obj_fix_adjustable): Don't define.
2922 (tc_fix_adjustable): Define.
2923 (tc_frob_file): Don't define.
2924 (tc_frob_file_before_fix): Define.
2925 (EXTERN_FORCE_RELOC): Define.
2926 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2927 BFD_RELOC_VTABLE_ENTRY address.
2928 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2929 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2930 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2931 Remove duplicated fx_done code.
2932 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2933 (EXTERN_FORCE_RELOC): Define.
2934 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2936 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2937 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2938 (TC_FIX_ADJUSTABLE): Don't define.
2939 (EXTERN_FORCE_RELOC): Define.
2940 (MD_APPLY_SYM_VALUE): Define.
2941 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2942 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2943 Remove fx_addsy tests.
2944 (mcore_force_relocation): Call S_FORCE_RELOC.
2945 (mcore_fix_adjustable): Don't test fx_addsy.
2946 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2947 (EXTERN_FORCE_RELOC): Define.
2948 (obj_fix_adjustable): Don't define.
2949 (tc_fix_adjustable): Define.
2950 (MD_APPLY_SYM_VALUE): Define.
2951 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2952 (mips_pic): No longer static.
2953 (mips_force_relocation): Call S_FORCE_RELOC.
2954 (mips_fix_adjustable): Remove extern, weak tests.
2955 * config/tc-mips.h (enum mips_pic_level): Declare.
2956 (mips_pic): Declare.
2957 (tc_frob_file): Don't define.
2958 (tc_frob_file_before_fix): Define this instead.
2959 (EXTERN_FORCE_RELOC): Define.
2960 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2961 with reg_section tests. Set fx_done instead of calling
2962 symbol_clear_used_in_reloc on bad relocs.
2963 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2964 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2965 (mmix_adjust_symtab): Simplify list handling. Abort on any
2967 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2968 BFD_RELOC_MMIX_LOCAL.
2969 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2970 (EXTERN_FORCE_RELOC): Define.
2971 (MD_PCREL_FROM_SECTION): Tweak param name.
2972 (tc_frob_file): Don't define.
2973 (tc_frob_file_before_fix): Define this instead.
2974 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2975 Remove SEC_CODE checks.
2976 (mn10300_fix_adjustable): Remove extern and weak tests.
2977 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2978 (TC_FORCE_RELOCATION): Tweak param name.
2979 (obj_fix_adjustable): Don't define.
2980 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2981 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2982 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2983 (openrisc_fix_adjustable): Don't test fx_addsy.
2984 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2985 (obj_fix_adjustable): Don't define.
2986 (tc_fix_adjustable): Define this instead.
2987 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2988 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2989 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2990 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2991 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2992 (MD_APPLY_SYM_VALUE): Define.
2993 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2994 Don't subtract symbol value.
2995 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2996 (EXTERN_FORCE_RELOC): Define.
2997 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2998 (MD_APPLY_SYM_VALUE): Define.
2999 (obj_fix_adjustable): Don't define.
3000 (tc_fix_adjustable): Define this instead.
3001 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
3003 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
3004 (ppc_force_relocation <elf version>): New.
3005 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
3006 (md_apply_fix3): Don't subtract symbol values for ELF. Update
3007 comments. Don't subtract fx_subsy as that is already done.
3008 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
3009 (MD_PCREL_FROM_SECTION): Likewise.
3010 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
3011 ppc_force_relocation.
3012 (TC_FORCE_RELOCATION_SECTION): Delete.
3013 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3014 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3015 (MD_APPLY_SYM_VALUE): Define.
3016 * config/tc-s390.c: #include "dwarf2dbg.h".
3017 (s390_insn): Remove excess parens.
3018 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
3019 (tc_s390_force_relocation): Call S_FORCE_RELOC.
3020 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
3021 non-NULL. Don't subtract off fx_addsy value.
3022 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3023 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3024 (TC_FIX_ADJUSTABLE): Don't define.
3025 (MD_APPLY_SYM_VALUE): Define.
3026 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
3027 (SWITCH_TABLE): Likewise.
3028 (sh_force_relocation): Call S_FORCE_RELOC.
3029 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
3030 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
3031 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
3032 fx_addnumber is zero on entry. Save val in fx_addnumber.
3033 (tc_gen_reloc): Don't subtract fx_subsy.
3034 * config/tc-sh.h (struct fix): Move.
3035 (obj_fix_adjustable): Don't define.
3036 (tc_fix_adjustable): Define this instead.
3037 (TC_FIX_ADJUSTABLE): Don't define.
3038 (MD_APPLY_SYM_VALUE): Define.
3039 (SWITCH_TABLE_CONS): Define.
3040 (SWITCH_TABLE): Define.
3041 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3042 (TC_VALIDATE_FIX_SUB): Define.
3043 (MD_PCREL_FROM_SECTION): Tweak param name.
3044 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3045 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3046 (TC_FORCE_RELOCATION_SUB_ABS): Define.
3047 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3048 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3049 (TC_FORCE_RELOCATION_SUB_SAME): Define.
3050 (TC_VALIDATE_FIX_SUB): Define.
3051 (MD_PCREL_FROM_SECTION): Tweak param name.
3052 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
3053 (tc_gen_reloc): Use S_FORCE_RELOC.
3054 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
3055 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
3056 (TC_FORCE_RELOCATION_ABS): Define this instead.
3057 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3058 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
3059 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
3060 (MD_APPLY_SYM_VALUE): Define.
3061 (TC_FIX_DATA_PRINT): Tweak param name.
3062 * config/tc-tic30.c (USE_STDOUT): Don't define.
3063 (md_parse_option): Remove stupid debug code.
3064 (tc_gen_reloc): Don't use fx_addnumber.
3065 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3066 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3067 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3068 (tc_fix_adjustable): Define this instead.
3069 (TC_FIX_ADJUSTABLE): Don't define.
3070 (MD_APPLY_SYM_VALUE): Define this instead.
3071 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3072 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3073 (TC_FIX_ADJUSTABLE): Don't define.
3074 (MD_APPLY_SYM_VALUE): Define this instead.
3075 (tc_fix_adjustable): Remove extern and weak tests.
3076 * config/tc-w65.h (struct fix): Forward declare.
3077 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3079 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3080 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3081 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3083 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3084 (MD_APPLY_SYM_VALUE): Define.
3085 (obj_fix_adjustable): Don't define.
3086 (tc_fix_adjustable): Define this instead.
3087 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3089 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3091 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3092 (ppc_fix_adjustable <coff version>): Cleanup.
3094 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3095 (md_parse_option): No -a64 without BFD64.
3096 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3097 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3099 2002-09-04 Nick Clifton <nickc@redhat.com>
3101 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3102 instructions into the hash table if the target cpu is the BookE32.
3104 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3106 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3109 2000-08-28 Catherine Moore <clm@redhat.com>
3111 * tc-v850.c (v850_relax): Declare.
3112 (v850_longcode): New routine.
3113 (v850_handle_align): New routine.
3114 (md_pseudo_table): Add longcall and longjump.
3115 (md_parse_option): Check for relax option.
3116 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3117 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3118 (md_apply_fix3): Likewise.
3119 (v850_force_relocation): Likewise.
3120 (v850_comm): Change the current section.
3121 (md_assemble): Ensure that the correct value is put in the
3123 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3124 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3125 Remove redundant v850ea support.
3126 * tc-v850.h (HANDLE_ALIGN): Define.
3127 (v850_handle_align): Declare.
3128 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3130 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3132 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3133 * configure: Regenerate.
3134 * NEWS: Mention new port.
3136 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3138 * config/obj-coff.c: Add sdef definition.
3139 * config/obj-coff.h: Add tic4x include file and set
3141 * config/tc-tic4x.c: New file.
3142 * config/tc-tic4x.h: New file.
3144 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3146 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3147 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3148 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3149 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3150 (RELOC_ENUM): Define.
3151 (fix_new_internal): Use RELOC_ENUM.
3152 (fix_new, fix_new_exp): Likewise.
3153 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3154 Replace gotos with continue.
3155 (write_relocs): Formatting. Avoid symbol loops in
3156 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3157 errors, and error number in other cases.
3158 (fixup_segment): Remove param names from prototype. Rename
3159 "this_segment_type" to "this_segment". Update linkrelax comment.
3160 Remove "size, "place" and "where" local vars. Formatting. Update
3161 "no symbol" comment. Remove #if 0 and #if 1.
3163 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3165 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3167 * dwarf2dbg.c: Always include dwarf2dbg.h.
3168 (dwarf2_directive_file): Adjust dummy version args.
3169 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3170 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3171 when symbol values differ.
3172 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3173 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3174 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3176 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3178 * config/tc-w65.c (md_section_align): Fix typo.
3179 (md_parse_option): Return 0, not 1.
3181 2002-08-22 Nick Clifton <nickc@redhat.com>
3183 * doc/as.texinfo (Section): Note that if '@' is a comment
3184 character then another symbol is used to prefix the section's
3187 2002-08-22 Christian Groessler <chris@groessler.org>
3189 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3192 2002-08-12 Graeme Peterson <gp@qnx.com>
3194 * configure.in: Add support for sh-**-nto* target.
3195 * configure: Regenerate.
3197 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3199 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3201 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3203 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3205 (ppc_apuinfo_section_add): Define only if format is ELF.
3206 (md_assemble): Emit APUinfo section only if format is ELF.
3209 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3211 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3212 * config/tc-frv.c: Likewise.
3213 * config/tc-hppa.c: Likewise.
3214 * config/tc-ia64.c: Likewise.
3215 * config/tc-ip2k.c: Likewise.
3216 * config/tc-m68hc11.c: Likewise.
3217 * config/tc-m68k.c: Likewise.
3218 * config/tc-mmix.c: Likewise.
3219 * config/tc-mn10300.c: Likewise.
3220 * config/tc-sh.c: Likewise.
3221 * config/tc-sparc.c: Likewise.
3222 * config/tc-v850.c: Likewise.
3224 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3226 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3229 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3231 From matthew green <mrg@redhat.com>
3233 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3234 PPC_OPCODE_PPC is, except for BookE architectures.
3235 (md_parse_option): Add support for -mspe.
3236 (md_show_usage): Add -mspe.
3237 (md_parse_option): Add support for -me500 and
3238 -me500x2 to generate code for Motorola e500 core complex.
3239 (md_show_usage): Add -me500 and -me500x2.
3241 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3242 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3243 PPC_APUINFO_BRLOCK): New macros.
3245 (ppc_cleanup): New function.
3246 (ppc_apuinfo_section_add): New function.
3248 (md_assemble): Collect info and write the APUinfo section.
3250 * config/tc-ppc.h (md_cleanup): Define.
3251 (ppc_cleanup): Export.
3252 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3254 2002-08-17 Stan Cox <scox@redhat.com>
3256 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3257 config/tc-mips.c (s_change_section): New function to support
3258 IRIX .section pseudo-op.
3260 2002-08-16 Nick Clifton <nickc@redhat.com>
3262 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3264 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3266 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3267 the fix-up against on the right frag.
3268 (s_cpsetup): Likewise. Parse third argument as expression, to
3269 handle global symbols and forward/backward labels correctly.
3271 2002-08-14 Nick Clifton <nickc@redhat.com>
3273 * read.c (stringer): Catch attempts to create strings in the abs
3276 * config/tc-alpha.c: Fix compiling for COFF targets.
3277 Some minor formatting tidyups.
3279 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3281 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3282 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3283 according to the reloc.
3284 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3285 (TC_FORCE_RELOCATION): Define.
3286 (tc_m68hc11_force_relocation): Declare.
3288 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3289 (s_m68hc11_relax): New function for relax group.
3290 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3291 beginning of jump instruction.
3292 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3293 address computation.
3294 (tc-gen_reloc): Update.
3295 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3297 (tc_m68hc11_force_relocation): New function, handle new relocs.
3298 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3299 reloc for the linker relax pass.
3300 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3303 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3305 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3306 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3307 (s_m68hc11_mode): New function for .mode pseudo op.
3308 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3310 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3311 (m68hc11_elf_final_processing): Declare.
3313 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3315 * config/tc-m68hc11.c (md_begin): Take into account additional
3316 page operand for call instruction.
3317 (print_opcode_format): Likewise.
3318 (check_range): Likewise for page range checking.
3319 (get_operand): Don't skip a possible comma in operands.
3320 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3321 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3322 (fixup24): New to handle call reloc.
3323 (build_insn): Handle missing page operand for call instruction.
3325 (md_apply_fix3): Take into account new relocs.
3326 (get_operand): Fix the mode for indexed indirect addressing.
3327 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3329 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3331 * config/tc-mips.c (mips_ip): Don't work out the value of
3332 constant %hi()s here.
3334 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3336 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3337 for ELF, and don't bother checking ELF relocs when non-ELF.
3338 (i386_immediate): Allow absolute_section expressions for aout.
3339 (i386_displacement): Likewise. Also test bfd_is_com_section.
3340 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3341 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3342 not when fx_addsy. Remove dead code.
3344 2002-08-09 Graeme Peterson <gp@qnx.com>
3346 * configure.in: Add support for ppc-*-nto* target.
3347 * configure: Regenerate.
3349 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3351 * config/tc-i386.h: Reorganize.
3353 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3355 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3356 immediate offset in "dla" and "la" expansions.
3358 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3360 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3361 Remove "bfd_gas=yes" from target table when covered later.
3362 Consolidate some entries.
3363 * configure: Regenerate
3365 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3367 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3368 at start of insn, pass it to output_disp and output_imm.
3369 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3370 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3372 (output_imm): Added arguments. Compute properly addend for
3374 (md_apply_fix3): Remove R_386_GOTPC handling.
3376 2002-08-06 George France <france@handhelds.org>
3378 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3379 and m21264b processor names and cpu types.
3380 * doc/c-alpha.texi: Documented new types.
3382 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3384 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3386 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3388 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3389 handling to BFD_RELOC_MIPS16_GPREL.
3391 2002-08-01 Nick Clifton <nickc@redhat.com>
3393 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3394 pool is computed using signed arithmetic so that proper sign
3395 extension is performed if X_add_number is a 64-bit integer.
3397 2002-08-01 H.J. Lu <hjl@gnu.org>
3398 Daniel Jacobowitz <drow@mvista.com>
3400 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3401 .debug_line section unless it has line information.
3403 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3405 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3406 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3407 Allow default displacement size to be an option "--disp-size-default".
3408 (md_number_to_disp): Make error messages include value. Use %d to
3409 print integers, not %s.
3410 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3411 get duplicate messages sometimes.
3412 (convert_iif): Grow frag to max possible instruction size. Avoid
3413 creating unnecessary fixes.
3414 (md_number_to_field) Add prototype.
3415 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3416 prototypes and make static.
3417 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3418 (evaluate_expr): Use resultP argument instead of exprP global.
3419 (get_addr_mode): Quiten compiler warnings.
3420 (encode_operand): eliminate unused variables. Quiten compiler
3421 warnings. Eliminate nul character in format strings.
3422 (parse): argc is unsigned.
3423 (reloc): Type cast index to quieten compiler.
3424 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3425 (md_convert_frag): Note unused parameters. Remove unused
3427 (md_create_long_jump, md_create_short_jump,
3428 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3431 2002-07-31 Nick Clifton <nickc@redhat.com>
3433 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3434 of the PDP-11 and 2.11BSD a.out support.
3436 2002-07-31 Momchil Velikov <velco@fadata.bg>
3438 * config/tc-v850.c (md_assemble): Fix range check for immediate
3441 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3443 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3444 to Broadcom SB-1 core support.
3446 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3448 * config/tc-mips.c (mips_target_format): Fix formatting.
3449 Add recognition of n32 ABI formats.
3451 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3453 * tc-mips.c (load_address): Don't clobber $at when loading a
3454 64-bit address in non-PIC code if noat is in effect.
3457 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3459 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3460 used in division/multiply macro expansions similarly to how they
3461 are used in the variants with break instructions.
3464 2002-07-30 Graeme Peterson <gp@qnx.com>
3466 * configure.in: Add support for arm-*-nto target.
3467 * configure: Regenerate.
3469 2002-07-30 Nick Clifton <nickc@redhat.com>
3471 * config/tc-arm.c (struct literal_pool): Add fields to allow
3472 multiple literal pools to be maintained.
3473 (find_literal_pool): New function.
3474 (find_or_make_literal_pool): New function.
3475 (add_to_literal_pool): Use find_or_make_literal_pool.
3476 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3478 (s_ltorg): Use find_literal_pool.
3479 (arm_cleanup): Dump all literal pools.
3480 * doc/c-arm.texi: Document new behaviour of only dumping literal
3483 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3485 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3486 rather than PPC_OPCODE_32 for powerpc64*.
3488 2002-07-25 Nick Clifton <nickc@redhat.com>
3490 * po/es.po: Updated Spanish translation.
3491 * po/fr.po: Updated French translation.
3493 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3495 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3496 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3497 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3498 * configure, config.in: Regenerate.
3499 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3500 (mips_set_options): Remove "abi" field.
3501 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3504 (mips_arch_string, mips_arch_info): New vars.
3505 (mips_tune_string, mips_tune_info): New vars.
3506 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3507 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3508 (mips_isa_to_str, mips_cpu_to_str): Remove.
3509 (mips_ip): If the selected architecture is a generic ISA rather
3510 than a processor, only mention the ISA level in error messages.
3511 (OPTION_MCPU): Remove.
3513 (md_longopts): Add -mfp64, remove -mcpu.
3514 (mips_set_option_string): New fn.
3515 (md_parse_option): Make -mipsN update file_mips_isa rather than
3516 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3517 Don't let -mgp32 and -mfp32 change the ABI.
3518 (show): Move to end of file. Constify string argument.
3519 (md_show_usage): Move to the end of the file. Read available
3520 architectures from mips_cpu_info_table.
3521 (mips_set_architecture): New fn.
3522 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3523 is an alias for -march=mipsN. Don't change the ABI based on other
3524 flags. Infer the register size from the ABI as well as the
3525 architecture. Complain about more conflicting arguments.
3526 Unify logic with GCC.
3527 (s_mipsset): Don't change the ABI.
3528 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3529 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3530 "mipsN"-type entries. Remove entries that vary only in the
3531 manufacturer's prefix, or that have "000" replaced by "k".
3532 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3533 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3534 (mips_parse_cpu): New fn.
3535 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3536 (mips_cpu_info_from_isa): Minor formatting tweak.
3538 2002-07-24 Nick Clifton <nickc@redhat.com>
3540 * po/sv.po: Updated Swedish translation.
3541 * po/es.po: Updated Spanish translation.
3543 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3545 * Makefile.am: Run "make dep-am".
3546 * Makefile.in: Regenerate.
3547 * doc/Makefile.in: Regenerate.
3548 * config.in: Regenerate.
3549 * po/POTFILES.in: Regenerate.
3551 2002-07-23 Nick Clifton <nickc@redhat.com>
3553 * po/fr.po: Updated French translation.
3555 2002-07-23 Nick Clifton <nickc@redhat.com>
3557 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3560 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3562 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3563 instead of S_IS_EXTERN.
3564 (md_estimate_size_before_relax): Likewise.
3565 (mips_fix_adjustable): Likewise.
3567 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3569 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3571 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3572 Nick Clifton <nickc@redhat.com>
3574 * cond.c (s_ifdef): Treat a referenced but not yet defined
3575 symbol as if it were undefined, in exactly the same way as
3578 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3579 consider referenced bug not yet defined symbols to be
3582 2002-07-18 Denis Chertykov <denisc@overta.ru>
3583 Frank Ch. Eigler <fche@redhat.com>
3584 Alan Lehotsky <alehotsky@cygnus.com>
3585 John Healy <jhealy@redhat.com>
3586 Jeff Johnston <jjohnstn@redhat.com>
3588 * configure.in: Add ip2k configuraton.
3589 * configure: Regenerate.
3590 * Makefile.am: Add ip2k configuraton.
3591 * Makefile.in: Regenerate.
3592 * configure: Regenerate.
3593 * Makefile.in: Regenerate.
3594 * config/tc-ip2k.c: New file.
3595 * config/tc-ip2k.h: New files.
3596 * NEWS: Mention new support.
3597 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3598 * doc/Makefile.in: Regenerate.
3599 * doc/all.texi: Set IP2K
3600 * doc/as.texinfo: Add IP2K description.
3601 * doc/c-ip2k.texi: New file.
3603 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3605 * NEWS: Reformat to match style of other NEWS files.
3607 2002-07-17 Jan Hubicka <jh@suse.cz>
3609 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3611 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3613 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3615 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3617 * NEWS: Add 'Changes in 2.13'.
3619 2002-07-15 Matt Fredette <fredette@netbsd.org>
3621 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3623 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3625 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3626 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3629 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3631 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3632 (ppc_frob_file_before_adjust): New function.
3633 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3634 (ppc_elf_frob_symbol): Don't declare.
3635 (tc_frob_file_before_adjust): Define.
3636 (ppc_frob_file_before_adjust): Declare.
3638 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3639 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3642 (ppc_xcoff64): Rename to ppc_obj64.
3643 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3644 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3645 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3647 (ppc_target_format): Use ppc_obj64 to select format.
3648 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3649 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3650 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3651 (tc_frob_symbol): Likewise.
3652 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3653 BFD_DEFAULT_TARGET_SIZE.
3655 (ppc_is_toc_sym): Likewise.
3656 (md_apply_fix3): Likewise.
3657 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3658 BFD_DEFAULT_TARGET_SIZE.
3659 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3660 (tc_frob_symbol): Likewise.
3662 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3664 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3665 (mips_ip): Likewise.
3667 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3669 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3670 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3671 (md_apply_fix3): Formatting. Remove redundant test.
3672 (tc_gen_reloc): Remove redundant code.
3673 (tc_i386_force_relocation): Delete. Movy body of function to..
3674 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3676 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3678 * configure.in: Add hppa-*-openbsd* target, change
3679 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3681 * configure: Regenerate.
3683 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3685 * config/tc-mips.c (macro): Shift the 32-bit address range
3686 accessible with a lone "lui" down by 32768.
3688 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3690 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3691 instead of "dadd" in address calculations.
3694 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3696 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3698 (md_assemble): Instead, zap the suffix here.
3700 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3702 * NEWS: Remove next release number until the release is actually
3705 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3707 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3709 * Makefile.in: Regenerate.
3711 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3713 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3714 to symbols in merge sections, even non pc-relative ones.
3716 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3718 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3720 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3722 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3723 .softregs and .eeprom.
3725 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3727 * NEWS: Note the next release is 2.13.
3729 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3731 * po/tr.po: New translation imported.
3733 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3735 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3736 (ecoff_directive_def): Likewise.
3737 (ecoff_directive_tag): Likewise.
3738 * listing.c (file_info): Likewise.
3739 * hash.c (what): Likewise.
3741 2002-06-25 H.J. Lu <hjl@gnu.org>
3743 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3744 * Makefile.in: Regenerated.
3746 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3748 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3749 (assemble_ppi): Generate warning if the same register is used
3750 twice as destination in the same padd / pmuls instruction.
3752 2002-06-18 Dave Brolley <brolley@redhat.com>
3754 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3755 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3756 * configure.in: Support frv-*-*.
3757 * Makefile.am (CPU_TYPES): Add frv.
3758 (TARGET_CPU_CFILES): Add tc-frv.c.
3759 (TARGET_CPU_HFILES): Add tc-frv.h.
3760 (DEPTC_frv_coff): New variable.
3761 (DEPTC_frv_elf): New variable.
3762 (DEPOBJ_frv_coff): New variable.
3763 (DEPOBJ_frv_elf): New variable.
3764 (DEP_frv_coff): New variable.
3765 (DEP_frv_elf): New variable.
3766 * tc-frv.c: New file.
3767 * tc-frv.h: New file.
3769 2002-06-17 Catherine Moore <clm@redhat.com>
3771 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3773 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3775 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3777 2002-06-17 Tom Rix <trix@redhat.com>
3779 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3781 2002-06-14 H.J. Lu <hjl@gnu.org>
3782 Daniel Jacobowitz <drow@mvista.com>
3784 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3785 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3786 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3787 and new_logical_line for the first .file directive.
3788 * read.c (s_app_file_string): New function.
3789 (s_app_file): Call it.
3790 * read.h (s_app_file_string): Add declaration.
3792 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3794 * configure.in: Remove MIPS_STABS_ELF.
3795 * configure: Regenerated.
3796 * config.in: Regenerated.
3797 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3799 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3801 (pdr_seg): Declare unconditionally.
3802 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3803 (s_mips_end): Likewise. Generate stabs function markers.
3804 (s_mips_ent): Generate stabs function markers.
3805 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3807 (s_mips_mask): Likewise.
3808 (mips_flag_mdebug): New.
3809 (md_longopts): Add "mdebug" and "no-mdebug".
3810 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3811 (mips_after_parse_args): Set mips_flag_mdebug.
3812 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3814 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3816 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3817 value twice for RELA relocations.
3819 2002-06-12 Ben Elliston <bje@redhat.com>
3821 * symbols.c (resolve_symbol_value): Initialise final_val.
3823 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3825 2002-06-11 Tom Rix <trix@redhat.com>
3827 * config/tc-ppc.c (ppc_subseg_align): Delete.
3828 (ppc_change_csect): Default csect align is 2.
3829 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3831 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3833 * config/tc-avr.c (mcu_types): Update.
3835 2002-06-08 Matt Thomas <matt@3am-software.com>
3837 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3838 (vax-*-netbsd*): New targets.
3839 * configure: Regenerate.
3840 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3841 * config/tc-vax.c: Add support for ELF and PIC.
3842 (flag_want_pic): New flag.
3843 (float_cons): Fix prototype.
3844 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3845 (md_assemble): Introduce a new is_absolute local, and use it
3846 rather than repeating the test. Make fatal errors actually
3847 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3848 Add support for ELF. Add support for PIC.
3849 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3850 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3852 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3853 optional for a.out, and not allowed for VMS. Adjust all callers.
3854 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3855 (md_create_long_jump): Likewise.
3856 (md_undefined_symbol): Likewise.
3857 (md_section_align): Likewise.
3858 (md_shortopts): Allow -k and -K for ELF.
3859 (md_parse_option): Set flag_want_pic if -k or -K.
3860 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3861 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3862 * config/tc-vax.h (tc_headers_hook): Remove.
3863 (TARGET_FORMAT): Set according to object format and target
3865 (BFD_ARCH, TARGET_ARCH): Define.
3866 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3867 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3868 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3869 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3871 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3873 * Makefile.am: Run "make dep-am".
3874 * Makefile.in: Regenerate.
3876 * as.c: Replace CONST with const.
3877 * write.c: Likewise.
3878 * config/obj-coff.c: Likewise.
3879 * config/tc-a29k.c: Likewise.
3880 * config/tc-arm.c: Likewise.
3881 * config/tc-dlx.c: Likewise.
3882 * config/tc-h8300.c: Likewise.
3883 * config/tc-h8500.c: Likewise.
3884 * config/tc-i370.c: Likewise.
3885 * config/tc-i860.c: Likewise.
3886 * config/tc-i960.c: Likewise.
3887 * config/tc-m68hc11.c: Likewise.
3888 * config/tc-m68k.c: Likewise.
3889 * config/tc-m88k.c: Likewise.
3890 * config/tc-mcore.c: Likewise.
3891 * config/tc-mips.c: Likewise.
3892 * config/tc-ns32k.c: Likewise.
3893 * config/tc-pdp11.c: Likewise.
3894 * config/tc-pj.c: Likewise.
3895 * config/tc-s390.c: Likewise.
3896 * config/tc-sh.c: Likewise.
3897 * config/tc-sparc.c: Likewise.
3898 * config/tc-tahoe.c: Likewise.
3899 * config/tc-tic80.c: Likewise.
3900 * config/tc-v850.c: Likewise.
3901 * config/tc-vax.c: Likewise.
3902 * config/tc-w65.c: Likewise.
3903 * config/tc-z8k.c: Likewise.
3905 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3907 Based on patch from Matt Green:
3908 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3909 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3910 (s_mips_loc): New function.
3911 (mips_nonecoff_pseudo_table): Call them.
3912 (append_insn): Call dwarf2_emit_insn.
3914 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3916 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3918 (file_ase_mips16): New veriable.
3919 (mips_eabi64): Remove.
3920 (CPU_HAS_MIPS16): New define.
3921 (CPU_HAS_MDMX): Fix data type.
3922 (md_begin): Code cleanup. Use file_ase_mips16.
3923 (mips_elf_final_processing): Handle mips16 header flag.
3924 Handle EABI flag without intermediate variable.
3926 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3928 * doc/as.texinfo: Update MIPS documentation.
3930 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3932 * config/tc-mips.c: Add define for $zero register.
3933 (md_begin): Add $zero as alias name for $0.
3934 (insn_uses_reg): Use ZERO define.
3935 (mips_ip): Add $zero as alias name for $0.
3936 (mips16_ip): Likewise.
3937 (s_cplocal): Demand empty rest of input line.
3938 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3939 names. Use ZERO define. Fix input_line_pointer progress.
3941 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3943 * symbols.c: Replace CONST by const throughout.
3944 (symbol_find_exact): Split out from..
3945 (symbol_find_base): ..here.
3946 * symbols.h: Replace CONST by const throughout.
3947 (symbol_find_exact): Declare.
3948 * config/obj-elf.c: #include "struc-symbol.h".
3949 (elf_frob_file): If group name matches an exported symbol, use that
3950 symbol for the signature and ".group" as the section name.
3952 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3954 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3957 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3959 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3960 and mips_opts.ase_mdmx if they are uninitialized.
3962 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3964 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3965 (hppa_force_relocation): Check if a stub just before the start symbol
3966 of the last call_info is reachable before forcing relocation. Fix
3969 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3971 * config/tc-mips.c (mips_after_parse_args): New function.
3972 (md_begin): Move processing of defaults to mips_after_parse_args.
3973 config/tc-mips.h (md_after_parse_args): Define.
3975 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3977 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3978 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3979 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3980 * configure: Regenerate.
3981 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3984 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3986 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3988 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3990 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3991 linkonce flag. Print all warnings.
3992 (obj_elf_section): Parse ",comdat" for groups.
3993 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3994 consistency of comdat flag.
3996 2002-06-02 Richard Henderson <rth@redhat.com>
3998 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3999 with LITERALs without sequence numbers.
4001 2002-06-01 Richard Henderson <rth@redhat.com>
4003 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
4004 Rename them LITUSE_ALPHA_*.
4006 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
4008 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
4009 accept parentheses enclosed register lists.
4011 2002-05-31 Alan Modra <amodra@bigpond.net.au>
4013 * Makefile.am: Run "make dep-am".
4014 * Makefile.in: Regenerate.
4015 * po/POTFILES.in: Regenerate.
4017 2002-05-31 Graeme Peterson <gp@qnx.com>
4019 * configure.in: Add i386-*-nto-qnx*.
4020 * configure: Regenerate.
4022 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4024 * config/tc-mips.c (mips_ip): Use unsigned long values for
4027 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4029 * config/tc-mips.c (s_cpsetup): Fix initialization of
4030 mips_cpreturn_register and mips_cpreturn_offset.
4032 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4034 * config/tc-mips.c (s_cpsetup): Fix comment.
4036 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4038 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
4039 (mips_ip): Likewise.
4040 (mips16_ip): Likewise.
4041 (tc_get_register): Likewise.
4043 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
4044 Ed Satterthwaite <ehs@broadcom.com>
4046 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
4047 (mips_opts): Initialize "ase_mdmx" member.
4048 (file_ase_mdmx): New variable.
4049 (CPU_HAS_MDMX): New macro.
4050 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
4051 based on command line options and configuration defaults.
4052 (macro_build): Note in comment that use of MDMX in macros is
4053 not currently allowed.
4054 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
4055 "Z" MDMX operand types.
4056 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
4057 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
4059 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
4060 Add support for "-mdmx" and "-no-mdmx" options.
4061 (OPTION_ELF_BASE): Move to accomodate new options.
4062 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
4063 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4064 file_ase_mdmx was set.
4065 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4066 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4069 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4071 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4072 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4073 command line switch conforming to gcc conventions.
4074 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4076 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4078 * config/tc-mips.c (macro_build_jalr): New Function.
4079 (md_begin): NewABI uses big GOTs.
4080 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4081 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4082 (load_address): Add some NewABI PIC support.
4084 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4085 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4087 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4089 * config/tc-mips.c (load_address): Use mips_gp_register instead
4090 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4092 (macro): Use mips_gp_register instead of hardcoded value.
4094 2002-05-30 Richard Henderson <rth@redhat.com>
4096 * expr.h (operatorT): Add O_md17..O_md32.
4097 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4098 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4099 O_tprelhi, O_tprello, O_tprel): New.
4100 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4101 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4102 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4103 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4104 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4105 (md_apply_fix3): Handle TLS relocations.
4106 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4107 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4108 associated TLS reloc. Check lituse_tls relocs match up.
4109 (emit_insn): Handle TLS relocations.
4112 * doc/c-alpha.texi: Add docs for tls relocations.
4114 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4116 * config/tc-mips.c (mips_gprel_offset): New variable.
4117 (s_gpvalue): Use it.
4119 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4121 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4122 write-write conflicts.
4123 (md_assemble): Reformat introductory comment.
4124 (parallel_ok): Prevent packing only if the first
4125 instruction cannot be packed.
4127 2002-05-30 Jason Eckhardt <jle@redhat.com>
4128 Tom Rix <trix@redhat.com>
4130 * config/tc-d10v.c (build_insn): Check for immediates.
4132 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4134 * config/tc-mips.c: Replace GP in comments by $gp.
4135 (mips_big_got): Initialize.
4136 (mips_trap): Initialize.
4137 (load_address): Use mips_gp_register instead of hardcoded value.
4138 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4139 (macro): Use mips_gp_register instead of hardcoded value.
4140 (macro2): Change load_address calls.
4141 (md_pcrel_from): Comment formatting.
4142 (s_cpload): Use mips_gp_register instead of hardcoded value.
4143 (s_cprestore): Likewise. Comment formatting.
4144 (s_gpword): Fix data type.
4145 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4146 (nopic_need_relax): Replace GP in comments by $gp.
4147 (mips_elf_final_processing): Better comment.
4149 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4151 * configure.in: Add DLX configuraton
4152 * Makefile.am: Add DLX configuraton
4153 * configure: Regenerate.
4154 * Makefile.in: Regenerate.
4155 * config/tc-dlx.c: New file.
4156 * config/tc-dlx.h: New files.
4157 * NEWS: Mention new support.
4159 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4161 * config/obj-coff.c (write_object_file): Add missing semicolon.
4163 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4165 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4166 by the define. Remove superfluous check of mips_opts.mips16.
4167 (append_insn): Likewise. Canonicalize variable increments.
4168 (macro_build): Canonicalize variable increments.
4169 (macro_build_lui): Likewise.
4170 (load_register): Likewise.
4171 (load_address): Move pointer initialization.
4172 (macro): Move pointer to a more local scope. Canonicalize variable
4173 increments. Better comments. Replace magic constant for RA by the
4175 (macro2): Replace magic constant for RA by the define. Canonicalize
4176 variable increments.
4177 (mips_ip): Canonicalize variable increments.
4178 (mips16_ip): Replace magic constant for RA by the define.
4179 (my_getSmallParser): Canonicalize variable increments/decrements.
4180 (my_getPercentOp): Likewise.
4181 (my_getSmallExpression): Likewise.
4182 (s_align): Likewise.
4183 (s_mipsset): Likewise.
4184 (s_cpsetup): Likewise.
4185 (s_insn): Remove superfluous check of mips_opts.mips16.
4186 (s_mips_stab): Likewise.
4187 (mips_handle_align): Canonicalize variable increments.
4188 (s_mips_ent): Likewise.
4189 (s_mips_end): Add comment.
4191 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4193 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4194 * configure: Regenerate.
4196 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4198 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4199 * Makefile.in: Regenerate.
4200 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4201 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4202 * configure: Regenerate.
4203 * as.h: Use #include "" instead of <> for local header files.
4204 * flonum-konst.c: Likewise.
4205 * flonum-mult.c: Likewise.
4207 * listing.c: Likewise.
4208 * config/tc-ia64.h: Likewise.
4209 * config/tc-v850.h: Likewise.
4211 2002-05-24 TAMURA Kent <kent@netbsd.org>
4213 * configure.in: Add a target for i386-netbsdpe.
4214 * configure: Regenerate.
4216 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4218 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4219 (obj_elf_common): Call elf_common.
4220 (obj_elf_tls_common): New function.
4221 (elf_pseudo_tab): Support .tls_common.
4222 (special_sections): Add .tdata and .tbss.
4223 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4225 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4226 (obj_elf_parse_section_letters): Include T in error message.
4227 * config/tc-ppc.c (ppc_section_letter): Likewise.
4228 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4229 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4231 * config/tc-sparc.c (md_apply_fix3): Likewise.
4232 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4233 Define them if not BFD_ASSEMBLER.
4234 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4236 (md_apply_fix3): Add TLS relocs.
4237 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4238 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4239 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4240 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4241 (ia64_elf_section_letter): Include T in error message.
4242 (md_begin): Support TLS operators.
4243 (md_operand): Likewise.
4244 (ia64_gen_real_reloc_type): Support TLS relocs.
4245 * write.c (adjust_reloc_syms): Don't change symbols in
4246 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4248 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4250 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4251 round the relocation up rather than down.
4253 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4255 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4257 * doc/as.texinfo: Document that the COFF version of .section
4258 ignores the 'a' flag.
4260 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4262 * config/tc-alpha.c (assemble_tokens): Protect use of
4263 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4265 * write.c (size_seg): Check adjustment to last frag.
4266 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4268 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4269 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4270 (write_object_file): Invoke md_do_align if available, and use
4271 frag_align_code on text sections.
4272 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4273 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4274 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4275 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4276 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4279 2002-05-22 H.J. Lu <hjl@gnu.org>
4281 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4284 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4286 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4289 2002-05-22 H.J. Lu <hjl@gnu.org>
4291 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4292 for one .loc for compiler.
4294 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4296 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4299 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4301 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4302 Optimize the rotate by zero case.
4304 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4306 * configure.in: Remove accidental enabling of bfd_gas=yes for
4308 * configure: Regenerate.
4310 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4312 * app.c: Fix formatting.
4314 * ehopt.c: Likewise.
4316 * input-file.c: Likewise.
4317 * listing.c: Likewise.
4318 * macro.h: Likewise.
4319 * stabs.c: Likewise.
4320 * symbols.c: Likewise.
4322 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4324 * config/obj-generic.c: Delete file.
4325 * config/obj-generic.h: Likewise.
4327 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4329 * config/tc-avr.c (mcu_types): Update for new devices.
4331 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4333 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4335 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4337 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4338 worked sometimes by accident. Fix copy&paste comment.
4340 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4342 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4343 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4344 (mips_elf_final_processing): Let n32 use .reginfo.
4346 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4348 * config/tc-mips.c (append_insn): Fix too small range of variable.
4350 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4352 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4353 listing_prev_line().
4355 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4357 * config/tc-arm.c (md_assemble): Remove redundant call to
4360 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4363 * stabs.c (s_stab_generic): Fix grammatical error in warning
4366 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4368 * write.c (subsegs_finish): Don't specially align last subseg.
4370 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4372 * stabs.c (s_stab_generic): Warn about a description field that is
4375 * config/obj-coff.c: Fix compile time warnings when compiling
4376 without BFD_ASSEMBLER defined.
4379 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4381 (md_pcrel_from_section): Use md_pcrel_from().
4383 2002-05-11 Bruno Haible <bruno@clisp.org>
4385 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4386 by dwarf2_directive_loc, instead of calling dwarf2_where.
4388 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4390 * config/obj-coff.h: Fix formatting.
4391 * config/tc-mcore.c: Likewise.
4392 * config/tc-mn10300.c: Likewise.
4393 * config/tc-openrisc.c: Likewise.
4394 * config/tc-or32.c: Likewise.
4395 * config/tc-pdp11.c: Likewise.
4396 * config/tc-ppc.c: Likewise.
4397 * config/tc-ppc.h: Likewise.
4398 * config/tc-sh64.c: Likewise.
4399 * config/tc-sh.c: Likewise.
4400 * config/tc-tic54x.c: Likewise.
4401 * config/tc-xstormy16.c: Likewise.
4402 * config/tc-xstormy16.h: Likewise.
4404 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4406 * config/obj-coff.c: Fix formatting.
4407 * config/obj-elf.c: Likewise.
4408 * config/tc-alpha.c: Likewise.
4409 * config/tc-arm.c: Likewise.
4410 * config/tc-d10v.c: Likewise.
4411 * config/tc-d30v.c: Likewise.
4412 * config/tc-h8300.c: Likewise.
4413 * config/tc-hppa.c: Likewise.
4415 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4417 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4418 reloc when no_cond_jump_promotion.
4420 2002-05-08 Jim Wilson <wilson@redhat.com>
4422 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4423 current variable part of frag.
4425 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4427 * config/tc-mmix.c: Fix formatting.
4428 * config/tc-mmix.h: Likewise.
4430 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4432 * configure: Regenerate.
4434 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4436 * config/tc-m68k.c: Fix formatting.
4438 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4440 * Makefile.am: Honour DESTDIR.
4441 * Makefile.in: Regenerate.
4443 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4445 * config/tc-ia64.c: Fix formatting.
4446 * config/tc-ia64.h: Likewise.
4448 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4450 * config/tc-mips.c: Fix formatting.
4451 * config/tc-s390.c: Likewise.
4452 * config/tc-s390.h: Likewise.
4454 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4456 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4457 information for instructions.
4459 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4461 * as.h: Fix formatting.
4464 * dwarf2dbg.c: Likewise.
4465 * frags.h: Likewise.
4467 * macro.c: Likewise.
4469 * stabs.c: Likewise.
4470 * symbols.c: Likewise.
4472 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4474 * app.c (mri_pseudo): Only declare for TC_M68K.
4476 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4477 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4478 BFD_RELOC_16_BASEREL.
4479 (md_assemble): Likewise.
4480 (md_apply_fix3): Likewise.
4482 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4484 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4485 zero into an add of zero - it is not the same.
4487 2002-05-01 Arati Dikey <aratid@kpit.com>
4489 * tc-sh.c (get_specific): Generate warning if the same
4490 destination register is used in parallel instructions.
4492 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4494 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4496 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4498 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4499 backwards to prevent cascading errors.
4501 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4503 * configure.in: Add support for powerpc-*-windiss.
4504 * configure: Regenerated.
4506 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4508 * config/tc-s390.c (md_parse_option): Formatting.
4510 * config/tc-i386.c: Formatting fixes, add missing space in error
4513 2002-04-24 Christian Groessler <chris@groessler.org>
4515 * config/tc-z8k.c (build_bytes): Add support for new cases:
4516 CLASS_IGNORE and ARG_NIM4.
4517 (md_assemble): Prevent destruction of input_line_pointer if
4518 get_operands returns failure.
4520 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4522 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4523 instructions to be generated by macros.
4525 2002-04-24 Andreas Schwab <schwab@suse.de>
4527 * config/tc-i386.c (output_jump, output_disp)
4528 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4530 (md_apply_fix3): Remember addend value for rela relocations.
4531 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4533 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4535 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4536 from previous change.
4538 2002-04-22 Eric Christopher <echristo@redhat.com>
4540 * config/tc-mips.c (macro_build): Add warning if macro instructions
4541 are expanded into a branch delay slot.
4543 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4545 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4546 numbers, gdb relies on them to detect the start of the prologue.
4548 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4550 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4551 symbols in merge sections.
4553 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4555 * as.c (main): Don't reference _bfd_chunksize.
4557 2002-04-15 Tom Rix <trix@redhat.com>
4559 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4560 symbols in merge sections.
4562 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4564 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4565 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4566 argument for the precision.
4567 (gen_to_words): Update accordingly.
4569 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4571 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4572 BFD_VERSION_STRING unavailable.
4573 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4575 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4577 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4578 symbol_used_in_reloc_p is true.
4580 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4583 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4585 * dep-in.sed: Cope with absolute paths.
4586 * Makefile.am (dep.sed): Subst TOPDIR.
4588 * Makefile.in: Regenerate.
4590 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4592 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4593 (mips_ip): Remove unused variable.
4594 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4595 unsigned char with bfd_byte.
4596 (s_file): Remove unused variable.
4597 (s_mips_ent): Likewise.
4599 2002-04-03 Tom Rix <trix@redhat.com>
4601 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4603 (find_opcode): Fix warning in as_warn.
4604 * config/tc-d10v.h: Update Copyright.
4606 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4607 Tom Rix <trix@redhat.com>
4609 From Jeff Knaggs <jknaggs@redhat.com>
4610 * config/tc-d10v.c (check_resource_conflict): New function to
4611 check for resource conflicts.
4613 From Jason Eckhardt <jle@redhat.com>
4614 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4616 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4617 reserved control registers is used.
4618 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4621 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4622 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4623 instruction cannot be packed.
4625 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4626 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4627 write-write conflicts.
4628 (md_assemble): Reformat introductory comment.
4629 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4632 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4634 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4635 O_logical_not>): Derive final_seg from add_symbol.
4636 <O_multiply..O_logical_or>: More final_seg twiddles.
4638 2002-04-01 Jessica Han <jessica@cup.hp.com>
4640 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4643 2002-03-27 Andreas Schwab <schwab@suse.de>
4645 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4646 field for pc-relative fixups.
4647 (output_disp): Likewise.
4648 (md_estimate_size_before_relax): Likewise.
4649 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4650 pc-relative fixups in 64bit mode.
4652 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4654 * config/te-aix5.h: Typo fix.
4656 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4658 * Makefile.am: Run "make dep-am".
4659 * Makefile.in: Regenerate.
4660 * doc/Makefile.in: Regenerate.
4662 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4664 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4665 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4667 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4669 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4670 the EXTENDED bit here; report the estimate according to the
4673 2002-03-18 Tom Rix <trix@redhat.com>
4675 * configure.in: Add AIX 5 support.
4676 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4677 * config/te-aix5.h: New file. AIX 5 support.
4678 * configure: Regenerate.
4680 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4682 * po/fr.po: Updated version.
4684 2002-03-16 Andreas Jaeger <aj@suse.de>
4686 * doc/c-mips.texi (Machine Dependencies): Add new node.
4688 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4690 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4691 (mips_opts): Initialize "ase_mips3d" member.
4692 (file_ase_mips3d): New variable.
4693 (CPU_HAS_MIPS3D): New macro.
4694 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4695 based on command line options and configuration defaults.
4696 (macro_build, mips_ip): Accept MIPS-3D instructions if
4697 mips_opts.ase_mips3d is set.
4698 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4699 Add support for "-mips3d" and "-no-mips3d" options.
4700 (OPTION_ELF_BASE): Move to accomodate new options.
4701 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4702 (mips_elf_final_processing): Add a comment indicating that a
4703 MIPS-3D ASE ELF header flag should be set, when one exists.
4704 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4705 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4706 nomips3d" directives.
4708 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4710 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4711 a weak symbol in same section to be within reach.
4713 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4715 * po/fr.po: Updated version.
4717 2002-03-12 Andreas Schwab <schwab@suse.de>
4719 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4720 body record so that an error is given for misplaced .save
4723 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4725 * config/tc-i386.h (REX_OPCODE): Define.
4726 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4727 (rex_byte): typedef to int.
4728 * config/tc-i386.c: Group prototypes and vars together.
4729 Formatting fixes. Remove occurrences of "register" keyword.
4732 (mode_from_disp_size): Add INLINE keyword to prototype.
4733 (fits_in_signed_byte): Likewise.
4734 (fits_in_unsigned_byte): Likewise.
4735 (fits_in_unsigned_word): Likewise.
4736 (fits_in_signed_word): Likewise.
4737 (fits_in_unsigned_long): Likewise.
4738 (fits_in_signed_long): Likewise.
4739 (type_names): Constify.
4740 (intel_float_operand): Constify param.
4741 (add_prefix): Use REX_OPCODE.
4742 (md_assemble): Likewise. Modify for changed rex_byte.
4743 (parse_insn): Split out of md_assemble.
4744 (parse_operands): Likewise.
4745 (swap_operands): Likewise.
4746 (optimize_imm): Likewise.
4747 (optimize_disp): Likewise.
4748 (match_template): Likewise.
4749 (check_string): Likewise.
4750 (process_suffix): Likewise.
4751 (check_byte_reg): Likewise.
4752 (check_long_reg): Likewise.
4753 (check_qword_reg): Likewise.
4754 (check_word_reg): Likewise.
4755 (finalize_imm): Likewise.
4756 (process_operands): Likewise.
4757 (build_modrm_byte): Likewise.
4758 (output_insn): Likewise.
4759 (output_branch): Likewise.
4760 (output_jump): Likewise.
4761 (output_interseg_jump): Likewise.
4762 (output_disp): Likewise.
4763 (output_imm): Likewise.
4765 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4767 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4769 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4771 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4772 relocs except when BFD64.
4774 * write.c (number_to_chars_bigendian): Don't abort when N is
4775 larger than sizeof (VAL).
4776 (number_to_chars_littleendian): Likewise.
4778 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4780 * config/tc-hppa.c (md_apply_fix3): Add cast.
4781 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4784 2002-03-05 Paul Koning <pkoning@equallogic.com>
4786 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4787 (parse_ac5): New function for parsing float regs in float operand.
4788 (parse_expression): Remove attempt to make literals be octal.
4789 (parse_op_no_deferred): Support float literals.
4790 (parse_op): Reject attempts to refer to float regs.
4791 (parse_fop): New function, like parse_op but for float operand.
4792 (md_assemble): Add cases to parse float operands. Also fix
4793 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4795 2002-03-04 H.J. Lu <hjl@gnu.org>
4797 * config/obj-elf.c (special_section): Add .init_array,
4798 .fini_array and .preinit_array.
4800 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4801 .init_array and .fini_array.
4803 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4805 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4807 (obj_frob_symbol): Copy visibility.
4809 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4811 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4813 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4815 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4817 * po/es.po: Updated.
4819 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4821 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4822 only, undo the changes made on 2001-06-08, with the
4823 effect being that common or extern symbols are
4824 adjusted for embedded-PIC, but weak symbols are not.
4825 (md_estimate_size_before_relax: Likewise, with the effect
4826 that extern symbols are treated the same as weak symbols
4827 only if not embedded-PIC.
4828 (mips_fix_adjustable) Likewise, with the effect that
4829 weak or extern symbols are not adjusted for embedded-PIC.
4830 (md_apply_fix3): Tweak so that the case where value is zero
4831 is handled more correctly for embedded-PIC code.
4833 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4835 * doc/as.texinfo (Overview): Add missing @ifset IA64
4837 * configure.in (LINGUAS): Add es.po.
4838 * configure: Regenerate.
4839 * po/es.po: New file.
4841 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4843 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4844 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4845 and NO_PIC cases. Code cleanup.
4846 (macro2): Fix handling of 64bit register loads.
4848 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4850 * doc/as.texinfo: Add entry for IA64.
4851 * doc/c-ia64.texi: New file.
4853 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4855 * config/tc-hppa.c: Update copyright date.
4857 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4858 Remove references to chip manufacturers.
4859 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4861 (md_show_usage): Remove references to chip manufacturers. Mention
4863 (md_begin): Test power4 opcode flag bits.
4865 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4867 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4868 count exceeds prologue count.
4869 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4870 (unwind.label_prologue_count): New member.
4872 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4874 (get_saved_prologue_count): New function.
4875 (save_prologue_count): New function.
4876 (free_saved_prologue_count): New function.
4877 (dot_label_state): Record state label by calling save_prologue_count().
4878 (dot_copy_state): Restore prologue count by calling
4879 get_saved_prologue_count().
4880 (generate_unwind_image): Free up list of saved prologue
4881 counts by calling free_saved_prologue_counts().
4883 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4885 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4886 function declarations.
4888 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4890 * NEWS: Note that GASP is now deprecated.
4891 * Makefile.am: Do not build gasp-new by default.
4892 * Makefile.in: Regenerate.
4893 * doc/Makefile.am: Do not install gasp.info.
4894 * doc/Makefile.in: Regenerate.
4895 * gas/gasp.texi: Note that gasp is now deprecated.
4897 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4899 * NEWS: Mark 2.12 branch.
4901 2002-02-19 Tom Tromey <tromey@redhat.com>
4903 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4905 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4907 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4910 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4912 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4913 Make bit size independent of architecture switch.
4914 (md_begin): Add warning for -m64 with -Aesa.
4915 (s390_md_end): Use renamed architecture defines.
4917 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4919 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4921 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4923 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4926 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4928 * config/tc-mips.c (md_estimate_size_before_relax): Really
4929 make sure we treat weak like extern only for ELF. (Fixes
4930 patch from 2001-07-25.)
4932 2002-02-15 Ben Elliston <bje@redhat.com>
4934 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4937 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4939 * NEWS: Mention support for MMIX.
4941 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4943 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4944 a sequence of indpendent 'if' statements for easier debugging
4945 and future modification.
4947 2002-02-13 Matt Fredette <fredette@netbsd.org>
4949 * config/tc-m68k.c (md_show_usage): No longer display a
4950 hard-coded "68020" for the default CPU, instead display the
4951 canonical name of the true, configured default CPU.
4952 (m68k_elf_final_processing): Mark objects for sub-68020
4953 CPUs with the new EF_M68000 flag.
4955 2002-02-13 Andreas Schwab <schwab@suse.de>
4957 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4958 pc-relative relocations to merge sections in 64-bit mode.
4960 2002-02-13 Ben Elliston <bje@redhat.com>
4962 * NEWS: Document floating point number handling in gasp.
4963 * gasp.c: Include <assert.h> and "xregex.h".
4964 (is_flonum): New function.
4965 (chew_flownum): Likewise.
4966 (change_base): Consume flonums from the input, where possible.
4967 * doc/gasp.texi (Constants): Document floating point numbers.
4969 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4971 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4972 that implicitly use LR and RR selectors.
4974 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4976 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4977 and `epsw' as available on AM33 and above only.
4978 (other_register_name): Add logic to handle machine type encoded in
4981 2002-02-11 Tom Rix <trix@redhat.com>
4983 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4986 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4988 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4991 2002-02-11 Jan Hubicka <jh@suse.cz>
4993 * i386.c (md_assemble): Support 32bit address prefix.
4994 (i386_displacement): Likewise.
4995 (i386_index_check): Accept 32bit addressing in 64bit mode.
4997 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4999 * config/tc-sh.c (dot): Removed unused function.
5001 2002-02-11 Alan Modra <amodra@bigpond.net.au>
5003 * Makefile.am: "make dep-am".
5004 * Makefile.in: Regenerate.
5005 * aclocal.m4: Regenerate.
5006 * config.in: Regenerate.
5007 * configure: Regenerate.
5008 * doc/Makefile.in: Regenerate.
5010 2002-02-10 Richard Henderson <rth@redhat.com>
5012 * doc/c-alpha.texi: New file.
5013 * doc/Makefile.am (CPU_DOCS): Add it.
5014 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
5016 2002-02-09 Richard Henderson <rth@redhat.com>
5018 * config/tc-alpha.c (O_samegp): New.
5019 (USER_RELOC_P): Include it.
5020 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
5021 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
5022 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5023 (alpha_validate_fix): New.
5024 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
5026 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
5028 * doc/c-cris.texi: New.
5029 * doc/all.texi: @set CRIS.
5030 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
5031 Include c-cris.texi.
5032 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
5033 * doc/Makefile.in: Regenerate.
5035 2002-02-08 Chris Demetriou <cgd@broadcom.com>
5037 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
5038 determine if a number is a sign-extended 32-bit number.
5039 (load_register): Use IS_SEXT_32BIT_NUM.
5040 (macro): Check if load/store macro handling is using a
5041 constant 32-bit address on 64-bit address systems, and if
5042 so optimize the generation of that address.
5044 2002-02-08 Richard Henderson <rth@redhat.com>
5046 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
5047 we've eliminated all foreign relocation types yet.
5048 (alpha_fix_adjustable): Likewise.
5050 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5052 Contribute sh64-elf.
5053 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
5054 Stephen Clarke <Stephen.Clarke@st.com>
5055 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
5056 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
5057 * config/tc-sh.c (md_relax_table): Added default sizes for
5058 non-PC-relative UNDEF_MOVI, and relaxation sequences for
5059 MOVI_16, MOVI_32 and MOVI_48.
5060 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
5061 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
5063 (shmedia_md_estimate_size_before_relax): Remove redundant
5064 blocks. Set fragP->fr_var even if relaxation type unchanged.
5065 Retain UNDEF_MOVI until expression decays to number.
5066 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5067 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5068 relocation types. Take fixP->fx_addnumber into account too.
5069 (shmedia_md_apply_fix): Likewise.
5070 (shmedia_md_convert_frag): Likewise.
5071 (shmedia_build_Mytes): Likewise.
5072 (sh64_consume_datalabel): Complain about nested datalabel.
5073 Support PIC relocs. Call sh_parse_name.
5074 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5075 in tc-sh.h to SHmedia reloc types.
5076 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5077 MOVI_GOTPC): New relaxation constants.
5078 (md_relax_table): Introduce relaxation directives for PIC-related
5080 (sh_PIC_related_p): Handle datalabel.
5081 (sh_check_fixup): Choose SH5 PIC relocations.
5082 (sh_cons_fix_new): Added BDF_RELOC_64.
5083 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5084 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5085 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5086 current ISA is SHmedia, get 7 bytes.
5087 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5088 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5090 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5091 shmedia_apply_fix3 and make void.
5092 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5093 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5095 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5096 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5097 2001-03-14 DJ Delorie <dj@redhat.com>
5098 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5099 * doc/Makefile.in(CPU_DOCS): Ditto.
5100 * doc/c-sh64.texi: New file.
5101 * doc/as.texinfo: Add SH64 support.
5102 2001-03-13 DJ Delorie <dj@redhat.com>
5103 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5104 A_REUSE_PREV so that its purpose is more obvious.
5105 (shmedia_build_Mytes): Ditto.
5106 2001-03-07 DJ Delorie <dj@redhat.com>
5107 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5109 (sh64_vtable_inherit): Ditto.
5110 (strip_datalabels): New, strip "datalabel" from given line.
5111 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5113 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5114 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5116 (shmedia_build_Mytes): ... to here.
5117 2001-03-06 DJ Delorie <dj@redhat.com>
5118 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5120 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5121 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5122 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5123 address by one in call to dwarf2_emit_insn.
5124 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5125 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5126 alignment handling broken by imported changes.
5127 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5128 (sh64_handle_align): Declare.
5129 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5130 (sh64_max_mem_for_rs_align_code): Declare.
5131 (enum sh64_isa_values): Moved here from tc-sh64.c.
5132 (md_do_align): Define.
5133 (sh64_do_align): Declare.
5134 (struct sh64_tc_frag_data): New.
5135 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5137 (TC_FRAG_INIT): Change to set new datatype.
5138 (struct sh64_segment_info_type): Rename member
5139 last_flushed_location to last_contents_mark. All users changed.
5140 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5141 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5142 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5143 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5144 of unsetting seen_insn.
5145 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5146 call sh64_update_contents_mark.
5147 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5148 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5149 enum sh64_isa_values.
5150 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5151 (emitting_crange): Boolean guard moved to file scope from function
5152 scope in sh64_set_contents_type.
5154 (sh64_update_contents_mark): New; most split out from
5155 sh64_flush_pending_output.
5156 (shmedia_md_end): Call sh64_update_contents_mark. Set
5157 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5158 (sh64_do_align): New function.
5159 (sh64_max_mem_for_rs_align_code): New function.
5160 (sh64_handle_align): Rename from shmedia_do_align. Make
5161 non-static. Add head comment. Emit zero bytes for n bytes modulo
5162 four. Change return-type to void.
5163 (shmedia_elf_new_section): Remove.
5164 (shmedia_md_assemble): Call sh64_update_contents_mark.
5165 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5166 new frag. Call sh64_update_contents_mark after making the new
5168 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5169 and sh_flush_pending_output.
5170 (sh64_flag_output): Also call md_flush_pending_output, but add
5171 condition on not emitting_crange.
5172 (sh64_tc_cons_fix_new): Remove.
5173 2001-01-12 Nick Clifton <nickc@redhat.com>
5174 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5175 alignment handling scheme imported from sourceware.
5176 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5177 * config/tc-sh64.h (TARGET_FORMAT): Define.
5178 (sh64_target_format): Prototype.
5179 * config/tc-sh64.c (sh64_target_mach): New function.
5180 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5181 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5182 zero_address_frag instead of copying the frag of the symbol.
5183 (shmedia_frob_file_before_adjust): Ditto.
5184 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5185 to valueT to remove signedness.
5186 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5187 headers to output_bfd. Do not evaluate symbols if final is false;
5189 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5190 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5191 to the current frag, call shmedia_md_convert_frag to emit fixups
5192 and make frag_wane neutralize the frag. Update comments.
5193 * config/tc-sh.c (md_convert_frag): Change caller of
5194 shmedia_md_convert_frag.
5195 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5196 * config/tc-sh64.h: Tweak comments and correct formatting.
5197 * config/tc-sh64.c: Ditto.
5198 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5199 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5200 for the no-relocation case.
5201 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5202 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5204 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5206 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5207 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5209 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5211 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5212 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5213 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5214 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5215 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5216 if reloc is emitted.
5217 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5218 New options plus bugfixes.
5219 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5221 (md_parse_option): Handle new options.
5222 (md_show_usage): Add blurb for new options.
5223 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5224 (sh64_expand, sh64_pt32): New variables.
5225 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5226 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5227 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5228 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5229 <resolved previously-pc-relative relocs>: Handle
5230 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5231 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5232 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5233 points to SHcompact code.
5234 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5235 SH64PCREL16)>: Check that ISA of what operand points at and
5236 PTA/PTB matches, or emit error.
5237 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5238 SHMEDIA_BFD_RELOC_PT.
5239 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5241 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5242 condition for MOVI expansion.
5243 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5244 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5246 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5248 (sh64_target_format): Error-check setting of sh64_pt32 and
5249 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5250 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5251 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5252 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5253 * config/tc-sh64.c: Improve comments.
5254 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5255 not say the linker will check correctness of PTA/PTB expansion.
5256 (shmedia_md_end): Make non-static.
5257 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5259 * config/tc-sh.c (sh_finalize): Remove.
5260 * config/tc-sh.h (md_end): Do not define.
5261 Remove prototype for sh_finalize.
5262 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5263 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5264 sh64_section_data container when storing section type in tdata
5265 field in elf_section_data.
5266 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5268 * Makefile.am: Update dependencies.
5269 * Makefile.in: Regenerate.
5270 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5271 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5272 dwarf2_emit_insn call with test on debug_type.
5273 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5274 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5275 CRT_SH5_ISA32 sticky for 64-bit.
5276 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5277 Generate .crange sections when switching ISA mode or emitting
5278 constants in same section as code.
5279 * config/tc-sh64.c: Reformat structure definitions.
5280 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5282 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5283 to emit a .cranges descriptor when contents type changes. Only
5284 emit error if changing contents type and -no-mix is in effect.
5285 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5286 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5287 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5288 sh64_flush_last_crange over sections.
5289 When checking main symbol of datalabel symbol, check for
5290 STO_SH5_ISA32, not ISA type of section in definition.
5291 (shmedia_frob_file_before_adjust): Check main symbol for
5292 STO_SH5_ISA32; don't check ISA type of section in definition.
5293 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5294 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5295 .cranges entries have been output.
5296 (shmedia_elf_new_section): Just call md_flush_pending_output.
5297 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5298 fix. Do not set tc_segment_info_data.in_code for section. Call
5299 sh64_set_contents_type for SHmedia code.
5300 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5301 false. Call md_flush_pending_output.
5302 (sh64_target_format): Check that -no-mix and
5303 -shcompact-const-crange are used in sane combination with other
5305 (shmedia_md_pcrel_from_section): Check type of fix for how to
5307 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5308 not ISA type of section in definition.
5309 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5310 hold contents-type state.
5311 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5312 (sh64_flush_pending_output): Declare.
5313 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5314 (sh64_tc_cons_fix_new): Declare.
5315 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5316 call sh64_flag_output.
5317 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5318 call sh64_set_contents_type to mark SHcompact code and set
5320 (md_longopts): New options "-no-mix" and
5321 "-shcompact-const-crange".
5322 (md_parse_option): Handle new options.
5323 (md_show_usage): Add blurb for new options.
5324 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5325 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5326 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5327 (sh64_last_insn_frag): New.
5328 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5329 to get frag for insn opcode for generating fixups; do not assume it
5331 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5333 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5335 (TC_FRAG_TYPE): Define as fragS *.
5336 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5337 (sh64_last_insn_frag): Declare.
5338 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5339 not == NULL before dereferencing.
5340 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5341 Get rid of BFD section flag and EF_SH64_ABI64.
5342 * config/tc-sh64.c (shmedia_frob_section_type): Use
5343 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5344 communicate the section as containing SHmedia code. Describe why.
5345 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5346 EF_SH64 regardless of ABI.
5347 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5348 in error message. Handle resolved expressions for
5349 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5350 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5351 (shmedia_check_limits): Handle BFD_RELOC_64.
5352 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5353 a STO_SH5_ISA32 symbol, only the BFD value.
5354 2000-12-11 Ben Elliston <bje@redhat.com>
5355 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5356 dwarf2_generate_asm_lineno.
5357 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5358 Handle PC-relative MOVI expansions with assembler relaxation.
5359 Generate PC-relative relocs from 16-bit PC-relative expressions.
5360 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5361 (shmedia_md_pcrel_from_section): ...here.
5362 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5363 turned completely resolved. Adjust relocation type for 16-bit
5364 immediate operands that has turned PC-relative. Adjust back for
5365 MD_PCREL_FROM_SECTION being applied twice.
5366 (shmedia_md_convert_frag): Always emit reloc for expression with
5367 global or weak symbol. Handle relaxation result for PC-relative
5369 (shmedia_md_estimate_size_before_relax): An expression with a weak
5370 or global symbol can not be relaxed. Break out tests for
5371 relaxable symbol into variable sym_relaxable.
5372 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5373 UNDEF_MOVI)>: Break out any PC-relative expression and change
5375 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5377 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5378 MOVI expansion. If X_op_symbol of the immediate expression is
5379 set, make an expression symbol for the argument to frag_var.
5380 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5382 (END): Adjust for new relaxations.
5383 (md_relax_table): Add entries for new relaxations.
5384 2000-12-07 Ben Elliston <bje@redhat.com>
5385 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5386 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5387 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5388 SHORI operand offsets in PT/PTA/PTB expansions.
5389 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5390 Implement DataLabel semantics.
5391 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5392 shmedia_frob_file_before_adjust.
5393 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5394 (DATALABEL_SUFFIX): Define.
5395 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5396 symbol list to update "datalabel" symbols to their main symbol
5398 (shmedia_frob_file_before_adjust): New.
5399 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5400 undefined and set STT_DATALABEL.
5401 (sh64_frob_label): Initialize TC symbol field.
5402 (sh64_consume_datalabel): Actually implement semantics. New
5403 parameter operandf, call it instead of expression.
5404 (sh64_exclude_symbol): New.
5405 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5406 to sh64_consume_datalabel.
5407 (tc_symbol_new_hook): Define to tc_frob_symbol.
5408 (TC_SYMFIELD_TYPE): Define to symbolS *.
5409 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5410 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5411 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5413 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5414 generating dwarf2 debug information.
5415 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5416 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5417 elf64-sh64 for the 64-bit ABI.
5418 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5420 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5421 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5423 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5424 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5425 (enum sh64_abi_values): New type.
5426 (enum sh64_isa_values): New type.
5427 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5428 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5429 (sh64_abi): Replace shmedia_64.
5430 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5431 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5432 (s_sh64_mode): Check validity for this target.
5433 (sh64_target_format): Initialize defaults for ISA and ABI.
5434 Fallback to old object format if no SH64 ISA or ABI has been
5436 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5437 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5438 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5439 * config/tc-sh64.h: Fix typo in comment.
5440 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5441 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5442 <PT fixups for absolute values>: Size will be longest, not
5444 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5445 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5446 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5447 and l1 to hold lowercase of two first characters. Change all
5448 remaining TO_LOWER to tolower.
5449 * config/tc-sh64.c (TO_LOWER): Delete.
5450 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5451 (md_parse_name): Define.
5452 (sh64_consume_datalabel): Declare.
5453 (DOLLAR_DOT): Define.
5454 * config/tc-sh64.c (shmedia_parse_exp): New.
5455 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5456 (shmedia_parse_reg): Remove const from src
5458 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5459 (shmedia_md_assemble): Ditto for op_end variable.
5460 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5461 Use shmedia_parse_exp, not parse_exp.
5462 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5463 parameter. All callers changed.
5464 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5466 (shmedia_parse_reg): Put first two character in local variables.
5467 Use tolower, not TO_LOWER. If no register is found and argtype
5468 indicates a control register, scan shmedia_creg_table
5470 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5471 * Makefile.am (CPU_TYPES): Add sh64.
5472 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5473 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5474 Regenerate dependencies.
5475 * Makefile.in: Regenerate.
5476 * configure.in: Add support for sh64-*-elf*.
5477 * configure: Regenerate.
5478 * config/tc-sh64.h: New.
5479 * config/tc-sh64.c: New.
5480 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5481 .mode, .isa and .uaquad.
5482 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5483 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5484 [HAVE_SH64] (END): Define as 10.
5485 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5486 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5488 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5489 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5490 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5491 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5493 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5494 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5495 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5496 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5497 SHmedia instructions. Handle state-change after switching to
5499 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5500 (md_parse_option) [HAVE_SH64]: Parse new options.
5501 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5502 (md_convert_frag) [HAVE_SH64] <default>: Call
5503 shmedia_md_convert_frag instead of abort.
5504 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5505 BFD_RELOC_SH_SHMEDIA_CODE.
5506 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5507 SHcompact or SHmedia code.
5508 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5509 shmedia_md_apply_fix instead of abort.
5510 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5511 result from calling shmedia_md_estimate_size_before_relax instead
5513 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5515 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5516 shmedia_init_reloc and do nothing more if it returns non-zero.
5517 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5518 * po/POTFILES.in: Regenerate.
5519 * po/gas.pot: Regenerate.
5521 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5523 * config/tc-sh.c (parse_at): Install the correct version of
5526 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5527 assume fixP->fx_subsy is non-NULL.
5529 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5531 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5532 A_DISP_PC_ABS, and adjust it by -4.
5533 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5535 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5536 the operand type is not A_DISP_PC_ABS.
5538 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5540 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5541 common and weak symbols. Handle common and weak symbols as
5542 undefined symbols with regards to GREG handling and merging.
5543 (mmix_frob_file): Ditto.
5545 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5547 * configure.in (hppa-*-netbsd*): New target.
5548 * configure: Regenerate.
5549 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5551 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5553 * config/tc-v850.c: Add missing prototypes amd use old-style
5554 function definitions.
5555 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5556 (sdata_section tdata_section, zdata_section, sbss_section,
5557 tbss_section, zbss_section, rosdata_section, rozdata_section,
5558 scommon_section, tcommon_section, zcommon_section,
5559 call_table_data_section, call_table_text_section): Delete.
5560 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5561 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5562 v850_call_table_data, v850_call_table_text): Delete.
5563 (struct v850_seg_entry): New.
5564 (v850_seg_table): New.
5565 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5566 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5567 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5568 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5571 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5572 recording of alignment.
5573 (md_pseudo_table): Use v850_seg.
5574 (md_begin): Don't init .call_table_data and .call_table_text here.
5575 Set v850_seg_table bss entry.
5577 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5579 Support on-demand global register allocation by passing on
5580 base-plus-offset relocs to the linker.
5581 * config/tc-mmix.c: Tweak and fix typos in comments.
5582 (allocate_undefined_gregs_in_linker): New variable.
5583 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5584 (md_longopts): Add --linker-allocated-gregs.
5585 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5586 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5587 (md_show_usage): Update text for -x. Add text for
5588 --linker-allocated-gregs.
5589 (tc_gen_reloc): Derive default value for addend from val and
5590 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5591 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5592 GREG if allocate_undefined_gregs_in_linker.
5593 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5594 --linker-allocated-gregs.
5595 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5596 --linker-allocated-gregs. Mention that it's implied by -x.
5597 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5598 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5600 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5602 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5604 * Makefile.am: Run "make dep-am"
5605 * Makefile.in: Regenerate.
5607 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5609 * config/tc-or32.c: New file.
5610 * config/tc-or32.h: New file.
5611 * configure.in: Add support for or32 targets.
5612 * configure: Regenerate.
5613 * config/obj-coff.c: Add support for or32 targets.
5614 * config/obj-coff.h: Add support for or32 targets.
5615 * Makefile.am: Add support for or32 targets.
5616 * Makefile.in: Regenerate.
5617 * NEWS: Mention support for OpenRISC.
5618 * doc/Makefile.in: Regenerate.
5619 * po/POTFILES.in: Regenerate.
5620 * po/gas.pot: Regenerate.
5622 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5624 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5627 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5629 * config/tc-mips.c (tc_gen_reloc): Arrange for
5630 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5631 their LO16 parts, even for ELF.
5633 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5635 * config/tc-i386.c: Protect definitions of true and false
5638 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5640 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5641 made because of .weak, if they are neither defined nor used in any
5644 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5646 * configure: Regenerated.
5648 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5650 * doc/Makefile.am (install): Depend on install-info.
5651 * doc/Makefile.in: Regenerate.
5653 2002-01-26 Nick Clifton <nick@redhat.com>
5655 * po/fr.po: Updated version
5657 2002-01-24 Kazu Hirata <kazu@hxi.com>
5659 * config/tc-h8300.c (check_operand): Don't print a warning
5660 when a valid 24-bit address is given to a 16-bit address
5663 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5665 * config/tc-sh.c (sh_elf_suffix): Removed.
5666 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5667 sh_end_of_match, sh_parse_name): New functions.
5668 (sh_elf_cons): Simplify.
5669 (parse_exp): Reject misplaced PIC operands.
5670 (md_undefined_symbol): Simplify.
5671 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5672 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5673 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5674 Complain if subsy remains at the end.
5675 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5676 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5678 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5680 * config/tc-mn10300.c (xr_registers): Move `pc'...
5681 (other_registers): ... here.
5683 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5685 * Makefile.am: Run "make dep-am".
5686 * Makefile.in: Regenerate.
5687 * gas/po/POTFILES.in: Regenerate.
5689 2002-01-21 DJ Delorie <dj@redhat.com>
5691 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5692 stabstr_name allocation permanent, as it will be referenced from
5695 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5697 * configure.in (ia64-*-netbsd*): New target.
5698 * configure: Regenerate.
5700 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5702 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5704 <Detailed description, ARM options>: Ditto.
5705 * doc/c-arm.texi (ARM Options): Ditto.
5707 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5709 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5710 do_mia, do_mar and do_mra respectively.
5711 (do_mav_*): Renamed from do_c_*.
5712 (mav_reg_required_here, mav_parse_offset): Renamed from
5713 cirrus_reg_required_here and cirrus_parse_offset respectively.
5714 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5716 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5717 Keith Walker <keith.walker@arm.com>
5719 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5720 (insns): Add pattern for bxj instruction.
5721 (do_bxj): New function.
5722 (arm_cpus): Add arm926ej.
5723 (arm_archs): Add armv5tej.
5725 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5727 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5729 2002-01-19 Keith Walker <keith.walker@arm.com>
5731 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5733 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5735 * NEWS: Mention new ARM command-line options and VFP support.
5737 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5739 (ARM_CEXT_MAVERICK): Similarly.
5740 (ARM_ANY): Now means any core instruction.
5741 (CPU_DEFAULT): Default to ARM_ANY.
5742 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5743 (pic_code): Declare for all object types. Make type int.
5744 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5745 (march_fpu_opt, mfpu_opt): Declare.
5746 (md_longopts): Tidy up conditional definitions.
5747 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5748 (arm_long_opts): New tables.
5749 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5750 (arm_parse_extension): New function.
5751 (md_parse_option): Rewrite using new table-driven system.
5752 (md_show_usage): Use new table-driven system.
5753 (md_begin): Calculate cpu_variant from command line option data.
5754 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5755 command-line options.
5756 * doc/c-arm.texi: Likewise.
5758 2002-01-18 Andreas Jaeger <aj@suse.de>
5760 * as.c (parse_args): Update year.
5762 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5764 * config/tc-tic54x.c (encode_address): Add a more informative
5765 warning about incorrect syntax.
5767 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5769 * po/gas.pot: Regenerate.
5771 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5773 * macro.c (get_any_string): Add no-c-format comment to prevent
5774 confusion when translating string.
5775 * gasp.c (get_any_string): Add no-c-format comment to prevent
5776 confusion when translating string.
5778 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5779 Johannes Stezenbach <js@convergence.de>
5780 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5781 matched before the shorter ones.
5782 (my_getSmallParser): Fix handling of nested parentheses in
5783 percent_op's. Code cleanup.
5784 (my_getPercentOp): New function, code from my_getSmallParser.
5785 (my_getSmallExpression): Fix handling of closing parentheses.
5786 Code cleanup. Better comments.
5788 2002-01-16 Nick Clifton <nickc@redhat.com>
5790 po/tr.po: New file: Turkish translation.
5791 configure.in (LINGUAS): Add "tr".
5792 configure: Regenerate.
5794 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5796 Support for VFP instructions
5797 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5798 (cp_address_required_here): New argument wb_ok. When false, do not
5799 accept write-back forms of addressing. Change all callers.
5800 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5801 (FPU_VFP_EXT_V2): Define.
5802 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5803 Define in terms of above.
5804 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5805 (vfp_reg): New struct.
5806 (vfp_regs): New array of registers.
5807 (insns): Add VFP instructions.
5808 (sn_table): New array of VFP single-precision register names.
5809 (dn_table): New array of VFP double-precision register names.
5810 (all_reg_maps): Add the new register tables.
5811 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5812 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5813 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5814 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5815 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5816 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5817 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5818 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5819 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5820 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5821 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5822 (do_vfp_sp_dp_cvt): New functions.
5823 (md_begin): Set soft-float flag for appropriate VFP work.
5824 (md_atof): Handle VFP-format doubles.
5825 (md_parse_option): Handle VFP command-line options.
5826 (md_show_usage): Display VFP command-line options.
5828 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5830 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5831 various command line options.
5833 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5835 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5837 (xstormy16_md_apply_fix3): Do not return a value.
5839 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5841 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5842 the -EL/-EB option that matches the target's endianness.
5843 (md_parse_option): Likewise.
5845 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5847 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5848 is not dependent on ARM_BI_ENDIAN.
5850 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5852 * tc-arm.c (all error messages): Normalize capitalization of messages.
5854 * tc-arm.h (md_operand): Delete define.
5855 * tc-arm.c (in_my_get_expression): New static variable.
5856 (my_get_expression): Set and clear it.
5857 (md_operand): New function. If called from my_get_expression
5858 put the error in inst.error.
5859 (output_inst): Now takes argument of instruction being assembled.
5860 Print it out with any error message.
5861 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5863 (end_of_line): Don't update inst.error if it is already set.
5865 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5867 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5868 op that can be translated into a mvn instruction.
5870 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5872 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5873 setting default md.flags.
5874 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5875 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5876 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5877 for 32 bit unwind info blocks.
5878 (generate_unwind_image): Add support for different types
5879 of unwind images (32 bits and/or big-endian).
5880 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5881 (ia64_target_format): Add support for hpux target formats.
5882 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5883 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5884 SHT_FINI_ARRAY elf section types.
5886 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5888 * tc-arm.c (struct reg_entry): Move before prototypes.
5889 (int_register, cp_register, fp_register): Delete.
5890 (reg_table): Delete. Replaced with ...
5891 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5892 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5893 (mav_dspsc_table): ... one table per register set.
5894 (arm_reg_hsh): Delete.
5895 (struct reg_map): New structure.
5896 (all_reg_maps): New array.
5897 (enum arm_reg_type): New enums.
5898 (build_reg_hsh): New function.
5899 (insert_reg_alias): Use hash table passed by caller. Adjust all
5901 (create_register_alias): New function, split out from ...
5902 (md_assemble): ... here.
5903 (md_begin): Build new register hash tables.
5904 (arm_reg_parse): New argument for the hash table to search. Adjust all
5906 (arm_reg_parse_any): New function.
5907 (co_proc_number): Look up the processor number in the processor hash
5909 (cirrus_regtype): Delete.
5910 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5911 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5912 (ARM_EXT_MAVERICKsc_register): Delete.
5913 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5914 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5916 (do_c_triple_4, do_c_triple_5): Delete.
5917 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5918 (do_c_quad_6): Delete.
5919 (do_c_quad_6[ab]): New functions.
5920 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5921 arguments to use new register parsing methods.
5922 (cirrus_reg_required_here): Likewise.
5923 (insns): Reclassify cirrus maverick worker functions.
5924 (cirrus_valid_reg): Delete.
5926 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5928 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5929 (sh*-*-netbsdelf*): New target.
5930 * configure: Regenerate.
5931 * tc-sh.h: Update copyright years.
5932 (TARGET_FORMAT): Add version for TE_NetBSD.
5934 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5936 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5939 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5941 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5942 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5944 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5946 * tc-mips.c (mips_cprestore_valid): New flag.
5947 (mips_frame_reg_valid): New flag.
5948 (macro) [M_JAL_2]: Check both flags.
5949 [M_JAL_A]: Likewise.
5950 (s_cprestore): Set mips_cprestore_valid.
5951 (tc_get_register): If setting mips_frame_reg, set
5952 mips_frame_reg_valid and clear mips_cprestore_valid.
5953 (s_mips_ent): Clear both flags.
5954 (s_mips_end): Clear both flags.
5956 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5958 * write.c (write_object_file): Make use of bfd_section_list_remove.
5959 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5960 * config/tc-mmix.c (mmix_frob_file): Likewise.
5962 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5964 * configure.in (i386-*-netbsdelf*): Collapse target into...
5965 (i386-*-netbsd*): ...this. Add support for x86-64.
5966 * configure: Regenerated.
5968 2002-01-03 matthew green <mrg@redhat.com>
5970 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5972 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5974 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5977 For older changes see ChangeLog-0001
5983 version-control: never