1 2003-06-17 Alan Modra <amodra@bigpond.net.au>
3 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
5 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
8 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
9 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
10 s_cprestore,s_cpadd): Use them.
12 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
14 * configure.in: Add specific case for cris-*-linux-gnu* with
16 * configure: Regenerate.
17 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
18 if TE_LINUX defined, else FALSE.
19 (bfd_boolean demand_register_prefix): Set default from
20 DEFAULT_CRIS_AXIS_LINUX_GNU.
21 (symbols_have_leading_underscore): Similar.
22 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
24 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
26 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
27 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
28 FPU_ARCH_FPA for AOUT.
29 (md_begin): Don't try to guess the floating point architecture from
30 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
32 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
34 * configure.in: Add i386-netbsd-gnu target.
35 * configure: Regenerate.
37 2003-06-12 Tom Tromey <tromey@redhat.com>
39 * doc/as.texinfo (Comm): Added @node. Moved before CFI
42 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
44 * config/tc-mips.c (append_insn): In a compound relocation, take the
45 field width from the final (outermost) operator.
47 2003-06-11 Richard Henderson <rth@redhat.com>
49 * dw2gencfi.c (struct cfi_escape_data): New.
50 (cfi_add_CFA_nop): Remove.
51 (CFI_escape, dot_cfi_escape): New.
52 (dot_cfi): Remove nop.
53 (cfi_pseudo_table): Remove nop; add escape.
54 (output_cfi_insn): Likewise.
55 (select_cie_for_fde): Stop on escape.
56 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
57 * read.c, read.h (do_parse_cons_expression): New.
58 * doc/as.texinfo (.cfi_escape): New.
60 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
62 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
63 (s_cprestore): Likewise.
64 (s_cpreturn): Likewise.
66 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
68 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
71 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
73 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
74 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
75 exceptions from size assert. Remove most of the addend fixup
76 specialcasing. Remove value, use valP directly. simplify fx_addnumber
77 handling. Remove zero addend specialcases.
78 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
79 the addend fixup specialcase.
80 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
82 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
84 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
85 in the RELOC_EXPANSION_POSSIBLE case.
87 2003-06-11 Alan Modra <amodra@bigpond.net.au>
89 * config/tc-i960.c (line_comment_chars): Add '#'.
90 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
92 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
94 * po/Make-in (DESTDIR): New.
95 (install-data-yes): Support $(DESTDIR).
96 (uninstall): Likewise.
98 2003-06-11 Alan Modra <amodra@bigpond.net.au>
100 * Makefile.am: Run "make dep-am".
101 * Makefile.in: Regenerate.
102 * po/POTFILES.in: Regenerate.
104 2003-06-10 Doug Evans <dje@sebabeach.org>
106 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
108 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
109 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
110 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
112 2003-06-10 Alan Modra <amodra@bigpond.net.au>
113 Gary Hade <garyhade@us.ibm.com>
115 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
116 (md_apply_fix3): Special case lq insn.
118 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
120 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
121 lists. Allow single-register ranges.
123 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
125 * config/tc-h8300.c (h8300sxnmode): New.
126 (md_pseudo_table): Add .h8300sxn entry.
128 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
130 * NEWS: Updated for the new -n option for the i386 assembler.
132 * config/tc-i386.c (optimize_align_code): New.
133 (md_shortopts): Add 'n'.
134 (md_parse_option): Handle 'n'.
135 (md_show_usage): Add '-n'.
137 * config/tc-i386.h (optimize_align_code): Declared.
138 (md_do_align): Optimize code alignment only if optimize_align_code
141 * doc/as.texinfo: Add the new -n option.
143 * doc/c-i386.texi: Document the new -n option.
145 2003-06-07 Richard Henderson <rth@redhat.com>
147 * doc/as.texinfo: Document .cfi_rel_offset.
149 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
150 (cfi_add_CFA_offset): Detect invalid offsets.
151 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
152 (cfi_add_CFA_restore_state): Restore it.
153 (CFI_rel_offset): New.
154 (cfi_pseudo_table): Add it.
155 (dot_cfi): Handle it.
157 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
159 * app.c (do_scrub_chars): Add states 14 and 15 to handle
162 2003-06-05 Michael Snyder <msnyder@redhat.com>
164 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
165 (build_bytes): Ditto.
167 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
169 * config/tc-h8sx.c (DMODE): Remove.
170 (colonmod24): Don't choose a default if the operand is a 16-bit
172 (fix_operand_size): New function.
173 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
174 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
176 2003-06-05 Michal Ludvig <mludvig@suse.cz>
178 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
179 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
180 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
181 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
182 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
183 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
184 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
185 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
186 (cfi_pseudo_table): New directives .cfi_return_column,
187 .cfi_restore, .cfi_undefined, .cfi_same_value,
188 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
189 (dot_cfi, output_cfi_insn): Handle new directives.
190 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
191 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
192 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
194 2003-06-04 Richard Henderson <rth@redhat.com>
196 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
198 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
200 2003-06-04 Richard Henderson <rth@redhat.com>
202 * config/tc-alpha.c (s_alpha_usepv): New.
203 (md_pseudo_table): Add it.
204 (alpha_cfi_frame_initial_instructions): New.
205 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
206 (tc_cfi_frame_initial_instructions): New.
207 * doc/c-alpha.texi: Document .usepv.
209 2003-06-04 Jakub Jelinek <jakub@redhat.com>
211 * as.c (show_usage): Document --execstack and --noexecstack.
212 (parse_args): Add --execstack and --noexecstack.
213 (main): Create .note.GNU-stack section if --execstack or
214 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
215 * as.h (flag_execstack, flag_noexecstack): New.
217 2003-06-03 Chris Demetriou <cgd@broadcom.com>
219 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
220 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
221 (OPTION_MISC_BASE): New defines.
222 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
223 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
224 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
225 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
226 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
227 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
228 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
229 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
230 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
231 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
232 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
233 (OPTION_TRAP): Redefine in terms of new defines.
234 (md_longopts): Reorder entries.
236 2003-05-14 Michael Snyder <msnyder@redhat.com>
237 From Bernd Schmidt <bernds@redhat.com>
238 and Michael Snyder <msnyder@redhat.com>
239 and Alexandre Oliva <aoliva@redhat.com>
240 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
241 * config/tc-h8300.h: Ditto.
243 2003-06-03 Nick Clifton <nickc@redhat.com>
245 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
246 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
247 before calling bfd_reloc_type_lookup.
249 2003-06-02 Alan Modra <amodra@bigpond.net.au>
251 * read.c (emit_expr): Set dot_value.
252 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
254 2003-06-02 Alan Modra <amodra@bigpond.net.au>
256 * macro.c (sub_actual): Don't lose string if it turns out that
257 &string wasn't an arg.
259 2003-05-31 Richard Henderson <rth@redhat.com>
261 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
262 (cfi_finish): Set flag_traditional_format around .eh_frame data.
264 2003-05-29 Richard Henderson <rth@redhat.com>
266 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
267 (all_frame_data, plast_frame_data, cur_frame_data): New.
268 (s_alpha_ent): Record data for dwarf2 cfi.
269 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
270 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
271 * config/tc-alpha.h (md_end): New.
272 (DWARF2_DEFAULT_RETURN_COLUMN): New.
273 (DWARF2_CIE_DATA_ALIGNMENT): New.
275 2003-05-29 Nick Clifton <nickc@redhat.com>
277 * configure.in: Add i386-*-freebsd* entry.
278 * configure: Regenerate.
280 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
282 * config/tc-m32r.c: Amend comment to refer to Renesas
284 2003-05-27 Richard Henderson <rth@redhat.com>
286 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
288 (current_location): Use symbol_temp_new_now.
289 * stabs.c (s_stab_generic): Use symbol_temp_new.
290 * symbols.c (temp_label_name): Remove.
291 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
293 2003-05-27 Richard Henderson <rth@redhat.com>
295 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
296 * as.c (main): Always call cfi_finish.
297 * config/tc-i386.c (x86_dwarf2_return_column): New.
298 (x86_cie_data_alignment): New.
299 (md_begin): Set them.
300 (tc_x86_cfi_init): Remove.
301 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
302 return int, not unsigned long; don't as_bad here.
303 (tc_x86_frame_initial_instructions): Streamline; use
305 * config/tc-i386.h (tc_cfi_init): Remove.
306 (DWARF2_DEFAULT_RETURN_COLUMN): New.
307 (DWARF2_CIE_DATA_ALIGNMENT): New.
309 2003-05-27 Richard Henderson <rth@redhat.com>
311 * symbols.c (temp_label_name): New.
312 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
313 (symbol_set_value_now): New.
314 * symbols.h: Prototype them.
315 * dwarf2dbg.c: Use them.
316 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
318 2003-05-23 Jason Eckhardt <jle@rice.edu>
320 * config/tc-i860.c (target_xp): Declare variable.
321 (OPTION_XP): Declare macro.
322 (md_longopts): Add option -mxp.
323 (md_parse_option): Set target_xp.
324 (md_show_usage): Add -mxp usage.
325 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
326 (md_assemble): Don't try expansions if XP_ONLY is set.
327 * doc/c-i860.texi: Document -mxp option and i860XP support.
329 2003-05-23 Eric Christopher <echristo@redhat.com>
331 * config/tc-mips.c (macro_build_jalr): Warning patrol.
333 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
335 * config/tc-mips.c (append_insn): Use actual relocation size for new
336 fixp's. Don't relax overflow checking for partial_inplace relocations.
337 Use the actual relocation type in combined relocs, not just the type
339 (macro_build_jalr): Use actual relocation size for new fix.
340 (s_cpsetup, s_gpdword): Likewise.
342 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
344 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
346 2003-05-22 Nick Clifton <nickc@redhat.com>
348 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
349 section relative offsets for relocs that will not be based on the
351 (xstormy16_md_apply_fix3): Remove previous patch to this
354 2003-05-07 Eric Christopher <echristo@redhat.com>
356 * config/tc-mips.c (mips_abicalls): New variable.
357 (md_parse_option): Use.
360 (mips_elf_final_processing): Set EF_MIPS_PIC and
361 EF_MIPS_CPIC dependent on above.
363 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
365 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
367 2003-05-21 Nick Clifton <nickc@redhat.com>
369 * config/obj-elf.c: Include dwarf2dbg.h.
370 (elf_pseudo_tab): Add .file and .loc.
371 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
372 * config/tc-arm.c: Likewise.
373 * config/tc-h8300.c: Likewise.
374 * config/tc-hppa.c: Likewise.
375 * config/tc-ia64.c: Likewise.
376 * config/tc-m68hc11.c: Likewise.
377 * config/tc-m68k.c: Likewise.
378 * config/tc-mmix.c: Likewise.
379 * config/tc-mn10300.c: Likewise.
380 * config/tc-ppc.c: Likewise.
381 * config/tc-sh.c: Likewise.
382 * config/tc-sparc.c: Likewise.
383 * config/tc-v850.c: Likewise.
384 * config/tc-frv.c: Likewise, and remove redundant inclusion of
386 * config/tc-ip2k.c: Likewise.
387 * config/tc-iq2000.c: Likewise.
388 * config/tc-xstormy16.c: Likewise.
389 * config/tc-xtensa.c: Likewise.
390 * Makefile.am: Regenerate dependencies.
391 * Makefile.in: Regenerate.
392 * aclocal.m4: Regenerate.
393 * config.in: Regenerate.
394 * configure: Regenerate.
395 * po/POTFILES.in: Regenerate.
396 * po/gas.pot: Regenerate.
398 2003-05-21 Nick Clifton <nickc@redhat.com>
400 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
401 BFD_ASSEMBLER targets.
402 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
403 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
404 defining BFD_ASSEMBLER.
406 2003-05-20 Michal Ludvig <mludvig@suse.cz>
408 * as.c (main): Remove tc_cfi_init().
409 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
411 (cfi_pseudo_table): Add "cfi_register" entry.
412 (cfi_make_insn): Handle CFA_register.
413 (cfi_output_insn): Ditto.
415 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
416 (dot_cfi_endproc): Reuse already emitted CIEs.
417 * testsuite/gas/cfi/cfi-i386.d: New pattern.
418 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
420 2003-05-20 Nick Clifton <nickc@redhat.com>
422 * config/tc-xstormy16.c: Include dwarf2dbg.h.
423 (md_pseudo_table): Add entries for .loc and .line.
425 2003-05-20 Alan Modra <amodra@bigpond.net.au>
427 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
429 (dot_cfi_endproc): Avoid C99 construct.
431 2003-05-20 Michal Ludvig <mludvig@suse.cz>
433 * dw2gencfi.c, dw2gencfi.h: New files.
434 * config/tc-i386.c (tc_x86_cfi_init): New function.
435 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
436 * as.c (parse_args): Set verbose flag on --verbose.
437 (main): Call tc_cfi_init()/cfi_finish().
438 * as.h (verbose): New external variable.
439 * read.c (pobegin): Insert CFI pops to the list.
440 * symbols.c (local_symbol_make): Make symbol external.
441 * symbols.h (local_symbol_make): New prototype.
442 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
443 * Makefile.in: Regenerate.
444 * doc/as.texinfo: Added node "CFI directives" with description of
445 all implemented .cfi_* directives.
446 * doc/Makefile.in: Regenerate.
447 * po/POTFILES.in: Regenerate.
449 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
451 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
453 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
455 2003-05-18 Jason Eckhardt <jle@rice.edu>
457 * config/tc-i860.c (i860_process_insn): Initialize fc after
458 each opcode mismatch.
460 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
462 * configure.in: Accept i[3-7]86 variants.
463 * configure: Regenerate.
465 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
467 * config/tc-mips.h: Fix comment formatting.
469 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
471 * read.c (old_buffer, old_input, old_limit): Remove variables.
472 (read_a_source_file): Delete label contin.
473 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
474 input as with macros, instead of in separate old_* variables.
475 Zero-terminate string being scrubbed.
477 2003-05-12 Nick Clifton <nickc@redhat.com>
479 * config/tc-xstormy16.c (skipping_fptr): New local variable.
480 (md_assemble): Reset skipping_fptr.
481 (md_operand): If @fptr() is followed by a minus sign, set
482 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
483 @fptr is detected, ignore it and reset skipping_fptr.
485 2003-05-11 Jason Eckhardt <jle@rice.edu>
487 * config/tc-i860.c (MAX_FIXUPS): Define.
488 (struct i860_fi fi[]): New struct.
489 (struct i860_it the_insn): Add above as member and move fields
490 exp, reloc, pcrel and fup into i860_fi.
491 (md_assemble): Replace all instances of exp, reloc, pcrel
492 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
493 Add a loop to possibly emit multiple fix-ups for each insn.
494 (i860_process_insn): Likewise.
495 (i860_get_expression): Likewise.
496 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
498 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
500 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
502 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
504 * config/tc-ia64.c (alias_hash): New.
505 (alias_name_hash): New.
506 (secalias_hash): New.
507 (secalias_name_hash): New.
508 (md_pseudo_table): Add "secalias".
509 (md_begin): Initialize alias_hash, alias_name_hash,
510 secalias_hash and secalias_name_hash.
512 (dot_alias): Implement .alias and .secalias directives.
514 (ia64_adjust_symtab): New.
516 (ia64_frob_file): New.
518 * config/tc-ia64.h (ia64_adjust_symtab): New.
519 (tc_adjust_symtab): Defined.
520 (ia64_frob_file): New.
521 (tc_frob_file): Defined.
523 2003-05-07 Dmitry Diky <diwil@mail.ru>
525 * tc-msp430.c: Add missing lines to known cpus list.
527 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
529 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
530 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
531 * config.in, configure: Rebuilt.
533 2003-05-05 H.J. Lu <hjl@gnu.org>
535 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
536 howto->partial_inplace is false.
538 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
540 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
541 symbol_used_in_reloc_p check.
542 (md_apply_fix3): Remove check for howto->pcrel_offset.
544 2003-05-03 H.J. Lu <hjl@gnu.org>
546 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
547 fatal error for unknown section attribute.
549 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
550 unknown section attribute.
551 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
552 * config/tc-ppc.c (ppc_section_letter): Likewise.
554 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
555 (ia64_elf_section_type): Accept "unwind".
557 2003-05-02 H.J. Lu <hjl@gnu.org>
559 * read.h (demand_copy_string): New.
561 * config/tc-alpha.c (demand_copy_string): Removed.
563 2003-05-02 Michael Snyder <msnyder@redhat.com>
565 * write.h (FAKE_LABEL_NAME): Allow override
566 (for targets that like eg. a leading dot in a local label).
568 2003-05-02 Nick Clifton <nickc@redhat.com>
570 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
571 addend with the symbol's value for pc-relative relocations against
572 a defined symbol - this will be done automatically.
574 2003-05-01 H.J. Lu <hjl@gnu.org>
576 * config/obj-elf.c (obj_elf_type): Accept "notype" and
579 2003-05-01 H.J. Lu <hjl@gnu.org>
581 * config/tc-ia64.h (tc_canonicalize_section_name): New.
583 * config/obj-elf.c (obj_elf_section_name): Call
584 tc_canonicalize_section_name if it is defined.
586 2003-05-01 H.J. Lu <hjl@gnu.org>
588 * config/tc-ia64.c (ia64_check_label): New.
589 * config/tc-ia64.h (tc_check_label): New.
591 * read.c (read_a_source_file): Call tc_check_label after
592 creating a user-defined label if defined.
594 2003-05-02 Alan Modra <amodra@bigpond.net.au>
596 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
597 -be and split strings to below 509 bytes in length.
599 2003-05-01 Christian Groessler <chris@groessler.org>
601 * expr.h: Fix comments in operatorT typedef.
602 * config/tc-z8k.c: Add 2003 to copyright message.
603 Fold s_segm() and s_unseg() into one function s_segm(parm) which
604 decides by the parameter.
605 (md_begin): Don't set linkrelax. Only set Z8002 default if no
606 command line argument was given to select the intended
608 (get_interrupt_operand): Warn if NOP type code is emitted.
609 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
610 (apply_fix): Call newfix with additional 'size' parameter.
611 (build_bytes): Remove unused variable 'nib'. Detect overflow in
612 4 bit immediate arguments.
613 (md_longopts): Add 'linkrelax' option.
614 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
615 variable when 'linkrelax' command line option is specified.
616 (md_show_usage): Display 'linkrelax' option.
617 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
619 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
621 2003-04-30 H.J. Lu <hjl@gnu.org>
623 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
624 (ia64_float_to_chars): Likewise.
625 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
626 and ia64_float_to_chars by tc_segment_info_data.endian from
627 the current segment if byteorder == -1.
628 (md_begin): Call dot_byteorder to set target_big_endian.
629 (md_atof): Call ia64_float_to_chars to convert floating point.
630 (ia64_float_to_chars_bigendian): New function.
631 (ia64_float_to_chars_littleendian): Likewise.
632 (ia64_elf_section_change_hook): Likewise.
634 * config/tc-ia64.h (ia64_number_to_chars): New.
635 (md_number_to_chars): Changed to (*ia64_number_to_chars)
636 (ia64_elf_section_change_hook): New.
637 (md_elf_section_change_hook): Defined.
638 (ia64_segment_info_type): New struct.
639 (TC_SEGMENT_INFO_TYPE): Defined.
641 2003-04-30 H.J. Lu <hjl@gnu.org>
643 * config/tc-ia64.c (md_section_align): Deleted.
645 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
646 (md_section_align): New.
648 2003-04-30 H.J. Lu <hjl@gnu.org>
650 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
652 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
654 (md_atof): Add 6 byte padding of zero for real16.
656 2003-04-29 Nick Clifton <nickc@redhat.com>
658 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
659 start of a version name.
661 2003-04-28 Chris Demetriou <cgd@broadcom.com>
663 * configure.in (mips-*-*n*bsd*): Replace with...
664 (mips-*-netbsd*, mips-*-openbsd*): These.
665 * configure: Regenerate.
667 2003-04-28 H.J. Lu <hjl@gnu.org>
669 * config/tc-hppa.c (hppa_symbol_chars): New.
670 * config/tc-hppa.h (tc_symbol_chars): Likewise.
672 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
674 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
676 2003-04-25 Chris Demetriou <cgd@broadcom.com>
678 * NEWS: Belatedly mention support for MIPS32 Release 2.
680 2003-04-24 Eric Christopher <echristo@redhat.com>
682 * config/tc-mips.c (nopic_need_relax): Revert previous
685 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
687 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
688 * config/tc-h8300.c (dwarf2dbg.h): Include
689 (md_pseudo_table): Handle .loc and .file
690 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
691 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
692 * Makefile.in: Regenerate.
694 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
696 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
697 (md_pseudo_table): Add h8300hn, h8300sn.
698 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
699 * doc/c-h8300.texi : Add documentation for new machine directives.
701 2003-04-24 Nick Clifton <nickc@redhat.com>
703 * config/tc-ppc.c (ppc_symbol_chars): Define.
704 * config/tc-ppc.h (tc_symbol_chars): Define.
706 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
708 * config/tc-sh.c: Amend comment to refer to SuperH.
709 * config/tc-sh.h: Likewise.
710 (LISTING_HEADER): Amend to refer to SuperH.
711 * config/tc-sh64.c: Change comment to refer to SuperH.
712 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
713 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
714 * doc/c-sh.texi: Amend to refer to SuperH.
715 Add SuperH architecture documentation references.
716 * doc/c-sh64.texi: Change to refer to SuperH.
718 2003-04-23 H.J. Lu <hjl@gnu.org>
720 * app.c (do_scrub_chars): More checks for valid labels.
722 2003-04-22 H.J. Lu <hjl@gnu.org>
724 * app.c (do_scrub_chars): Check for valid label.
726 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
728 * doc/as.texinfo: Replace references to Mitsubishi M32R with
729 references to Renesas M32R.
730 * doc/c-m32r.texi: Likewise.
732 2003-04-21 Richard Henderson <rth@redhat.com>
734 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
735 (out_file_list): Assign non-null filename after generating error.
737 2003-04-18 Jakub Jelinek <jakub@redhat.com>
739 * ehopt.c (check_eh_frame): For aug_size == 0
740 in state_seeing_aug_size state skip the state_skipping_aug
743 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
745 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
747 * doc/c-h8500.texi: Likewise.
748 * doc/c-sh.texi: Likewise.
749 * doc/c-sh64.texi: Likewise.
750 * doc/h8.texi: Likewise.
751 * config/tc-h8300.c: Likewise.
752 * config/tc-h8300.h: Likewise.
753 * config/tc-h8500.c: Likewise.
754 * config/tc-h8500.h: Likewise.
755 * config/tc-sh.c: Likewise.
756 * config/tc-sh.h: Likewise.
757 * config/tc-sh64.c: Likewise.
758 * config/tc-sh64.h: Likewise.
760 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
762 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
763 * config/tc-mips.c: Use signed add for n32 address arithmetic.
764 (append_insn): When filling delay slots with instructions
765 that have fixups that tc_gen_reloc might consider modifyable
766 in variant frags, start a new frag.
767 (load_address): Generate GOT_DISP with of without offset
768 depending on whether symbol is local. For -xgot, use
769 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
770 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
771 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
772 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
773 <ld_st>: In NewABI with small got, always use
774 GOT_PAGE/GOT_OFST, with the latter in the load/store
775 instruction. With big got, use GOT_HI16/GOT_LO16 or
777 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
778 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
779 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
780 (md_convert_frag): Use memmove for safe copying of overlapping
783 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
785 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
786 -mlong, -mshort-double and -mlong-double options; use table @code.
787 (M68HC11-Syntax): Update to document 68HC12 operands.
788 (M68HC11-Modifiers): New section for operand modifiers.
789 (M68HC11-Directives): New section for specific assembler directives.
790 (M68HC11-Branch): Fix Overfull hbox error.
792 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
794 * config/tc-mips.c (macro): Add comments explaining the rationale
797 2003-04-09 Chris Demetriou <cgd@broadcom.com>
799 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
800 constant address that Alexandre took out by accident. Reject
801 64-bit addresses that are not sign extensions of 32 bits only if
802 we don't support 64-bit address constants.
804 2003-04-09 Alan Modra <amodra@bigpond.net.au>
806 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
808 2003-04-08 Nick Clifton <nickc@redhat.com>
810 * as.c (perform_an_assembly_pass): If using cgen, call
812 * cgen.c (gas_cgen_begin): New function. If
813 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
814 otherwise call cgen_clear_signed_overflow_ok.
815 * cgen.h: Prototype gas_cgen_begin.
817 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
819 * write.c (write_relocs): Remove unused variable.
821 2003-04-06 Chris Demetriou <cgd@broadcom.com>
823 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
824 (macro): Use new macro to decide whether to emit constant address
825 as 32 or 64 bits if addresses are 32-bit wide but registers are
828 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
830 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
831 (M6811_OP_PAGE_ADDR): New internal define.
832 (get_operand): New modifier %page and %addr to obtain page and
833 address part of a far-function.
834 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
835 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
837 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
838 (find_opcode): Add comment.
839 (md_estimate_size_before_relax): Force relocation of
840 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
841 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
842 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
843 on the symbol itself so that DWARF2 strings are merged correctly.
845 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
847 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
848 default tic4x target format to 'coff2-tic4x'.
849 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
851 * config/tc-tic4x.h: Ditto
853 2003-04-03 Nick Clifton <nickc@redhat.com>
855 * NEWS: Mention support for Xtensa architecture.
857 2003-04-02 Philip Blundell <philb@gnu.org>
859 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
861 2003-04-02 Chris Demetriou <cgd@broadcom.com>
863 * config/tc-mips.c (macro2): Adjust implementation of
864 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
865 in the case where the source and destination registers
868 2003-04-01 Bob Wilson <bob.wilson@acm.org>
870 * Makefile.am (CPU_TYPES): Add xtensa.
871 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
872 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
873 (xtensa-relax.o): New target.
875 * Makefile.in: Regenerate.
876 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
877 extra_objects for xtensa targets.
878 * configure: Regenerate.
879 * write.c (write_object_file): Add new md_post_relax_hook.
880 * config/tc-xtensa.c: New file.
881 * config/tc-xtensa.h: Likewise.
882 * config/xtensa-istack.h: Likewise.
883 * config/xtensa-relax.c: Likewise.
884 * config/xtensa-relax.h: Likewise.
885 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
886 * doc/Makefile.in: Regenerate.
887 * doc/all.texi: Set new XTENSA variable.
888 * doc/as.texinfo: Set new Xtensa variable. Describe
889 Xtensa-specific options. Define line comment character for
890 Xtensa. Add Xtensa processors to list of ELF targets where
891 alignment is specified in bytes. Add new Xtensa-Dependent node.
892 Add acknowledgements for those contributing to the Xtensa port.
893 * doc/internals.texi: Describe new md_post_relax_hook.
894 * doc/c-xtensa.texi: New file.
896 2003-04-01 Nick Clifton <nickc@redhat.com>
897 Richard Earnshaw <rearnsha@arm.com>
899 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
900 (ARM_ARCH_IWMMXT): Simplify.
901 (insns): Place iwmmx instructions in correct place in table.
902 (arm_add_note): New function: Add a note entry to a .note section.
903 (md_begin): Make the default architecture be unknown.
904 Suppress the creation of an arm note section.
906 2003-03-26 Eric Christopher <echristo@redhat.com>
908 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
910 2003-03-25 Stan Cox <scox@redhat.com>
911 Nick Clifton <nickc@redhat.com>
913 Contribute support for Intel's iWMMXt chip - an ARM variant:
915 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
916 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
917 (enum wreg_type, enum iwmmxt_insn_type): New types.
918 (wr_register, wc_register, wcg_register): New macros.
919 (iwmmxt_table): New variable.
920 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
921 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
922 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
923 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
924 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
925 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
926 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
927 cp_byte_address_offset, cp_byte_address_required_here,
928 check_iwmmxt_insn): New functions.
929 (asm_opcode_insns): Add iWMMXt instructions.
930 (md_begin): Set the mach value for iWMMXt targets. Create a note
931 section to identify iwmmxt binaries.
932 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
933 * doc/c-arm.texi: Document the support for the iWMMXt.
934 * NEWS: Mention new support.
936 2003-03-24 Daniel Néri <dne@mayonnaise.net>
938 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
939 * doc/all.texi: Likewise.
940 * doc/c-tic54x.texi: Likewise.
942 2003-03-21 Andreas Schwab <schwab@suse.de>
944 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
945 avoid aliasing issue.
947 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
949 * config/tc-s390.c (s390_arch_size): Initialize to zero.
950 (current_arch_mask): Rename to current_mode_mask.
951 (current_arch_requested): Remove variable.
952 (current_cpu): New variable.
953 (init_default_arch): Set defaults values for s390_arch_size,
954 current_mode_mask and current_cpu.
955 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
956 (md_begin): Replace current_arch_mask by current_cpu.
957 (md_assemble): Adapt check and error message to current_mode_mask and
960 2003-03-09 James E Wilson <wilson@tuliptree.org>
962 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
963 * read.c (get_line_sb): Return end of line character or '\n' if
964 it is zero or non-existent.
966 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
968 * config/tc-mips.c (mips_validate_fix): New function.
969 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
970 (mips_validate_fix): Declare.
972 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
974 * Reverted 2003-03-02's patch.
976 2003-03-11 Steve Ellcey <sje@cup.hp.com>
978 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
979 (TC_DWARF2_EMIT_OFFSET): Provide default.
980 (out_debug_aranges, out_debug_info): Use it.
981 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
982 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
983 (ia64_gen_real_reloc_type): ... here.
984 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
986 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
988 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
989 (s_mips_ent): Likewise.
991 2003-03-04 Dmitry Diky <diwil@mail.ru>
993 * config/tc-msp430.c (mcu_types): Add recently announced x1122
994 and x1123 devices, add missed x437.
995 (md_show_usage): Sort device list.
997 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
999 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
1000 (md_begin): Use preset_target_arch.
1001 (md_longopts): Make isa option unconditional.
1002 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
1003 set preset_target_arch.
1004 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
1005 by -S_GET_VALUE (fixP->fx_subsy).
1006 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
1007 and the addend is 0.
1008 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
1009 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
1011 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1013 * config/tc-mips.c (append_insn): Add handling of
1014 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
1015 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
1016 misaligned address and reange overflow.
1017 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
1018 earlier warnings about misaligned address and reange overflow.
1019 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1020 (md_apply_fix): Likewise. Fix warning output.
1021 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1022 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
1023 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
1025 2003-02-21 Nick Clifton <nickc@redhat.com>
1027 * NEWS: Mention availability of test generator program.
1029 2003-02-21 Miles Bader <miles@gnu.org>
1031 * config/tc-v850.c (system_registers): Add v850e debug registers.
1032 (system_register_name): Accept up to 27 (the last v850e sys register).
1034 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1036 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1037 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1038 Capitalize section headings consistently. Format index entries more
1039 consistently. Unconditionalize text about whether text and data
1040 sections are alterable. Use @ifnottex for alternatives to @tex output
1041 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1042 .size and .type directives. Be more polite about bad bug reports.
1043 Move FDL into a separate file.
1044 * doc/fdl.texi: New file.
1046 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1048 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1049 (macro): Check it to decide whether a new frag is needed.
1050 (my_getSmallExpression): Set it.
1052 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1054 * cgen.c: Fix typo: intial -> initial.
1056 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1058 * app.c (do_scrub_chars): Handle '||' in two states.
1060 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1062 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1063 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1065 2003-02-11 Uwe Stieber <uwe@wwws.de>
1067 * configure.in: Add support for kaOS as cross build target system.
1068 * configure: Regenerated.
1070 2003-02-10 Nick Clifton <nickc@redhat.com>
1072 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1073 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1074 bfd_mach_arm_ep9312 machine number.
1076 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1078 * config/tc-mips.c (reloc_needs_lo_p): New function.
1079 (fixup_has_matching_lo_p): New function.
1080 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1081 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1082 if that fixup already has a matching %lo(). Don't call frag_wane here.
1083 (macro): Call frag_wane here if the last unmatched hi was in the
1085 (pic_need_relax): New function, split out from...
1086 (md_estimate_size_before_relax): ...here.
1087 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1088 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1090 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1092 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1094 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1096 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1099 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1101 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1102 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1103 accept x@got+off etc.
1104 (md_assemble): Handle TLS relocs.
1105 (ppc_force_relocation): Force for all TLS relocs.
1106 (ppc_fix_adjustable): Likewise.
1107 (md_apply_fix3): Handle TLS relocs.
1109 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1111 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1112 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1114 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1116 * config/tc-mips.c (enum small_ex_type): Remove.
1117 (imm_unmatched_hi): Remove.
1118 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1119 argument from calls to append_insn.
1120 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1122 (macro_build): Update append_insn calls.
1123 (mips16_macro_build, macro_build_lui): Likewise.
1124 (mips_ip): Rework handling of small expressions. Move explicit
1125 relocation handling into my_getSmallExpression. Assume that the
1126 value of 'o' operands is zero if there is only one bracketed
1128 (percent_op): Make constant. Record the BFD relocation code
1129 associated with each operator.
1130 (my_getSmallParser, my_getPercentOp): Remove.
1131 (parse_relocation): New function.
1132 (my_getSamllExpression): Rework. Fill in relocations here
1133 rather than in mips_ip.
1135 2003-01-29 Nick Clifton <nickc@redhat.com>
1137 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1138 assembler's handling of # <linenum> "<filename>" directives work.
1140 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1142 * dwarf2dbg.c: Include filenames.h.
1143 (struct file_entry): Make filename const char *.
1144 (dirs, dirs_in_use, dirs_allocated): New variables.
1145 (get_filenum): Add NUM argument. Build directory table.
1146 (dwarf2_where): Adjust caller.
1147 (dwarf2_directive_file): Use get_filenum to allocate
1148 slot in file and directory tables.
1149 (dwarf2_directive_loc): Recreate full filename from
1150 directory and filename part if needed for listing.
1151 (out_file_list): Output directory table.
1152 Output main source file dirname before its filename.
1154 2003-01-28 Dmitry Diky <diwil@mail.ru>
1156 * config/tc-msp430.c: Replace occurences of 'tolower' with
1159 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1161 * config/tc-ia64.c (dot_vframesp): Correct error message.
1162 (dot_vframepsp): Ditto.
1164 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1166 * configure.in (em): Set to irix on all Irix systems.
1167 * configure: Rebuilt.
1168 * config/te-irix.h: New file.
1169 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1170 whether to use Irix-specific 64-bit format.
1172 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1174 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1176 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1178 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1179 (tc_gen_reloc): Handle TLS relocs.
1180 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1181 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1183 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1184 (obj_elf_type): Handle tls_object.
1186 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1188 * config/tc-s390.c (s390_tls_suffix): New function.
1189 (elf_suffix_type): Add suffix enums for TLS relocations.
1190 (s390_elf_suffix): Add suffix strings for TLS relocations.
1191 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1193 (md_gather_operands): Map new instruction operand/elf suffix
1194 combinations for TLS to bfd relocations.
1195 (tc_s390_fix_adjustable): Add new TLS relocations.
1196 (tc_s390_force_relocation): Likewise.
1197 (md_apply_fix3): Likewise.
1199 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1201 * as.h: Update copyright date.
1202 * symbols.c: Likewise.
1203 * config/tc-d10v.h: Likewise.
1204 * config/tc-fr30.h: Likewise.
1205 * config/tc-i960.h: Likewise.
1206 * config/tc-mips.h: Likewise.
1208 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1209 (MD_APPLY_SYM_VALUE): Move.
1211 2003-01-23 Nick Clifton <nickc@redhat.com>
1213 * NEWS: Announce sh2e support.
1216 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1217 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1218 (sh_elf_final_processing): Handle arch_sh2e.
1220 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1222 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1223 * symbols.h (S_FORCE_RELOC): Likewise.
1224 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1225 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1226 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1227 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1228 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1229 * write.c (generic_force_reloc): New function.
1230 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1231 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1232 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1233 * as.h (generic_force_reloc): Declare.
1234 * doc/internals.texi (S_FORCE_RELOC): Update.
1235 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1237 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1238 generic_force_reloc.
1239 (alpha_fix_adjustable): Likewise.
1240 * config/tc-arm.c (arm_force_relocation): Likewise.
1241 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1242 * config/tc-frv.c (frv_force_relocation): Likewise.
1243 * config/tc-i386.c (md_apply_fix3): Likewise.
1244 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1245 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1246 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1247 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1248 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1249 * config/tc-mips.c (mips_force_relocation): Likewise.
1250 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1251 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1252 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1253 * config/tc-sh.c (sh_force_relocation): Likewise.
1254 (md_pcrel_from_section): Likewise.
1255 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1256 * config/tc-v850.c (v850_force_relocation): Likewise.
1257 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1258 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1259 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1260 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1262 * config/tc-d10v.c (d10v_force_relocation): Delete.
1263 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1264 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1265 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1266 * config/tc-fr30.c (fr30_force_relocation): Delete.
1267 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1268 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1269 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1270 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1271 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1272 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1273 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1274 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1275 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1276 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1277 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1278 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1279 * config/tc-i386.c (i386_force_relocation): Delete.
1280 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1282 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1283 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1284 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1285 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1287 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1288 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1290 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1292 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1293 sh64_elf_section_data.
1294 * config/tc-sh64.h: Include elf32-sh64.h.
1295 * config/tc-m68hc11.c: Don't include stdio.h.
1296 (md_show_usage): Fix missing continuation.
1297 * Makefile.am: Run "make dep-am".
1298 * Makefile.in: Regenerate.
1300 2003-01-22 Nick Clifton <nickc@redhat.com>
1302 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1304 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1306 * configure.in: Handle *-*-aros*.
1307 * configure: Regenerated from configure.in.
1309 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1311 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1312 gotplt and pltoff relocations.
1313 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1314 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1315 gotplt and pltoff to bfd relocations.
1316 (md_gather_operands): Map new instruction operand/elf suffix
1317 combinations to bfd relocations.
1318 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1319 to the list of unadjustable relocations.
1320 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1321 and pltoff relocations.
1322 (md_apply_fix3): Add the new relocations.
1324 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1326 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1327 with a subsy symbol.
1329 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1331 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1332 of relocs for memory bank addressing.
1334 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1336 * config/tc-m68hc11.c (md_show_usage): Update usage.
1337 (md_parse_option): Recognize -m68hcs12.
1338 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1340 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1342 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1344 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1346 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1348 * Makefile.am: Run "make dep-am".
1349 * Makefile.in: Regenerate.
1350 * po/POTFILES.in: Regenerate.
1352 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1354 * read.c (get_absolute_expr): New, split out from..
1355 (get_absolute_expression): ..here.
1356 * read.h (get_absolute_expr): Declare.
1357 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1358 Trim size to arch bits_per_address, and test for negative input
1359 via get_absolute_expr.
1361 2003-01-07 DJ Delorie <dj@redhat.com>
1363 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1365 (xstormy16_md_apply_fix3): Use adjustment.
1367 2003-01-02 Ben Elliston <bje@redhat.com>
1369 * configure.in: Add iq2000-elf target.
1370 * configure: Regenerate.
1371 * config/tc-iq2000.c: New file.
1372 * config/tc-iq2000.h: Likewise.
1373 * po/gas.pot: Regenerate.
1375 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1377 * config/tc-mips.c: Update copyright years to include 2003.
1378 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1379 Additionally, clean up their code slightly and clean up their
1382 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1384 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1386 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1388 * doc/Makefile.in: Regenerate.
1390 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1392 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1393 of .init and .fini sections for array initializers and finalizers.
1395 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1397 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1398 the "+D" operand, which will be used only by the disassembler.
1400 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1402 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1404 * configure: Regenerate.
1405 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1406 (macro_build): Handle "K" operand.
1407 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1408 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1409 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1410 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1411 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1412 (validate_mips_insn): Implement "+" as a way to extend the
1413 allowed operands, and implement "K", "+A", "+B", and "+C"
1415 (OPTION_MIPS32R2): New define.
1416 (md_longopts): Add entry for OPTION_MIPS32R2.
1417 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1418 (md_parse_option): Handle OPTION_MIPS32R2.
1419 (s_mipsset): Reimplement handling of ".set mipsN" options
1420 and add support for ".set mips32r2".
1421 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1422 (md_show_usage): Document "-mips32r2" option.
1423 * doc/as.texinfo: Document "-mips32r2" option.
1424 * doc/c-mips.texi: Likewise.
1426 2002-12-30 Dmitry Diky <diwil@mail.ru>
1428 * configure.in: Add msp430 target.
1429 * configure: Regenerate.
1430 * Makefile.am: Add msp430 target.
1431 * Makefile.in: Regenerate.
1432 * config/tc-msp430.c: New file: msp430 assembler.
1433 * config/tc-msp430.h: New file: target macros for msp430.
1434 * doc/Makefile.am: Add msp430 target.
1435 * doc/Makefile.in: Regenerate.
1436 * doc/as.texinfo: Include msp430 documenation.
1437 * doc/all.texi: Enable msp430 documentation.
1438 * doc/c-msp430.texi: New file: document msp430 specific features
1441 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1443 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1444 (dwarf2_finish): Use it.
1445 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1446 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1448 2002-12-20 DJ Delorie <dj@redhat.com>
1450 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1451 BFD_RELOC_XSTORMY16_12.
1453 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1455 * doc/as.texinfo (Invoking): Typo fix.
1456 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1458 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1460 * doc/c-alpha.texi: Fix typos.
1461 * doc/c-arm.texi: Likewise.
1462 * doc/c-d10v.texi: Likewise.
1463 * doc/c-i370.texi: Likewise.
1464 * doc/c-i960.texi: Likewise.
1465 * doc/c-ia64.texi: Likewise.
1466 * doc/c-mmix.texi: Likewise.
1467 * doc/c-ns32k.texi: Likewise.
1468 * doc/c-pdp11.texi: Likewise.
1469 * doc/c-pj.texi: Likewise.
1470 * doc/c-sh64.texi: Likewise.
1471 * doc/c-sparc.texi: Likewise.
1472 * doc/c-tic54x.texi: Likewise.
1473 * doc/c-v850.texi: Likewise.
1474 * doc/c-vax.texi: Likewise.
1475 * doc/internals.texi: Likewise.
1477 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1479 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1480 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1481 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1482 arrange not to issue warnings about use of AT when AT is not
1485 2002-12-17 Nick Clifton <nickc@redhat.com>
1487 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1488 prevent it being confused with -k.
1490 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1492 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1493 has already been set up, use it.
1495 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1497 * ChangeLog-9295: Fix a typo.
1499 * config/tc-d10v.c: Fix a comment typo.
1500 * config/tc-dlx.c: Likewise.
1501 * config/tc-h8300.h: Likewise.
1502 * config/tc-h8500.h: Likewise.
1503 * config/tc-mips.c: Likewise.
1504 * config/tc-s390.c: Likewise.
1505 * config/tc-sh.h: Likewise.
1506 * config/tc-tic80.h: Likewise.
1507 * config/tc-w65.h: Likewise.
1508 * config/tc-z8k.c: Likewise.
1509 * config/tc-z8k.h: Likewise.
1510 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1512 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1514 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1515 Simplify sign extension. Remove redundant unsigned < 0 test.
1516 * config/tc-i960.c (md_ri_to_chars): Prototype.
1517 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1518 (dump_literals): Init brarsym, and test later instead of isforce.
1520 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1521 (parse): Constify line and lineptr.
1522 (md_begin): Calculate endop here.
1524 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1526 * config/obj-vms.c: Formatting. Include fnctl.h.
1527 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1528 (Object_Record_Offset): Make it a size_t.
1529 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1530 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1531 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1532 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1533 (vms_fixup_data_section <data_size>): Add here instead.
1534 * config/e-criself.c: Fix typo in last change.
1536 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1538 * write.c (write_object_file): Fix signed/unsigned warning.
1539 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1540 * config/e-criself.c (criself_bfd_name): Prototype.
1541 * config/obj-aout.c (s_sect): Remove unused function.
1542 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1543 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1544 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1545 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1546 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1547 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1548 (vms_fixup_text_section <text_siz>): Likewise.
1549 (synthesize_data_segment <data_size>): Likewise.
1550 (vms_fixup_xtors_section <sect_no>): Likewise.
1551 (structure_count): Don't use implicit int type.
1552 * config/tc-a29k.c (insert_sreg): Prototype.
1553 (define_some_regs): Prototype, make static.
1554 (parse_operand): Likewise.
1555 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1556 (md_show_usage <stream>): Likewise.
1557 (md_section_align <segment>): Likewise.
1558 (md_convert_frag <all args>): Likewise.
1559 (md_estimate_size_before_relax <all args>): Likewise.
1560 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1561 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1562 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1563 (md_undefined_symbol <name>): Likewise.
1564 (md_convert_frag <all args>): Likewise.
1565 (write_long <opcode>): Likewise.
1566 (tc_gen_reloc <seg>): Likewise.
1567 (md_estimate_size_before_relax <all args>): Likewise.
1568 (md_apply_fix3 <seg>): Likewise.
1569 (s_d30v_align <ignore>): Likewise.
1570 (build_insn): Correct format string.
1571 (md_apply_fix3): Likewise.
1572 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1573 (md_undefined_symbol <name>): Likewise.
1574 (md_convert_frag <all args>): Likewise.
1575 (md_cgen_lookup_reloc <insn>): Likewise.
1576 (md_begin): Delete unused vars.
1577 (md_assemble): Likewise.
1578 (md_estimate_size_before_relax): Likewise.
1579 (fr30_relax_frag): #if 0 out, seems unused.
1580 (md_atof): Remove declaration of atof_ieee.
1581 (restore_colon): Prototype.
1582 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1583 (frv_find_in_vliw): Likewise.
1584 (frv_debug_tomcat): Likewise.
1585 (frv_adjust_vliw_count): Likewise.
1586 (frv_tomcat_shuffle): Likewise.
1587 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1588 frv_find_in_vliw call.
1589 (md_atof): Remove declaration of atof_ieee.
1590 * config/tc-h8500.c (cons): Delete declaration.
1591 (md_begin <opcode>): Constify.
1592 (displacement_size, immediate_size, absolute_size): Remove.
1593 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1594 (tc_crawl_symbol_chain <headers>): Likewise.
1595 (md_undefined_symbol <name>): Likewise.
1596 (tc_headers_hook <headers>): Likewise.
1597 (md_parse_option <c,arg>): Likewise.
1598 (md_show_usage <stream>): Likewise.
1599 (md_convert_frag <headers, seg>): Likewise.
1600 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1601 (md_atof): Remove declaration of atof_ieee.
1602 (tc_aout_fix_to_chars): Remove unused function.
1603 (parse_reg): Prototype.
1604 (parse_exp): Prototype.
1605 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1606 (parse_reglist): Prototype.
1607 (get_operand): Prototype.
1608 (get_operands): Prototype.
1609 (get_specific): Prototype. Make "this_index" signed.
1610 (check): Prototype, make static.
1612 (build_relaxable_instruction): Prototype, make static.
1613 (build_bytes): Prototype.
1614 (wordify_scb): Prototype.
1615 * config/tc-h8500.h (start_label): Declare.
1616 (tc_coff_sizemachdep): Declare.
1617 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1618 (i370_rmode <unused>): Likewise.
1619 (i370_csect <unused>): Likewise.
1620 (i370_dc <unused>): Likewise.
1621 (i370_ds <unused>): Likewise.
1622 (i370_elf_lcomm <unused>): Likewise.
1623 (i370_ltorg <ignore>): Likewise.
1624 (i370_using <ignore>): Likewise.
1625 (i370_drop <ignore>): Likewise.
1626 (i370_byte <ignore>): Likewise.
1627 (i370_tc <ignore>): Likewise.
1628 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1629 (md_convert_frag <all args>): Likewise.
1630 (md_undefined_symbol <name>): Likewise.
1631 (md_pcrel_from_section <sec>): Likewise.
1632 (tc_gen_reloc <seg>): Likewise.
1633 (i370_section_letter): #if 0 unused functions.
1634 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1635 (symbol_locate): Prototype.
1636 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1637 (md_number_to_disp, md_number_to_field): Remove.
1638 (md_apply_fix3): Correct format string and cast "fup".
1639 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1640 (s_endian <ignore>): Likewise.
1641 (md_undefined_symbol <name>): Likewise.
1642 (tc_crawl_symbol_chain <headers>): Likewise.
1643 (tc_set_bal_of_call): Likewise.
1644 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1645 (i960_handle_align <fragp>): Likewise.
1646 (i960_validate_fix <this_segment_type>): Likewise
1647 (tc_gen_reloc <section>): Likewise.
1648 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1649 (struct memS, struct regop): Forward declare.
1650 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1651 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1652 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1653 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1654 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1655 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1656 (md_number_to_field): Likewise.
1657 (md_number_to_disp): Remove unused function.
1658 (md_atof): Remove declaration of atof_ieee.
1659 (md_apply_fix3): Correct md_number_to_imm call.
1660 * config/tc-ip2k.c (md_assemble): Warning fix.
1661 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1662 (fill_insn <ignore>): Likewise.
1663 (debug_sym <ignore>): Likewise.
1664 (md_undefined_symbol <name>): Likewise.
1665 (m32r_scomm <ignore>): Likewise.
1666 (md_convert_frag <abfd>): Likewise.
1667 (md_cgen_lookup_reloc <insn>): Likewise.
1668 (m32r_record_hi16 <seg>): Likewise.
1669 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1670 (allow_m32rx): Prototype.
1671 (first_writes_to_seconds_operands): Prototype.
1672 (writes_to_pc): Prototype.
1673 (can_make_parallel): Prototype.
1674 (make_parallel): Prototype.
1675 (target_make_parallel): Prototype.
1676 (assemble_two_insns): Prototype.
1677 (m32r_record_hi16): Prototype.
1678 (md_atof): Remove declaration of atof_ieee.
1679 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1680 (m32r_force_relocation): Prototype.
1681 (m32r_elf_section_change_hook): Prototype.
1682 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1683 (md_show_usage): Fix signed/unsigned warning.
1684 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1685 (calcop): Ditto for reg_prefix var.
1686 (hexval): Add cast to fix signed/unsigned warning.
1687 (md_number_to_disp): Delete unused function.
1688 (md_number_to_field): Likewise.
1689 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1690 (match_name): Prototype.
1691 (get_bf2): Prototype.
1692 (get_bf_offset_expression): Prototype.
1693 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1694 (md_undefined_symbol <ignore>): Likewise.
1695 (md_create_short_jump <all args>): Likewise.
1696 (md_create_long_jump <all args>): Likewise.
1697 (md_convert_frag <abfd, sec>): Likewise.
1698 (md_apply_fix3 <segment>): Likewise.
1699 (md_section_align <segment>): Likewise.
1700 (md_pcrel_from_section <sec>): Likewise.
1701 (tc_gen_reloc <section>): Likewise.
1702 (reg_m, reg_n, immediate): Delete unused vars.
1703 (dump_literals): Fix signed/unsigned warning.
1704 (enter_literal): Likewise.
1705 (parse_imm): Likewise. Also fix format string.
1706 (parse_mem): Remove unused var.
1707 (md_assemble <LS>): Abort on unexpected inst.
1708 (md_atof): Remove declaration of atof_ieee.
1709 (md_parse_option): Remove unused vars.
1710 (md_apply_fix3): Fix format strings, cast args.
1711 (tc_gen_reloc): Delete unused var.
1712 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1713 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1714 (md_undefined_symbol <name>): Likewise.
1715 (md_convert_frag <abfd>): Likewise.
1716 (tc_gen_reloc <seg>): Likewise.
1717 (check_operand <insn>): Likewise.
1718 (md_convert_frag): Fix format strings.
1719 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1720 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1721 (md_atof): Remove declaration of atof_ieee.
1722 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1723 (md_apply_fix3): Fix bogus >>='s.
1724 (md_undefined_symbol): Delete unused var.
1725 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1726 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1727 (fake_opcode): Adjust for pj_opc_int_t change.
1728 (md_begin): Likewise.
1729 (md_assemble): Likewise.
1730 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1731 instead of non-existent third arg of parse_exp_save_ilp.
1732 (md_parse_option): Correct "little" and "big" calls.
1733 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1734 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1735 (tc_gen_reloc <section>): Likewise.
1736 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1737 (debug): Rewrite using VA_* macros.
1738 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1739 (md_convert_frag): Likewise.
1740 (md_parse_option): Likewise.
1741 (md_show_usage): Likewise.
1742 (md_undefined_symbol): Likewise.
1743 (tc_gen_reloc): Likewise.
1744 (md_operand): Likewise.
1745 (tc_aout_pre_write_hook): Delete.
1746 (struct tic30_insn): Make "operands" unsigned.
1747 (struct tic30_par_insn): Likewise.
1748 (md_assemble): Likewise for "count", "i" and "numops".
1749 (tic30_parallel_insn): Likewise for vars here.
1750 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1751 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1752 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1753 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1754 (md_undefined_symbol): Likewise.
1755 (md_parse_option): Likewise.
1756 (md_convert_frag): Likewise.
1757 (tc_coff_symbol_emit_hook): Likewise.
1758 (md_atof): Remove declaration of atof_ieee.
1759 (const_overflow): Warning fixes, tidy.
1760 (get_operands): Delete unused vars.
1761 (internal_error_a): Adjust format string to expect a long for arg.
1762 (find_opcode): Warning fixes, simplify.
1763 (build_insn): Cast internal_error_a arg.
1764 (md_begin): Likewise.
1765 (md_apply_fix3): Likewise.
1766 (md_assemble): Delete unused var.
1767 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1768 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1769 (whatreg, parse_reg, parse_exp): Make static, prototype.
1770 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1771 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1772 (get_operand, get_operands, get_specific, newfix): Likewise.
1773 (apply_fix, build_bytes): Likewise.
1774 (md_atof): Remove declaration of atof_ieee.
1775 (tc_aout_fix_to_chars): Delete.
1776 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1778 (md_parse_option): Fix s_segm and s_unseg calls.
1780 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1782 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1784 (RELAX_BRANCH_RELOC_S2): Delete.
1785 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1786 Do not handle BFD_RELOC_16_PCREL.
1787 (macro_build, mips_ip): Likewise.
1788 (md_pcrel_from): Return 4 for undefined symbols regardless of
1790 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1791 Don't dereference howto if no such relocation is available.
1792 Do not apply hack for in-place zero addend in NEWABI.
1793 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1795 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1796 Alan Modra <amodra@bigpond.net.au>
1798 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1799 (TC_LINKRELAX_FIXUP): Add comments.
1801 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1803 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1805 (r_register_name, xr_register_name): Add prototype declarations.
1807 2002-12-08 H.J. Lu <hjl@gnu.org>
1809 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1810 copied from tc-i386.c.
1812 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1814 Fix Bug savannah/1825:
1815 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1816 (md_relax_table): Define specific relax for PC-rel offsets.
1817 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1818 (m68hc11_relax_frag): Handle the new relax code.
1819 (md_convert_frag): Likewise.
1820 (md_estimate_size_before_relax): Likewise.
1822 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1824 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1826 2002-12-05 Richard Henderson <rth@redhat.com>
1828 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1829 (ia64_gen_real_reloc_type): Handle it.
1830 (pseudo_func): Add @ltoffx.
1831 (md_begin): Build .<ltoffx>.
1832 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1834 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1836 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1837 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1838 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1839 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1840 COFF to call arm_force_relocation.
1842 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1844 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1846 (emit_one_bundle): Handle "hint" instruction.
1847 (operand_match): Match IA64_OPND_AR_CSD.
1849 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1851 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1854 2002-12-03 Nick Clifton <nickc@redhat.com>
1856 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1857 .PPC.EMB.apuinfo sections.
1859 2002-12-03 Richard Henderson <rth@redhat.com>
1861 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1863 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1865 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1866 (cons, s_align_bytes): Delete declaration.
1868 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1870 (dot): Delete unused function.
1871 (w65_expression): Remove unused arg.
1872 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1874 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1876 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1878 (check): Remove unused function.
1879 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1880 on unhandled switch case.
1881 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1883 (tc_crawl_symbol_chain): Delete unused function.
1884 (tc_headers_hook): Likewise.
1885 (tc_Nout_fix_to_chars): Likewise.
1886 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1887 (md_parse_option): Likewise.
1888 (md_convert_frag): Likewise.
1889 (tc_coff_symbol_emit_hook): Likewise.
1890 (md_show_usage): Likewise.
1891 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1892 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1893 (w65_expression): Declare.
1895 * po/POTFILES.in: Regenerate.
1897 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1898 and ARM_ADRL_IMMEDIATE.
1900 2002-12-02 Nick Clifton <nickc@redhat.com>
1902 * gasp.c: Delete. It has been deprecated.
1903 * NEWS: Mention that gasp has been removed.
1904 * Makefile.am: Remove references to gasp.
1905 * makefile.vms: Likewise.
1906 * mpw-make.sed: Likewise.
1907 * Makeile.in: Regenerate.
1908 * doc/gasp.texi: Delete.
1909 * doc/Makefile.am: Remove references to gasp.texi.
1910 * doc/Makefile.in: Regenerate.
1911 * macro.c: Delete references to gasp.
1912 Remove use of comment_char function parameter as it is no longer
1914 * macro.h: Update prototypes to remove comment_char parameter.
1916 * read.c (read_a_source_file, s_irp): Remove comment_char
1917 parameter from invocation of functions in macro.c
1919 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1921 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1923 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1925 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1926 (tc_gen_reloc): Mark section param as not used.
1928 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1930 Fix Bug savannah/1825:
1931 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1932 that are not pc-relative.
1933 (m68hc11_relax_frag): Declare.
1935 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1936 the offsetable indexed addressing modes (n,r).
1937 (build_insn): Cleanup some locals.
1938 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1939 relaxation of difference between two symbols of same section.
1940 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1941 only when this is a PC-relative operand and the offset is not absolute.
1942 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1943 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1944 be handled by m68hc11_relax_frag.
1946 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1948 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1949 (32-bit int, 64-bit double).
1950 (md_longopts): New options -mshort, -mlong, -mshort-double and
1951 -mlong-double to control the ABI.
1952 (md_show_usage): Update.
1953 (md_parse_option): Handle new options.
1954 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1956 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1958 * symbols.c (report_op_error): New function, broken out of ...
1959 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1962 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1964 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1965 for BFD_RELOC_32_PLT_PCREL.
1967 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1969 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1970 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1971 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1972 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1973 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1974 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1975 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1976 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1977 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1978 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1979 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1980 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1981 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1982 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1983 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1984 TRUE/FALSE. Formatting.
1986 2002-11-29 Nick Clifton <nickc@redhat.com>
1988 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1989 assume a value of zero.
1990 (do_bkpt): Likewise.
1992 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1994 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1995 for TLS relocations.
1997 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1999 * config/tc-ia64.c (md_apply_fix3): Add default case.
2001 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2003 * symbols.c (S_SET_THREAD_LOCAL): New function.
2004 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
2005 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
2006 for TLS relocations.
2007 * config/tc-ia64.c (md_apply_fix3): Likewise.
2008 * config/tc-alpha.c (md_apply_fix3): Likewise.
2010 2002-11-28 Jakub Jelinek <jakub@redhat.com>
2012 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
2015 2002-11-26 DJ Delorie <dj@redhat.com.
2017 * dwarf2dbg.c (scale_addr_delta): New.
2018 (size_inc_line_addr): Use it.
2019 (emit_inc_line_addr): Use it.
2021 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
2023 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
2024 (md_assemble): Don't pass on branches to constants as relaxable.
2027 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
2029 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
2031 2002-11-21 Randolph Chung <randolph@tausq.org>
2033 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
2034 only if they have default visibility.
2036 2002-11-21 Richard Henderson <rth@redhat.com>
2038 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2041 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2043 * config/tc-mcore.c (mcore_pool_count): New function.
2044 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2046 2002-11-20 Klee Dienes <kdienes@apple.com>
2048 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2049 coalesce the name fields to use the same pointer.
2051 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2052 the name fields to use the same pointer.
2053 (get_specific): Check for opcodes with the same name using strcmp
2054 as well as comparing the pointer.
2056 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2058 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2061 2002-11-19 Richard Henderson <rth@redhat.com>
2063 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2064 visibility portion of st_other.
2066 2002-11-19 Klee Dienes <kdienes@apple.com>
2068 * config/tc-h8300.c (struct h8_instruction): New type, used to
2069 wrap h8_opcodes with length, noperands, idx, and size fields
2070 (computed at run-time).
2071 (h8_instructions): New variable.
2072 (md_begin): Allocate the storage for h8_instructions. Fill
2073 h8_instructions with pointers to the appropriate opcode and the
2074 correct value for the additional fields.
2075 (clever_message): Update to use h8_instructions instead of
2077 (build_bytes): Ditto.
2078 (get_specific): Ditto.
2079 (md_assemble): Ditto.
2081 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2083 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2084 adjustments to symbols in merge sections.
2086 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2088 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2090 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2092 * dwarf2dbg.h (dwarf2_format): New enum.
2093 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2094 (out_debug_line, out_debug_info): Add code for handling 64-bit
2096 * config/tc-mips.h (mips_dwarf2_format): Declare.
2097 * config/tc-mips.c (mips_dwarf2_format): New function.
2098 * doc/internals.texi (DWARF2_FORMAT): Document.
2100 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2102 * config/tc-mips.c (s_change_section): Make sure input buffer
2103 is not accessed past the end. Don't hand
2104 obj_elf_change_section a pointer into the input buffer.
2106 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2108 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2111 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2113 * config/tc-tic4x.c: Fixed proper commandline
2114 parameters. Added support for new opcode-list format. General
2115 error message fixups.
2116 (c4x_inst_add): Reject insn not for our CPU
2117 (md_begin): Added matrix for setting the proper opcode-level &
2118 device-flags according to cpu type and revision. Rewrite the
2120 (c4x_operand_parse): Fix opcode bug
2121 (c4x_operands_match): New function argument. Added dry-run
2122 mechanism, that is optional error generation. Added constraint 'i'
2124 (c4x_insn_check): Added new function for post-verification of the
2126 (md_assemble): Check all opcodes before croaking because of an
2127 argument mismatch. Need this to be able to fully support
2128 ortogonally arguments.
2129 (md_parse_options): Revised commandprompt swicthes and added new
2131 (md_show_usage): Complete rewrite of printout.
2133 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2135 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2136 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2137 warning when using constant direct bigger than 2^16. Add the new
2140 2002-11-11 Christopher Faylor <cgf@redhat.com>
2142 * configure.in: Use .gdbinit under Cygwin.
2143 * configure: Regenerate.
2145 2002-11-11 Christopher Faylor <cgf@redhat.com>
2147 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2150 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2152 * config/tc-tic4x.c: Declare as many functions as possible as
2153 static. Maintenance on the general indenting. Removed unnecessary
2154 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2155 function. Add support for new DSP, TMS320VC33. Fix bug for
2156 converting flonum constants.
2157 (c4x_do_align): Add proper align handling. Setup align to insert
2159 (c4x_gen_to_words): Support for extended TI type floats.
2160 (md_atof): Proper dumping of multiple-word littlenums.
2161 (c4x_atof): Added support for extended TI type floats.
2162 (c4x_stringer): Added new function to handle compact strings.
2163 (c4x_emit_char): Added new function argument to handle custom
2164 length inserts, like single-byte strings.
2165 * config/tc-tic4x.h: Add proper align handling with NOP's.
2166 * Makefile.am: Added tic4x dependecy
2167 * Makefile.in: Regenerate
2169 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2171 * macro.c (get_any_string): Correct logic for not going beyond end
2174 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2176 * config/tc-mmix.c (get_putget_operands): Mark both possible
2177 operands as invalid at beginning.
2179 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2180 Initialize target of fixup to zero.
2182 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2184 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2185 NEWABI, but we should still emit HI16_S for non-PIC n32.
2187 2002-11-06 Richard Henderson <rth@redhat.com>
2189 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2190 (alpha_fix_adjustable): ... here.
2191 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2193 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2195 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2198 2002-11-05 H.J. Lu <hjl@gnu.org>
2200 * config/tc-mips.c (support_64bit_objects): Check *l before it
2203 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2205 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2206 SEC_LOAD flags for sections marked as 's'.
2208 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2210 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2211 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2212 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2215 * dep-in.sed: Fix typo.
2217 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2219 * configure.in: Update ARM CPU patterns.
2220 * configure: Regenerated.
2222 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2224 * itbl-lex.l: Use #include <> for generated headers.
2225 * itbl-ops.c: Likewise.
2227 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2229 * doc/gasp.texi: Fix typo in deprecation note.
2231 2002-10-23 Nick Clifton <nickc@redhat.com>
2233 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2234 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2236 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2238 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2239 (tc_frob_file_before_adjust): Don't define.
2240 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2242 (mmix_frob_file_before_adjust): Remove ineffective function.
2244 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2246 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2247 (cris_relax_frag): New function.
2248 (md_estimate_size_before_relax) <case ENCODE_RELAX
2249 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2250 expressions that will become absolute expressions to relaxation.
2251 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2252 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2253 value, not distance to symbol.
2254 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2255 Ditto. Correct placement of fixup.
2256 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2258 * config/tc-cris.h (cris_relax_frag): Declare.
2259 (md_relax_frag): Define.
2261 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2263 * config/obj-elf.c (special_sections): Use correct types for init
2265 (obj_elf_change_section): Don't mess with init array section type.
2267 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2269 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2270 for relocs against symbols in a merged section.
2272 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2274 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2275 table as register names.
2277 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2279 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2282 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2284 * expr.c (operand): Add support for n.nn flonums.
2286 2002-10-17 Johannes Stezenbach <js@convergence.de>
2288 * itbl-parse.y (entry): Provide empty action.
2290 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2292 * configure.in (BFDVER_H): Set and subst.
2293 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2294 * Makefile.am: Run "make dep-am".
2296 * configure: Regenerate.
2297 * Makefile.in: Regenerate.
2298 * doc/Makefile.in: Regenerate.
2300 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2302 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2303 (MD_APPLY_SYM_VALUE): Define for PE too.
2305 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2307 * Makefile.am: Run "make dep-am".
2308 (CPU_OBJ_VALID): sh64 coff is invalid.
2309 * as.c: #include "bfdver.h".
2310 * Makefile.in: Regenerate.
2311 * config.in: Regenerate.
2313 2002-10-14 Momchil Velikov <velco@fadata.bg>
2315 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2317 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2319 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2320 * configure: Regenerate.
2322 2002-10-13 Eric Christopher <echristo@redhat.com>
2323 Alexandre Oliva <aoliva@redhat.com>
2325 * config/tc-mips.c (s_gpdword): New function.
2326 (mips_pseudo_table): Add .gpdword.
2327 (mips_need_elf_addend_fixup): never for NEWABI.
2328 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2330 (s_cpadd): Generate .cpadd on NEWABI.
2332 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2334 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2336 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2338 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2339 (md_relax_frag): Adjust macro.
2340 * config/tc-mips.c (mips_relax_branch): New variable.
2341 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2342 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2343 (RELAX_MIPS16_P): Adjust.
2344 (append_insn): Emit branch to non-constant in a frag_var if
2345 branch-relaxation is desirable and possible.
2346 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2347 (OPTION_ELF_BASE): Adjust.
2348 (md_parse_option): Handle new options.
2349 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2351 (relaxed_branch_length): New function.
2352 (md_estimate_size_before_relax): Handle branch frags.
2353 (mips_relax_frag): Likewise.
2354 (md_convert_frag): Handle branch frags. Warn if branch is
2357 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2359 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2361 (md_apply_fix3): Add TLS relocs.
2362 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2365 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2366 Alan Modra <amodra@bigpond.net.au>
2368 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2369 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2371 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2373 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2376 2002-10-09 Richard Shann <richard.shann@superh.com>
2377 Stephen Clarke <stephen.clarke@superh.com>
2379 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2382 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2384 * contig/tc-sh.c (sh_local_pcrel): New.
2385 (sh_force_relocation): Use sh_local_pcrel.
2386 (md_pcrel_from_section): Check the relocation type whether it
2387 should be resolved locally. Use S_FORCE_RELOC.
2389 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2391 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2392 (TC_FORCE_RELOCATION): Tidy arg.
2394 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2395 Ken Raeburn <raeburn@cygnus.com>
2396 Aldy Hernandez <aldyh@redhat.com>
2397 DJ Delorie <dj@redhat.com>
2398 Michael Meissner <meissner@redhat.com>
2399 Eric Christopher <echristo@redhat.com>
2400 Richard Sandiford <rsandifo@redhat.com>
2402 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2403 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2404 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2405 (hilo_interlocks): True for CPU_VR5500.
2406 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2407 (mips_fix_vr4122_bugs): New.
2408 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2409 (mips_emit_delays): Likewise.
2410 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2411 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2412 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2413 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2414 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2415 (OPTION_ELF_BASE): Bump.
2416 (md_parse_option): Handle the new options.
2417 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2420 2002-09-29 H.J. Lu <hjl@gnu.org>
2422 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2423 twice if howto->pcrel_offset is true.
2425 2002-09-28 Matt Thomas <matt@3am-software.com>
2426 Jason Thorpe <thorpej@wasabisystems.com>
2428 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2429 convert undefined references to GOT32/PLT32 if PIC code is
2430 requested. Fix comment.
2432 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2434 * config/tc-sh.c (sh_force_relocation): Return 0 for
2435 some PC relative relocations when not relaxing.
2437 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2439 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2440 Define them if not BFD_ASSEMBLER.
2441 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2443 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2444 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2445 (tc_gen_reloc): Handle x86-64 TLS relocs.
2447 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2449 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2450 fixups to current or absolute section.
2452 2002-09-26 Jim Wilson <wilson@redhat.com>
2454 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2457 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2459 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2460 capable configuration.
2461 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2463 (mips_ip): Likewise.
2465 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2467 * config/tc-mips.c (append_insn): Fix jump overflow check.
2469 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2471 * config/tc-i386.c (process_operands): Warn about "lea" segment
2474 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2476 * write.c: Delete set_segment_vma and prototype. Update all callers.
2478 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2480 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2481 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2482 Rename "fseg" to "sym_seg".
2483 * Makefile.am: Run "make dep-am".
2484 * Makefile.in: Regenerate.
2485 * doc/Makefile.in: Regenerate.
2487 2002-09-20 Nick Clifton <nickc@redhat.com>
2489 * symbols.c (colon): Do not allow symbols to be created in the
2490 absolute section if WORKING_DOT_WORD is not defined and
2491 new_broken_words would require a new frag to be created.
2493 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2495 * expr.c (expr): Simplify foo-foo here.
2496 (clean_up_expression): Remove O_subtract code.
2498 * write.h (struct fix): Add fx_dot_value.
2499 (dot_value): Declare.
2500 * write.c (dot_value): New var.
2501 (fix_new_internal): Save dot_value as fx_dot_value.
2502 (fixup_segment): Adjust fx_offset using fx_dot_value.
2503 * expr.c (expr): Update dot_value.
2505 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2507 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2508 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2509 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2511 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2512 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2513 BFD_RELOC_386_TLS_GOTIE.
2515 2002-09-19 Richard Henderson <rth@redhat.com>
2517 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2519 (alpha_force_relocation): Don't special-case branch type relocs.
2521 2002-09-19 Nick Clifton <nickc@redhat.com>
2523 * config/tc-m68k.c (select_control_regs): Handle situation where
2524 architecture has not yet been selected.
2526 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2528 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2529 (IS_SEXT_16BIT_NUM): New macro.
2530 (macro_build_ldst_constoffset): New function, to build a set of
2531 instructions to do a load or store from a constant offset relative
2532 to a given register.
2533 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2534 .cprestore pseudo-op.
2536 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2538 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2540 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2542 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2544 2002-09-17 Stan Cox <scox@redhat.com>
2546 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2547 (macro): Likewise for la. Likewise for ld.
2548 (mips_after_parse_args): Make -xgot optional, not the default.
2549 (md_apply_fix3): Allow composite relocation to set up gp.
2550 (tc_gen_reloc): Allow relaxing for newabi.
2551 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2552 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2554 2002-09-17 Nick Clifton <nickc@redhat.com>
2556 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2557 BFD_RELOC_ARM_IMMEDIATE has been done.
2558 (tc_gen_reloc): Do not issue reloc number of unimplemented
2559 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2560 their name is already in the error message - plus remove them
2561 from the default case.
2563 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2564 behavior of instructions.
2566 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2568 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2569 Convert functions to K&R format.
2571 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2573 * config/tc-mips.c (pdr_seg): Define only for ELF.
2574 (s_change_section): Remove unused variable. Don't use for nonELF.
2576 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2578 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2580 * config/obj-elf.h (obj_elf_change_section): Likewise.
2582 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2584 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2585 (out_debug_info): Likewise.
2587 2002-09-16 Bruno Haible <bruno@clisp.org>
2589 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2590 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2591 * config/tc-i386.c (i386_target_format): Likewise.
2592 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2593 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2595 2002-09-13 Nick Clifton <nickc@redhat.com>
2597 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2598 when deciding if any operands have been skipped.
2600 2002-09-11 Nick Clifton <nickc@redhat.com>
2602 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2604 * po/tr.po: Updated Turkish translation.
2606 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2608 * config/tc-i386.c (md_apply_fix3): Allow addend for
2609 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2610 BFD_RELOC_386_TLS_LE_32.
2612 2002-09-05 Jeff Law <law@redhat.com>
2614 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2615 marker relocations such as ENTRY/EXIT.
2616 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2617 to both OBJ_ELF and OBJ_SOM.
2619 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2621 * doc/internals.texi (md_apply_fix3): Expand.
2622 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2623 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2624 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2625 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2626 EXTERN_FORCE_RELOC): Document.
2627 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2628 * as.h: Don't include struc-symbol.h for arc.
2630 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2631 subtract absolute symbol.
2632 * obj.h (struct format_ops): Add frob_file_before_fix.
2633 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2634 * symbols.c (S_FORCE_RELOC): New function.
2635 * symbols.h (S_FORCE_RELOC): Declare.
2636 * write.c (TC_FORCE_RELOCATION): Change default.
2637 (TC_FORCE_RELOCATION_ABS): Define.
2638 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2639 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2640 (TC_FORCE_RELOCATION_SECTION): Don't define.
2641 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2642 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2643 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2644 (TC_VALIDATE_FIX_SUB): Define.
2645 (TC_FIX_ADJUSTABLE): Don't define.
2646 (MD_APPLY_SYM_VALUE): Define this instead.
2647 (abs_section_sym): New variable.
2648 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2649 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2650 Don't put the absolute section sym on fixups here.
2651 (fix_segment): New function.
2652 (write_relocs): Don't call fixup_segment from here.
2653 (write_object_file): Instead call tc_frob_file_before_fix,
2654 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2655 Don't output the absolute section symbol.
2656 (fixup_segment): Rewrite.
2657 * write.h (abs_section_sym): Declare.
2658 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2660 (aout_format_ops): Adjust to suit.
2661 * config/obj-aout.h (obj_frob_file): Don't define.
2662 (obj_frob_file_before_fix): Define.
2663 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2664 (S_FORCE_RELOC): Define.
2665 * config/obj-bout.h (S_FORCE_RELOC): Define.
2666 * config/obj-coff.c (coff_format_ops): Init new field.
2667 * config/obj-coff.h: Formatting fixes.
2668 (obj_sec_sym_ok_for_reloc): Define.
2669 (S_FORCE_RELOC): Define.
2670 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2671 (ecoff_frob_file): .. from here.
2672 (ecoff_format_ops): Add new function.
2673 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2674 (obj_frob_file_before_fix): Define.
2675 * config/obj-elf.c (elf_format_ops): Init new field.
2676 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2677 * config/obj-ieee.h: Formatting fixes.
2678 (S_FORCE_RELOC): Define.
2679 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2680 * config/obj-vms.h (S_FORCE_RELOC): Define.
2681 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2682 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2683 for BFD_RELOC_32 and BFD_RELOC_64.
2684 (alpha_fix_adjustable): Remove extern and weak tests.
2685 (alpha_before_fix): Rename from alpha_adjust_symtab.
2686 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2687 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2688 (TC_VALIDATE_FIX): Tweak param name.
2689 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2690 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2691 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2692 (MD_APPLY_SYM_VALUE): Define.
2693 (tc_adjust_symtab): Don't define.
2694 (alpha_adjust_symtab): Don't declare.
2695 (tc_frob_file_before_fix): Define.
2696 (alpha_before_fix): Declare.
2697 (TC_INIT_FIX_DATA): Tweak param names.
2698 * config/tc-arc.c: Include "struc-symbol.h".
2699 (md_pcrel_from): Remove undefined sym fudge.
2700 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2701 Don't set fx_addnumber.
2702 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2703 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2704 (EXTERN_FORCE_RELOC): Define.
2705 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2706 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2707 (arm_validate_fix): Return void.
2708 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2709 Add plt and got reloc tests.
2710 (arm_force_relocation): Call S_FORCE_RELOC.
2711 * config/tc-arm.h (struct fix): Forward declare.
2712 (TC_VALIDATE_FIX): No longer set add_symbolP.
2713 (arm_validate_fix): Adjust declaration.
2714 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2715 (TC_FORCE_RELOCATION): Tweak param name.
2716 (TC_INIT_FIX_DATA): Likewise.
2717 (obj_fix_adjustable): Don't define.
2718 (tc_fix_adjustable): Call arm_fix_adjustable.
2719 (TC_FIX_ADJUSTABLE): Don't define.
2720 (MD_APPLY_SYM_VALUE): Define.
2721 (EXTERN_FORCE_RELOC): Define.
2722 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2723 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2724 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2725 Remove *valP fudges and code to subtract abs sym. Don't set
2727 * config/tc-avr.h: Formatting.
2728 (EXTERN_FORCE_RELOC): Define.
2729 (MD_APPLY_SYM_VALUE): Define.
2730 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2731 (md_apply_fix3): Remove code to subtract abs sym.
2732 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2733 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2734 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2735 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2736 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2737 (tc_fix_adjustable): Remove extern, weak tests.
2738 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2739 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2740 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2741 and code to subtract abs sym.
2742 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2743 (d10v_force_relocation): Call S_FORCE_RELOC.
2744 * config/tc-d10v.h: Don't include write.h.
2745 (struct fix): Instead, forward declare.
2746 (MD_PCREL_FROM_SECTION): Tweak param names.
2747 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2748 (d10v_fix_adjustable): Likewise.
2749 (obj_fix_adjustable): Don't define.
2750 (tc_fix_adjustable): Define.
2751 (TC_FORCE_RELOCATION): Tweak param name.
2752 (MD_APPLY_SYM_VALUE): Define.
2753 (EXTERN_FORCE_RELOC): Define.
2754 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2755 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2756 and code to subtract abs sym.
2757 * config/tc-d30v.h: Don't include write.h.
2758 (struct fix): Instead, forward declare.
2759 (MD_PCREL_FROM_SECTION): Tweak param names.
2760 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2761 (MD_APPLY_SYM_VALUE): Define.
2762 (EXTERN_FORCE_RELOC): Define.
2763 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2764 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2765 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2766 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2767 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2768 Don't use fx_addnumber.
2769 * config/tc-dlx.h: Don't include write.h.
2770 (md_convert_frag): We're not alpha twice over.
2771 (EXTERN_FORCE_RELOC): Define.
2772 (obj_fix_adjustable): Don't define.
2773 (tc_fix_adjustable): Define.
2774 (TC_FIX_ADJUSTABLE): Don't define.
2775 (MD_APPLY_SYM_VALUE): Define.
2776 (LOCAL_LABELS_DOLLAR): Undef always.
2777 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2778 (fr30_fix_adjustable): Remove extern, weak tests.
2779 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2780 (obj_fix_adjustable): Don't define.
2781 (tc_fix_adjustable): Define.
2782 (struct fix): Forward declare.
2783 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2784 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2785 (frv_fix_adjustable): Don't do extern, weak tests.
2786 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2787 (TC_FIX_ADJUSTABLE): Don't define.
2788 (obj_fix_adjustable): Don't define.
2789 (tc_fix_adjustable): Define.
2790 (struct fix): Forward declare.
2791 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2792 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2793 * config/tc-h8300.h (struct fix): Forward declare.
2794 (EXTERN_FORCE_RELOC): Define.
2795 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2796 (hppa_fix_adjustable): Don't test extern or weak. Don't
2797 symbol_mark_used_in_reloc.
2798 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2800 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2801 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2802 (TC_FORCE_RELOCATION_SECTION): Don't define.
2803 (MD_APPLY_SYM_VALUE): Define.
2804 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2805 to subtract abs sym.
2806 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2807 (MD_APPLY_SYM_VALUE): Define.
2808 (MD_PCREL_FROM_SECTION): Tweak param name.
2809 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2810 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2811 (i386_force_relocation): New function.
2812 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2813 (TC_VALIDATE_FIX): Likewise.
2814 (TC_FIX_ADJUSTABLE): Don't define.
2815 (MD_APPLY_SYM_VALUE): Define.
2816 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2817 (i386_force_relocation): Declare.
2818 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2819 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2820 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2821 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2822 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2823 (EXTERN_FORCE_RELOC): Define.
2824 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2825 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2826 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2827 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2828 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2829 Remove #if 0 code. Invert return boolean.
2830 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2831 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2832 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2833 (tc_coff_sizemachdep): Prototype.
2834 (i960_handle_align): Likewise.
2835 (i960_validate_fix): Adjust declaration.
2836 (reloc_callj): Likewise.
2837 (EXTERN_FORCE_RELOC): Define.
2838 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2839 (TC_FORCE_RELOCATION_ABS): Define.
2840 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2841 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2842 (TC_FIX_ADJUSTABLE): Don't define.
2843 (MD_APPLY_SYM_VALUE): Define.
2844 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2845 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2846 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2847 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2848 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2849 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2850 (MD_APPLY_SYM_VALUE): Define.
2851 (EXTERN_FORCE_RELOC): Define.
2852 (TC_FORCE_RELOCATION): Tweak param name.
2853 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2854 (m32r_fix_adjustable): Don't test extern, weak.
2855 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2856 (MD_APPLY_SYM_VALUE): Define.
2857 (obj_fix_adjustable): Don't define.
2858 (tc_fix_adjustable): Define.
2859 (tc_frob_file): Don't define.
2860 (tc_frob_file_before_fix): Define.
2861 (EXTERN_FORCE_RELOC): Define.
2862 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2863 BFD_RELOC_VTABLE_ENTRY address.
2864 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2865 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2866 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2867 Remove duplicated fx_done code.
2868 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2869 (EXTERN_FORCE_RELOC): Define.
2870 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2872 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2873 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2874 (TC_FIX_ADJUSTABLE): Don't define.
2875 (EXTERN_FORCE_RELOC): Define.
2876 (MD_APPLY_SYM_VALUE): Define.
2877 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2878 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2879 Remove fx_addsy tests.
2880 (mcore_force_relocation): Call S_FORCE_RELOC.
2881 (mcore_fix_adjustable): Don't test fx_addsy.
2882 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2883 (EXTERN_FORCE_RELOC): Define.
2884 (obj_fix_adjustable): Don't define.
2885 (tc_fix_adjustable): Define.
2886 (MD_APPLY_SYM_VALUE): Define.
2887 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2888 (mips_pic): No longer static.
2889 (mips_force_relocation): Call S_FORCE_RELOC.
2890 (mips_fix_adjustable): Remove extern, weak tests.
2891 * config/tc-mips.h (enum mips_pic_level): Declare.
2892 (mips_pic): Declare.
2893 (tc_frob_file): Don't define.
2894 (tc_frob_file_before_fix): Define this instead.
2895 (EXTERN_FORCE_RELOC): Define.
2896 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2897 with reg_section tests. Set fx_done instead of calling
2898 symbol_clear_used_in_reloc on bad relocs.
2899 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2900 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2901 (mmix_adjust_symtab): Simplify list handling. Abort on any
2903 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2904 BFD_RELOC_MMIX_LOCAL.
2905 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2906 (EXTERN_FORCE_RELOC): Define.
2907 (MD_PCREL_FROM_SECTION): Tweak param name.
2908 (tc_frob_file): Don't define.
2909 (tc_frob_file_before_fix): Define this instead.
2910 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2911 Remove SEC_CODE checks.
2912 (mn10300_fix_adjustable): Remove extern and weak tests.
2913 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2914 (TC_FORCE_RELOCATION): Tweak param name.
2915 (obj_fix_adjustable): Don't define.
2916 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2917 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2918 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2919 (openrisc_fix_adjustable): Don't test fx_addsy.
2920 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2921 (obj_fix_adjustable): Don't define.
2922 (tc_fix_adjustable): Define this instead.
2923 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2924 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2925 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2926 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2927 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2928 (MD_APPLY_SYM_VALUE): Define.
2929 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2930 Don't subtract symbol value.
2931 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2932 (EXTERN_FORCE_RELOC): Define.
2933 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2934 (MD_APPLY_SYM_VALUE): Define.
2935 (obj_fix_adjustable): Don't define.
2936 (tc_fix_adjustable): Define this instead.
2937 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2939 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2940 (ppc_force_relocation <elf version>): New.
2941 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2942 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2943 comments. Don't subtract fx_subsy as that is already done.
2944 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2945 (MD_PCREL_FROM_SECTION): Likewise.
2946 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2947 ppc_force_relocation.
2948 (TC_FORCE_RELOCATION_SECTION): Delete.
2949 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2950 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2951 (MD_APPLY_SYM_VALUE): Define.
2952 * config/tc-s390.c: #include "dwarf2dbg.h".
2953 (s390_insn): Remove excess parens.
2954 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2955 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2956 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2957 non-NULL. Don't subtract off fx_addsy value.
2958 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2959 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2960 (TC_FIX_ADJUSTABLE): Don't define.
2961 (MD_APPLY_SYM_VALUE): Define.
2962 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2963 (SWITCH_TABLE): Likewise.
2964 (sh_force_relocation): Call S_FORCE_RELOC.
2965 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2966 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2967 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2968 fx_addnumber is zero on entry. Save val in fx_addnumber.
2969 (tc_gen_reloc): Don't subtract fx_subsy.
2970 * config/tc-sh.h (struct fix): Move.
2971 (obj_fix_adjustable): Don't define.
2972 (tc_fix_adjustable): Define this instead.
2973 (TC_FIX_ADJUSTABLE): Don't define.
2974 (MD_APPLY_SYM_VALUE): Define.
2975 (SWITCH_TABLE_CONS): Define.
2976 (SWITCH_TABLE): Define.
2977 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2978 (TC_VALIDATE_FIX_SUB): Define.
2979 (MD_PCREL_FROM_SECTION): Tweak param name.
2980 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2981 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2982 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2983 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2984 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2985 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2986 (TC_VALIDATE_FIX_SUB): Define.
2987 (MD_PCREL_FROM_SECTION): Tweak param name.
2988 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2989 (tc_gen_reloc): Use S_FORCE_RELOC.
2990 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2991 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2992 (TC_FORCE_RELOCATION_ABS): Define this instead.
2993 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2994 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2995 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2996 (MD_APPLY_SYM_VALUE): Define.
2997 (TC_FIX_DATA_PRINT): Tweak param name.
2998 * config/tc-tic30.c (USE_STDOUT): Don't define.
2999 (md_parse_option): Remove stupid debug code.
3000 (tc_gen_reloc): Don't use fx_addnumber.
3001 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
3002 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
3003 * config/tc-v850.h (obj_fix_adjustable): Don't define.
3004 (tc_fix_adjustable): Define this instead.
3005 (TC_FIX_ADJUSTABLE): Don't define.
3006 (MD_APPLY_SYM_VALUE): Define this instead.
3007 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
3008 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
3009 (TC_FIX_ADJUSTABLE): Don't define.
3010 (MD_APPLY_SYM_VALUE): Define this instead.
3011 (tc_fix_adjustable): Remove extern and weak tests.
3012 * config/tc-w65.h (struct fix): Forward declare.
3013 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
3015 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
3016 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
3017 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
3019 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
3020 (MD_APPLY_SYM_VALUE): Define.
3021 (obj_fix_adjustable): Don't define.
3022 (tc_fix_adjustable): Define this instead.
3023 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
3025 2002-09-04 Alan Modra <amodra@bigpond.net.au>
3027 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
3028 (ppc_fix_adjustable <coff version>): Cleanup.
3030 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
3031 (md_parse_option): No -a64 without BFD64.
3032 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
3033 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
3035 2002-09-04 Nick Clifton <nickc@redhat.com>
3037 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3038 instructions into the hash table if the target cpu is the BookE32.
3040 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3042 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3045 2000-08-28 Catherine Moore <clm@redhat.com>
3047 * tc-v850.c (v850_relax): Declare.
3048 (v850_longcode): New routine.
3049 (v850_handle_align): New routine.
3050 (md_pseudo_table): Add longcall and longjump.
3051 (md_parse_option): Check for relax option.
3052 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3053 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3054 (md_apply_fix3): Likewise.
3055 (v850_force_relocation): Likewise.
3056 (v850_comm): Change the current section.
3057 (md_assemble): Ensure that the correct value is put in the
3059 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3060 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3061 Remove redundant v850ea support.
3062 * tc-v850.h (HANDLE_ALIGN): Define.
3063 (v850_handle_align): Declare.
3064 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3066 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3068 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3069 * configure: Regenerate.
3070 * NEWS: Mention new port.
3072 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3074 * config/obj-coff.c: Add sdef definition.
3075 * config/obj-coff.h: Add tic4x include file and set
3077 * config/tc-tic4x.c: New file.
3078 * config/tc-tic4x.h: New file.
3080 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3082 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3083 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3084 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3085 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3086 (RELOC_ENUM): Define.
3087 (fix_new_internal): Use RELOC_ENUM.
3088 (fix_new, fix_new_exp): Likewise.
3089 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3090 Replace gotos with continue.
3091 (write_relocs): Formatting. Avoid symbol loops in
3092 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3093 errors, and error number in other cases.
3094 (fixup_segment): Remove param names from prototype. Rename
3095 "this_segment_type" to "this_segment". Update linkrelax comment.
3096 Remove "size, "place" and "where" local vars. Formatting. Update
3097 "no symbol" comment. Remove #if 0 and #if 1.
3099 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3101 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3103 * dwarf2dbg.c: Always include dwarf2dbg.h.
3104 (dwarf2_directive_file): Adjust dummy version args.
3105 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3106 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3107 when symbol values differ.
3108 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3109 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3110 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3112 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3114 * config/tc-w65.c (md_section_align): Fix typo.
3115 (md_parse_option): Return 0, not 1.
3117 2002-08-22 Nick Clifton <nickc@redhat.com>
3119 * doc/as.texinfo (Section): Note that if '@' is a comment
3120 character then another symbol is used to prefix the section's
3123 2002-08-22 Christian Groessler <chris@groessler.org>
3125 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3128 2002-08-12 Graeme Peterson <gp@qnx.com>
3130 * configure.in: Add support for sh-**-nto* target.
3131 * configure: Regenerate.
3133 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3135 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3137 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3139 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3141 (ppc_apuinfo_section_add): Define only if format is ELF.
3142 (md_assemble): Emit APUinfo section only if format is ELF.
3145 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3147 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3148 * config/tc-frv.c: Likewise.
3149 * config/tc-hppa.c: Likewise.
3150 * config/tc-ia64.c: Likewise.
3151 * config/tc-ip2k.c: Likewise.
3152 * config/tc-m68hc11.c: Likewise.
3153 * config/tc-m68k.c: Likewise.
3154 * config/tc-mmix.c: Likewise.
3155 * config/tc-mn10300.c: Likewise.
3156 * config/tc-sh.c: Likewise.
3157 * config/tc-sparc.c: Likewise.
3158 * config/tc-v850.c: Likewise.
3160 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3162 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3165 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3167 From matthew green <mrg@redhat.com>
3169 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3170 PPC_OPCODE_PPC is, except for BookE architectures.
3171 (md_parse_option): Add support for -mspe.
3172 (md_show_usage): Add -mspe.
3173 (md_parse_option): Add support for -me500 and
3174 -me500x2 to generate code for Motorola e500 core complex.
3175 (md_show_usage): Add -me500 and -me500x2.
3177 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3178 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3179 PPC_APUINFO_BRLOCK): New macros.
3181 (ppc_cleanup): New function.
3182 (ppc_apuinfo_section_add): New function.
3184 (md_assemble): Collect info and write the APUinfo section.
3186 * config/tc-ppc.h (md_cleanup): Define.
3187 (ppc_cleanup): Export.
3188 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3190 2002-08-17 Stan Cox <scox@redhat.com>
3192 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3193 config/tc-mips.c (s_change_section): New function to support
3194 IRIX .section pseudo-op.
3196 2002-08-16 Nick Clifton <nickc@redhat.com>
3198 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3200 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3202 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3203 the fix-up against on the right frag.
3204 (s_cpsetup): Likewise. Parse third argument as expression, to
3205 handle global symbols and forward/backward labels correctly.
3207 2002-08-14 Nick Clifton <nickc@redhat.com>
3209 * read.c (stringer): Catch attempts to create strings in the abs
3212 * config/tc-alpha.c: Fix compiling for COFF targets.
3213 Some minor formatting tidyups.
3215 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3217 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3218 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3219 according to the reloc.
3220 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3221 (TC_FORCE_RELOCATION): Define.
3222 (tc_m68hc11_force_relocation): Declare.
3224 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3225 (s_m68hc11_relax): New function for relax group.
3226 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3227 beginning of jump instruction.
3228 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3229 address computation.
3230 (tc-gen_reloc): Update.
3231 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3233 (tc_m68hc11_force_relocation): New function, handle new relocs.
3234 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3235 reloc for the linker relax pass.
3236 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3239 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3241 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3242 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3243 (s_m68hc11_mode): New function for .mode pseudo op.
3244 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3246 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3247 (m68hc11_elf_final_processing): Declare.
3249 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3251 * config/tc-m68hc11.c (md_begin): Take into account additional
3252 page operand for call instruction.
3253 (print_opcode_format): Likewise.
3254 (check_range): Likewise for page range checking.
3255 (get_operand): Don't skip a possible comma in operands.
3256 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3257 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3258 (fixup24): New to handle call reloc.
3259 (build_insn): Handle missing page operand for call instruction.
3261 (md_apply_fix3): Take into account new relocs.
3262 (get_operand): Fix the mode for indexed indirect addressing.
3263 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3265 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3267 * config/tc-mips.c (mips_ip): Don't work out the value of
3268 constant %hi()s here.
3270 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3272 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3273 for ELF, and don't bother checking ELF relocs when non-ELF.
3274 (i386_immediate): Allow absolute_section expressions for aout.
3275 (i386_displacement): Likewise. Also test bfd_is_com_section.
3276 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3277 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3278 not when fx_addsy. Remove dead code.
3280 2002-08-09 Graeme Peterson <gp@qnx.com>
3282 * configure.in: Add support for ppc-*-nto* target.
3283 * configure: Regenerate.
3285 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3287 * config/tc-i386.h: Reorganize.
3289 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3291 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3292 immediate offset in "dla" and "la" expansions.
3294 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3296 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3297 Remove "bfd_gas=yes" from target table when covered later.
3298 Consolidate some entries.
3299 * configure: Regenerate
3301 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3303 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3304 at start of insn, pass it to output_disp and output_imm.
3305 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3306 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3308 (output_imm): Added arguments. Compute properly addend for
3310 (md_apply_fix3): Remove R_386_GOTPC handling.
3312 2002-08-06 George France <france@handhelds.org>
3314 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3315 and m21264b processor names and cpu types.
3316 * doc/c-alpha.texi: Documented new types.
3318 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3320 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3322 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3324 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3325 handling to BFD_RELOC_MIPS16_GPREL.
3327 2002-08-01 Nick Clifton <nickc@redhat.com>
3329 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3330 pool is computed using signed arithmetic so that proper sign
3331 extension is performed if X_add_number is a 64-bit integer.
3333 2002-08-01 H.J. Lu <hjl@gnu.org>
3334 Daniel Jacobowitz <drow@mvista.com>
3336 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3337 .debug_line section unless it has line information.
3339 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3341 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3342 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3343 Allow default displacement size to be an option "--disp-size-default".
3344 (md_number_to_disp): Make error messages include value. Use %d to
3345 print integers, not %s.
3346 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3347 get duplicate messages sometimes.
3348 (convert_iif): Grow frag to max possible instruction size. Avoid
3349 creating unnecessary fixes.
3350 (md_number_to_field) Add prototype.
3351 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3352 prototypes and make static.
3353 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3354 (evaluate_expr): Use resultP argument instead of exprP global.
3355 (get_addr_mode): Quiten compiler warnings.
3356 (encode_operand): eliminate unused variables. Quiten compiler
3357 warnings. Eliminate nul character in format strings.
3358 (parse): argc is unsigned.
3359 (reloc): Type cast index to quieten compiler.
3360 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3361 (md_convert_frag): Note unused parameters. Remove unused
3363 (md_create_long_jump, md_create_short_jump,
3364 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3367 2002-07-31 Nick Clifton <nickc@redhat.com>
3369 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3370 of the PDP-11 and 2.11BSD a.out support.
3372 2002-07-31 Momchil Velikov <velco@fadata.bg>
3374 * config/tc-v850.c (md_assemble): Fix range check for immediate
3377 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3379 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3380 to Broadcom SB-1 core support.
3382 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3384 * config/tc-mips.c (mips_target_format): Fix formatting.
3385 Add recognition of n32 ABI formats.
3387 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3389 * tc-mips.c (load_address): Don't clobber $at when loading a
3390 64-bit address in non-PIC code if noat is in effect.
3393 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3395 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3396 used in division/multiply macro expansions similarly to how they
3397 are used in the variants with break instructions.
3400 2002-07-30 Graeme Peterson <gp@qnx.com>
3402 * configure.in: Add support for arm-*-nto target.
3403 * configure: Regenerate.
3405 2002-07-30 Nick Clifton <nickc@redhat.com>
3407 * config/tc-arm.c (struct literal_pool): Add fields to allow
3408 multiple literal pools to be maintained.
3409 (find_literal_pool): New function.
3410 (find_or_make_literal_pool): New function.
3411 (add_to_literal_pool): Use find_or_make_literal_pool.
3412 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3414 (s_ltorg): Use find_literal_pool.
3415 (arm_cleanup): Dump all literal pools.
3416 * doc/c-arm.texi: Document new behaviour of only dumping literal
3419 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3421 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3422 rather than PPC_OPCODE_32 for powerpc64*.
3424 2002-07-25 Nick Clifton <nickc@redhat.com>
3426 * po/es.po: Updated Spanish translation.
3427 * po/fr.po: Updated French translation.
3429 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3431 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3432 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3433 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3434 * configure, config.in: Regenerate.
3435 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3436 (mips_set_options): Remove "abi" field.
3437 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3440 (mips_arch_string, mips_arch_info): New vars.
3441 (mips_tune_string, mips_tune_info): New vars.
3442 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3443 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3444 (mips_isa_to_str, mips_cpu_to_str): Remove.
3445 (mips_ip): If the selected architecture is a generic ISA rather
3446 than a processor, only mention the ISA level in error messages.
3447 (OPTION_MCPU): Remove.
3449 (md_longopts): Add -mfp64, remove -mcpu.
3450 (mips_set_option_string): New fn.
3451 (md_parse_option): Make -mipsN update file_mips_isa rather than
3452 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3453 Don't let -mgp32 and -mfp32 change the ABI.
3454 (show): Move to end of file. Constify string argument.
3455 (md_show_usage): Move to the end of the file. Read available
3456 architectures from mips_cpu_info_table.
3457 (mips_set_architecture): New fn.
3458 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3459 is an alias for -march=mipsN. Don't change the ABI based on other
3460 flags. Infer the register size from the ABI as well as the
3461 architecture. Complain about more conflicting arguments.
3462 Unify logic with GCC.
3463 (s_mipsset): Don't change the ABI.
3464 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3465 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3466 "mipsN"-type entries. Remove entries that vary only in the
3467 manufacturer's prefix, or that have "000" replaced by "k".
3468 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3469 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3470 (mips_parse_cpu): New fn.
3471 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3472 (mips_cpu_info_from_isa): Minor formatting tweak.
3474 2002-07-24 Nick Clifton <nickc@redhat.com>
3476 * po/sv.po: Updated Swedish translation.
3477 * po/es.po: Updated Spanish translation.
3479 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3481 * Makefile.am: Run "make dep-am".
3482 * Makefile.in: Regenerate.
3483 * doc/Makefile.in: Regenerate.
3484 * config.in: Regenerate.
3485 * po/POTFILES.in: Regenerate.
3487 2002-07-23 Nick Clifton <nickc@redhat.com>
3489 * po/fr.po: Updated French translation.
3491 2002-07-23 Nick Clifton <nickc@redhat.com>
3493 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3496 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3498 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3499 instead of S_IS_EXTERN.
3500 (md_estimate_size_before_relax): Likewise.
3501 (mips_fix_adjustable): Likewise.
3503 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3505 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3507 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3508 Nick Clifton <nickc@redhat.com>
3510 * cond.c (s_ifdef): Treat a referenced but not yet defined
3511 symbol as if it were undefined, in exactly the same way as
3514 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3515 consider referenced bug not yet defined symbols to be
3518 2002-07-18 Denis Chertykov <denisc@overta.ru>
3519 Frank Ch. Eigler <fche@redhat.com>
3520 Alan Lehotsky <alehotsky@cygnus.com>
3521 John Healy <jhealy@redhat.com>
3522 Jeff Johnston <jjohnstn@redhat.com>
3524 * configure.in: Add ip2k configuraton.
3525 * configure: Regenerate.
3526 * Makefile.am: Add ip2k configuraton.
3527 * Makefile.in: Regenerate.
3528 * configure: Regenerate.
3529 * Makefile.in: Regenerate.
3530 * config/tc-ip2k.c: New file.
3531 * config/tc-ip2k.h: New files.
3532 * NEWS: Mention new support.
3533 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3534 * doc/Makefile.in: Regenerate.
3535 * doc/all.texi: Set IP2K
3536 * doc/as.texinfo: Add IP2K description.
3537 * doc/c-ip2k.texi: New file.
3539 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3541 * NEWS: Reformat to match style of other NEWS files.
3543 2002-07-17 Jan Hubicka <jh@suse.cz>
3545 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3547 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3549 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3551 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3553 * NEWS: Add 'Changes in 2.13'.
3555 2002-07-15 Matt Fredette <fredette@netbsd.org>
3557 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3559 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3561 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3562 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3565 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3567 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3568 (ppc_frob_file_before_adjust): New function.
3569 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3570 (ppc_elf_frob_symbol): Don't declare.
3571 (tc_frob_file_before_adjust): Define.
3572 (ppc_frob_file_before_adjust): Declare.
3574 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3575 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3578 (ppc_xcoff64): Rename to ppc_obj64.
3579 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3580 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3581 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3583 (ppc_target_format): Use ppc_obj64 to select format.
3584 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3585 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3586 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3587 (tc_frob_symbol): Likewise.
3588 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3589 BFD_DEFAULT_TARGET_SIZE.
3591 (ppc_is_toc_sym): Likewise.
3592 (md_apply_fix3): Likewise.
3593 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3594 BFD_DEFAULT_TARGET_SIZE.
3595 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3596 (tc_frob_symbol): Likewise.
3598 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3600 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3601 (mips_ip): Likewise.
3603 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3605 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3606 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3607 (md_apply_fix3): Formatting. Remove redundant test.
3608 (tc_gen_reloc): Remove redundant code.
3609 (tc_i386_force_relocation): Delete. Movy body of function to..
3610 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3612 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3614 * configure.in: Add hppa-*-openbsd* target, change
3615 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3617 * configure: Regenerate.
3619 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3621 * config/tc-mips.c (macro): Shift the 32-bit address range
3622 accessible with a lone "lui" down by 32768.
3624 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3626 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3627 instead of "dadd" in address calculations.
3630 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3632 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3634 (md_assemble): Instead, zap the suffix here.
3636 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3638 * NEWS: Remove next release number until the release is actually
3641 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3643 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3645 * Makefile.in: Regenerate.
3647 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3649 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3650 to symbols in merge sections, even non pc-relative ones.
3652 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3654 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3656 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3658 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3659 .softregs and .eeprom.
3661 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3663 * NEWS: Note the next release is 2.13.
3665 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3667 * po/tr.po: New translation imported.
3669 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3671 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3672 (ecoff_directive_def): Likewise.
3673 (ecoff_directive_tag): Likewise.
3674 * listing.c (file_info): Likewise.
3675 * hash.c (what): Likewise.
3677 2002-06-25 H.J. Lu <hjl@gnu.org>
3679 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3680 * Makefile.in: Regenerated.
3682 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3684 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3685 (assemble_ppi): Generate warning if the same register is used
3686 twice as destination in the same padd / pmuls instruction.
3688 2002-06-18 Dave Brolley <brolley@redhat.com>
3690 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3691 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3692 * configure.in: Support frv-*-*.
3693 * Makefile.am (CPU_TYPES): Add frv.
3694 (TARGET_CPU_CFILES): Add tc-frv.c.
3695 (TARGET_CPU_HFILES): Add tc-frv.h.
3696 (DEPTC_frv_coff): New variable.
3697 (DEPTC_frv_elf): New variable.
3698 (DEPOBJ_frv_coff): New variable.
3699 (DEPOBJ_frv_elf): New variable.
3700 (DEP_frv_coff): New variable.
3701 (DEP_frv_elf): New variable.
3702 * tc-frv.c: New file.
3703 * tc-frv.h: New file.
3705 2002-06-17 Catherine Moore <clm@redhat.com>
3707 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3709 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3711 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3713 2002-06-17 Tom Rix <trix@redhat.com>
3715 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3717 2002-06-14 H.J. Lu <hjl@gnu.org>
3718 Daniel Jacobowitz <drow@mvista.com>
3720 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3721 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3722 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3723 and new_logical_line for the first .file directive.
3724 * read.c (s_app_file_string): New function.
3725 (s_app_file): Call it.
3726 * read.h (s_app_file_string): Add declaration.
3728 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3730 * configure.in: Remove MIPS_STABS_ELF.
3731 * configure: Regenerated.
3732 * config.in: Regenerated.
3733 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3735 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3737 (pdr_seg): Declare unconditionally.
3738 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3739 (s_mips_end): Likewise. Generate stabs function markers.
3740 (s_mips_ent): Generate stabs function markers.
3741 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3743 (s_mips_mask): Likewise.
3744 (mips_flag_mdebug): New.
3745 (md_longopts): Add "mdebug" and "no-mdebug".
3746 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3747 (mips_after_parse_args): Set mips_flag_mdebug.
3748 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3750 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3752 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3753 value twice for RELA relocations.
3755 2002-06-12 Ben Elliston <bje@redhat.com>
3757 * symbols.c (resolve_symbol_value): Initialise final_val.
3759 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3761 2002-06-11 Tom Rix <trix@redhat.com>
3763 * config/tc-ppc.c (ppc_subseg_align): Delete.
3764 (ppc_change_csect): Default csect align is 2.
3765 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3767 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3769 * config/tc-avr.c (mcu_types): Update.
3771 2002-06-08 Matt Thomas <matt@3am-software.com>
3773 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3774 (vax-*-netbsd*): New targets.
3775 * configure: Regenerate.
3776 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3777 * config/tc-vax.c: Add support for ELF and PIC.
3778 (flag_want_pic): New flag.
3779 (float_cons): Fix prototype.
3780 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3781 (md_assemble): Introduce a new is_absolute local, and use it
3782 rather than repeating the test. Make fatal errors actually
3783 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3784 Add support for ELF. Add support for PIC.
3785 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3786 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3788 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3789 optional for a.out, and not allowed for VMS. Adjust all callers.
3790 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3791 (md_create_long_jump): Likewise.
3792 (md_undefined_symbol): Likewise.
3793 (md_section_align): Likewise.
3794 (md_shortopts): Allow -k and -K for ELF.
3795 (md_parse_option): Set flag_want_pic if -k or -K.
3796 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3797 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3798 * config/tc-vax.h (tc_headers_hook): Remove.
3799 (TARGET_FORMAT): Set according to object format and target
3801 (BFD_ARCH, TARGET_ARCH): Define.
3802 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3803 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3804 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3805 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3807 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3809 * Makefile.am: Run "make dep-am".
3810 * Makefile.in: Regenerate.
3812 * as.c: Replace CONST with const.
3813 * write.c: Likewise.
3814 * config/obj-coff.c: Likewise.
3815 * config/tc-a29k.c: Likewise.
3816 * config/tc-arm.c: Likewise.
3817 * config/tc-dlx.c: Likewise.
3818 * config/tc-h8300.c: Likewise.
3819 * config/tc-h8500.c: Likewise.
3820 * config/tc-i370.c: Likewise.
3821 * config/tc-i860.c: Likewise.
3822 * config/tc-i960.c: Likewise.
3823 * config/tc-m68hc11.c: Likewise.
3824 * config/tc-m68k.c: Likewise.
3825 * config/tc-m88k.c: Likewise.
3826 * config/tc-mcore.c: Likewise.
3827 * config/tc-mips.c: Likewise.
3828 * config/tc-ns32k.c: Likewise.
3829 * config/tc-pdp11.c: Likewise.
3830 * config/tc-pj.c: Likewise.
3831 * config/tc-s390.c: Likewise.
3832 * config/tc-sh.c: Likewise.
3833 * config/tc-sparc.c: Likewise.
3834 * config/tc-tahoe.c: Likewise.
3835 * config/tc-tic80.c: Likewise.
3836 * config/tc-v850.c: Likewise.
3837 * config/tc-vax.c: Likewise.
3838 * config/tc-w65.c: Likewise.
3839 * config/tc-z8k.c: Likewise.
3841 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3843 Based on patch from Matt Green:
3844 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3845 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3846 (s_mips_loc): New function.
3847 (mips_nonecoff_pseudo_table): Call them.
3848 (append_insn): Call dwarf2_emit_insn.
3850 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3852 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3854 (file_ase_mips16): New veriable.
3855 (mips_eabi64): Remove.
3856 (CPU_HAS_MIPS16): New define.
3857 (CPU_HAS_MDMX): Fix data type.
3858 (md_begin): Code cleanup. Use file_ase_mips16.
3859 (mips_elf_final_processing): Handle mips16 header flag.
3860 Handle EABI flag without intermediate variable.
3862 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3864 * doc/as.texinfo: Update MIPS documentation.
3866 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3868 * config/tc-mips.c: Add define for $zero register.
3869 (md_begin): Add $zero as alias name for $0.
3870 (insn_uses_reg): Use ZERO define.
3871 (mips_ip): Add $zero as alias name for $0.
3872 (mips16_ip): Likewise.
3873 (s_cplocal): Demand empty rest of input line.
3874 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3875 names. Use ZERO define. Fix input_line_pointer progress.
3877 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3879 * symbols.c: Replace CONST by const throughout.
3880 (symbol_find_exact): Split out from..
3881 (symbol_find_base): ..here.
3882 * symbols.h: Replace CONST by const throughout.
3883 (symbol_find_exact): Declare.
3884 * config/obj-elf.c: #include "struc-symbol.h".
3885 (elf_frob_file): If group name matches an exported symbol, use that
3886 symbol for the signature and ".group" as the section name.
3888 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3890 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3893 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3895 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3896 and mips_opts.ase_mdmx if they are uninitialized.
3898 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3900 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3901 (hppa_force_relocation): Check if a stub just before the start symbol
3902 of the last call_info is reachable before forcing relocation. Fix
3905 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3907 * config/tc-mips.c (mips_after_parse_args): New function.
3908 (md_begin): Move processing of defaults to mips_after_parse_args.
3909 config/tc-mips.h (md_after_parse_args): Define.
3911 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3913 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3914 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3915 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3916 * configure: Regenerate.
3917 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3920 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3922 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3924 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3926 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3927 linkonce flag. Print all warnings.
3928 (obj_elf_section): Parse ",comdat" for groups.
3929 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3930 consistency of comdat flag.
3932 2002-06-02 Richard Henderson <rth@redhat.com>
3934 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3935 with LITERALs without sequence numbers.
3937 2002-06-01 Richard Henderson <rth@redhat.com>
3939 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3940 Rename them LITUSE_ALPHA_*.
3942 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3944 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3945 accept parentheses enclosed register lists.
3947 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3949 * Makefile.am: Run "make dep-am".
3950 * Makefile.in: Regenerate.
3951 * po/POTFILES.in: Regenerate.
3953 2002-05-31 Graeme Peterson <gp@qnx.com>
3955 * configure.in: Add i386-*-nto-qnx*.
3956 * configure: Regenerate.
3958 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3960 * config/tc-mips.c (mips_ip): Use unsigned long values for
3963 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3965 * config/tc-mips.c (s_cpsetup): Fix initialization of
3966 mips_cpreturn_register and mips_cpreturn_offset.
3968 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3970 * config/tc-mips.c (s_cpsetup): Fix comment.
3972 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3974 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3975 (mips_ip): Likewise.
3976 (mips16_ip): Likewise.
3977 (tc_get_register): Likewise.
3979 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3980 Ed Satterthwaite <ehs@broadcom.com>
3982 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3983 (mips_opts): Initialize "ase_mdmx" member.
3984 (file_ase_mdmx): New variable.
3985 (CPU_HAS_MDMX): New macro.
3986 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3987 based on command line options and configuration defaults.
3988 (macro_build): Note in comment that use of MDMX in macros is
3989 not currently allowed.
3990 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3991 "Z" MDMX operand types.
3992 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3993 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3995 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3996 Add support for "-mdmx" and "-no-mdmx" options.
3997 (OPTION_ELF_BASE): Move to accomodate new options.
3998 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3999 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
4000 file_ase_mdmx was set.
4001 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
4002 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
4005 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4007 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
4008 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
4009 command line switch conforming to gcc conventions.
4010 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
4012 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4014 * config/tc-mips.c (macro_build_jalr): New Function.
4015 (md_begin): NewABI uses big GOTs.
4016 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
4017 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
4018 (load_address): Add some NewABI PIC support.
4020 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
4021 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
4023 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4025 * config/tc-mips.c (load_address): Use mips_gp_register instead
4026 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
4028 (macro): Use mips_gp_register instead of hardcoded value.
4030 2002-05-30 Richard Henderson <rth@redhat.com>
4032 * expr.h (operatorT): Add O_md17..O_md32.
4033 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
4034 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
4035 O_tprelhi, O_tprello, O_tprel): New.
4036 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4037 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4038 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4039 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4040 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4041 (md_apply_fix3): Handle TLS relocations.
4042 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4043 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4044 associated TLS reloc. Check lituse_tls relocs match up.
4045 (emit_insn): Handle TLS relocations.
4048 * doc/c-alpha.texi: Add docs for tls relocations.
4050 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4052 * config/tc-mips.c (mips_gprel_offset): New variable.
4053 (s_gpvalue): Use it.
4055 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4057 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4058 write-write conflicts.
4059 (md_assemble): Reformat introductory comment.
4060 (parallel_ok): Prevent packing only if the first
4061 instruction cannot be packed.
4063 2002-05-30 Jason Eckhardt <jle@redhat.com>
4064 Tom Rix <trix@redhat.com>
4066 * config/tc-d10v.c (build_insn): Check for immediates.
4068 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4070 * config/tc-mips.c: Replace GP in comments by $gp.
4071 (mips_big_got): Initialize.
4072 (mips_trap): Initialize.
4073 (load_address): Use mips_gp_register instead of hardcoded value.
4074 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4075 (macro): Use mips_gp_register instead of hardcoded value.
4076 (macro2): Change load_address calls.
4077 (md_pcrel_from): Comment formatting.
4078 (s_cpload): Use mips_gp_register instead of hardcoded value.
4079 (s_cprestore): Likewise. Comment formatting.
4080 (s_gpword): Fix data type.
4081 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4082 (nopic_need_relax): Replace GP in comments by $gp.
4083 (mips_elf_final_processing): Better comment.
4085 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4087 * configure.in: Add DLX configuraton
4088 * Makefile.am: Add DLX configuraton
4089 * configure: Regenerate.
4090 * Makefile.in: Regenerate.
4091 * config/tc-dlx.c: New file.
4092 * config/tc-dlx.h: New files.
4093 * NEWS: Mention new support.
4095 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4097 * config/obj-coff.c (write_object_file): Add missing semicolon.
4099 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4101 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4102 by the define. Remove superfluous check of mips_opts.mips16.
4103 (append_insn): Likewise. Canonicalize variable increments.
4104 (macro_build): Canonicalize variable increments.
4105 (macro_build_lui): Likewise.
4106 (load_register): Likewise.
4107 (load_address): Move pointer initialization.
4108 (macro): Move pointer to a more local scope. Canonicalize variable
4109 increments. Better comments. Replace magic constant for RA by the
4111 (macro2): Replace magic constant for RA by the define. Canonicalize
4112 variable increments.
4113 (mips_ip): Canonicalize variable increments.
4114 (mips16_ip): Replace magic constant for RA by the define.
4115 (my_getSmallParser): Canonicalize variable increments/decrements.
4116 (my_getPercentOp): Likewise.
4117 (my_getSmallExpression): Likewise.
4118 (s_align): Likewise.
4119 (s_mipsset): Likewise.
4120 (s_cpsetup): Likewise.
4121 (s_insn): Remove superfluous check of mips_opts.mips16.
4122 (s_mips_stab): Likewise.
4123 (mips_handle_align): Canonicalize variable increments.
4124 (s_mips_ent): Likewise.
4125 (s_mips_end): Add comment.
4127 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4129 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4130 * configure: Regenerate.
4132 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4134 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4135 * Makefile.in: Regenerate.
4136 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4137 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4138 * configure: Regenerate.
4139 * as.h: Use #include "" instead of <> for local header files.
4140 * flonum-konst.c: Likewise.
4141 * flonum-mult.c: Likewise.
4143 * listing.c: Likewise.
4144 * config/tc-ia64.h: Likewise.
4145 * config/tc-v850.h: Likewise.
4147 2002-05-24 TAMURA Kent <kent@netbsd.org>
4149 * configure.in: Add a target for i386-netbsdpe.
4150 * configure: Regenerate.
4152 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4154 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4155 (obj_elf_common): Call elf_common.
4156 (obj_elf_tls_common): New function.
4157 (elf_pseudo_tab): Support .tls_common.
4158 (special_sections): Add .tdata and .tbss.
4159 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4161 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4162 (obj_elf_parse_section_letters): Include T in error message.
4163 * config/tc-ppc.c (ppc_section_letter): Likewise.
4164 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4165 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4167 * config/tc-sparc.c (md_apply_fix3): Likewise.
4168 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4169 Define them if not BFD_ASSEMBLER.
4170 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4172 (md_apply_fix3): Add TLS relocs.
4173 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4174 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4175 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4176 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4177 (ia64_elf_section_letter): Include T in error message.
4178 (md_begin): Support TLS operators.
4179 (md_operand): Likewise.
4180 (ia64_gen_real_reloc_type): Support TLS relocs.
4181 * write.c (adjust_reloc_syms): Don't change symbols in
4182 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4184 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4186 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4187 round the relocation up rather than down.
4189 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4191 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4193 * doc/as.texinfo: Document that the COFF version of .section
4194 ignores the 'a' flag.
4196 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4198 * config/tc-alpha.c (assemble_tokens): Protect use of
4199 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4201 * write.c (size_seg): Check adjustment to last frag.
4202 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4204 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4205 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4206 (write_object_file): Invoke md_do_align if available, and use
4207 frag_align_code on text sections.
4208 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4209 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4210 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4211 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4212 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4215 2002-05-22 H.J. Lu <hjl@gnu.org>
4217 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4220 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4222 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4225 2002-05-22 H.J. Lu <hjl@gnu.org>
4227 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4228 for one .loc for compiler.
4230 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4232 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4235 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4237 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4238 Optimize the rotate by zero case.
4240 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4242 * configure.in: Remove accidental enabling of bfd_gas=yes for
4244 * configure: Regenerate.
4246 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4248 * app.c: Fix formatting.
4250 * ehopt.c: Likewise.
4252 * input-file.c: Likewise.
4253 * listing.c: Likewise.
4254 * macro.h: Likewise.
4255 * stabs.c: Likewise.
4256 * symbols.c: Likewise.
4258 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4260 * config/obj-generic.c: Delete file.
4261 * config/obj-generic.h: Likewise.
4263 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4265 * config/tc-avr.c (mcu_types): Update for new devices.
4267 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4269 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4271 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4273 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4274 worked sometimes by accident. Fix copy&paste comment.
4276 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4278 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4279 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4280 (mips_elf_final_processing): Let n32 use .reginfo.
4282 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4284 * config/tc-mips.c (append_insn): Fix too small range of variable.
4286 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4288 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4289 listing_prev_line().
4291 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4293 * config/tc-arm.c (md_assemble): Remove redundant call to
4296 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4299 * stabs.c (s_stab_generic): Fix grammatical error in warning
4302 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4304 * write.c (subsegs_finish): Don't specially align last subseg.
4306 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4308 * stabs.c (s_stab_generic): Warn about a description field that is
4311 * config/obj-coff.c: Fix compile time warnings when compiling
4312 without BFD_ASSEMBLER defined.
4315 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4317 (md_pcrel_from_section): Use md_pcrel_from().
4319 2002-05-11 Bruno Haible <bruno@clisp.org>
4321 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4322 by dwarf2_directive_loc, instead of calling dwarf2_where.
4324 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4326 * config/obj-coff.h: Fix formatting.
4327 * config/tc-mcore.c: Likewise.
4328 * config/tc-mn10300.c: Likewise.
4329 * config/tc-openrisc.c: Likewise.
4330 * config/tc-or32.c: Likewise.
4331 * config/tc-pdp11.c: Likewise.
4332 * config/tc-ppc.c: Likewise.
4333 * config/tc-ppc.h: Likewise.
4334 * config/tc-sh64.c: Likewise.
4335 * config/tc-sh.c: Likewise.
4336 * config/tc-tic54x.c: Likewise.
4337 * config/tc-xstormy16.c: Likewise.
4338 * config/tc-xstormy16.h: Likewise.
4340 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4342 * config/obj-coff.c: Fix formatting.
4343 * config/obj-elf.c: Likewise.
4344 * config/tc-alpha.c: Likewise.
4345 * config/tc-arm.c: Likewise.
4346 * config/tc-d10v.c: Likewise.
4347 * config/tc-d30v.c: Likewise.
4348 * config/tc-h8300.c: Likewise.
4349 * config/tc-hppa.c: Likewise.
4351 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4353 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4354 reloc when no_cond_jump_promotion.
4356 2002-05-08 Jim Wilson <wilson@redhat.com>
4358 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4359 current variable part of frag.
4361 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4363 * config/tc-mmix.c: Fix formatting.
4364 * config/tc-mmix.h: Likewise.
4366 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4368 * configure: Regenerate.
4370 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4372 * config/tc-m68k.c: Fix formatting.
4374 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4376 * Makefile.am: Honour DESTDIR.
4377 * Makefile.in: Regenerate.
4379 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4381 * config/tc-ia64.c: Fix formatting.
4382 * config/tc-ia64.h: Likewise.
4384 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4386 * config/tc-mips.c: Fix formatting.
4387 * config/tc-s390.c: Likewise.
4388 * config/tc-s390.h: Likewise.
4390 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4392 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4393 information for instructions.
4395 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4397 * as.h: Fix formatting.
4400 * dwarf2dbg.c: Likewise.
4401 * frags.h: Likewise.
4403 * macro.c: Likewise.
4405 * stabs.c: Likewise.
4406 * symbols.c: Likewise.
4408 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4410 * app.c (mri_pseudo): Only declare for TC_M68K.
4412 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4413 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4414 BFD_RELOC_16_BASEREL.
4415 (md_assemble): Likewise.
4416 (md_apply_fix3): Likewise.
4418 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4420 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4421 zero into an add of zero - it is not the same.
4423 2002-05-01 Arati Dikey <aratid@kpit.com>
4425 * tc-sh.c (get_specific): Generate warning if the same
4426 destination register is used in parallel instructions.
4428 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4430 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4432 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4434 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4435 backwards to prevent cascading errors.
4437 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4439 * configure.in: Add support for powerpc-*-windiss.
4440 * configure: Regenerated.
4442 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4444 * config/tc-s390.c (md_parse_option): Formatting.
4446 * config/tc-i386.c: Formatting fixes, add missing space in error
4449 2002-04-24 Christian Groessler <chris@groessler.org>
4451 * config/tc-z8k.c (build_bytes): Add support for new cases:
4452 CLASS_IGNORE and ARG_NIM4.
4453 (md_assemble): Prevent destruction of input_line_pointer if
4454 get_operands returns failure.
4456 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4458 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4459 instructions to be generated by macros.
4461 2002-04-24 Andreas Schwab <schwab@suse.de>
4463 * config/tc-i386.c (output_jump, output_disp)
4464 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4466 (md_apply_fix3): Remember addend value for rela relocations.
4467 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4469 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4471 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4472 from previous change.
4474 2002-04-22 Eric Christopher <echristo@redhat.com>
4476 * config/tc-mips.c (macro_build): Add warning if macro instructions
4477 are expanded into a branch delay slot.
4479 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4481 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4482 numbers, gdb relies on them to detect the start of the prologue.
4484 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4486 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4487 symbols in merge sections.
4489 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4491 * as.c (main): Don't reference _bfd_chunksize.
4493 2002-04-15 Tom Rix <trix@redhat.com>
4495 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4496 symbols in merge sections.
4498 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4500 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4501 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4502 argument for the precision.
4503 (gen_to_words): Update accordingly.
4505 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4507 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4508 BFD_VERSION_STRING unavailable.
4509 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4511 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4513 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4514 symbol_used_in_reloc_p is true.
4516 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4519 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4521 * dep-in.sed: Cope with absolute paths.
4522 * Makefile.am (dep.sed): Subst TOPDIR.
4524 * Makefile.in: Regenerate.
4526 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4528 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4529 (mips_ip): Remove unused variable.
4530 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4531 unsigned char with bfd_byte.
4532 (s_file): Remove unused variable.
4533 (s_mips_ent): Likewise.
4535 2002-04-03 Tom Rix <trix@redhat.com>
4537 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4539 (find_opcode): Fix warning in as_warn.
4540 * config/tc-d10v.h: Update Copyright.
4542 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4543 Tom Rix <trix@redhat.com>
4545 From Jeff Knaggs <jknaggs@redhat.com>
4546 * config/tc-d10v.c (check_resource_conflict): New function to
4547 check for resource conflicts.
4549 From Jason Eckhardt <jle@redhat.com>
4550 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4552 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4553 reserved control registers is used.
4554 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4557 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4558 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4559 instruction cannot be packed.
4561 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4562 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4563 write-write conflicts.
4564 (md_assemble): Reformat introductory comment.
4565 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4568 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4570 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4571 O_logical_not>): Derive final_seg from add_symbol.
4572 <O_multiply..O_logical_or>: More final_seg twiddles.
4574 2002-04-01 Jessica Han <jessica@cup.hp.com>
4576 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4579 2002-03-27 Andreas Schwab <schwab@suse.de>
4581 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4582 field for pc-relative fixups.
4583 (output_disp): Likewise.
4584 (md_estimate_size_before_relax): Likewise.
4585 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4586 pc-relative fixups in 64bit mode.
4588 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4590 * config/te-aix5.h: Typo fix.
4592 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4594 * Makefile.am: Run "make dep-am".
4595 * Makefile.in: Regenerate.
4596 * doc/Makefile.in: Regenerate.
4598 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4600 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4601 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4603 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4605 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4606 the EXTENDED bit here; report the estimate according to the
4609 2002-03-18 Tom Rix <trix@redhat.com>
4611 * configure.in: Add AIX 5 support.
4612 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4613 * config/te-aix5.h: New file. AIX 5 support.
4614 * configure: Regenerate.
4616 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4618 * po/fr.po: Updated version.
4620 2002-03-16 Andreas Jaeger <aj@suse.de>
4622 * doc/c-mips.texi (Machine Dependencies): Add new node.
4624 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4626 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4627 (mips_opts): Initialize "ase_mips3d" member.
4628 (file_ase_mips3d): New variable.
4629 (CPU_HAS_MIPS3D): New macro.
4630 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4631 based on command line options and configuration defaults.
4632 (macro_build, mips_ip): Accept MIPS-3D instructions if
4633 mips_opts.ase_mips3d is set.
4634 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4635 Add support for "-mips3d" and "-no-mips3d" options.
4636 (OPTION_ELF_BASE): Move to accomodate new options.
4637 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4638 (mips_elf_final_processing): Add a comment indicating that a
4639 MIPS-3D ASE ELF header flag should be set, when one exists.
4640 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4641 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4642 nomips3d" directives.
4644 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4646 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4647 a weak symbol in same section to be within reach.
4649 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4651 * po/fr.po: Updated version.
4653 2002-03-12 Andreas Schwab <schwab@suse.de>
4655 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4656 body record so that an error is given for misplaced .save
4659 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4661 * config/tc-i386.h (REX_OPCODE): Define.
4662 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4663 (rex_byte): typedef to int.
4664 * config/tc-i386.c: Group prototypes and vars together.
4665 Formatting fixes. Remove occurrences of "register" keyword.
4668 (mode_from_disp_size): Add INLINE keyword to prototype.
4669 (fits_in_signed_byte): Likewise.
4670 (fits_in_unsigned_byte): Likewise.
4671 (fits_in_unsigned_word): Likewise.
4672 (fits_in_signed_word): Likewise.
4673 (fits_in_unsigned_long): Likewise.
4674 (fits_in_signed_long): Likewise.
4675 (type_names): Constify.
4676 (intel_float_operand): Constify param.
4677 (add_prefix): Use REX_OPCODE.
4678 (md_assemble): Likewise. Modify for changed rex_byte.
4679 (parse_insn): Split out of md_assemble.
4680 (parse_operands): Likewise.
4681 (swap_operands): Likewise.
4682 (optimize_imm): Likewise.
4683 (optimize_disp): Likewise.
4684 (match_template): Likewise.
4685 (check_string): Likewise.
4686 (process_suffix): Likewise.
4687 (check_byte_reg): Likewise.
4688 (check_long_reg): Likewise.
4689 (check_qword_reg): Likewise.
4690 (check_word_reg): Likewise.
4691 (finalize_imm): Likewise.
4692 (process_operands): Likewise.
4693 (build_modrm_byte): Likewise.
4694 (output_insn): Likewise.
4695 (output_branch): Likewise.
4696 (output_jump): Likewise.
4697 (output_interseg_jump): Likewise.
4698 (output_disp): Likewise.
4699 (output_imm): Likewise.
4701 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4703 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4705 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4707 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4708 relocs except when BFD64.
4710 * write.c (number_to_chars_bigendian): Don't abort when N is
4711 larger than sizeof (VAL).
4712 (number_to_chars_littleendian): Likewise.
4714 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4716 * config/tc-hppa.c (md_apply_fix3): Add cast.
4717 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4720 2002-03-05 Paul Koning <pkoning@equallogic.com>
4722 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4723 (parse_ac5): New function for parsing float regs in float operand.
4724 (parse_expression): Remove attempt to make literals be octal.
4725 (parse_op_no_deferred): Support float literals.
4726 (parse_op): Reject attempts to refer to float regs.
4727 (parse_fop): New function, like parse_op but for float operand.
4728 (md_assemble): Add cases to parse float operands. Also fix
4729 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4731 2002-03-04 H.J. Lu <hjl@gnu.org>
4733 * config/obj-elf.c (special_section): Add .init_array,
4734 .fini_array and .preinit_array.
4736 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4737 .init_array and .fini_array.
4739 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4741 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4743 (obj_frob_symbol): Copy visibility.
4745 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4747 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4749 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4751 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4753 * po/es.po: Updated.
4755 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4757 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4758 only, undo the changes made on 2001-06-08, with the
4759 effect being that common or extern symbols are
4760 adjusted for embedded-PIC, but weak symbols are not.
4761 (md_estimate_size_before_relax: Likewise, with the effect
4762 that extern symbols are treated the same as weak symbols
4763 only if not embedded-PIC.
4764 (mips_fix_adjustable) Likewise, with the effect that
4765 weak or extern symbols are not adjusted for embedded-PIC.
4766 (md_apply_fix3): Tweak so that the case where value is zero
4767 is handled more correctly for embedded-PIC code.
4769 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4771 * doc/as.texinfo (Overview): Add missing @ifset IA64
4773 * configure.in (LINGUAS): Add es.po.
4774 * configure: Regenerate.
4775 * po/es.po: New file.
4777 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4779 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4780 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4781 and NO_PIC cases. Code cleanup.
4782 (macro2): Fix handling of 64bit register loads.
4784 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4786 * doc/as.texinfo: Add entry for IA64.
4787 * doc/c-ia64.texi: New file.
4789 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4791 * config/tc-hppa.c: Update copyright date.
4793 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4794 Remove references to chip manufacturers.
4795 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4797 (md_show_usage): Remove references to chip manufacturers. Mention
4799 (md_begin): Test power4 opcode flag bits.
4801 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4803 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4804 count exceeds prologue count.
4805 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4806 (unwind.label_prologue_count): New member.
4808 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4810 (get_saved_prologue_count): New function.
4811 (save_prologue_count): New function.
4812 (free_saved_prologue_count): New function.
4813 (dot_label_state): Record state label by calling save_prologue_count().
4814 (dot_copy_state): Restore prologue count by calling
4815 get_saved_prologue_count().
4816 (generate_unwind_image): Free up list of saved prologue
4817 counts by calling free_saved_prologue_counts().
4819 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4821 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4822 function declarations.
4824 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4826 * NEWS: Note that GASP is now deprecated.
4827 * Makefile.am: Do not build gasp-new by default.
4828 * Makefile.in: Regenerate.
4829 * doc/Makefile.am: Do not install gasp.info.
4830 * doc/Makefile.in: Regenerate.
4831 * gas/gasp.texi: Note that gasp is now deprecated.
4833 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4835 * NEWS: Mark 2.12 branch.
4837 2002-02-19 Tom Tromey <tromey@redhat.com>
4839 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4841 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4843 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4846 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4848 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4849 Make bit size independent of architecture switch.
4850 (md_begin): Add warning for -m64 with -Aesa.
4851 (s390_md_end): Use renamed architecture defines.
4853 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4855 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4857 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4859 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4862 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4864 * config/tc-mips.c (md_estimate_size_before_relax): Really
4865 make sure we treat weak like extern only for ELF. (Fixes
4866 patch from 2001-07-25.)
4868 2002-02-15 Ben Elliston <bje@redhat.com>
4870 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4873 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4875 * NEWS: Mention support for MMIX.
4877 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4879 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4880 a sequence of indpendent 'if' statements for easier debugging
4881 and future modification.
4883 2002-02-13 Matt Fredette <fredette@netbsd.org>
4885 * config/tc-m68k.c (md_show_usage): No longer display a
4886 hard-coded "68020" for the default CPU, instead display the
4887 canonical name of the true, configured default CPU.
4888 (m68k_elf_final_processing): Mark objects for sub-68020
4889 CPUs with the new EF_M68000 flag.
4891 2002-02-13 Andreas Schwab <schwab@suse.de>
4893 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4894 pc-relative relocations to merge sections in 64-bit mode.
4896 2002-02-13 Ben Elliston <bje@redhat.com>
4898 * NEWS: Document floating point number handling in gasp.
4899 * gasp.c: Include <assert.h> and "xregex.h".
4900 (is_flonum): New function.
4901 (chew_flownum): Likewise.
4902 (change_base): Consume flonums from the input, where possible.
4903 * doc/gasp.texi (Constants): Document floating point numbers.
4905 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4907 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4908 that implicitly use LR and RR selectors.
4910 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4912 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4913 and `epsw' as available on AM33 and above only.
4914 (other_register_name): Add logic to handle machine type encoded in
4917 2002-02-11 Tom Rix <trix@redhat.com>
4919 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4922 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4924 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4927 2002-02-11 Jan Hubicka <jh@suse.cz>
4929 * i386.c (md_assemble): Support 32bit address prefix.
4930 (i386_displacement): Likewise.
4931 (i386_index_check): Accept 32bit addressing in 64bit mode.
4933 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4935 * config/tc-sh.c (dot): Removed unused function.
4937 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4939 * Makefile.am: "make dep-am".
4940 * Makefile.in: Regenerate.
4941 * aclocal.m4: Regenerate.
4942 * config.in: Regenerate.
4943 * configure: Regenerate.
4944 * doc/Makefile.in: Regenerate.
4946 2002-02-10 Richard Henderson <rth@redhat.com>
4948 * doc/c-alpha.texi: New file.
4949 * doc/Makefile.am (CPU_DOCS): Add it.
4950 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4952 2002-02-09 Richard Henderson <rth@redhat.com>
4954 * config/tc-alpha.c (O_samegp): New.
4955 (USER_RELOC_P): Include it.
4956 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4957 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4958 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4959 (alpha_validate_fix): New.
4960 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4962 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4964 * doc/c-cris.texi: New.
4965 * doc/all.texi: @set CRIS.
4966 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4967 Include c-cris.texi.
4968 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4969 * doc/Makefile.in: Regenerate.
4971 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4973 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4974 determine if a number is a sign-extended 32-bit number.
4975 (load_register): Use IS_SEXT_32BIT_NUM.
4976 (macro): Check if load/store macro handling is using a
4977 constant 32-bit address on 64-bit address systems, and if
4978 so optimize the generation of that address.
4980 2002-02-08 Richard Henderson <rth@redhat.com>
4982 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4983 we've eliminated all foreign relocation types yet.
4984 (alpha_fix_adjustable): Likewise.
4986 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4988 Contribute sh64-elf.
4989 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4990 Stephen Clarke <Stephen.Clarke@st.com>
4991 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4992 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4993 * config/tc-sh.c (md_relax_table): Added default sizes for
4994 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4995 MOVI_16, MOVI_32 and MOVI_48.
4996 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4997 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4999 (shmedia_md_estimate_size_before_relax): Remove redundant
5000 blocks. Set fragP->fr_var even if relaxation type unchanged.
5001 Retain UNDEF_MOVI until expression decays to number.
5002 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5003 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
5004 relocation types. Take fixP->fx_addnumber into account too.
5005 (shmedia_md_apply_fix): Likewise.
5006 (shmedia_md_convert_frag): Likewise.
5007 (shmedia_build_Mytes): Likewise.
5008 (sh64_consume_datalabel): Complain about nested datalabel.
5009 Support PIC relocs. Call sh_parse_name.
5010 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
5011 in tc-sh.h to SHmedia reloc types.
5012 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
5013 MOVI_GOTPC): New relaxation constants.
5014 (md_relax_table): Introduce relaxation directives for PIC-related
5016 (sh_PIC_related_p): Handle datalabel.
5017 (sh_check_fixup): Choose SH5 PIC relocations.
5018 (sh_cons_fix_new): Added BDF_RELOC_64.
5019 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
5020 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
5021 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
5022 current ISA is SHmedia, get 7 bytes.
5023 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
5024 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
5026 * config/tc-sh64.c (shmedia_apply_fix): Rename to
5027 shmedia_apply_fix3 and make void.
5028 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
5029 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
5031 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
5032 * config/tc-sh64.h (md_parse_name): Take &c as argument.
5033 2001-03-14 DJ Delorie <dj@redhat.com>
5034 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
5035 * doc/Makefile.in(CPU_DOCS): Ditto.
5036 * doc/c-sh64.texi: New file.
5037 * doc/as.texinfo: Add SH64 support.
5038 2001-03-13 DJ Delorie <dj@redhat.com>
5039 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5040 A_REUSE_PREV so that its purpose is more obvious.
5041 (shmedia_build_Mytes): Ditto.
5042 2001-03-07 DJ Delorie <dj@redhat.com>
5043 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5045 (sh64_vtable_inherit): Ditto.
5046 (strip_datalabels): New, strip "datalabel" from given line.
5047 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5049 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5050 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5052 (shmedia_build_Mytes): ... to here.
5053 2001-03-06 DJ Delorie <dj@redhat.com>
5054 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5056 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5057 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5058 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5059 address by one in call to dwarf2_emit_insn.
5060 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5061 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5062 alignment handling broken by imported changes.
5063 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5064 (sh64_handle_align): Declare.
5065 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5066 (sh64_max_mem_for_rs_align_code): Declare.
5067 (enum sh64_isa_values): Moved here from tc-sh64.c.
5068 (md_do_align): Define.
5069 (sh64_do_align): Declare.
5070 (struct sh64_tc_frag_data): New.
5071 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5073 (TC_FRAG_INIT): Change to set new datatype.
5074 (struct sh64_segment_info_type): Rename member
5075 last_flushed_location to last_contents_mark. All users changed.
5076 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5077 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5078 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5079 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5080 of unsetting seen_insn.
5081 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5082 call sh64_update_contents_mark.
5083 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5084 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5085 enum sh64_isa_values.
5086 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5087 (emitting_crange): Boolean guard moved to file scope from function
5088 scope in sh64_set_contents_type.
5090 (sh64_update_contents_mark): New; most split out from
5091 sh64_flush_pending_output.
5092 (shmedia_md_end): Call sh64_update_contents_mark. Set
5093 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5094 (sh64_do_align): New function.
5095 (sh64_max_mem_for_rs_align_code): New function.
5096 (sh64_handle_align): Rename from shmedia_do_align. Make
5097 non-static. Add head comment. Emit zero bytes for n bytes modulo
5098 four. Change return-type to void.
5099 (shmedia_elf_new_section): Remove.
5100 (shmedia_md_assemble): Call sh64_update_contents_mark.
5101 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5102 new frag. Call sh64_update_contents_mark after making the new
5104 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5105 and sh_flush_pending_output.
5106 (sh64_flag_output): Also call md_flush_pending_output, but add
5107 condition on not emitting_crange.
5108 (sh64_tc_cons_fix_new): Remove.
5109 2001-01-12 Nick Clifton <nickc@redhat.com>
5110 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5111 alignment handling scheme imported from sourceware.
5112 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5113 * config/tc-sh64.h (TARGET_FORMAT): Define.
5114 (sh64_target_format): Prototype.
5115 * config/tc-sh64.c (sh64_target_mach): New function.
5116 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5117 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5118 zero_address_frag instead of copying the frag of the symbol.
5119 (shmedia_frob_file_before_adjust): Ditto.
5120 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5121 to valueT to remove signedness.
5122 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5123 headers to output_bfd. Do not evaluate symbols if final is false;
5125 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5126 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5127 to the current frag, call shmedia_md_convert_frag to emit fixups
5128 and make frag_wane neutralize the frag. Update comments.
5129 * config/tc-sh.c (md_convert_frag): Change caller of
5130 shmedia_md_convert_frag.
5131 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5132 * config/tc-sh64.h: Tweak comments and correct formatting.
5133 * config/tc-sh64.c: Ditto.
5134 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5135 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5136 for the no-relocation case.
5137 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5138 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5140 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5142 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5143 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5145 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5147 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5148 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5149 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5150 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5151 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5152 if reloc is emitted.
5153 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5154 New options plus bugfixes.
5155 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5157 (md_parse_option): Handle new options.
5158 (md_show_usage): Add blurb for new options.
5159 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5160 (sh64_expand, sh64_pt32): New variables.
5161 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5162 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5163 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5164 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5165 <resolved previously-pc-relative relocs>: Handle
5166 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5167 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5168 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5169 points to SHcompact code.
5170 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5171 SH64PCREL16)>: Check that ISA of what operand points at and
5172 PTA/PTB matches, or emit error.
5173 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5174 SHMEDIA_BFD_RELOC_PT.
5175 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5177 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5178 condition for MOVI expansion.
5179 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5180 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5182 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5184 (sh64_target_format): Error-check setting of sh64_pt32 and
5185 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5186 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5187 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5188 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5189 * config/tc-sh64.c: Improve comments.
5190 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5191 not say the linker will check correctness of PTA/PTB expansion.
5192 (shmedia_md_end): Make non-static.
5193 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5195 * config/tc-sh.c (sh_finalize): Remove.
5196 * config/tc-sh.h (md_end): Do not define.
5197 Remove prototype for sh_finalize.
5198 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5199 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5200 sh64_section_data container when storing section type in tdata
5201 field in elf_section_data.
5202 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5204 * Makefile.am: Update dependencies.
5205 * Makefile.in: Regenerate.
5206 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5207 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5208 dwarf2_emit_insn call with test on debug_type.
5209 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5210 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5211 CRT_SH5_ISA32 sticky for 64-bit.
5212 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5213 Generate .crange sections when switching ISA mode or emitting
5214 constants in same section as code.
5215 * config/tc-sh64.c: Reformat structure definitions.
5216 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5218 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5219 to emit a .cranges descriptor when contents type changes. Only
5220 emit error if changing contents type and -no-mix is in effect.
5221 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5222 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5223 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5224 sh64_flush_last_crange over sections.
5225 When checking main symbol of datalabel symbol, check for
5226 STO_SH5_ISA32, not ISA type of section in definition.
5227 (shmedia_frob_file_before_adjust): Check main symbol for
5228 STO_SH5_ISA32; don't check ISA type of section in definition.
5229 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5230 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5231 .cranges entries have been output.
5232 (shmedia_elf_new_section): Just call md_flush_pending_output.
5233 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5234 fix. Do not set tc_segment_info_data.in_code for section. Call
5235 sh64_set_contents_type for SHmedia code.
5236 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5237 false. Call md_flush_pending_output.
5238 (sh64_target_format): Check that -no-mix and
5239 -shcompact-const-crange are used in sane combination with other
5241 (shmedia_md_pcrel_from_section): Check type of fix for how to
5243 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5244 not ISA type of section in definition.
5245 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5246 hold contents-type state.
5247 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5248 (sh64_flush_pending_output): Declare.
5249 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5250 (sh64_tc_cons_fix_new): Declare.
5251 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5252 call sh64_flag_output.
5253 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5254 call sh64_set_contents_type to mark SHcompact code and set
5256 (md_longopts): New options "-no-mix" and
5257 "-shcompact-const-crange".
5258 (md_parse_option): Handle new options.
5259 (md_show_usage): Add blurb for new options.
5260 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5261 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5262 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5263 (sh64_last_insn_frag): New.
5264 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5265 to get frag for insn opcode for generating fixups; do not assume it
5267 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5269 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5271 (TC_FRAG_TYPE): Define as fragS *.
5272 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5273 (sh64_last_insn_frag): Declare.
5274 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5275 not == NULL before dereferencing.
5276 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5277 Get rid of BFD section flag and EF_SH64_ABI64.
5278 * config/tc-sh64.c (shmedia_frob_section_type): Use
5279 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5280 communicate the section as containing SHmedia code. Describe why.
5281 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5282 EF_SH64 regardless of ABI.
5283 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5284 in error message. Handle resolved expressions for
5285 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5286 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5287 (shmedia_check_limits): Handle BFD_RELOC_64.
5288 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5289 a STO_SH5_ISA32 symbol, only the BFD value.
5290 2000-12-11 Ben Elliston <bje@redhat.com>
5291 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5292 dwarf2_generate_asm_lineno.
5293 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5294 Handle PC-relative MOVI expansions with assembler relaxation.
5295 Generate PC-relative relocs from 16-bit PC-relative expressions.
5296 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5297 (shmedia_md_pcrel_from_section): ...here.
5298 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5299 turned completely resolved. Adjust relocation type for 16-bit
5300 immediate operands that has turned PC-relative. Adjust back for
5301 MD_PCREL_FROM_SECTION being applied twice.
5302 (shmedia_md_convert_frag): Always emit reloc for expression with
5303 global or weak symbol. Handle relaxation result for PC-relative
5305 (shmedia_md_estimate_size_before_relax): An expression with a weak
5306 or global symbol can not be relaxed. Break out tests for
5307 relaxable symbol into variable sym_relaxable.
5308 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5309 UNDEF_MOVI)>: Break out any PC-relative expression and change
5311 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5313 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5314 MOVI expansion. If X_op_symbol of the immediate expression is
5315 set, make an expression symbol for the argument to frag_var.
5316 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5318 (END): Adjust for new relaxations.
5319 (md_relax_table): Add entries for new relaxations.
5320 2000-12-07 Ben Elliston <bje@redhat.com>
5321 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5322 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5323 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5324 SHORI operand offsets in PT/PTA/PTB expansions.
5325 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5326 Implement DataLabel semantics.
5327 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5328 shmedia_frob_file_before_adjust.
5329 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5330 (DATALABEL_SUFFIX): Define.
5331 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5332 symbol list to update "datalabel" symbols to their main symbol
5334 (shmedia_frob_file_before_adjust): New.
5335 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5336 undefined and set STT_DATALABEL.
5337 (sh64_frob_label): Initialize TC symbol field.
5338 (sh64_consume_datalabel): Actually implement semantics. New
5339 parameter operandf, call it instead of expression.
5340 (sh64_exclude_symbol): New.
5341 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5342 to sh64_consume_datalabel.
5343 (tc_symbol_new_hook): Define to tc_frob_symbol.
5344 (TC_SYMFIELD_TYPE): Define to symbolS *.
5345 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5346 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5347 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5349 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5350 generating dwarf2 debug information.
5351 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5352 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5353 elf64-sh64 for the 64-bit ABI.
5354 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5356 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5357 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5359 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5360 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5361 (enum sh64_abi_values): New type.
5362 (enum sh64_isa_values): New type.
5363 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5364 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5365 (sh64_abi): Replace shmedia_64.
5366 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5367 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5368 (s_sh64_mode): Check validity for this target.
5369 (sh64_target_format): Initialize defaults for ISA and ABI.
5370 Fallback to old object format if no SH64 ISA or ABI has been
5372 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5373 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5374 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5375 * config/tc-sh64.h: Fix typo in comment.
5376 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5377 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5378 <PT fixups for absolute values>: Size will be longest, not
5380 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5381 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5382 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5383 and l1 to hold lowercase of two first characters. Change all
5384 remaining TO_LOWER to tolower.
5385 * config/tc-sh64.c (TO_LOWER): Delete.
5386 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5387 (md_parse_name): Define.
5388 (sh64_consume_datalabel): Declare.
5389 (DOLLAR_DOT): Define.
5390 * config/tc-sh64.c (shmedia_parse_exp): New.
5391 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5392 (shmedia_parse_reg): Remove const from src
5394 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5395 (shmedia_md_assemble): Ditto for op_end variable.
5396 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5397 Use shmedia_parse_exp, not parse_exp.
5398 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5399 parameter. All callers changed.
5400 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5402 (shmedia_parse_reg): Put first two character in local variables.
5403 Use tolower, not TO_LOWER. If no register is found and argtype
5404 indicates a control register, scan shmedia_creg_table
5406 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5407 * Makefile.am (CPU_TYPES): Add sh64.
5408 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5409 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5410 Regenerate dependencies.
5411 * Makefile.in: Regenerate.
5412 * configure.in: Add support for sh64-*-elf*.
5413 * configure: Regenerate.
5414 * config/tc-sh64.h: New.
5415 * config/tc-sh64.c: New.
5416 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5417 .mode, .isa and .uaquad.
5418 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5419 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5420 [HAVE_SH64] (END): Define as 10.
5421 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5422 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5424 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5425 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5426 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5427 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5429 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5430 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5431 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5432 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5433 SHmedia instructions. Handle state-change after switching to
5435 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5436 (md_parse_option) [HAVE_SH64]: Parse new options.
5437 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5438 (md_convert_frag) [HAVE_SH64] <default>: Call
5439 shmedia_md_convert_frag instead of abort.
5440 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5441 BFD_RELOC_SH_SHMEDIA_CODE.
5442 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5443 SHcompact or SHmedia code.
5444 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5445 shmedia_md_apply_fix instead of abort.
5446 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5447 result from calling shmedia_md_estimate_size_before_relax instead
5449 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5451 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5452 shmedia_init_reloc and do nothing more if it returns non-zero.
5453 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5454 * po/POTFILES.in: Regenerate.
5455 * po/gas.pot: Regenerate.
5457 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5459 * config/tc-sh.c (parse_at): Install the correct version of
5462 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5463 assume fixP->fx_subsy is non-NULL.
5465 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5467 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5468 A_DISP_PC_ABS, and adjust it by -4.
5469 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5471 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5472 the operand type is not A_DISP_PC_ABS.
5474 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5476 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5477 common and weak symbols. Handle common and weak symbols as
5478 undefined symbols with regards to GREG handling and merging.
5479 (mmix_frob_file): Ditto.
5481 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5483 * configure.in (hppa-*-netbsd*): New target.
5484 * configure: Regenerate.
5485 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5487 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5489 * config/tc-v850.c: Add missing prototypes amd use old-style
5490 function definitions.
5491 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5492 (sdata_section tdata_section, zdata_section, sbss_section,
5493 tbss_section, zbss_section, rosdata_section, rozdata_section,
5494 scommon_section, tcommon_section, zcommon_section,
5495 call_table_data_section, call_table_text_section): Delete.
5496 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5497 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5498 v850_call_table_data, v850_call_table_text): Delete.
5499 (struct v850_seg_entry): New.
5500 (v850_seg_table): New.
5501 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5502 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5503 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5504 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5507 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5508 recording of alignment.
5509 (md_pseudo_table): Use v850_seg.
5510 (md_begin): Don't init .call_table_data and .call_table_text here.
5511 Set v850_seg_table bss entry.
5513 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5515 Support on-demand global register allocation by passing on
5516 base-plus-offset relocs to the linker.
5517 * config/tc-mmix.c: Tweak and fix typos in comments.
5518 (allocate_undefined_gregs_in_linker): New variable.
5519 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5520 (md_longopts): Add --linker-allocated-gregs.
5521 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5522 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5523 (md_show_usage): Update text for -x. Add text for
5524 --linker-allocated-gregs.
5525 (tc_gen_reloc): Derive default value for addend from val and
5526 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5527 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5528 GREG if allocate_undefined_gregs_in_linker.
5529 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5530 --linker-allocated-gregs.
5531 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5532 --linker-allocated-gregs. Mention that it's implied by -x.
5533 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5534 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5536 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5538 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5540 * Makefile.am: Run "make dep-am"
5541 * Makefile.in: Regenerate.
5543 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5545 * config/tc-or32.c: New file.
5546 * config/tc-or32.h: New file.
5547 * configure.in: Add support for or32 targets.
5548 * configure: Regenerate.
5549 * config/obj-coff.c: Add support for or32 targets.
5550 * config/obj-coff.h: Add support for or32 targets.
5551 * Makefile.am: Add support for or32 targets.
5552 * Makefile.in: Regenerate.
5553 * NEWS: Mention support for OpenRISC.
5554 * doc/Makefile.in: Regenerate.
5555 * po/POTFILES.in: Regenerate.
5556 * po/gas.pot: Regenerate.
5558 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5560 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5563 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5565 * config/tc-mips.c (tc_gen_reloc): Arrange for
5566 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5567 their LO16 parts, even for ELF.
5569 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5571 * config/tc-i386.c: Protect definitions of true and false
5574 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5576 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5577 made because of .weak, if they are neither defined nor used in any
5580 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5582 * configure: Regenerated.
5584 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5586 * doc/Makefile.am (install): Depend on install-info.
5587 * doc/Makefile.in: Regenerate.
5589 2002-01-26 Nick Clifton <nick@redhat.com>
5591 * po/fr.po: Updated version
5593 2002-01-24 Kazu Hirata <kazu@hxi.com>
5595 * config/tc-h8300.c (check_operand): Don't print a warning
5596 when a valid 24-bit address is given to a 16-bit address
5599 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5601 * config/tc-sh.c (sh_elf_suffix): Removed.
5602 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5603 sh_end_of_match, sh_parse_name): New functions.
5604 (sh_elf_cons): Simplify.
5605 (parse_exp): Reject misplaced PIC operands.
5606 (md_undefined_symbol): Simplify.
5607 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5608 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5609 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5610 Complain if subsy remains at the end.
5611 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5612 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5614 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5616 * config/tc-mn10300.c (xr_registers): Move `pc'...
5617 (other_registers): ... here.
5619 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5621 * Makefile.am: Run "make dep-am".
5622 * Makefile.in: Regenerate.
5623 * gas/po/POTFILES.in: Regenerate.
5625 2002-01-21 DJ Delorie <dj@redhat.com>
5627 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5628 stabstr_name allocation permanent, as it will be referenced from
5631 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5633 * configure.in (ia64-*-netbsd*): New target.
5634 * configure: Regenerate.
5636 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5638 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5640 <Detailed description, ARM options>: Ditto.
5641 * doc/c-arm.texi (ARM Options): Ditto.
5643 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5645 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5646 do_mia, do_mar and do_mra respectively.
5647 (do_mav_*): Renamed from do_c_*.
5648 (mav_reg_required_here, mav_parse_offset): Renamed from
5649 cirrus_reg_required_here and cirrus_parse_offset respectively.
5650 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5652 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5653 Keith Walker <keith.walker@arm.com>
5655 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5656 (insns): Add pattern for bxj instruction.
5657 (do_bxj): New function.
5658 (arm_cpus): Add arm926ej.
5659 (arm_archs): Add armv5tej.
5661 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5663 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5665 2002-01-19 Keith Walker <keith.walker@arm.com>
5667 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5669 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5671 * NEWS: Mention new ARM command-line options and VFP support.
5673 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5675 (ARM_CEXT_MAVERICK): Similarly.
5676 (ARM_ANY): Now means any core instruction.
5677 (CPU_DEFAULT): Default to ARM_ANY.
5678 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5679 (pic_code): Declare for all object types. Make type int.
5680 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5681 (march_fpu_opt, mfpu_opt): Declare.
5682 (md_longopts): Tidy up conditional definitions.
5683 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5684 (arm_long_opts): New tables.
5685 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5686 (arm_parse_extension): New function.
5687 (md_parse_option): Rewrite using new table-driven system.
5688 (md_show_usage): Use new table-driven system.
5689 (md_begin): Calculate cpu_variant from command line option data.
5690 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5691 command-line options.
5692 * doc/c-arm.texi: Likewise.
5694 2002-01-18 Andreas Jaeger <aj@suse.de>
5696 * as.c (parse_args): Update year.
5698 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5700 * config/tc-tic54x.c (encode_address): Add a more informative
5701 warning about incorrect syntax.
5703 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5705 * po/gas.pot: Regenerate.
5707 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5709 * macro.c (get_any_string): Add no-c-format comment to prevent
5710 confusion when translating string.
5711 * gasp.c (get_any_string): Add no-c-format comment to prevent
5712 confusion when translating string.
5714 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5715 Johannes Stezenbach <js@convergence.de>
5716 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5717 matched before the shorter ones.
5718 (my_getSmallParser): Fix handling of nested parentheses in
5719 percent_op's. Code cleanup.
5720 (my_getPercentOp): New function, code from my_getSmallParser.
5721 (my_getSmallExpression): Fix handling of closing parentheses.
5722 Code cleanup. Better comments.
5724 2002-01-16 Nick Clifton <nickc@redhat.com>
5726 po/tr.po: New file: Turkish translation.
5727 configure.in (LINGUAS): Add "tr".
5728 configure: Regenerate.
5730 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5732 Support for VFP instructions
5733 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5734 (cp_address_required_here): New argument wb_ok. When false, do not
5735 accept write-back forms of addressing. Change all callers.
5736 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5737 (FPU_VFP_EXT_V2): Define.
5738 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5739 Define in terms of above.
5740 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5741 (vfp_reg): New struct.
5742 (vfp_regs): New array of registers.
5743 (insns): Add VFP instructions.
5744 (sn_table): New array of VFP single-precision register names.
5745 (dn_table): New array of VFP double-precision register names.
5746 (all_reg_maps): Add the new register tables.
5747 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5748 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5749 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5750 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5751 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5752 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5753 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5754 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5755 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5756 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5757 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5758 (do_vfp_sp_dp_cvt): New functions.
5759 (md_begin): Set soft-float flag for appropriate VFP work.
5760 (md_atof): Handle VFP-format doubles.
5761 (md_parse_option): Handle VFP command-line options.
5762 (md_show_usage): Display VFP command-line options.
5764 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5766 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5767 various command line options.
5769 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5771 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5773 (xstormy16_md_apply_fix3): Do not return a value.
5775 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5777 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5778 the -EL/-EB option that matches the target's endianness.
5779 (md_parse_option): Likewise.
5781 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5783 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5784 is not dependent on ARM_BI_ENDIAN.
5786 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5788 * tc-arm.c (all error messages): Normalize capitalization of messages.
5790 * tc-arm.h (md_operand): Delete define.
5791 * tc-arm.c (in_my_get_expression): New static variable.
5792 (my_get_expression): Set and clear it.
5793 (md_operand): New function. If called from my_get_expression
5794 put the error in inst.error.
5795 (output_inst): Now takes argument of instruction being assembled.
5796 Print it out with any error message.
5797 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5799 (end_of_line): Don't update inst.error if it is already set.
5801 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5803 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5804 op that can be translated into a mvn instruction.
5806 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5808 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5809 setting default md.flags.
5810 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5811 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5812 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5813 for 32 bit unwind info blocks.
5814 (generate_unwind_image): Add support for different types
5815 of unwind images (32 bits and/or big-endian).
5816 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5817 (ia64_target_format): Add support for hpux target formats.
5818 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5819 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5820 SHT_FINI_ARRAY elf section types.
5822 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5824 * tc-arm.c (struct reg_entry): Move before prototypes.
5825 (int_register, cp_register, fp_register): Delete.
5826 (reg_table): Delete. Replaced with ...
5827 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5828 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5829 (mav_dspsc_table): ... one table per register set.
5830 (arm_reg_hsh): Delete.
5831 (struct reg_map): New structure.
5832 (all_reg_maps): New array.
5833 (enum arm_reg_type): New enums.
5834 (build_reg_hsh): New function.
5835 (insert_reg_alias): Use hash table passed by caller. Adjust all
5837 (create_register_alias): New function, split out from ...
5838 (md_assemble): ... here.
5839 (md_begin): Build new register hash tables.
5840 (arm_reg_parse): New argument for the hash table to search. Adjust all
5842 (arm_reg_parse_any): New function.
5843 (co_proc_number): Look up the processor number in the processor hash
5845 (cirrus_regtype): Delete.
5846 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5847 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5848 (ARM_EXT_MAVERICKsc_register): Delete.
5849 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5850 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5852 (do_c_triple_4, do_c_triple_5): Delete.
5853 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5854 (do_c_quad_6): Delete.
5855 (do_c_quad_6[ab]): New functions.
5856 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5857 arguments to use new register parsing methods.
5858 (cirrus_reg_required_here): Likewise.
5859 (insns): Reclassify cirrus maverick worker functions.
5860 (cirrus_valid_reg): Delete.
5862 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5864 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5865 (sh*-*-netbsdelf*): New target.
5866 * configure: Regenerate.
5867 * tc-sh.h: Update copyright years.
5868 (TARGET_FORMAT): Add version for TE_NetBSD.
5870 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5872 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5875 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5877 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5878 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5880 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5882 * tc-mips.c (mips_cprestore_valid): New flag.
5883 (mips_frame_reg_valid): New flag.
5884 (macro) [M_JAL_2]: Check both flags.
5885 [M_JAL_A]: Likewise.
5886 (s_cprestore): Set mips_cprestore_valid.
5887 (tc_get_register): If setting mips_frame_reg, set
5888 mips_frame_reg_valid and clear mips_cprestore_valid.
5889 (s_mips_ent): Clear both flags.
5890 (s_mips_end): Clear both flags.
5892 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5894 * write.c (write_object_file): Make use of bfd_section_list_remove.
5895 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5896 * config/tc-mmix.c (mmix_frob_file): Likewise.
5898 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5900 * configure.in (i386-*-netbsdelf*): Collapse target into...
5901 (i386-*-netbsd*): ...this. Add support for x86-64.
5902 * configure: Regenerated.
5904 2002-01-03 matthew green <mrg@redhat.com>
5906 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5908 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5910 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5913 For older changes see ChangeLog-0001
5919 version-control: never