1 2003-06-12 Tom Tromey <tromey@redhat.com>
3 * doc/as.texinfo (Comm): Added @node. Moved before CFI
6 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
8 * config/tc-mips.c (append_insn): In a compound relocation, take the
9 field width from the final (outermost) operator.
11 2003-06-11 Richard Henderson <rth@redhat.com>
13 * dw2gencfi.c (struct cfi_escape_data): New.
14 (cfi_add_CFA_nop): Remove.
15 (CFI_escape, dot_cfi_escape): New.
16 (dot_cfi): Remove nop.
17 (cfi_pseudo_table): Remove nop; add escape.
18 (output_cfi_insn): Likewise.
19 (select_cie_for_fde): Stop on escape.
20 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
21 * read.c, read.h (do_parse_cons_expression): New.
22 * doc/as.texinfo (.cfi_escape): New.
24 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
26 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
27 (s_cprestore): Likewise.
28 (s_cpreturn): Likewise.
30 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
32 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
35 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
37 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
38 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
39 exceptions from size assert. Remove most of the addend fixup
40 specialcasing. Remove value, use valP directly. simplify fx_addnumber
41 handling. Remove zero addend specialcases.
42 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
43 the addend fixup specialcase.
44 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
46 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
48 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
49 in the RELOC_EXPANSION_POSSIBLE case.
51 2003-06-11 Alan Modra <amodra@bigpond.net.au>
53 * config/tc-i960.c (line_comment_chars): Add '#'.
54 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
56 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
58 * po/Make-in (DESTDIR): New.
59 (install-data-yes): Support $(DESTDIR).
60 (uninstall): Likewise.
62 2003-06-11 Alan Modra <amodra@bigpond.net.au>
64 * Makefile.am: Run "make dep-am".
65 * Makefile.in: Regenerate.
66 * po/POTFILES.in: Regenerate.
68 2003-06-10 Doug Evans <dje@sebabeach.org>
70 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
72 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
73 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
74 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
76 2003-06-10 Alan Modra <amodra@bigpond.net.au>
77 Gary Hade <garyhade@us.ibm.com>
79 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
80 (md_apply_fix3): Special case lq insn.
82 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
84 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
85 lists. Allow single-register ranges.
87 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
89 * config/tc-h8300.c (h8300sxnmode): New.
90 (md_pseudo_table): Add .h8300sxn entry.
92 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
94 * NEWS: Updated for the new -n option for the i386 assembler.
96 * config/tc-i386.c (optimize_align_code): New.
97 (md_shortopts): Add 'n'.
98 (md_parse_option): Handle 'n'.
99 (md_show_usage): Add '-n'.
101 * config/tc-i386.h (optimize_align_code): Declared.
102 (md_do_align): Optimize code alignment only if optimize_align_code
105 * doc/as.texinfo: Add the new -n option.
107 * doc/c-i386.texi: Document the new -n option.
109 2003-06-07 Richard Henderson <rth@redhat.com>
111 * doc/as.texinfo: Document .cfi_rel_offset.
113 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
114 (cfi_add_CFA_offset): Detect invalid offsets.
115 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
116 (cfi_add_CFA_restore_state): Restore it.
117 (CFI_rel_offset): New.
118 (cfi_pseudo_table): Add it.
119 (dot_cfi): Handle it.
121 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
123 * app.c (do_scrub_chars): Add states 14 and 15 to handle
126 2003-06-05 Michael Snyder <msnyder@redhat.com>
128 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
129 (build_bytes): Ditto.
131 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
133 * config/tc-h8sx.c (DMODE): Remove.
134 (colonmod24): Don't choose a default if the operand is a 16-bit
136 (fix_operand_size): New function.
137 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
138 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
140 2003-06-05 Michal Ludvig <mludvig@suse.cz>
142 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
143 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
144 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
145 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
146 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
147 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
148 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
149 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
150 (cfi_pseudo_table): New directives .cfi_return_column,
151 .cfi_restore, .cfi_undefined, .cfi_same_value,
152 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
153 (dot_cfi, output_cfi_insn): Handle new directives.
154 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
155 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
156 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
158 2003-06-04 Richard Henderson <rth@redhat.com>
160 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
162 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
164 2003-06-04 Richard Henderson <rth@redhat.com>
166 * config/tc-alpha.c (s_alpha_usepv): New.
167 (md_pseudo_table): Add it.
168 (alpha_cfi_frame_initial_instructions): New.
169 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
170 (tc_cfi_frame_initial_instructions): New.
171 * doc/c-alpha.texi: Document .usepv.
173 2003-06-04 Jakub Jelinek <jakub@redhat.com>
175 * as.c (show_usage): Document --execstack and --noexecstack.
176 (parse_args): Add --execstack and --noexecstack.
177 (main): Create .note.GNU-stack section if --execstack or
178 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
179 * as.h (flag_execstack, flag_noexecstack): New.
181 2003-06-03 Chris Demetriou <cgd@broadcom.com>
183 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
184 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
185 (OPTION_MISC_BASE): New defines.
186 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
187 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
188 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
189 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
190 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
191 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
192 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
193 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
194 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
195 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
196 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
197 (OPTION_TRAP): Redefine in terms of new defines.
198 (md_longopts): Reorder entries.
200 2003-05-14 Michael Snyder <msnyder@redhat.com>
201 From Bernd Schmidt <bernds@redhat.com>
202 and Michael Snyder <msnyder@redhat.com>
203 and Alexandre Oliva <aoliva@redhat.com>
204 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
205 * config/tc-h8300.h: Ditto.
207 2003-06-03 Nick Clifton <nickc@redhat.com>
209 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
210 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
211 before calling bfd_reloc_type_lookup.
213 2003-06-02 Alan Modra <amodra@bigpond.net.au>
215 * read.c (emit_expr): Set dot_value.
216 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
218 2003-06-02 Alan Modra <amodra@bigpond.net.au>
220 * macro.c (sub_actual): Don't lose string if it turns out that
221 &string wasn't an arg.
223 2003-05-31 Richard Henderson <rth@redhat.com>
225 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
226 (cfi_finish): Set flag_traditional_format around .eh_frame data.
228 2003-05-29 Richard Henderson <rth@redhat.com>
230 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
231 (all_frame_data, plast_frame_data, cur_frame_data): New.
232 (s_alpha_ent): Record data for dwarf2 cfi.
233 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
234 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
235 * config/tc-alpha.h (md_end): New.
236 (DWARF2_DEFAULT_RETURN_COLUMN): New.
237 (DWARF2_CIE_DATA_ALIGNMENT): New.
239 2003-05-29 Nick Clifton <nickc@redhat.com>
241 * configure.in: Add i386-*-freebsd* entry.
242 * configure: Regenerate.
244 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
246 * config/tc-m32r.c: Amend comment to refer to Renesas
248 2003-05-27 Richard Henderson <rth@redhat.com>
250 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
252 (current_location): Use symbol_temp_new_now.
253 * stabs.c (s_stab_generic): Use symbol_temp_new.
254 * symbols.c (temp_label_name): Remove.
255 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
257 2003-05-27 Richard Henderson <rth@redhat.com>
259 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
260 * as.c (main): Always call cfi_finish.
261 * config/tc-i386.c (x86_dwarf2_return_column): New.
262 (x86_cie_data_alignment): New.
263 (md_begin): Set them.
264 (tc_x86_cfi_init): Remove.
265 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
266 return int, not unsigned long; don't as_bad here.
267 (tc_x86_frame_initial_instructions): Streamline; use
269 * config/tc-i386.h (tc_cfi_init): Remove.
270 (DWARF2_DEFAULT_RETURN_COLUMN): New.
271 (DWARF2_CIE_DATA_ALIGNMENT): New.
273 2003-05-27 Richard Henderson <rth@redhat.com>
275 * symbols.c (temp_label_name): New.
276 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
277 (symbol_set_value_now): New.
278 * symbols.h: Prototype them.
279 * dwarf2dbg.c: Use them.
280 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
282 2003-05-23 Jason Eckhardt <jle@rice.edu>
284 * config/tc-i860.c (target_xp): Declare variable.
285 (OPTION_XP): Declare macro.
286 (md_longopts): Add option -mxp.
287 (md_parse_option): Set target_xp.
288 (md_show_usage): Add -mxp usage.
289 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
290 (md_assemble): Don't try expansions if XP_ONLY is set.
291 * doc/c-i860.texi: Document -mxp option and i860XP support.
293 2003-05-23 Eric Christopher <echristo@redhat.com>
295 * config/tc-mips.c (macro_build_jalr): Warning patrol.
297 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
299 * config/tc-mips.c (append_insn): Use actual relocation size for new
300 fixp's. Don't relax overflow checking for partial_inplace relocations.
301 Use the actual relocation type in combined relocs, not just the type
303 (macro_build_jalr): Use actual relocation size for new fix.
304 (s_cpsetup, s_gpdword): Likewise.
306 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
308 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
310 2003-05-22 Nick Clifton <nickc@redhat.com>
312 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
313 section relative offsets for relocs that will not be based on the
315 (xstormy16_md_apply_fix3): Remove previous patch to this
318 2003-05-07 Eric Christopher <echristo@redhat.com>
320 * config/tc-mips.c (mips_abicalls): New variable.
321 (md_parse_option): Use.
324 (mips_elf_final_processing): Set EF_MIPS_PIC and
325 EF_MIPS_CPIC dependent on above.
327 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
329 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
331 2003-05-21 Nick Clifton <nickc@redhat.com>
333 * config/obj-elf.c: Include dwarf2dbg.h.
334 (elf_pseudo_tab): Add .file and .loc.
335 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
336 * config/tc-arm.c: Likewise.
337 * config/tc-h8300.c: Likewise.
338 * config/tc-hppa.c: Likewise.
339 * config/tc-ia64.c: Likewise.
340 * config/tc-m68hc11.c: Likewise.
341 * config/tc-m68k.c: Likewise.
342 * config/tc-mmix.c: Likewise.
343 * config/tc-mn10300.c: Likewise.
344 * config/tc-ppc.c: Likewise.
345 * config/tc-sh.c: Likewise.
346 * config/tc-sparc.c: Likewise.
347 * config/tc-v850.c: Likewise.
348 * config/tc-frv.c: Likewise, and remove redundant inclusion of
350 * config/tc-ip2k.c: Likewise.
351 * config/tc-iq2000.c: Likewise.
352 * config/tc-xstormy16.c: Likewise.
353 * config/tc-xtensa.c: Likewise.
354 * Makefile.am: Regenerate dependencies.
355 * Makefile.in: Regenerate.
356 * aclocal.m4: Regenerate.
357 * config.in: Regenerate.
358 * configure: Regenerate.
359 * po/POTFILES.in: Regenerate.
360 * po/gas.pot: Regenerate.
362 2003-05-21 Nick Clifton <nickc@redhat.com>
364 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
365 BFD_ASSEMBLER targets.
366 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
367 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
368 defining BFD_ASSEMBLER.
370 2003-05-20 Michal Ludvig <mludvig@suse.cz>
372 * as.c (main): Remove tc_cfi_init().
373 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
375 (cfi_pseudo_table): Add "cfi_register" entry.
376 (cfi_make_insn): Handle CFA_register.
377 (cfi_output_insn): Ditto.
379 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
380 (dot_cfi_endproc): Reuse already emitted CIEs.
381 * testsuite/gas/cfi/cfi-i386.d: New pattern.
382 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
384 2003-05-20 Nick Clifton <nickc@redhat.com>
386 * config/tc-xstormy16.c: Include dwarf2dbg.h.
387 (md_pseudo_table): Add entries for .loc and .line.
389 2003-05-20 Alan Modra <amodra@bigpond.net.au>
391 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
393 (dot_cfi_endproc): Avoid C99 construct.
395 2003-05-20 Michal Ludvig <mludvig@suse.cz>
397 * dw2gencfi.c, dw2gencfi.h: New files.
398 * config/tc-i386.c (tc_x86_cfi_init): New function.
399 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
400 * as.c (parse_args): Set verbose flag on --verbose.
401 (main): Call tc_cfi_init()/cfi_finish().
402 * as.h (verbose): New external variable.
403 * read.c (pobegin): Insert CFI pops to the list.
404 * symbols.c (local_symbol_make): Make symbol external.
405 * symbols.h (local_symbol_make): New prototype.
406 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
407 * Makefile.in: Regenerate.
408 * doc/as.texinfo: Added node "CFI directives" with description of
409 all implemented .cfi_* directives.
410 * doc/Makefile.in: Regenerate.
411 * po/POTFILES.in: Regenerate.
413 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
415 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
417 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
419 2003-05-18 Jason Eckhardt <jle@rice.edu>
421 * config/tc-i860.c (i860_process_insn): Initialize fc after
422 each opcode mismatch.
424 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
426 * configure.in: Accept i[3-7]86 variants.
427 * configure: Regenerate.
429 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
431 * config/tc-mips.h: Fix comment formatting.
433 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
435 * read.c (old_buffer, old_input, old_limit): Remove variables.
436 (read_a_source_file): Delete label contin.
437 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
438 input as with macros, instead of in separate old_* variables.
439 Zero-terminate string being scrubbed.
441 2003-05-12 Nick Clifton <nickc@redhat.com>
443 * config/tc-xstormy16.c (skipping_fptr): New local variable.
444 (md_assemble): Reset skipping_fptr.
445 (md_operand): If @fptr() is followed by a minus sign, set
446 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
447 @fptr is detected, ignore it and reset skipping_fptr.
449 2003-05-11 Jason Eckhardt <jle@rice.edu>
451 * config/tc-i860.c (MAX_FIXUPS): Define.
452 (struct i860_fi fi[]): New struct.
453 (struct i860_it the_insn): Add above as member and move fields
454 exp, reloc, pcrel and fup into i860_fi.
455 (md_assemble): Replace all instances of exp, reloc, pcrel
456 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
457 Add a loop to possibly emit multiple fix-ups for each insn.
458 (i860_process_insn): Likewise.
459 (i860_get_expression): Likewise.
460 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
462 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
464 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
466 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
468 * config/tc-ia64.c (alias_hash): New.
469 (alias_name_hash): New.
470 (secalias_hash): New.
471 (secalias_name_hash): New.
472 (md_pseudo_table): Add "secalias".
473 (md_begin): Initialize alias_hash, alias_name_hash,
474 secalias_hash and secalias_name_hash.
476 (dot_alias): Implement .alias and .secalias directives.
478 (ia64_adjust_symtab): New.
480 (ia64_frob_file): New.
482 * config/tc-ia64.h (ia64_adjust_symtab): New.
483 (tc_adjust_symtab): Defined.
484 (ia64_frob_file): New.
485 (tc_frob_file): Defined.
487 2003-05-07 Dmitry Diky <diwil@mail.ru>
489 * tc-msp430.c: Add missing lines to known cpus list.
491 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
493 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
494 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
495 * config.in, configure: Rebuilt.
497 2003-05-05 H.J. Lu <hjl@gnu.org>
499 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
500 howto->partial_inplace is false.
502 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
504 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
505 symbol_used_in_reloc_p check.
506 (md_apply_fix3): Remove check for howto->pcrel_offset.
508 2003-05-03 H.J. Lu <hjl@gnu.org>
510 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
511 fatal error for unknown section attribute.
513 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
514 unknown section attribute.
515 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
516 * config/tc-ppc.c (ppc_section_letter): Likewise.
518 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
519 (ia64_elf_section_type): Accept "unwind".
521 2003-05-02 H.J. Lu <hjl@gnu.org>
523 * read.h (demand_copy_string): New.
525 * config/tc-alpha.c (demand_copy_string): Removed.
527 2003-05-02 Michael Snyder <msnyder@redhat.com>
529 * write.h (FAKE_LABEL_NAME): Allow override
530 (for targets that like eg. a leading dot in a local label).
532 2003-05-02 Nick Clifton <nickc@redhat.com>
534 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
535 addend with the symbol's value for pc-relative relocations against
536 a defined symbol - this will be done automatically.
538 2003-05-01 H.J. Lu <hjl@gnu.org>
540 * config/obj-elf.c (obj_elf_type): Accept "notype" and
543 2003-05-01 H.J. Lu <hjl@gnu.org>
545 * config/tc-ia64.h (tc_canonicalize_section_name): New.
547 * config/obj-elf.c (obj_elf_section_name): Call
548 tc_canonicalize_section_name if it is defined.
550 2003-05-01 H.J. Lu <hjl@gnu.org>
552 * config/tc-ia64.c (ia64_check_label): New.
553 * config/tc-ia64.h (tc_check_label): New.
555 * read.c (read_a_source_file): Call tc_check_label after
556 creating a user-defined label if defined.
558 2003-05-02 Alan Modra <amodra@bigpond.net.au>
560 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
561 -be and split strings to below 509 bytes in length.
563 2003-05-01 Christian Groessler <chris@groessler.org>
565 * expr.h: Fix comments in operatorT typedef.
566 * config/tc-z8k.c: Add 2003 to copyright message.
567 Fold s_segm() and s_unseg() into one function s_segm(parm) which
568 decides by the parameter.
569 (md_begin): Don't set linkrelax. Only set Z8002 default if no
570 command line argument was given to select the intended
572 (get_interrupt_operand): Warn if NOP type code is emitted.
573 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
574 (apply_fix): Call newfix with additional 'size' parameter.
575 (build_bytes): Remove unused variable 'nib'. Detect overflow in
576 4 bit immediate arguments.
577 (md_longopts): Add 'linkrelax' option.
578 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
579 variable when 'linkrelax' command line option is specified.
580 (md_show_usage): Display 'linkrelax' option.
581 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
583 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
585 2003-04-30 H.J. Lu <hjl@gnu.org>
587 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
588 (ia64_float_to_chars): Likewise.
589 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
590 and ia64_float_to_chars by tc_segment_info_data.endian from
591 the current segment if byteorder == -1.
592 (md_begin): Call dot_byteorder to set target_big_endian.
593 (md_atof): Call ia64_float_to_chars to convert floating point.
594 (ia64_float_to_chars_bigendian): New function.
595 (ia64_float_to_chars_littleendian): Likewise.
596 (ia64_elf_section_change_hook): Likewise.
598 * config/tc-ia64.h (ia64_number_to_chars): New.
599 (md_number_to_chars): Changed to (*ia64_number_to_chars)
600 (ia64_elf_section_change_hook): New.
601 (md_elf_section_change_hook): Defined.
602 (ia64_segment_info_type): New struct.
603 (TC_SEGMENT_INFO_TYPE): Defined.
605 2003-04-30 H.J. Lu <hjl@gnu.org>
607 * config/tc-ia64.c (md_section_align): Deleted.
609 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
610 (md_section_align): New.
612 2003-04-30 H.J. Lu <hjl@gnu.org>
614 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
616 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
618 (md_atof): Add 6 byte padding of zero for real16.
620 2003-04-29 Nick Clifton <nickc@redhat.com>
622 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
623 start of a version name.
625 2003-04-28 Chris Demetriou <cgd@broadcom.com>
627 * configure.in (mips-*-*n*bsd*): Replace with...
628 (mips-*-netbsd*, mips-*-openbsd*): These.
629 * configure: Regenerate.
631 2003-04-28 H.J. Lu <hjl@gnu.org>
633 * config/tc-hppa.c (hppa_symbol_chars): New.
634 * config/tc-hppa.h (tc_symbol_chars): Likewise.
636 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
638 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
640 2003-04-25 Chris Demetriou <cgd@broadcom.com>
642 * NEWS: Belatedly mention support for MIPS32 Release 2.
644 2003-04-24 Eric Christopher <echristo@redhat.com>
646 * config/tc-mips.c (nopic_need_relax): Revert previous
649 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
651 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
652 * config/tc-h8300.c (dwarf2dbg.h): Include
653 (md_pseudo_table): Handle .loc and .file
654 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
655 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
656 * Makefile.in: Regenerate.
658 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
660 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
661 (md_pseudo_table): Add h8300hn, h8300sn.
662 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
663 * doc/c-h8300.texi : Add documentation for new machine directives.
665 2003-04-24 Nick Clifton <nickc@redhat.com>
667 * config/tc-ppc.c (ppc_symbol_chars): Define.
668 * config/tc-ppc.h (tc_symbol_chars): Define.
670 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
672 * config/tc-sh.c: Amend comment to refer to SuperH.
673 * config/tc-sh.h: Likewise.
674 (LISTING_HEADER): Amend to refer to SuperH.
675 * config/tc-sh64.c: Change comment to refer to SuperH.
676 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
677 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
678 * doc/c-sh.texi: Amend to refer to SuperH.
679 Add SuperH architecture documentation references.
680 * doc/c-sh64.texi: Change to refer to SuperH.
682 2003-04-23 H.J. Lu <hjl@gnu.org>
684 * app.c (do_scrub_chars): More checks for valid labels.
686 2003-04-22 H.J. Lu <hjl@gnu.org>
688 * app.c (do_scrub_chars): Check for valid label.
690 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
692 * doc/as.texinfo: Replace references to Mitsubishi M32R with
693 references to Renesas M32R.
694 * doc/c-m32r.texi: Likewise.
696 2003-04-21 Richard Henderson <rth@redhat.com>
698 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
699 (out_file_list): Assign non-null filename after generating error.
701 2003-04-18 Jakub Jelinek <jakub@redhat.com>
703 * ehopt.c (check_eh_frame): For aug_size == 0
704 in state_seeing_aug_size state skip the state_skipping_aug
707 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
709 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
711 * doc/c-h8500.texi: Likewise.
712 * doc/c-sh.texi: Likewise.
713 * doc/c-sh64.texi: Likewise.
714 * doc/h8.texi: Likewise.
715 * config/tc-h8300.c: Likewise.
716 * config/tc-h8300.h: Likewise.
717 * config/tc-h8500.c: Likewise.
718 * config/tc-h8500.h: Likewise.
719 * config/tc-sh.c: Likewise.
720 * config/tc-sh.h: Likewise.
721 * config/tc-sh64.c: Likewise.
722 * config/tc-sh64.h: Likewise.
724 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
726 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
727 * config/tc-mips.c: Use signed add for n32 address arithmetic.
728 (append_insn): When filling delay slots with instructions
729 that have fixups that tc_gen_reloc might consider modifyable
730 in variant frags, start a new frag.
731 (load_address): Generate GOT_DISP with of without offset
732 depending on whether symbol is local. For -xgot, use
733 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
734 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
735 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
736 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
737 <ld_st>: In NewABI with small got, always use
738 GOT_PAGE/GOT_OFST, with the latter in the load/store
739 instruction. With big got, use GOT_HI16/GOT_LO16 or
741 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
742 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
743 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
744 (md_convert_frag): Use memmove for safe copying of overlapping
747 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
749 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
750 -mlong, -mshort-double and -mlong-double options; use table @code.
751 (M68HC11-Syntax): Update to document 68HC12 operands.
752 (M68HC11-Modifiers): New section for operand modifiers.
753 (M68HC11-Directives): New section for specific assembler directives.
754 (M68HC11-Branch): Fix Overfull hbox error.
756 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
758 * config/tc-mips.c (macro): Add comments explaining the rationale
761 2003-04-09 Chris Demetriou <cgd@broadcom.com>
763 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
764 constant address that Alexandre took out by accident. Reject
765 64-bit addresses that are not sign extensions of 32 bits only if
766 we don't support 64-bit address constants.
768 2003-04-09 Alan Modra <amodra@bigpond.net.au>
770 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
772 2003-04-08 Nick Clifton <nickc@redhat.com>
774 * as.c (perform_an_assembly_pass): If using cgen, call
776 * cgen.c (gas_cgen_begin): New function. If
777 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
778 otherwise call cgen_clear_signed_overflow_ok.
779 * cgen.h: Prototype gas_cgen_begin.
781 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
783 * write.c (write_relocs): Remove unused variable.
785 2003-04-06 Chris Demetriou <cgd@broadcom.com>
787 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
788 (macro): Use new macro to decide whether to emit constant address
789 as 32 or 64 bits if addresses are 32-bit wide but registers are
792 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
794 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
795 (M6811_OP_PAGE_ADDR): New internal define.
796 (get_operand): New modifier %page and %addr to obtain page and
797 address part of a far-function.
798 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
799 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
801 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
802 (find_opcode): Add comment.
803 (md_estimate_size_before_relax): Force relocation of
804 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
805 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
806 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
807 on the symbol itself so that DWARF2 strings are merged correctly.
809 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
811 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
812 default tic4x target format to 'coff2-tic4x'.
813 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
815 * config/tc-tic4x.h: Ditto
817 2003-04-03 Nick Clifton <nickc@redhat.com>
819 * NEWS: Mention support for Xtensa architecture.
821 2003-04-02 Philip Blundell <philb@gnu.org>
823 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
825 2003-04-02 Chris Demetriou <cgd@broadcom.com>
827 * config/tc-mips.c (macro2): Adjust implementation of
828 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
829 in the case where the source and destination registers
832 2003-04-01 Bob Wilson <bob.wilson@acm.org>
834 * Makefile.am (CPU_TYPES): Add xtensa.
835 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
836 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
837 (xtensa-relax.o): New target.
839 * Makefile.in: Regenerate.
840 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
841 extra_objects for xtensa targets.
842 * configure: Regenerate.
843 * write.c (write_object_file): Add new md_post_relax_hook.
844 * config/tc-xtensa.c: New file.
845 * config/tc-xtensa.h: Likewise.
846 * config/xtensa-istack.h: Likewise.
847 * config/xtensa-relax.c: Likewise.
848 * config/xtensa-relax.h: Likewise.
849 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
850 * doc/Makefile.in: Regenerate.
851 * doc/all.texi: Set new XTENSA variable.
852 * doc/as.texinfo: Set new Xtensa variable. Describe
853 Xtensa-specific options. Define line comment character for
854 Xtensa. Add Xtensa processors to list of ELF targets where
855 alignment is specified in bytes. Add new Xtensa-Dependent node.
856 Add acknowledgements for those contributing to the Xtensa port.
857 * doc/internals.texi: Describe new md_post_relax_hook.
858 * doc/c-xtensa.texi: New file.
860 2003-04-01 Nick Clifton <nickc@redhat.com>
861 Richard Earnshaw <rearnsha@arm.com>
863 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
864 (ARM_ARCH_IWMMXT): Simplify.
865 (insns): Place iwmmx instructions in correct place in table.
866 (arm_add_note): New function: Add a note entry to a .note section.
867 (md_begin): Make the default architecture be unknown.
868 Suppress the creation of an arm note section.
870 2003-03-26 Eric Christopher <echristo@redhat.com>
872 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
874 2003-03-25 Stan Cox <scox@redhat.com>
875 Nick Clifton <nickc@redhat.com>
877 Contribute support for Intel's iWMMXt chip - an ARM variant:
879 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
880 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
881 (enum wreg_type, enum iwmmxt_insn_type): New types.
882 (wr_register, wc_register, wcg_register): New macros.
883 (iwmmxt_table): New variable.
884 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
885 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
886 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
887 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
888 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
889 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
890 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
891 cp_byte_address_offset, cp_byte_address_required_here,
892 check_iwmmxt_insn): New functions.
893 (asm_opcode_insns): Add iWMMXt instructions.
894 (md_begin): Set the mach value for iWMMXt targets. Create a note
895 section to identify iwmmxt binaries.
896 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
897 * doc/c-arm.texi: Document the support for the iWMMXt.
898 * NEWS: Mention new support.
900 2003-03-24 Daniel Néri <dne@mayonnaise.net>
902 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
903 * doc/all.texi: Likewise.
904 * doc/c-tic54x.texi: Likewise.
906 2003-03-21 Andreas Schwab <schwab@suse.de>
908 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
909 avoid aliasing issue.
911 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
913 * config/tc-s390.c (s390_arch_size): Initialize to zero.
914 (current_arch_mask): Rename to current_mode_mask.
915 (current_arch_requested): Remove variable.
916 (current_cpu): New variable.
917 (init_default_arch): Set defaults values for s390_arch_size,
918 current_mode_mask and current_cpu.
919 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
920 (md_begin): Replace current_arch_mask by current_cpu.
921 (md_assemble): Adapt check and error message to current_mode_mask and
924 2003-03-09 James E Wilson <wilson@tuliptree.org>
926 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
927 * read.c (get_line_sb): Return end of line character or '\n' if
928 it is zero or non-existent.
930 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
932 * config/tc-mips.c (mips_validate_fix): New function.
933 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
934 (mips_validate_fix): Declare.
936 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
938 * Reverted 2003-03-02's patch.
940 2003-03-11 Steve Ellcey <sje@cup.hp.com>
942 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
943 (TC_DWARF2_EMIT_OFFSET): Provide default.
944 (out_debug_aranges, out_debug_info): Use it.
945 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
946 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
947 (ia64_gen_real_reloc_type): ... here.
948 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
950 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
952 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
953 (s_mips_ent): Likewise.
955 2003-03-04 Dmitry Diky <diwil@mail.ru>
957 * config/tc-msp430.c (mcu_types): Add recently announced x1122
958 and x1123 devices, add missed x437.
959 (md_show_usage): Sort device list.
961 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
963 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
964 (md_begin): Use preset_target_arch.
965 (md_longopts): Make isa option unconditional.
966 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
967 set preset_target_arch.
968 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
969 by -S_GET_VALUE (fixP->fx_subsy).
970 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
972 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
973 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
975 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
977 * config/tc-mips.c (append_insn): Add handling of
978 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
979 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
980 misaligned address and reange overflow.
981 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
982 earlier warnings about misaligned address and reange overflow.
983 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
984 (md_apply_fix): Likewise. Fix warning output.
985 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
986 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
987 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
989 2003-02-21 Nick Clifton <nickc@redhat.com>
991 * NEWS: Mention availability of test generator program.
993 2003-02-21 Miles Bader <miles@gnu.org>
995 * config/tc-v850.c (system_registers): Add v850e debug registers.
996 (system_register_name): Accept up to 27 (the last v850e sys register).
998 2003-02-21 Bob Wilson <bob.wilson@acm.org>
1000 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
1001 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
1002 Capitalize section headings consistently. Format index entries more
1003 consistently. Unconditionalize text about whether text and data
1004 sections are alterable. Use @ifnottex for alternatives to @tex output
1005 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
1006 .size and .type directives. Be more polite about bad bug reports.
1007 Move FDL into a separate file.
1008 * doc/fdl.texi: New file.
1010 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
1012 * config/tc-mips.c (prev_reloc_op_frag): New variable.
1013 (macro): Check it to decide whether a new frag is needed.
1014 (my_getSmallExpression): Set it.
1016 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
1018 * cgen.c: Fix typo: intial -> initial.
1020 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
1022 * app.c (do_scrub_chars): Handle '||' in two states.
1024 2003-02-13 Alan Modra <amodra@bigpond.net.au>
1026 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
1027 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
1029 2003-02-11 Uwe Stieber <uwe@wwws.de>
1031 * configure.in: Add support for kaOS as cross build target system.
1032 * configure: Regenerated.
1034 2003-02-10 Nick Clifton <nickc@redhat.com>
1036 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1037 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1038 bfd_mach_arm_ep9312 machine number.
1040 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1042 * config/tc-mips.c (reloc_needs_lo_p): New function.
1043 (fixup_has_matching_lo_p): New function.
1044 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1045 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1046 if that fixup already has a matching %lo(). Don't call frag_wane here.
1047 (macro): Call frag_wane here if the last unmatched hi was in the
1049 (pic_need_relax): New function, split out from...
1050 (md_estimate_size_before_relax): ...here.
1051 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1052 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1054 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1056 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1058 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1060 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1063 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1065 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1066 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1067 accept x@got+off etc.
1068 (md_assemble): Handle TLS relocs.
1069 (ppc_force_relocation): Force for all TLS relocs.
1070 (ppc_fix_adjustable): Likewise.
1071 (md_apply_fix3): Handle TLS relocs.
1073 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1075 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1076 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1078 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1080 * config/tc-mips.c (enum small_ex_type): Remove.
1081 (imm_unmatched_hi): Remove.
1082 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1083 argument from calls to append_insn.
1084 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1086 (macro_build): Update append_insn calls.
1087 (mips16_macro_build, macro_build_lui): Likewise.
1088 (mips_ip): Rework handling of small expressions. Move explicit
1089 relocation handling into my_getSmallExpression. Assume that the
1090 value of 'o' operands is zero if there is only one bracketed
1092 (percent_op): Make constant. Record the BFD relocation code
1093 associated with each operator.
1094 (my_getSmallParser, my_getPercentOp): Remove.
1095 (parse_relocation): New function.
1096 (my_getSamllExpression): Rework. Fill in relocations here
1097 rather than in mips_ip.
1099 2003-01-29 Nick Clifton <nickc@redhat.com>
1101 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1102 assembler's handling of # <linenum> "<filename>" directives work.
1104 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1106 * dwarf2dbg.c: Include filenames.h.
1107 (struct file_entry): Make filename const char *.
1108 (dirs, dirs_in_use, dirs_allocated): New variables.
1109 (get_filenum): Add NUM argument. Build directory table.
1110 (dwarf2_where): Adjust caller.
1111 (dwarf2_directive_file): Use get_filenum to allocate
1112 slot in file and directory tables.
1113 (dwarf2_directive_loc): Recreate full filename from
1114 directory and filename part if needed for listing.
1115 (out_file_list): Output directory table.
1116 Output main source file dirname before its filename.
1118 2003-01-28 Dmitry Diky <diwil@mail.ru>
1120 * config/tc-msp430.c: Replace occurences of 'tolower' with
1123 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1125 * config/tc-ia64.c (dot_vframesp): Correct error message.
1126 (dot_vframepsp): Ditto.
1128 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1130 * configure.in (em): Set to irix on all Irix systems.
1131 * configure: Rebuilt.
1132 * config/te-irix.h: New file.
1133 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1134 whether to use Irix-specific 64-bit format.
1136 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1138 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1140 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1142 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1143 (tc_gen_reloc): Handle TLS relocs.
1144 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1145 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1147 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1148 (obj_elf_type): Handle tls_object.
1150 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1152 * config/tc-s390.c (s390_tls_suffix): New function.
1153 (elf_suffix_type): Add suffix enums for TLS relocations.
1154 (s390_elf_suffix): Add suffix strings for TLS relocations.
1155 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1157 (md_gather_operands): Map new instruction operand/elf suffix
1158 combinations for TLS to bfd relocations.
1159 (tc_s390_fix_adjustable): Add new TLS relocations.
1160 (tc_s390_force_relocation): Likewise.
1161 (md_apply_fix3): Likewise.
1163 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1165 * as.h: Update copyright date.
1166 * symbols.c: Likewise.
1167 * config/tc-d10v.h: Likewise.
1168 * config/tc-fr30.h: Likewise.
1169 * config/tc-i960.h: Likewise.
1170 * config/tc-mips.h: Likewise.
1172 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1173 (MD_APPLY_SYM_VALUE): Move.
1175 2003-01-23 Nick Clifton <nickc@redhat.com>
1177 * NEWS: Announce sh2e support.
1180 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1181 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1182 (sh_elf_final_processing): Handle arch_sh2e.
1184 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1186 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1187 * symbols.h (S_FORCE_RELOC): Likewise.
1188 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1189 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1190 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1191 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1192 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1193 * write.c (generic_force_reloc): New function.
1194 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1195 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1196 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1197 * as.h (generic_force_reloc): Declare.
1198 * doc/internals.texi (S_FORCE_RELOC): Update.
1199 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1201 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1202 generic_force_reloc.
1203 (alpha_fix_adjustable): Likewise.
1204 * config/tc-arm.c (arm_force_relocation): Likewise.
1205 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1206 * config/tc-frv.c (frv_force_relocation): Likewise.
1207 * config/tc-i386.c (md_apply_fix3): Likewise.
1208 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1209 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1210 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1211 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1212 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1213 * config/tc-mips.c (mips_force_relocation): Likewise.
1214 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1215 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1216 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1217 * config/tc-sh.c (sh_force_relocation): Likewise.
1218 (md_pcrel_from_section): Likewise.
1219 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1220 * config/tc-v850.c (v850_force_relocation): Likewise.
1221 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1222 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1223 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1224 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1226 * config/tc-d10v.c (d10v_force_relocation): Delete.
1227 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1228 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1229 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1230 * config/tc-fr30.c (fr30_force_relocation): Delete.
1231 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1232 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1233 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1234 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1235 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1236 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1237 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1238 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1239 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1240 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1241 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1242 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1243 * config/tc-i386.c (i386_force_relocation): Delete.
1244 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1246 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1247 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1248 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1249 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1251 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1252 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1254 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1256 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1257 sh64_elf_section_data.
1258 * config/tc-sh64.h: Include elf32-sh64.h.
1259 * config/tc-m68hc11.c: Don't include stdio.h.
1260 (md_show_usage): Fix missing continuation.
1261 * Makefile.am: Run "make dep-am".
1262 * Makefile.in: Regenerate.
1264 2003-01-22 Nick Clifton <nickc@redhat.com>
1266 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1268 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1270 * configure.in: Handle *-*-aros*.
1271 * configure: Regenerated from configure.in.
1273 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1275 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1276 gotplt and pltoff relocations.
1277 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1278 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1279 gotplt and pltoff to bfd relocations.
1280 (md_gather_operands): Map new instruction operand/elf suffix
1281 combinations to bfd relocations.
1282 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1283 to the list of unadjustable relocations.
1284 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1285 and pltoff relocations.
1286 (md_apply_fix3): Add the new relocations.
1288 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1290 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1291 with a subsy symbol.
1293 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1295 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1296 of relocs for memory bank addressing.
1298 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1300 * config/tc-m68hc11.c (md_show_usage): Update usage.
1301 (md_parse_option): Recognize -m68hcs12.
1302 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1304 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1306 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1308 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1310 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1312 * Makefile.am: Run "make dep-am".
1313 * Makefile.in: Regenerate.
1314 * po/POTFILES.in: Regenerate.
1316 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1318 * read.c (get_absolute_expr): New, split out from..
1319 (get_absolute_expression): ..here.
1320 * read.h (get_absolute_expr): Declare.
1321 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1322 Trim size to arch bits_per_address, and test for negative input
1323 via get_absolute_expr.
1325 2003-01-07 DJ Delorie <dj@redhat.com>
1327 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1329 (xstormy16_md_apply_fix3): Use adjustment.
1331 2003-01-02 Ben Elliston <bje@redhat.com>
1333 * configure.in: Add iq2000-elf target.
1334 * configure: Regenerate.
1335 * config/tc-iq2000.c: New file.
1336 * config/tc-iq2000.h: Likewise.
1337 * po/gas.pot: Regenerate.
1339 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1341 * config/tc-mips.c: Update copyright years to include 2003.
1342 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1343 Additionally, clean up their code slightly and clean up their
1346 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1348 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1350 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1352 * doc/Makefile.in: Regenerate.
1354 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1356 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1357 of .init and .fini sections for array initializers and finalizers.
1359 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1361 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1362 the "+D" operand, which will be used only by the disassembler.
1364 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1366 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1368 * configure: Regenerate.
1369 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1370 (macro_build): Handle "K" operand.
1371 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1372 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1373 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1374 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1375 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1376 (validate_mips_insn): Implement "+" as a way to extend the
1377 allowed operands, and implement "K", "+A", "+B", and "+C"
1379 (OPTION_MIPS32R2): New define.
1380 (md_longopts): Add entry for OPTION_MIPS32R2.
1381 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1382 (md_parse_option): Handle OPTION_MIPS32R2.
1383 (s_mipsset): Reimplement handling of ".set mipsN" options
1384 and add support for ".set mips32r2".
1385 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1386 (md_show_usage): Document "-mips32r2" option.
1387 * doc/as.texinfo: Document "-mips32r2" option.
1388 * doc/c-mips.texi: Likewise.
1390 2002-12-30 Dmitry Diky <diwil@mail.ru>
1392 * configure.in: Add msp430 target.
1393 * configure: Regenerate.
1394 * Makefile.am: Add msp430 target.
1395 * Makefile.in: Regenerate.
1396 * config/tc-msp430.c: New file: msp430 assembler.
1397 * config/tc-msp430.h: New file: target macros for msp430.
1398 * doc/Makefile.am: Add msp430 target.
1399 * doc/Makefile.in: Regenerate.
1400 * doc/as.texinfo: Include msp430 documenation.
1401 * doc/all.texi: Enable msp430 documentation.
1402 * doc/c-msp430.texi: New file: document msp430 specific features
1405 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1407 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1408 (dwarf2_finish): Use it.
1409 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1410 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1412 2002-12-20 DJ Delorie <dj@redhat.com>
1414 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1415 BFD_RELOC_XSTORMY16_12.
1417 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1419 * doc/as.texinfo (Invoking): Typo fix.
1420 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1422 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1424 * doc/c-alpha.texi: Fix typos.
1425 * doc/c-arm.texi: Likewise.
1426 * doc/c-d10v.texi: Likewise.
1427 * doc/c-i370.texi: Likewise.
1428 * doc/c-i960.texi: Likewise.
1429 * doc/c-ia64.texi: Likewise.
1430 * doc/c-mmix.texi: Likewise.
1431 * doc/c-ns32k.texi: Likewise.
1432 * doc/c-pdp11.texi: Likewise.
1433 * doc/c-pj.texi: Likewise.
1434 * doc/c-sh64.texi: Likewise.
1435 * doc/c-sparc.texi: Likewise.
1436 * doc/c-tic54x.texi: Likewise.
1437 * doc/c-v850.texi: Likewise.
1438 * doc/c-vax.texi: Likewise.
1439 * doc/internals.texi: Likewise.
1441 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1443 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1444 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1445 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1446 arrange not to issue warnings about use of AT when AT is not
1449 2002-12-17 Nick Clifton <nickc@redhat.com>
1451 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1452 prevent it being confused with -k.
1454 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1456 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1457 has already been set up, use it.
1459 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1461 * ChangeLog-9295: Fix a typo.
1463 * config/tc-d10v.c: Fix a comment typo.
1464 * config/tc-dlx.c: Likewise.
1465 * config/tc-h8300.h: Likewise.
1466 * config/tc-h8500.h: Likewise.
1467 * config/tc-mips.c: Likewise.
1468 * config/tc-s390.c: Likewise.
1469 * config/tc-sh.h: Likewise.
1470 * config/tc-tic80.h: Likewise.
1471 * config/tc-w65.h: Likewise.
1472 * config/tc-z8k.c: Likewise.
1473 * config/tc-z8k.h: Likewise.
1474 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1476 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1478 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1479 Simplify sign extension. Remove redundant unsigned < 0 test.
1480 * config/tc-i960.c (md_ri_to_chars): Prototype.
1481 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1482 (dump_literals): Init brarsym, and test later instead of isforce.
1484 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1485 (parse): Constify line and lineptr.
1486 (md_begin): Calculate endop here.
1488 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1490 * config/obj-vms.c: Formatting. Include fnctl.h.
1491 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1492 (Object_Record_Offset): Make it a size_t.
1493 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1494 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1495 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1496 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1497 (vms_fixup_data_section <data_size>): Add here instead.
1498 * config/e-criself.c: Fix typo in last change.
1500 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1502 * write.c (write_object_file): Fix signed/unsigned warning.
1503 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1504 * config/e-criself.c (criself_bfd_name): Prototype.
1505 * config/obj-aout.c (s_sect): Remove unused function.
1506 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1507 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1508 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1509 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1510 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1511 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1512 (vms_fixup_text_section <text_siz>): Likewise.
1513 (synthesize_data_segment <data_size>): Likewise.
1514 (vms_fixup_xtors_section <sect_no>): Likewise.
1515 (structure_count): Don't use implicit int type.
1516 * config/tc-a29k.c (insert_sreg): Prototype.
1517 (define_some_regs): Prototype, make static.
1518 (parse_operand): Likewise.
1519 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1520 (md_show_usage <stream>): Likewise.
1521 (md_section_align <segment>): Likewise.
1522 (md_convert_frag <all args>): Likewise.
1523 (md_estimate_size_before_relax <all args>): Likewise.
1524 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1525 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1526 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1527 (md_undefined_symbol <name>): Likewise.
1528 (md_convert_frag <all args>): Likewise.
1529 (write_long <opcode>): Likewise.
1530 (tc_gen_reloc <seg>): Likewise.
1531 (md_estimate_size_before_relax <all args>): Likewise.
1532 (md_apply_fix3 <seg>): Likewise.
1533 (s_d30v_align <ignore>): Likewise.
1534 (build_insn): Correct format string.
1535 (md_apply_fix3): Likewise.
1536 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1537 (md_undefined_symbol <name>): Likewise.
1538 (md_convert_frag <all args>): Likewise.
1539 (md_cgen_lookup_reloc <insn>): Likewise.
1540 (md_begin): Delete unused vars.
1541 (md_assemble): Likewise.
1542 (md_estimate_size_before_relax): Likewise.
1543 (fr30_relax_frag): #if 0 out, seems unused.
1544 (md_atof): Remove declaration of atof_ieee.
1545 (restore_colon): Prototype.
1546 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1547 (frv_find_in_vliw): Likewise.
1548 (frv_debug_tomcat): Likewise.
1549 (frv_adjust_vliw_count): Likewise.
1550 (frv_tomcat_shuffle): Likewise.
1551 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1552 frv_find_in_vliw call.
1553 (md_atof): Remove declaration of atof_ieee.
1554 * config/tc-h8500.c (cons): Delete declaration.
1555 (md_begin <opcode>): Constify.
1556 (displacement_size, immediate_size, absolute_size): Remove.
1557 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1558 (tc_crawl_symbol_chain <headers>): Likewise.
1559 (md_undefined_symbol <name>): Likewise.
1560 (tc_headers_hook <headers>): Likewise.
1561 (md_parse_option <c,arg>): Likewise.
1562 (md_show_usage <stream>): Likewise.
1563 (md_convert_frag <headers, seg>): Likewise.
1564 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1565 (md_atof): Remove declaration of atof_ieee.
1566 (tc_aout_fix_to_chars): Remove unused function.
1567 (parse_reg): Prototype.
1568 (parse_exp): Prototype.
1569 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1570 (parse_reglist): Prototype.
1571 (get_operand): Prototype.
1572 (get_operands): Prototype.
1573 (get_specific): Prototype. Make "this_index" signed.
1574 (check): Prototype, make static.
1576 (build_relaxable_instruction): Prototype, make static.
1577 (build_bytes): Prototype.
1578 (wordify_scb): Prototype.
1579 * config/tc-h8500.h (start_label): Declare.
1580 (tc_coff_sizemachdep): Declare.
1581 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1582 (i370_rmode <unused>): Likewise.
1583 (i370_csect <unused>): Likewise.
1584 (i370_dc <unused>): Likewise.
1585 (i370_ds <unused>): Likewise.
1586 (i370_elf_lcomm <unused>): Likewise.
1587 (i370_ltorg <ignore>): Likewise.
1588 (i370_using <ignore>): Likewise.
1589 (i370_drop <ignore>): Likewise.
1590 (i370_byte <ignore>): Likewise.
1591 (i370_tc <ignore>): Likewise.
1592 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1593 (md_convert_frag <all args>): Likewise.
1594 (md_undefined_symbol <name>): Likewise.
1595 (md_pcrel_from_section <sec>): Likewise.
1596 (tc_gen_reloc <seg>): Likewise.
1597 (i370_section_letter): #if 0 unused functions.
1598 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1599 (symbol_locate): Prototype.
1600 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1601 (md_number_to_disp, md_number_to_field): Remove.
1602 (md_apply_fix3): Correct format string and cast "fup".
1603 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1604 (s_endian <ignore>): Likewise.
1605 (md_undefined_symbol <name>): Likewise.
1606 (tc_crawl_symbol_chain <headers>): Likewise.
1607 (tc_set_bal_of_call): Likewise.
1608 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1609 (i960_handle_align <fragp>): Likewise.
1610 (i960_validate_fix <this_segment_type>): Likewise
1611 (tc_gen_reloc <section>): Likewise.
1612 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1613 (struct memS, struct regop): Forward declare.
1614 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1615 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1616 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1617 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1618 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1619 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1620 (md_number_to_field): Likewise.
1621 (md_number_to_disp): Remove unused function.
1622 (md_atof): Remove declaration of atof_ieee.
1623 (md_apply_fix3): Correct md_number_to_imm call.
1624 * config/tc-ip2k.c (md_assemble): Warning fix.
1625 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1626 (fill_insn <ignore>): Likewise.
1627 (debug_sym <ignore>): Likewise.
1628 (md_undefined_symbol <name>): Likewise.
1629 (m32r_scomm <ignore>): Likewise.
1630 (md_convert_frag <abfd>): Likewise.
1631 (md_cgen_lookup_reloc <insn>): Likewise.
1632 (m32r_record_hi16 <seg>): Likewise.
1633 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1634 (allow_m32rx): Prototype.
1635 (first_writes_to_seconds_operands): Prototype.
1636 (writes_to_pc): Prototype.
1637 (can_make_parallel): Prototype.
1638 (make_parallel): Prototype.
1639 (target_make_parallel): Prototype.
1640 (assemble_two_insns): Prototype.
1641 (m32r_record_hi16): Prototype.
1642 (md_atof): Remove declaration of atof_ieee.
1643 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1644 (m32r_force_relocation): Prototype.
1645 (m32r_elf_section_change_hook): Prototype.
1646 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1647 (md_show_usage): Fix signed/unsigned warning.
1648 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1649 (calcop): Ditto for reg_prefix var.
1650 (hexval): Add cast to fix signed/unsigned warning.
1651 (md_number_to_disp): Delete unused function.
1652 (md_number_to_field): Likewise.
1653 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1654 (match_name): Prototype.
1655 (get_bf2): Prototype.
1656 (get_bf_offset_expression): Prototype.
1657 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1658 (md_undefined_symbol <ignore>): Likewise.
1659 (md_create_short_jump <all args>): Likewise.
1660 (md_create_long_jump <all args>): Likewise.
1661 (md_convert_frag <abfd, sec>): Likewise.
1662 (md_apply_fix3 <segment>): Likewise.
1663 (md_section_align <segment>): Likewise.
1664 (md_pcrel_from_section <sec>): Likewise.
1665 (tc_gen_reloc <section>): Likewise.
1666 (reg_m, reg_n, immediate): Delete unused vars.
1667 (dump_literals): Fix signed/unsigned warning.
1668 (enter_literal): Likewise.
1669 (parse_imm): Likewise. Also fix format string.
1670 (parse_mem): Remove unused var.
1671 (md_assemble <LS>): Abort on unexpected inst.
1672 (md_atof): Remove declaration of atof_ieee.
1673 (md_parse_option): Remove unused vars.
1674 (md_apply_fix3): Fix format strings, cast args.
1675 (tc_gen_reloc): Delete unused var.
1676 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1677 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1678 (md_undefined_symbol <name>): Likewise.
1679 (md_convert_frag <abfd>): Likewise.
1680 (tc_gen_reloc <seg>): Likewise.
1681 (check_operand <insn>): Likewise.
1682 (md_convert_frag): Fix format strings.
1683 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1684 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1685 (md_atof): Remove declaration of atof_ieee.
1686 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1687 (md_apply_fix3): Fix bogus >>='s.
1688 (md_undefined_symbol): Delete unused var.
1689 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1690 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1691 (fake_opcode): Adjust for pj_opc_int_t change.
1692 (md_begin): Likewise.
1693 (md_assemble): Likewise.
1694 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1695 instead of non-existent third arg of parse_exp_save_ilp.
1696 (md_parse_option): Correct "little" and "big" calls.
1697 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1698 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1699 (tc_gen_reloc <section>): Likewise.
1700 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1701 (debug): Rewrite using VA_* macros.
1702 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1703 (md_convert_frag): Likewise.
1704 (md_parse_option): Likewise.
1705 (md_show_usage): Likewise.
1706 (md_undefined_symbol): Likewise.
1707 (tc_gen_reloc): Likewise.
1708 (md_operand): Likewise.
1709 (tc_aout_pre_write_hook): Delete.
1710 (struct tic30_insn): Make "operands" unsigned.
1711 (struct tic30_par_insn): Likewise.
1712 (md_assemble): Likewise for "count", "i" and "numops".
1713 (tic30_parallel_insn): Likewise for vars here.
1714 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1715 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1716 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1717 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1718 (md_undefined_symbol): Likewise.
1719 (md_parse_option): Likewise.
1720 (md_convert_frag): Likewise.
1721 (tc_coff_symbol_emit_hook): Likewise.
1722 (md_atof): Remove declaration of atof_ieee.
1723 (const_overflow): Warning fixes, tidy.
1724 (get_operands): Delete unused vars.
1725 (internal_error_a): Adjust format string to expect a long for arg.
1726 (find_opcode): Warning fixes, simplify.
1727 (build_insn): Cast internal_error_a arg.
1728 (md_begin): Likewise.
1729 (md_apply_fix3): Likewise.
1730 (md_assemble): Delete unused var.
1731 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1732 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1733 (whatreg, parse_reg, parse_exp): Make static, prototype.
1734 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1735 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1736 (get_operand, get_operands, get_specific, newfix): Likewise.
1737 (apply_fix, build_bytes): Likewise.
1738 (md_atof): Remove declaration of atof_ieee.
1739 (tc_aout_fix_to_chars): Delete.
1740 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1742 (md_parse_option): Fix s_segm and s_unseg calls.
1744 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1746 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1748 (RELAX_BRANCH_RELOC_S2): Delete.
1749 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1750 Do not handle BFD_RELOC_16_PCREL.
1751 (macro_build, mips_ip): Likewise.
1752 (md_pcrel_from): Return 4 for undefined symbols regardless of
1754 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1755 Don't dereference howto if no such relocation is available.
1756 Do not apply hack for in-place zero addend in NEWABI.
1757 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1759 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1760 Alan Modra <amodra@bigpond.net.au>
1762 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1763 (TC_LINKRELAX_FIXUP): Add comments.
1765 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1767 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1769 (r_register_name, xr_register_name): Add prototype declarations.
1771 2002-12-08 H.J. Lu <hjl@gnu.org>
1773 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1774 copied from tc-i386.c.
1776 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1778 Fix Bug savannah/1825:
1779 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1780 (md_relax_table): Define specific relax for PC-rel offsets.
1781 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1782 (m68hc11_relax_frag): Handle the new relax code.
1783 (md_convert_frag): Likewise.
1784 (md_estimate_size_before_relax): Likewise.
1786 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1788 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1790 2002-12-05 Richard Henderson <rth@redhat.com>
1792 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1793 (ia64_gen_real_reloc_type): Handle it.
1794 (pseudo_func): Add @ltoffx.
1795 (md_begin): Build .<ltoffx>.
1796 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1798 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1800 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1801 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1802 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1803 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1804 COFF to call arm_force_relocation.
1806 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1808 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1810 (emit_one_bundle): Handle "hint" instruction.
1811 (operand_match): Match IA64_OPND_AR_CSD.
1813 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1815 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1818 2002-12-03 Nick Clifton <nickc@redhat.com>
1820 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1821 .PPC.EMB.apuinfo sections.
1823 2002-12-03 Richard Henderson <rth@redhat.com>
1825 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1827 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1829 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1830 (cons, s_align_bytes): Delete declaration.
1832 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1834 (dot): Delete unused function.
1835 (w65_expression): Remove unused arg.
1836 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1838 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1840 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1842 (check): Remove unused function.
1843 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1844 on unhandled switch case.
1845 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1847 (tc_crawl_symbol_chain): Delete unused function.
1848 (tc_headers_hook): Likewise.
1849 (tc_Nout_fix_to_chars): Likewise.
1850 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1851 (md_parse_option): Likewise.
1852 (md_convert_frag): Likewise.
1853 (tc_coff_symbol_emit_hook): Likewise.
1854 (md_show_usage): Likewise.
1855 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1856 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1857 (w65_expression): Declare.
1859 * po/POTFILES.in: Regenerate.
1861 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1862 and ARM_ADRL_IMMEDIATE.
1864 2002-12-02 Nick Clifton <nickc@redhat.com>
1866 * gasp.c: Delete. It has been deprecated.
1867 * NEWS: Mention that gasp has been removed.
1868 * Makefile.am: Remove references to gasp.
1869 * makefile.vms: Likewise.
1870 * mpw-make.sed: Likewise.
1871 * Makeile.in: Regenerate.
1872 * doc/gasp.texi: Delete.
1873 * doc/Makefile.am: Remove references to gasp.texi.
1874 * doc/Makefile.in: Regenerate.
1875 * macro.c: Delete references to gasp.
1876 Remove use of comment_char function parameter as it is no longer
1878 * macro.h: Update prototypes to remove comment_char parameter.
1880 * read.c (read_a_source_file, s_irp): Remove comment_char
1881 parameter from invocation of functions in macro.c
1883 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1885 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1887 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1889 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1890 (tc_gen_reloc): Mark section param as not used.
1892 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1894 Fix Bug savannah/1825:
1895 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1896 that are not pc-relative.
1897 (m68hc11_relax_frag): Declare.
1899 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1900 the offsetable indexed addressing modes (n,r).
1901 (build_insn): Cleanup some locals.
1902 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1903 relaxation of difference between two symbols of same section.
1904 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1905 only when this is a PC-relative operand and the offset is not absolute.
1906 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1907 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1908 be handled by m68hc11_relax_frag.
1910 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1912 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1913 (32-bit int, 64-bit double).
1914 (md_longopts): New options -mshort, -mlong, -mshort-double and
1915 -mlong-double to control the ABI.
1916 (md_show_usage): Update.
1917 (md_parse_option): Handle new options.
1918 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1920 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1922 * symbols.c (report_op_error): New function, broken out of ...
1923 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1926 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1928 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1929 for BFD_RELOC_32_PLT_PCREL.
1931 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1933 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1934 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1935 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1936 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1937 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1938 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1939 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1940 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1941 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1942 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1943 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1944 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1945 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1946 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1947 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1948 TRUE/FALSE. Formatting.
1950 2002-11-29 Nick Clifton <nickc@redhat.com>
1952 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1953 assume a value of zero.
1954 (do_bkpt): Likewise.
1956 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1958 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1959 for TLS relocations.
1961 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1963 * config/tc-ia64.c (md_apply_fix3): Add default case.
1965 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1967 * symbols.c (S_SET_THREAD_LOCAL): New function.
1968 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1969 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1970 for TLS relocations.
1971 * config/tc-ia64.c (md_apply_fix3): Likewise.
1972 * config/tc-alpha.c (md_apply_fix3): Likewise.
1974 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1976 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1979 2002-11-26 DJ Delorie <dj@redhat.com.
1981 * dwarf2dbg.c (scale_addr_delta): New.
1982 (size_inc_line_addr): Use it.
1983 (emit_inc_line_addr): Use it.
1985 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1987 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1988 (md_assemble): Don't pass on branches to constants as relaxable.
1991 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1993 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1995 2002-11-21 Randolph Chung <randolph@tausq.org>
1997 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1998 only if they have default visibility.
2000 2002-11-21 Richard Henderson <rth@redhat.com>
2002 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
2005 2002-11-21 Alan Modra <amodra@bigpond.net.au>
2007 * config/tc-mcore.c (mcore_pool_count): New function.
2008 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
2010 2002-11-20 Klee Dienes <kdienes@apple.com>
2012 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
2013 coalesce the name fields to use the same pointer.
2015 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
2016 the name fields to use the same pointer.
2017 (get_specific): Check for opcodes with the same name using strcmp
2018 as well as comparing the pointer.
2020 2002-11-20 Alan Modra <amodra@bigpond.net.au>
2022 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
2025 2002-11-19 Richard Henderson <rth@redhat.com>
2027 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
2028 visibility portion of st_other.
2030 2002-11-19 Klee Dienes <kdienes@apple.com>
2032 * config/tc-h8300.c (struct h8_instruction): New type, used to
2033 wrap h8_opcodes with length, noperands, idx, and size fields
2034 (computed at run-time).
2035 (h8_instructions): New variable.
2036 (md_begin): Allocate the storage for h8_instructions. Fill
2037 h8_instructions with pointers to the appropriate opcode and the
2038 correct value for the additional fields.
2039 (clever_message): Update to use h8_instructions instead of
2041 (build_bytes): Ditto.
2042 (get_specific): Ditto.
2043 (md_assemble): Ditto.
2045 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2047 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2048 adjustments to symbols in merge sections.
2050 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2052 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2054 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2056 * dwarf2dbg.h (dwarf2_format): New enum.
2057 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2058 (out_debug_line, out_debug_info): Add code for handling 64-bit
2060 * config/tc-mips.h (mips_dwarf2_format): Declare.
2061 * config/tc-mips.c (mips_dwarf2_format): New function.
2062 * doc/internals.texi (DWARF2_FORMAT): Document.
2064 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2066 * config/tc-mips.c (s_change_section): Make sure input buffer
2067 is not accessed past the end. Don't hand
2068 obj_elf_change_section a pointer into the input buffer.
2070 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2072 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2075 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2077 * config/tc-tic4x.c: Fixed proper commandline
2078 parameters. Added support for new opcode-list format. General
2079 error message fixups.
2080 (c4x_inst_add): Reject insn not for our CPU
2081 (md_begin): Added matrix for setting the proper opcode-level &
2082 device-flags according to cpu type and revision. Rewrite the
2084 (c4x_operand_parse): Fix opcode bug
2085 (c4x_operands_match): New function argument. Added dry-run
2086 mechanism, that is optional error generation. Added constraint 'i'
2088 (c4x_insn_check): Added new function for post-verification of the
2090 (md_assemble): Check all opcodes before croaking because of an
2091 argument mismatch. Need this to be able to fully support
2092 ortogonally arguments.
2093 (md_parse_options): Revised commandprompt swicthes and added new
2095 (md_show_usage): Complete rewrite of printout.
2097 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2099 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2100 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2101 warning when using constant direct bigger than 2^16. Add the new
2104 2002-11-11 Christopher Faylor <cgf@redhat.com>
2106 * configure.in: Use .gdbinit under Cygwin.
2107 * configure: Regenerate.
2109 2002-11-11 Christopher Faylor <cgf@redhat.com>
2111 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2114 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2116 * config/tc-tic4x.c: Declare as many functions as possible as
2117 static. Maintenance on the general indenting. Removed unnecessary
2118 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2119 function. Add support for new DSP, TMS320VC33. Fix bug for
2120 converting flonum constants.
2121 (c4x_do_align): Add proper align handling. Setup align to insert
2123 (c4x_gen_to_words): Support for extended TI type floats.
2124 (md_atof): Proper dumping of multiple-word littlenums.
2125 (c4x_atof): Added support for extended TI type floats.
2126 (c4x_stringer): Added new function to handle compact strings.
2127 (c4x_emit_char): Added new function argument to handle custom
2128 length inserts, like single-byte strings.
2129 * config/tc-tic4x.h: Add proper align handling with NOP's.
2130 * Makefile.am: Added tic4x dependecy
2131 * Makefile.in: Regenerate
2133 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2135 * macro.c (get_any_string): Correct logic for not going beyond end
2138 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2140 * config/tc-mmix.c (get_putget_operands): Mark both possible
2141 operands as invalid at beginning.
2143 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2144 Initialize target of fixup to zero.
2146 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2148 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2149 NEWABI, but we should still emit HI16_S for non-PIC n32.
2151 2002-11-06 Richard Henderson <rth@redhat.com>
2153 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2154 (alpha_fix_adjustable): ... here.
2155 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2157 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2159 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2162 2002-11-05 H.J. Lu <hjl@gnu.org>
2164 * config/tc-mips.c (support_64bit_objects): Check *l before it
2167 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2169 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2170 SEC_LOAD flags for sections marked as 's'.
2172 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2174 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2175 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2176 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2179 * dep-in.sed: Fix typo.
2181 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2183 * configure.in: Update ARM CPU patterns.
2184 * configure: Regenerated.
2186 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2188 * itbl-lex.l: Use #include <> for generated headers.
2189 * itbl-ops.c: Likewise.
2191 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2193 * doc/gasp.texi: Fix typo in deprecation note.
2195 2002-10-23 Nick Clifton <nickc@redhat.com>
2197 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2198 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2200 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2202 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2203 (tc_frob_file_before_adjust): Don't define.
2204 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2206 (mmix_frob_file_before_adjust): Remove ineffective function.
2208 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2210 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2211 (cris_relax_frag): New function.
2212 (md_estimate_size_before_relax) <case ENCODE_RELAX
2213 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2214 expressions that will become absolute expressions to relaxation.
2215 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2216 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2217 value, not distance to symbol.
2218 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2219 Ditto. Correct placement of fixup.
2220 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2222 * config/tc-cris.h (cris_relax_frag): Declare.
2223 (md_relax_frag): Define.
2225 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2227 * config/obj-elf.c (special_sections): Use correct types for init
2229 (obj_elf_change_section): Don't mess with init array section type.
2231 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2233 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2234 for relocs against symbols in a merged section.
2236 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2238 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2239 table as register names.
2241 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2243 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2246 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2248 * expr.c (operand): Add support for n.nn flonums.
2250 2002-10-17 Johannes Stezenbach <js@convergence.de>
2252 * itbl-parse.y (entry): Provide empty action.
2254 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2256 * configure.in (BFDVER_H): Set and subst.
2257 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2258 * Makefile.am: Run "make dep-am".
2260 * configure: Regenerate.
2261 * Makefile.in: Regenerate.
2262 * doc/Makefile.in: Regenerate.
2264 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2266 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2267 (MD_APPLY_SYM_VALUE): Define for PE too.
2269 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2271 * Makefile.am: Run "make dep-am".
2272 (CPU_OBJ_VALID): sh64 coff is invalid.
2273 * as.c: #include "bfdver.h".
2274 * Makefile.in: Regenerate.
2275 * config.in: Regenerate.
2277 2002-10-14 Momchil Velikov <velco@fadata.bg>
2279 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2281 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2283 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2284 * configure: Regenerate.
2286 2002-10-13 Eric Christopher <echristo@redhat.com>
2287 Alexandre Oliva <aoliva@redhat.com>
2289 * config/tc-mips.c (s_gpdword): New function.
2290 (mips_pseudo_table): Add .gpdword.
2291 (mips_need_elf_addend_fixup): never for NEWABI.
2292 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2294 (s_cpadd): Generate .cpadd on NEWABI.
2296 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2298 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2300 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2302 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2303 (md_relax_frag): Adjust macro.
2304 * config/tc-mips.c (mips_relax_branch): New variable.
2305 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2306 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2307 (RELAX_MIPS16_P): Adjust.
2308 (append_insn): Emit branch to non-constant in a frag_var if
2309 branch-relaxation is desirable and possible.
2310 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2311 (OPTION_ELF_BASE): Adjust.
2312 (md_parse_option): Handle new options.
2313 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2315 (relaxed_branch_length): New function.
2316 (md_estimate_size_before_relax): Handle branch frags.
2317 (mips_relax_frag): Likewise.
2318 (md_convert_frag): Handle branch frags. Warn if branch is
2321 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2323 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2325 (md_apply_fix3): Add TLS relocs.
2326 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2329 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2330 Alan Modra <amodra@bigpond.net.au>
2332 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2333 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2335 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2337 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2340 2002-10-09 Richard Shann <richard.shann@superh.com>
2341 Stephen Clarke <stephen.clarke@superh.com>
2343 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2346 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2348 * contig/tc-sh.c (sh_local_pcrel): New.
2349 (sh_force_relocation): Use sh_local_pcrel.
2350 (md_pcrel_from_section): Check the relocation type whether it
2351 should be resolved locally. Use S_FORCE_RELOC.
2353 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2355 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2356 (TC_FORCE_RELOCATION): Tidy arg.
2358 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2359 Ken Raeburn <raeburn@cygnus.com>
2360 Aldy Hernandez <aldyh@redhat.com>
2361 DJ Delorie <dj@redhat.com>
2362 Michael Meissner <meissner@redhat.com>
2363 Eric Christopher <echristo@redhat.com>
2364 Richard Sandiford <rsandifo@redhat.com>
2366 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2367 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2368 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2369 (hilo_interlocks): True for CPU_VR5500.
2370 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2371 (mips_fix_vr4122_bugs): New.
2372 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2373 (mips_emit_delays): Likewise.
2374 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2375 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2376 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2377 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2378 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2379 (OPTION_ELF_BASE): Bump.
2380 (md_parse_option): Handle the new options.
2381 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2384 2002-09-29 H.J. Lu <hjl@gnu.org>
2386 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2387 twice if howto->pcrel_offset is true.
2389 2002-09-28 Matt Thomas <matt@3am-software.com>
2390 Jason Thorpe <thorpej@wasabisystems.com>
2392 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2393 convert undefined references to GOT32/PLT32 if PIC code is
2394 requested. Fix comment.
2396 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2398 * config/tc-sh.c (sh_force_relocation): Return 0 for
2399 some PC relative relocations when not relaxing.
2401 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2403 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2404 Define them if not BFD_ASSEMBLER.
2405 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2407 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2408 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2409 (tc_gen_reloc): Handle x86-64 TLS relocs.
2411 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2413 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2414 fixups to current or absolute section.
2416 2002-09-26 Jim Wilson <wilson@redhat.com>
2418 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2421 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2423 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2424 capable configuration.
2425 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2427 (mips_ip): Likewise.
2429 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2431 * config/tc-mips.c (append_insn): Fix jump overflow check.
2433 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2435 * config/tc-i386.c (process_operands): Warn about "lea" segment
2438 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2440 * write.c: Delete set_segment_vma and prototype. Update all callers.
2442 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2444 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2445 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2446 Rename "fseg" to "sym_seg".
2447 * Makefile.am: Run "make dep-am".
2448 * Makefile.in: Regenerate.
2449 * doc/Makefile.in: Regenerate.
2451 2002-09-20 Nick Clifton <nickc@redhat.com>
2453 * symbols.c (colon): Do not allow symbols to be created in the
2454 absolute section if WORKING_DOT_WORD is not defined and
2455 new_broken_words would require a new frag to be created.
2457 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2459 * expr.c (expr): Simplify foo-foo here.
2460 (clean_up_expression): Remove O_subtract code.
2462 * write.h (struct fix): Add fx_dot_value.
2463 (dot_value): Declare.
2464 * write.c (dot_value): New var.
2465 (fix_new_internal): Save dot_value as fx_dot_value.
2466 (fixup_segment): Adjust fx_offset using fx_dot_value.
2467 * expr.c (expr): Update dot_value.
2469 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2471 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2472 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2473 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2475 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2476 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2477 BFD_RELOC_386_TLS_GOTIE.
2479 2002-09-19 Richard Henderson <rth@redhat.com>
2481 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2483 (alpha_force_relocation): Don't special-case branch type relocs.
2485 2002-09-19 Nick Clifton <nickc@redhat.com>
2487 * config/tc-m68k.c (select_control_regs): Handle situation where
2488 architecture has not yet been selected.
2490 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2492 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2493 (IS_SEXT_16BIT_NUM): New macro.
2494 (macro_build_ldst_constoffset): New function, to build a set of
2495 instructions to do a load or store from a constant offset relative
2496 to a given register.
2497 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2498 .cprestore pseudo-op.
2500 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2502 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2504 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2506 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2508 2002-09-17 Stan Cox <scox@redhat.com>
2510 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2511 (macro): Likewise for la. Likewise for ld.
2512 (mips_after_parse_args): Make -xgot optional, not the default.
2513 (md_apply_fix3): Allow composite relocation to set up gp.
2514 (tc_gen_reloc): Allow relaxing for newabi.
2515 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2516 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2518 2002-09-17 Nick Clifton <nickc@redhat.com>
2520 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2521 BFD_RELOC_ARM_IMMEDIATE has been done.
2522 (tc_gen_reloc): Do not issue reloc number of unimplemented
2523 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2524 their name is already in the error message - plus remove them
2525 from the default case.
2527 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2528 behavior of instructions.
2530 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2532 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2533 Convert functions to K&R format.
2535 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2537 * config/tc-mips.c (pdr_seg): Define only for ELF.
2538 (s_change_section): Remove unused variable. Don't use for nonELF.
2540 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2542 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2544 * config/obj-elf.h (obj_elf_change_section): Likewise.
2546 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2548 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2549 (out_debug_info): Likewise.
2551 2002-09-16 Bruno Haible <bruno@clisp.org>
2553 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2554 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2555 * config/tc-i386.c (i386_target_format): Likewise.
2556 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2557 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2559 2002-09-13 Nick Clifton <nickc@redhat.com>
2561 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2562 when deciding if any operands have been skipped.
2564 2002-09-11 Nick Clifton <nickc@redhat.com>
2566 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2568 * po/tr.po: Updated Turkish translation.
2570 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2572 * config/tc-i386.c (md_apply_fix3): Allow addend for
2573 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2574 BFD_RELOC_386_TLS_LE_32.
2576 2002-09-05 Jeff Law <law@redhat.com>
2578 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2579 marker relocations such as ENTRY/EXIT.
2580 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2581 to both OBJ_ELF and OBJ_SOM.
2583 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2585 * doc/internals.texi (md_apply_fix3): Expand.
2586 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2587 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2588 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2589 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2590 EXTERN_FORCE_RELOC): Document.
2591 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2592 * as.h: Don't include struc-symbol.h for arc.
2594 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2595 subtract absolute symbol.
2596 * obj.h (struct format_ops): Add frob_file_before_fix.
2597 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2598 * symbols.c (S_FORCE_RELOC): New function.
2599 * symbols.h (S_FORCE_RELOC): Declare.
2600 * write.c (TC_FORCE_RELOCATION): Change default.
2601 (TC_FORCE_RELOCATION_ABS): Define.
2602 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2603 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2604 (TC_FORCE_RELOCATION_SECTION): Don't define.
2605 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2606 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2607 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2608 (TC_VALIDATE_FIX_SUB): Define.
2609 (TC_FIX_ADJUSTABLE): Don't define.
2610 (MD_APPLY_SYM_VALUE): Define this instead.
2611 (abs_section_sym): New variable.
2612 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2613 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2614 Don't put the absolute section sym on fixups here.
2615 (fix_segment): New function.
2616 (write_relocs): Don't call fixup_segment from here.
2617 (write_object_file): Instead call tc_frob_file_before_fix,
2618 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2619 Don't output the absolute section symbol.
2620 (fixup_segment): Rewrite.
2621 * write.h (abs_section_sym): Declare.
2622 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2624 (aout_format_ops): Adjust to suit.
2625 * config/obj-aout.h (obj_frob_file): Don't define.
2626 (obj_frob_file_before_fix): Define.
2627 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2628 (S_FORCE_RELOC): Define.
2629 * config/obj-bout.h (S_FORCE_RELOC): Define.
2630 * config/obj-coff.c (coff_format_ops): Init new field.
2631 * config/obj-coff.h: Formatting fixes.
2632 (obj_sec_sym_ok_for_reloc): Define.
2633 (S_FORCE_RELOC): Define.
2634 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2635 (ecoff_frob_file): .. from here.
2636 (ecoff_format_ops): Add new function.
2637 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2638 (obj_frob_file_before_fix): Define.
2639 * config/obj-elf.c (elf_format_ops): Init new field.
2640 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2641 * config/obj-ieee.h: Formatting fixes.
2642 (S_FORCE_RELOC): Define.
2643 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2644 * config/obj-vms.h (S_FORCE_RELOC): Define.
2645 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2646 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2647 for BFD_RELOC_32 and BFD_RELOC_64.
2648 (alpha_fix_adjustable): Remove extern and weak tests.
2649 (alpha_before_fix): Rename from alpha_adjust_symtab.
2650 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2651 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2652 (TC_VALIDATE_FIX): Tweak param name.
2653 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2654 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2655 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2656 (MD_APPLY_SYM_VALUE): Define.
2657 (tc_adjust_symtab): Don't define.
2658 (alpha_adjust_symtab): Don't declare.
2659 (tc_frob_file_before_fix): Define.
2660 (alpha_before_fix): Declare.
2661 (TC_INIT_FIX_DATA): Tweak param names.
2662 * config/tc-arc.c: Include "struc-symbol.h".
2663 (md_pcrel_from): Remove undefined sym fudge.
2664 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2665 Don't set fx_addnumber.
2666 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2667 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2668 (EXTERN_FORCE_RELOC): Define.
2669 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2670 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2671 (arm_validate_fix): Return void.
2672 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2673 Add plt and got reloc tests.
2674 (arm_force_relocation): Call S_FORCE_RELOC.
2675 * config/tc-arm.h (struct fix): Forward declare.
2676 (TC_VALIDATE_FIX): No longer set add_symbolP.
2677 (arm_validate_fix): Adjust declaration.
2678 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2679 (TC_FORCE_RELOCATION): Tweak param name.
2680 (TC_INIT_FIX_DATA): Likewise.
2681 (obj_fix_adjustable): Don't define.
2682 (tc_fix_adjustable): Call arm_fix_adjustable.
2683 (TC_FIX_ADJUSTABLE): Don't define.
2684 (MD_APPLY_SYM_VALUE): Define.
2685 (EXTERN_FORCE_RELOC): Define.
2686 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2687 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2688 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2689 Remove *valP fudges and code to subtract abs sym. Don't set
2691 * config/tc-avr.h: Formatting.
2692 (EXTERN_FORCE_RELOC): Define.
2693 (MD_APPLY_SYM_VALUE): Define.
2694 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2695 (md_apply_fix3): Remove code to subtract abs sym.
2696 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2697 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2698 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2699 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2700 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2701 (tc_fix_adjustable): Remove extern, weak tests.
2702 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2703 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2704 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2705 and code to subtract abs sym.
2706 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2707 (d10v_force_relocation): Call S_FORCE_RELOC.
2708 * config/tc-d10v.h: Don't include write.h.
2709 (struct fix): Instead, forward declare.
2710 (MD_PCREL_FROM_SECTION): Tweak param names.
2711 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2712 (d10v_fix_adjustable): Likewise.
2713 (obj_fix_adjustable): Don't define.
2714 (tc_fix_adjustable): Define.
2715 (TC_FORCE_RELOCATION): Tweak param name.
2716 (MD_APPLY_SYM_VALUE): Define.
2717 (EXTERN_FORCE_RELOC): Define.
2718 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2719 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2720 and code to subtract abs sym.
2721 * config/tc-d30v.h: Don't include write.h.
2722 (struct fix): Instead, forward declare.
2723 (MD_PCREL_FROM_SECTION): Tweak param names.
2724 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2725 (MD_APPLY_SYM_VALUE): Define.
2726 (EXTERN_FORCE_RELOC): Define.
2727 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2728 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2729 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2730 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2731 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2732 Don't use fx_addnumber.
2733 * config/tc-dlx.h: Don't include write.h.
2734 (md_convert_frag): We're not alpha twice over.
2735 (EXTERN_FORCE_RELOC): Define.
2736 (obj_fix_adjustable): Don't define.
2737 (tc_fix_adjustable): Define.
2738 (TC_FIX_ADJUSTABLE): Don't define.
2739 (MD_APPLY_SYM_VALUE): Define.
2740 (LOCAL_LABELS_DOLLAR): Undef always.
2741 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2742 (fr30_fix_adjustable): Remove extern, weak tests.
2743 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2744 (obj_fix_adjustable): Don't define.
2745 (tc_fix_adjustable): Define.
2746 (struct fix): Forward declare.
2747 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2748 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2749 (frv_fix_adjustable): Don't do extern, weak tests.
2750 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2751 (TC_FIX_ADJUSTABLE): Don't define.
2752 (obj_fix_adjustable): Don't define.
2753 (tc_fix_adjustable): Define.
2754 (struct fix): Forward declare.
2755 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2756 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2757 * config/tc-h8300.h (struct fix): Forward declare.
2758 (EXTERN_FORCE_RELOC): Define.
2759 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2760 (hppa_fix_adjustable): Don't test extern or weak. Don't
2761 symbol_mark_used_in_reloc.
2762 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2764 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2765 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2766 (TC_FORCE_RELOCATION_SECTION): Don't define.
2767 (MD_APPLY_SYM_VALUE): Define.
2768 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2769 to subtract abs sym.
2770 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2771 (MD_APPLY_SYM_VALUE): Define.
2772 (MD_PCREL_FROM_SECTION): Tweak param name.
2773 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2774 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2775 (i386_force_relocation): New function.
2776 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2777 (TC_VALIDATE_FIX): Likewise.
2778 (TC_FIX_ADJUSTABLE): Don't define.
2779 (MD_APPLY_SYM_VALUE): Define.
2780 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2781 (i386_force_relocation): Declare.
2782 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2783 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2784 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2785 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2786 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2787 (EXTERN_FORCE_RELOC): Define.
2788 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2789 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2790 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2791 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2792 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2793 Remove #if 0 code. Invert return boolean.
2794 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2795 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2796 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2797 (tc_coff_sizemachdep): Prototype.
2798 (i960_handle_align): Likewise.
2799 (i960_validate_fix): Adjust declaration.
2800 (reloc_callj): Likewise.
2801 (EXTERN_FORCE_RELOC): Define.
2802 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2803 (TC_FORCE_RELOCATION_ABS): Define.
2804 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2805 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2806 (TC_FIX_ADJUSTABLE): Don't define.
2807 (MD_APPLY_SYM_VALUE): Define.
2808 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2809 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2810 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2811 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2812 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2813 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2814 (MD_APPLY_SYM_VALUE): Define.
2815 (EXTERN_FORCE_RELOC): Define.
2816 (TC_FORCE_RELOCATION): Tweak param name.
2817 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2818 (m32r_fix_adjustable): Don't test extern, weak.
2819 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2820 (MD_APPLY_SYM_VALUE): Define.
2821 (obj_fix_adjustable): Don't define.
2822 (tc_fix_adjustable): Define.
2823 (tc_frob_file): Don't define.
2824 (tc_frob_file_before_fix): Define.
2825 (EXTERN_FORCE_RELOC): Define.
2826 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2827 BFD_RELOC_VTABLE_ENTRY address.
2828 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2829 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2830 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2831 Remove duplicated fx_done code.
2832 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2833 (EXTERN_FORCE_RELOC): Define.
2834 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2836 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2837 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2838 (TC_FIX_ADJUSTABLE): Don't define.
2839 (EXTERN_FORCE_RELOC): Define.
2840 (MD_APPLY_SYM_VALUE): Define.
2841 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2842 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2843 Remove fx_addsy tests.
2844 (mcore_force_relocation): Call S_FORCE_RELOC.
2845 (mcore_fix_adjustable): Don't test fx_addsy.
2846 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2847 (EXTERN_FORCE_RELOC): Define.
2848 (obj_fix_adjustable): Don't define.
2849 (tc_fix_adjustable): Define.
2850 (MD_APPLY_SYM_VALUE): Define.
2851 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2852 (mips_pic): No longer static.
2853 (mips_force_relocation): Call S_FORCE_RELOC.
2854 (mips_fix_adjustable): Remove extern, weak tests.
2855 * config/tc-mips.h (enum mips_pic_level): Declare.
2856 (mips_pic): Declare.
2857 (tc_frob_file): Don't define.
2858 (tc_frob_file_before_fix): Define this instead.
2859 (EXTERN_FORCE_RELOC): Define.
2860 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2861 with reg_section tests. Set fx_done instead of calling
2862 symbol_clear_used_in_reloc on bad relocs.
2863 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2864 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2865 (mmix_adjust_symtab): Simplify list handling. Abort on any
2867 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2868 BFD_RELOC_MMIX_LOCAL.
2869 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2870 (EXTERN_FORCE_RELOC): Define.
2871 (MD_PCREL_FROM_SECTION): Tweak param name.
2872 (tc_frob_file): Don't define.
2873 (tc_frob_file_before_fix): Define this instead.
2874 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2875 Remove SEC_CODE checks.
2876 (mn10300_fix_adjustable): Remove extern and weak tests.
2877 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2878 (TC_FORCE_RELOCATION): Tweak param name.
2879 (obj_fix_adjustable): Don't define.
2880 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2881 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2882 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2883 (openrisc_fix_adjustable): Don't test fx_addsy.
2884 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2885 (obj_fix_adjustable): Don't define.
2886 (tc_fix_adjustable): Define this instead.
2887 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2888 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2889 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2890 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2891 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2892 (MD_APPLY_SYM_VALUE): Define.
2893 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2894 Don't subtract symbol value.
2895 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2896 (EXTERN_FORCE_RELOC): Define.
2897 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2898 (MD_APPLY_SYM_VALUE): Define.
2899 (obj_fix_adjustable): Don't define.
2900 (tc_fix_adjustable): Define this instead.
2901 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2903 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2904 (ppc_force_relocation <elf version>): New.
2905 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2906 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2907 comments. Don't subtract fx_subsy as that is already done.
2908 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2909 (MD_PCREL_FROM_SECTION): Likewise.
2910 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2911 ppc_force_relocation.
2912 (TC_FORCE_RELOCATION_SECTION): Delete.
2913 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2914 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2915 (MD_APPLY_SYM_VALUE): Define.
2916 * config/tc-s390.c: #include "dwarf2dbg.h".
2917 (s390_insn): Remove excess parens.
2918 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2919 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2920 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2921 non-NULL. Don't subtract off fx_addsy value.
2922 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2923 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2924 (TC_FIX_ADJUSTABLE): Don't define.
2925 (MD_APPLY_SYM_VALUE): Define.
2926 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2927 (SWITCH_TABLE): Likewise.
2928 (sh_force_relocation): Call S_FORCE_RELOC.
2929 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2930 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2931 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2932 fx_addnumber is zero on entry. Save val in fx_addnumber.
2933 (tc_gen_reloc): Don't subtract fx_subsy.
2934 * config/tc-sh.h (struct fix): Move.
2935 (obj_fix_adjustable): Don't define.
2936 (tc_fix_adjustable): Define this instead.
2937 (TC_FIX_ADJUSTABLE): Don't define.
2938 (MD_APPLY_SYM_VALUE): Define.
2939 (SWITCH_TABLE_CONS): Define.
2940 (SWITCH_TABLE): Define.
2941 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2942 (TC_VALIDATE_FIX_SUB): Define.
2943 (MD_PCREL_FROM_SECTION): Tweak param name.
2944 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2945 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2946 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2947 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2948 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2949 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2950 (TC_VALIDATE_FIX_SUB): Define.
2951 (MD_PCREL_FROM_SECTION): Tweak param name.
2952 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2953 (tc_gen_reloc): Use S_FORCE_RELOC.
2954 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2955 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2956 (TC_FORCE_RELOCATION_ABS): Define this instead.
2957 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2958 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2959 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2960 (MD_APPLY_SYM_VALUE): Define.
2961 (TC_FIX_DATA_PRINT): Tweak param name.
2962 * config/tc-tic30.c (USE_STDOUT): Don't define.
2963 (md_parse_option): Remove stupid debug code.
2964 (tc_gen_reloc): Don't use fx_addnumber.
2965 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2966 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2967 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2968 (tc_fix_adjustable): Define this instead.
2969 (TC_FIX_ADJUSTABLE): Don't define.
2970 (MD_APPLY_SYM_VALUE): Define this instead.
2971 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2972 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2973 (TC_FIX_ADJUSTABLE): Don't define.
2974 (MD_APPLY_SYM_VALUE): Define this instead.
2975 (tc_fix_adjustable): Remove extern and weak tests.
2976 * config/tc-w65.h (struct fix): Forward declare.
2977 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2979 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2980 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2981 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2983 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2984 (MD_APPLY_SYM_VALUE): Define.
2985 (obj_fix_adjustable): Don't define.
2986 (tc_fix_adjustable): Define this instead.
2987 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2989 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2991 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2992 (ppc_fix_adjustable <coff version>): Cleanup.
2994 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2995 (md_parse_option): No -a64 without BFD64.
2996 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2997 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2999 2002-09-04 Nick Clifton <nickc@redhat.com>
3001 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
3002 instructions into the hash table if the target cpu is the BookE32.
3004 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
3006 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
3009 2000-08-28 Catherine Moore <clm@redhat.com>
3011 * tc-v850.c (v850_relax): Declare.
3012 (v850_longcode): New routine.
3013 (v850_handle_align): New routine.
3014 (md_pseudo_table): Add longcall and longjump.
3015 (md_parse_option): Check for relax option.
3016 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
3017 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
3018 (md_apply_fix3): Likewise.
3019 (v850_force_relocation): Likewise.
3020 (v850_comm): Change the current section.
3021 (md_assemble): Ensure that the correct value is put in the
3023 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
3024 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
3025 Remove redundant v850ea support.
3026 * tc-v850.h (HANDLE_ALIGN): Define.
3027 (v850_handle_align): Declare.
3028 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
3030 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
3032 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
3033 * configure: Regenerate.
3034 * NEWS: Mention new port.
3036 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3038 * config/obj-coff.c: Add sdef definition.
3039 * config/obj-coff.h: Add tic4x include file and set
3041 * config/tc-tic4x.c: New file.
3042 * config/tc-tic4x.h: New file.
3044 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3046 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3047 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3048 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3049 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3050 (RELOC_ENUM): Define.
3051 (fix_new_internal): Use RELOC_ENUM.
3052 (fix_new, fix_new_exp): Likewise.
3053 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3054 Replace gotos with continue.
3055 (write_relocs): Formatting. Avoid symbol loops in
3056 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3057 errors, and error number in other cases.
3058 (fixup_segment): Remove param names from prototype. Rename
3059 "this_segment_type" to "this_segment". Update linkrelax comment.
3060 Remove "size, "place" and "where" local vars. Formatting. Update
3061 "no symbol" comment. Remove #if 0 and #if 1.
3063 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3065 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3067 * dwarf2dbg.c: Always include dwarf2dbg.h.
3068 (dwarf2_directive_file): Adjust dummy version args.
3069 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3070 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3071 when symbol values differ.
3072 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3073 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3074 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3076 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3078 * config/tc-w65.c (md_section_align): Fix typo.
3079 (md_parse_option): Return 0, not 1.
3081 2002-08-22 Nick Clifton <nickc@redhat.com>
3083 * doc/as.texinfo (Section): Note that if '@' is a comment
3084 character then another symbol is used to prefix the section's
3087 2002-08-22 Christian Groessler <chris@groessler.org>
3089 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3092 2002-08-12 Graeme Peterson <gp@qnx.com>
3094 * configure.in: Add support for sh-**-nto* target.
3095 * configure: Regenerate.
3097 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3099 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3101 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3103 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3105 (ppc_apuinfo_section_add): Define only if format is ELF.
3106 (md_assemble): Emit APUinfo section only if format is ELF.
3109 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3111 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3112 * config/tc-frv.c: Likewise.
3113 * config/tc-hppa.c: Likewise.
3114 * config/tc-ia64.c: Likewise.
3115 * config/tc-ip2k.c: Likewise.
3116 * config/tc-m68hc11.c: Likewise.
3117 * config/tc-m68k.c: Likewise.
3118 * config/tc-mmix.c: Likewise.
3119 * config/tc-mn10300.c: Likewise.
3120 * config/tc-sh.c: Likewise.
3121 * config/tc-sparc.c: Likewise.
3122 * config/tc-v850.c: Likewise.
3124 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3126 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3129 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3131 From matthew green <mrg@redhat.com>
3133 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3134 PPC_OPCODE_PPC is, except for BookE architectures.
3135 (md_parse_option): Add support for -mspe.
3136 (md_show_usage): Add -mspe.
3137 (md_parse_option): Add support for -me500 and
3138 -me500x2 to generate code for Motorola e500 core complex.
3139 (md_show_usage): Add -me500 and -me500x2.
3141 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3142 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3143 PPC_APUINFO_BRLOCK): New macros.
3145 (ppc_cleanup): New function.
3146 (ppc_apuinfo_section_add): New function.
3148 (md_assemble): Collect info and write the APUinfo section.
3150 * config/tc-ppc.h (md_cleanup): Define.
3151 (ppc_cleanup): Export.
3152 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3154 2002-08-17 Stan Cox <scox@redhat.com>
3156 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3157 config/tc-mips.c (s_change_section): New function to support
3158 IRIX .section pseudo-op.
3160 2002-08-16 Nick Clifton <nickc@redhat.com>
3162 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3164 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3166 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3167 the fix-up against on the right frag.
3168 (s_cpsetup): Likewise. Parse third argument as expression, to
3169 handle global symbols and forward/backward labels correctly.
3171 2002-08-14 Nick Clifton <nickc@redhat.com>
3173 * read.c (stringer): Catch attempts to create strings in the abs
3176 * config/tc-alpha.c: Fix compiling for COFF targets.
3177 Some minor formatting tidyups.
3179 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3181 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3182 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3183 according to the reloc.
3184 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3185 (TC_FORCE_RELOCATION): Define.
3186 (tc_m68hc11_force_relocation): Declare.
3188 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3189 (s_m68hc11_relax): New function for relax group.
3190 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3191 beginning of jump instruction.
3192 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3193 address computation.
3194 (tc-gen_reloc): Update.
3195 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3197 (tc_m68hc11_force_relocation): New function, handle new relocs.
3198 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3199 reloc for the linker relax pass.
3200 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3203 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3205 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3206 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3207 (s_m68hc11_mode): New function for .mode pseudo op.
3208 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3210 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3211 (m68hc11_elf_final_processing): Declare.
3213 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3215 * config/tc-m68hc11.c (md_begin): Take into account additional
3216 page operand for call instruction.
3217 (print_opcode_format): Likewise.
3218 (check_range): Likewise for page range checking.
3219 (get_operand): Don't skip a possible comma in operands.
3220 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3221 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3222 (fixup24): New to handle call reloc.
3223 (build_insn): Handle missing page operand for call instruction.
3225 (md_apply_fix3): Take into account new relocs.
3226 (get_operand): Fix the mode for indexed indirect addressing.
3227 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3229 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3231 * config/tc-mips.c (mips_ip): Don't work out the value of
3232 constant %hi()s here.
3234 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3236 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3237 for ELF, and don't bother checking ELF relocs when non-ELF.
3238 (i386_immediate): Allow absolute_section expressions for aout.
3239 (i386_displacement): Likewise. Also test bfd_is_com_section.
3240 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3241 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3242 not when fx_addsy. Remove dead code.
3244 2002-08-09 Graeme Peterson <gp@qnx.com>
3246 * configure.in: Add support for ppc-*-nto* target.
3247 * configure: Regenerate.
3249 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3251 * config/tc-i386.h: Reorganize.
3253 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3255 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3256 immediate offset in "dla" and "la" expansions.
3258 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3260 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3261 Remove "bfd_gas=yes" from target table when covered later.
3262 Consolidate some entries.
3263 * configure: Regenerate
3265 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3267 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3268 at start of insn, pass it to output_disp and output_imm.
3269 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3270 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3272 (output_imm): Added arguments. Compute properly addend for
3274 (md_apply_fix3): Remove R_386_GOTPC handling.
3276 2002-08-06 George France <france@handhelds.org>
3278 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3279 and m21264b processor names and cpu types.
3280 * doc/c-alpha.texi: Documented new types.
3282 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3284 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3286 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3288 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3289 handling to BFD_RELOC_MIPS16_GPREL.
3291 2002-08-01 Nick Clifton <nickc@redhat.com>
3293 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3294 pool is computed using signed arithmetic so that proper sign
3295 extension is performed if X_add_number is a 64-bit integer.
3297 2002-08-01 H.J. Lu <hjl@gnu.org>
3298 Daniel Jacobowitz <drow@mvista.com>
3300 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3301 .debug_line section unless it has line information.
3303 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3305 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3306 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3307 Allow default displacement size to be an option "--disp-size-default".
3308 (md_number_to_disp): Make error messages include value. Use %d to
3309 print integers, not %s.
3310 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3311 get duplicate messages sometimes.
3312 (convert_iif): Grow frag to max possible instruction size. Avoid
3313 creating unnecessary fixes.
3314 (md_number_to_field) Add prototype.
3315 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3316 prototypes and make static.
3317 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3318 (evaluate_expr): Use resultP argument instead of exprP global.
3319 (get_addr_mode): Quiten compiler warnings.
3320 (encode_operand): eliminate unused variables. Quiten compiler
3321 warnings. Eliminate nul character in format strings.
3322 (parse): argc is unsigned.
3323 (reloc): Type cast index to quieten compiler.
3324 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3325 (md_convert_frag): Note unused parameters. Remove unused
3327 (md_create_long_jump, md_create_short_jump,
3328 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3331 2002-07-31 Nick Clifton <nickc@redhat.com>
3333 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3334 of the PDP-11 and 2.11BSD a.out support.
3336 2002-07-31 Momchil Velikov <velco@fadata.bg>
3338 * config/tc-v850.c (md_assemble): Fix range check for immediate
3341 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3343 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3344 to Broadcom SB-1 core support.
3346 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3348 * config/tc-mips.c (mips_target_format): Fix formatting.
3349 Add recognition of n32 ABI formats.
3351 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3353 * tc-mips.c (load_address): Don't clobber $at when loading a
3354 64-bit address in non-PIC code if noat is in effect.
3357 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3359 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3360 used in division/multiply macro expansions similarly to how they
3361 are used in the variants with break instructions.
3364 2002-07-30 Graeme Peterson <gp@qnx.com>
3366 * configure.in: Add support for arm-*-nto target.
3367 * configure: Regenerate.
3369 2002-07-30 Nick Clifton <nickc@redhat.com>
3371 * config/tc-arm.c (struct literal_pool): Add fields to allow
3372 multiple literal pools to be maintained.
3373 (find_literal_pool): New function.
3374 (find_or_make_literal_pool): New function.
3375 (add_to_literal_pool): Use find_or_make_literal_pool.
3376 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3378 (s_ltorg): Use find_literal_pool.
3379 (arm_cleanup): Dump all literal pools.
3380 * doc/c-arm.texi: Document new behaviour of only dumping literal
3383 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3385 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3386 rather than PPC_OPCODE_32 for powerpc64*.
3388 2002-07-25 Nick Clifton <nickc@redhat.com>
3390 * po/es.po: Updated Spanish translation.
3391 * po/fr.po: Updated French translation.
3393 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3395 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3396 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3397 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3398 * configure, config.in: Regenerate.
3399 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3400 (mips_set_options): Remove "abi" field.
3401 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3404 (mips_arch_string, mips_arch_info): New vars.
3405 (mips_tune_string, mips_tune_info): New vars.
3406 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3407 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3408 (mips_isa_to_str, mips_cpu_to_str): Remove.
3409 (mips_ip): If the selected architecture is a generic ISA rather
3410 than a processor, only mention the ISA level in error messages.
3411 (OPTION_MCPU): Remove.
3413 (md_longopts): Add -mfp64, remove -mcpu.
3414 (mips_set_option_string): New fn.
3415 (md_parse_option): Make -mipsN update file_mips_isa rather than
3416 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3417 Don't let -mgp32 and -mfp32 change the ABI.
3418 (show): Move to end of file. Constify string argument.
3419 (md_show_usage): Move to the end of the file. Read available
3420 architectures from mips_cpu_info_table.
3421 (mips_set_architecture): New fn.
3422 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3423 is an alias for -march=mipsN. Don't change the ABI based on other
3424 flags. Infer the register size from the ABI as well as the
3425 architecture. Complain about more conflicting arguments.
3426 Unify logic with GCC.
3427 (s_mipsset): Don't change the ABI.
3428 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3429 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3430 "mipsN"-type entries. Remove entries that vary only in the
3431 manufacturer's prefix, or that have "000" replaced by "k".
3432 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3433 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3434 (mips_parse_cpu): New fn.
3435 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3436 (mips_cpu_info_from_isa): Minor formatting tweak.
3438 2002-07-24 Nick Clifton <nickc@redhat.com>
3440 * po/sv.po: Updated Swedish translation.
3441 * po/es.po: Updated Spanish translation.
3443 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3445 * Makefile.am: Run "make dep-am".
3446 * Makefile.in: Regenerate.
3447 * doc/Makefile.in: Regenerate.
3448 * config.in: Regenerate.
3449 * po/POTFILES.in: Regenerate.
3451 2002-07-23 Nick Clifton <nickc@redhat.com>
3453 * po/fr.po: Updated French translation.
3455 2002-07-23 Nick Clifton <nickc@redhat.com>
3457 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3460 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3462 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3463 instead of S_IS_EXTERN.
3464 (md_estimate_size_before_relax): Likewise.
3465 (mips_fix_adjustable): Likewise.
3467 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3469 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3471 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3472 Nick Clifton <nickc@redhat.com>
3474 * cond.c (s_ifdef): Treat a referenced but not yet defined
3475 symbol as if it were undefined, in exactly the same way as
3478 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3479 consider referenced bug not yet defined symbols to be
3482 2002-07-18 Denis Chertykov <denisc@overta.ru>
3483 Frank Ch. Eigler <fche@redhat.com>
3484 Alan Lehotsky <alehotsky@cygnus.com>
3485 John Healy <jhealy@redhat.com>
3486 Jeff Johnston <jjohnstn@redhat.com>
3488 * configure.in: Add ip2k configuraton.
3489 * configure: Regenerate.
3490 * Makefile.am: Add ip2k configuraton.
3491 * Makefile.in: Regenerate.
3492 * configure: Regenerate.
3493 * Makefile.in: Regenerate.
3494 * config/tc-ip2k.c: New file.
3495 * config/tc-ip2k.h: New files.
3496 * NEWS: Mention new support.
3497 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3498 * doc/Makefile.in: Regenerate.
3499 * doc/all.texi: Set IP2K
3500 * doc/as.texinfo: Add IP2K description.
3501 * doc/c-ip2k.texi: New file.
3503 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3505 * NEWS: Reformat to match style of other NEWS files.
3507 2002-07-17 Jan Hubicka <jh@suse.cz>
3509 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3511 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3513 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3515 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3517 * NEWS: Add 'Changes in 2.13'.
3519 2002-07-15 Matt Fredette <fredette@netbsd.org>
3521 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3523 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3525 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3526 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3529 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3531 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3532 (ppc_frob_file_before_adjust): New function.
3533 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3534 (ppc_elf_frob_symbol): Don't declare.
3535 (tc_frob_file_before_adjust): Define.
3536 (ppc_frob_file_before_adjust): Declare.
3538 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3539 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3542 (ppc_xcoff64): Rename to ppc_obj64.
3543 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3544 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3545 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3547 (ppc_target_format): Use ppc_obj64 to select format.
3548 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3549 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3550 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3551 (tc_frob_symbol): Likewise.
3552 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3553 BFD_DEFAULT_TARGET_SIZE.
3555 (ppc_is_toc_sym): Likewise.
3556 (md_apply_fix3): Likewise.
3557 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3558 BFD_DEFAULT_TARGET_SIZE.
3559 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3560 (tc_frob_symbol): Likewise.
3562 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3564 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3565 (mips_ip): Likewise.
3567 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3569 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3570 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3571 (md_apply_fix3): Formatting. Remove redundant test.
3572 (tc_gen_reloc): Remove redundant code.
3573 (tc_i386_force_relocation): Delete. Movy body of function to..
3574 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3576 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3578 * configure.in: Add hppa-*-openbsd* target, change
3579 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3581 * configure: Regenerate.
3583 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3585 * config/tc-mips.c (macro): Shift the 32-bit address range
3586 accessible with a lone "lui" down by 32768.
3588 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3590 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3591 instead of "dadd" in address calculations.
3594 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3596 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3598 (md_assemble): Instead, zap the suffix here.
3600 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3602 * NEWS: Remove next release number until the release is actually
3605 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3607 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3609 * Makefile.in: Regenerate.
3611 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3613 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3614 to symbols in merge sections, even non pc-relative ones.
3616 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3618 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3620 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3622 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3623 .softregs and .eeprom.
3625 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3627 * NEWS: Note the next release is 2.13.
3629 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3631 * po/tr.po: New translation imported.
3633 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3635 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3636 (ecoff_directive_def): Likewise.
3637 (ecoff_directive_tag): Likewise.
3638 * listing.c (file_info): Likewise.
3639 * hash.c (what): Likewise.
3641 2002-06-25 H.J. Lu <hjl@gnu.org>
3643 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3644 * Makefile.in: Regenerated.
3646 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3648 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3649 (assemble_ppi): Generate warning if the same register is used
3650 twice as destination in the same padd / pmuls instruction.
3652 2002-06-18 Dave Brolley <brolley@redhat.com>
3654 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3655 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3656 * configure.in: Support frv-*-*.
3657 * Makefile.am (CPU_TYPES): Add frv.
3658 (TARGET_CPU_CFILES): Add tc-frv.c.
3659 (TARGET_CPU_HFILES): Add tc-frv.h.
3660 (DEPTC_frv_coff): New variable.
3661 (DEPTC_frv_elf): New variable.
3662 (DEPOBJ_frv_coff): New variable.
3663 (DEPOBJ_frv_elf): New variable.
3664 (DEP_frv_coff): New variable.
3665 (DEP_frv_elf): New variable.
3666 * tc-frv.c: New file.
3667 * tc-frv.h: New file.
3669 2002-06-17 Catherine Moore <clm@redhat.com>
3671 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3673 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3675 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3677 2002-06-17 Tom Rix <trix@redhat.com>
3679 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3681 2002-06-14 H.J. Lu <hjl@gnu.org>
3682 Daniel Jacobowitz <drow@mvista.com>
3684 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3685 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3686 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3687 and new_logical_line for the first .file directive.
3688 * read.c (s_app_file_string): New function.
3689 (s_app_file): Call it.
3690 * read.h (s_app_file_string): Add declaration.
3692 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3694 * configure.in: Remove MIPS_STABS_ELF.
3695 * configure: Regenerated.
3696 * config.in: Regenerated.
3697 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3699 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3701 (pdr_seg): Declare unconditionally.
3702 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3703 (s_mips_end): Likewise. Generate stabs function markers.
3704 (s_mips_ent): Generate stabs function markers.
3705 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3707 (s_mips_mask): Likewise.
3708 (mips_flag_mdebug): New.
3709 (md_longopts): Add "mdebug" and "no-mdebug".
3710 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3711 (mips_after_parse_args): Set mips_flag_mdebug.
3712 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3714 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3716 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3717 value twice for RELA relocations.
3719 2002-06-12 Ben Elliston <bje@redhat.com>
3721 * symbols.c (resolve_symbol_value): Initialise final_val.
3723 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3725 2002-06-11 Tom Rix <trix@redhat.com>
3727 * config/tc-ppc.c (ppc_subseg_align): Delete.
3728 (ppc_change_csect): Default csect align is 2.
3729 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3731 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3733 * config/tc-avr.c (mcu_types): Update.
3735 2002-06-08 Matt Thomas <matt@3am-software.com>
3737 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3738 (vax-*-netbsd*): New targets.
3739 * configure: Regenerate.
3740 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3741 * config/tc-vax.c: Add support for ELF and PIC.
3742 (flag_want_pic): New flag.
3743 (float_cons): Fix prototype.
3744 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3745 (md_assemble): Introduce a new is_absolute local, and use it
3746 rather than repeating the test. Make fatal errors actually
3747 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3748 Add support for ELF. Add support for PIC.
3749 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3750 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3752 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3753 optional for a.out, and not allowed for VMS. Adjust all callers.
3754 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3755 (md_create_long_jump): Likewise.
3756 (md_undefined_symbol): Likewise.
3757 (md_section_align): Likewise.
3758 (md_shortopts): Allow -k and -K for ELF.
3759 (md_parse_option): Set flag_want_pic if -k or -K.
3760 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3761 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3762 * config/tc-vax.h (tc_headers_hook): Remove.
3763 (TARGET_FORMAT): Set according to object format and target
3765 (BFD_ARCH, TARGET_ARCH): Define.
3766 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3767 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3768 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3769 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3771 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3773 * Makefile.am: Run "make dep-am".
3774 * Makefile.in: Regenerate.
3776 * as.c: Replace CONST with const.
3777 * write.c: Likewise.
3778 * config/obj-coff.c: Likewise.
3779 * config/tc-a29k.c: Likewise.
3780 * config/tc-arm.c: Likewise.
3781 * config/tc-dlx.c: Likewise.
3782 * config/tc-h8300.c: Likewise.
3783 * config/tc-h8500.c: Likewise.
3784 * config/tc-i370.c: Likewise.
3785 * config/tc-i860.c: Likewise.
3786 * config/tc-i960.c: Likewise.
3787 * config/tc-m68hc11.c: Likewise.
3788 * config/tc-m68k.c: Likewise.
3789 * config/tc-m88k.c: Likewise.
3790 * config/tc-mcore.c: Likewise.
3791 * config/tc-mips.c: Likewise.
3792 * config/tc-ns32k.c: Likewise.
3793 * config/tc-pdp11.c: Likewise.
3794 * config/tc-pj.c: Likewise.
3795 * config/tc-s390.c: Likewise.
3796 * config/tc-sh.c: Likewise.
3797 * config/tc-sparc.c: Likewise.
3798 * config/tc-tahoe.c: Likewise.
3799 * config/tc-tic80.c: Likewise.
3800 * config/tc-v850.c: Likewise.
3801 * config/tc-vax.c: Likewise.
3802 * config/tc-w65.c: Likewise.
3803 * config/tc-z8k.c: Likewise.
3805 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3807 Based on patch from Matt Green:
3808 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3809 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3810 (s_mips_loc): New function.
3811 (mips_nonecoff_pseudo_table): Call them.
3812 (append_insn): Call dwarf2_emit_insn.
3814 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3816 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3818 (file_ase_mips16): New veriable.
3819 (mips_eabi64): Remove.
3820 (CPU_HAS_MIPS16): New define.
3821 (CPU_HAS_MDMX): Fix data type.
3822 (md_begin): Code cleanup. Use file_ase_mips16.
3823 (mips_elf_final_processing): Handle mips16 header flag.
3824 Handle EABI flag without intermediate variable.
3826 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3828 * doc/as.texinfo: Update MIPS documentation.
3830 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3832 * config/tc-mips.c: Add define for $zero register.
3833 (md_begin): Add $zero as alias name for $0.
3834 (insn_uses_reg): Use ZERO define.
3835 (mips_ip): Add $zero as alias name for $0.
3836 (mips16_ip): Likewise.
3837 (s_cplocal): Demand empty rest of input line.
3838 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3839 names. Use ZERO define. Fix input_line_pointer progress.
3841 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3843 * symbols.c: Replace CONST by const throughout.
3844 (symbol_find_exact): Split out from..
3845 (symbol_find_base): ..here.
3846 * symbols.h: Replace CONST by const throughout.
3847 (symbol_find_exact): Declare.
3848 * config/obj-elf.c: #include "struc-symbol.h".
3849 (elf_frob_file): If group name matches an exported symbol, use that
3850 symbol for the signature and ".group" as the section name.
3852 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3854 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3857 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3859 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3860 and mips_opts.ase_mdmx if they are uninitialized.
3862 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3864 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3865 (hppa_force_relocation): Check if a stub just before the start symbol
3866 of the last call_info is reachable before forcing relocation. Fix
3869 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3871 * config/tc-mips.c (mips_after_parse_args): New function.
3872 (md_begin): Move processing of defaults to mips_after_parse_args.
3873 config/tc-mips.h (md_after_parse_args): Define.
3875 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3877 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3878 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3879 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3880 * configure: Regenerate.
3881 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3884 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3886 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3888 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3890 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3891 linkonce flag. Print all warnings.
3892 (obj_elf_section): Parse ",comdat" for groups.
3893 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3894 consistency of comdat flag.
3896 2002-06-02 Richard Henderson <rth@redhat.com>
3898 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3899 with LITERALs without sequence numbers.
3901 2002-06-01 Richard Henderson <rth@redhat.com>
3903 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3904 Rename them LITUSE_ALPHA_*.
3906 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3908 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3909 accept parentheses enclosed register lists.
3911 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3913 * Makefile.am: Run "make dep-am".
3914 * Makefile.in: Regenerate.
3915 * po/POTFILES.in: Regenerate.
3917 2002-05-31 Graeme Peterson <gp@qnx.com>
3919 * configure.in: Add i386-*-nto-qnx*.
3920 * configure: Regenerate.
3922 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3924 * config/tc-mips.c (mips_ip): Use unsigned long values for
3927 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3929 * config/tc-mips.c (s_cpsetup): Fix initialization of
3930 mips_cpreturn_register and mips_cpreturn_offset.
3932 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3934 * config/tc-mips.c (s_cpsetup): Fix comment.
3936 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3938 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3939 (mips_ip): Likewise.
3940 (mips16_ip): Likewise.
3941 (tc_get_register): Likewise.
3943 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3944 Ed Satterthwaite <ehs@broadcom.com>
3946 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3947 (mips_opts): Initialize "ase_mdmx" member.
3948 (file_ase_mdmx): New variable.
3949 (CPU_HAS_MDMX): New macro.
3950 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3951 based on command line options and configuration defaults.
3952 (macro_build): Note in comment that use of MDMX in macros is
3953 not currently allowed.
3954 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3955 "Z" MDMX operand types.
3956 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3957 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3959 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3960 Add support for "-mdmx" and "-no-mdmx" options.
3961 (OPTION_ELF_BASE): Move to accomodate new options.
3962 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3963 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3964 file_ase_mdmx was set.
3965 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3966 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3969 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3971 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3972 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3973 command line switch conforming to gcc conventions.
3974 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3976 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3978 * config/tc-mips.c (macro_build_jalr): New Function.
3979 (md_begin): NewABI uses big GOTs.
3980 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3981 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3982 (load_address): Add some NewABI PIC support.
3984 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3985 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3987 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3989 * config/tc-mips.c (load_address): Use mips_gp_register instead
3990 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3992 (macro): Use mips_gp_register instead of hardcoded value.
3994 2002-05-30 Richard Henderson <rth@redhat.com>
3996 * expr.h (operatorT): Add O_md17..O_md32.
3997 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3998 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3999 O_tprelhi, O_tprello, O_tprel): New.
4000 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
4001 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
4002 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
4003 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
4004 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
4005 (md_apply_fix3): Handle TLS relocations.
4006 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4007 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
4008 associated TLS reloc. Check lituse_tls relocs match up.
4009 (emit_insn): Handle TLS relocations.
4012 * doc/c-alpha.texi: Add docs for tls relocations.
4014 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4016 * config/tc-mips.c (mips_gprel_offset): New variable.
4017 (s_gpvalue): Use it.
4019 2002-05-30 Diego Novillo <dnovillo@redhat.com>
4021 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4022 write-write conflicts.
4023 (md_assemble): Reformat introductory comment.
4024 (parallel_ok): Prevent packing only if the first
4025 instruction cannot be packed.
4027 2002-05-30 Jason Eckhardt <jle@redhat.com>
4028 Tom Rix <trix@redhat.com>
4030 * config/tc-d10v.c (build_insn): Check for immediates.
4032 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4034 * config/tc-mips.c: Replace GP in comments by $gp.
4035 (mips_big_got): Initialize.
4036 (mips_trap): Initialize.
4037 (load_address): Use mips_gp_register instead of hardcoded value.
4038 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4039 (macro): Use mips_gp_register instead of hardcoded value.
4040 (macro2): Change load_address calls.
4041 (md_pcrel_from): Comment formatting.
4042 (s_cpload): Use mips_gp_register instead of hardcoded value.
4043 (s_cprestore): Likewise. Comment formatting.
4044 (s_gpword): Fix data type.
4045 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4046 (nopic_need_relax): Replace GP in comments by $gp.
4047 (mips_elf_final_processing): Better comment.
4049 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4051 * configure.in: Add DLX configuraton
4052 * Makefile.am: Add DLX configuraton
4053 * configure: Regenerate.
4054 * Makefile.in: Regenerate.
4055 * config/tc-dlx.c: New file.
4056 * config/tc-dlx.h: New files.
4057 * NEWS: Mention new support.
4059 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4061 * config/obj-coff.c (write_object_file): Add missing semicolon.
4063 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4065 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4066 by the define. Remove superfluous check of mips_opts.mips16.
4067 (append_insn): Likewise. Canonicalize variable increments.
4068 (macro_build): Canonicalize variable increments.
4069 (macro_build_lui): Likewise.
4070 (load_register): Likewise.
4071 (load_address): Move pointer initialization.
4072 (macro): Move pointer to a more local scope. Canonicalize variable
4073 increments. Better comments. Replace magic constant for RA by the
4075 (macro2): Replace magic constant for RA by the define. Canonicalize
4076 variable increments.
4077 (mips_ip): Canonicalize variable increments.
4078 (mips16_ip): Replace magic constant for RA by the define.
4079 (my_getSmallParser): Canonicalize variable increments/decrements.
4080 (my_getPercentOp): Likewise.
4081 (my_getSmallExpression): Likewise.
4082 (s_align): Likewise.
4083 (s_mipsset): Likewise.
4084 (s_cpsetup): Likewise.
4085 (s_insn): Remove superfluous check of mips_opts.mips16.
4086 (s_mips_stab): Likewise.
4087 (mips_handle_align): Canonicalize variable increments.
4088 (s_mips_ent): Likewise.
4089 (s_mips_end): Add comment.
4091 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4093 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4094 * configure: Regenerate.
4096 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4098 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4099 * Makefile.in: Regenerate.
4100 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4101 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4102 * configure: Regenerate.
4103 * as.h: Use #include "" instead of <> for local header files.
4104 * flonum-konst.c: Likewise.
4105 * flonum-mult.c: Likewise.
4107 * listing.c: Likewise.
4108 * config/tc-ia64.h: Likewise.
4109 * config/tc-v850.h: Likewise.
4111 2002-05-24 TAMURA Kent <kent@netbsd.org>
4113 * configure.in: Add a target for i386-netbsdpe.
4114 * configure: Regenerate.
4116 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4118 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4119 (obj_elf_common): Call elf_common.
4120 (obj_elf_tls_common): New function.
4121 (elf_pseudo_tab): Support .tls_common.
4122 (special_sections): Add .tdata and .tbss.
4123 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4125 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4126 (obj_elf_parse_section_letters): Include T in error message.
4127 * config/tc-ppc.c (ppc_section_letter): Likewise.
4128 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4129 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4131 * config/tc-sparc.c (md_apply_fix3): Likewise.
4132 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4133 Define them if not BFD_ASSEMBLER.
4134 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4136 (md_apply_fix3): Add TLS relocs.
4137 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4138 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4139 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4140 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4141 (ia64_elf_section_letter): Include T in error message.
4142 (md_begin): Support TLS operators.
4143 (md_operand): Likewise.
4144 (ia64_gen_real_reloc_type): Support TLS relocs.
4145 * write.c (adjust_reloc_syms): Don't change symbols in
4146 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4148 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4150 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4151 round the relocation up rather than down.
4153 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4155 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4157 * doc/as.texinfo: Document that the COFF version of .section
4158 ignores the 'a' flag.
4160 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4162 * config/tc-alpha.c (assemble_tokens): Protect use of
4163 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4165 * write.c (size_seg): Check adjustment to last frag.
4166 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4168 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4169 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4170 (write_object_file): Invoke md_do_align if available, and use
4171 frag_align_code on text sections.
4172 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4173 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4174 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4175 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4176 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4179 2002-05-22 H.J. Lu <hjl@gnu.org>
4181 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4184 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4186 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4189 2002-05-22 H.J. Lu <hjl@gnu.org>
4191 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4192 for one .loc for compiler.
4194 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4196 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4199 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4201 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4202 Optimize the rotate by zero case.
4204 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4206 * configure.in: Remove accidental enabling of bfd_gas=yes for
4208 * configure: Regenerate.
4210 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4212 * app.c: Fix formatting.
4214 * ehopt.c: Likewise.
4216 * input-file.c: Likewise.
4217 * listing.c: Likewise.
4218 * macro.h: Likewise.
4219 * stabs.c: Likewise.
4220 * symbols.c: Likewise.
4222 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4224 * config/obj-generic.c: Delete file.
4225 * config/obj-generic.h: Likewise.
4227 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4229 * config/tc-avr.c (mcu_types): Update for new devices.
4231 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4233 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4235 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4237 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4238 worked sometimes by accident. Fix copy&paste comment.
4240 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4242 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4243 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4244 (mips_elf_final_processing): Let n32 use .reginfo.
4246 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4248 * config/tc-mips.c (append_insn): Fix too small range of variable.
4250 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4252 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4253 listing_prev_line().
4255 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4257 * config/tc-arm.c (md_assemble): Remove redundant call to
4260 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4263 * stabs.c (s_stab_generic): Fix grammatical error in warning
4266 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4268 * write.c (subsegs_finish): Don't specially align last subseg.
4270 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4272 * stabs.c (s_stab_generic): Warn about a description field that is
4275 * config/obj-coff.c: Fix compile time warnings when compiling
4276 without BFD_ASSEMBLER defined.
4279 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4281 (md_pcrel_from_section): Use md_pcrel_from().
4283 2002-05-11 Bruno Haible <bruno@clisp.org>
4285 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4286 by dwarf2_directive_loc, instead of calling dwarf2_where.
4288 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4290 * config/obj-coff.h: Fix formatting.
4291 * config/tc-mcore.c: Likewise.
4292 * config/tc-mn10300.c: Likewise.
4293 * config/tc-openrisc.c: Likewise.
4294 * config/tc-or32.c: Likewise.
4295 * config/tc-pdp11.c: Likewise.
4296 * config/tc-ppc.c: Likewise.
4297 * config/tc-ppc.h: Likewise.
4298 * config/tc-sh64.c: Likewise.
4299 * config/tc-sh.c: Likewise.
4300 * config/tc-tic54x.c: Likewise.
4301 * config/tc-xstormy16.c: Likewise.
4302 * config/tc-xstormy16.h: Likewise.
4304 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4306 * config/obj-coff.c: Fix formatting.
4307 * config/obj-elf.c: Likewise.
4308 * config/tc-alpha.c: Likewise.
4309 * config/tc-arm.c: Likewise.
4310 * config/tc-d10v.c: Likewise.
4311 * config/tc-d30v.c: Likewise.
4312 * config/tc-h8300.c: Likewise.
4313 * config/tc-hppa.c: Likewise.
4315 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4317 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4318 reloc when no_cond_jump_promotion.
4320 2002-05-08 Jim Wilson <wilson@redhat.com>
4322 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4323 current variable part of frag.
4325 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4327 * config/tc-mmix.c: Fix formatting.
4328 * config/tc-mmix.h: Likewise.
4330 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4332 * configure: Regenerate.
4334 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4336 * config/tc-m68k.c: Fix formatting.
4338 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4340 * Makefile.am: Honour DESTDIR.
4341 * Makefile.in: Regenerate.
4343 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4345 * config/tc-ia64.c: Fix formatting.
4346 * config/tc-ia64.h: Likewise.
4348 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4350 * config/tc-mips.c: Fix formatting.
4351 * config/tc-s390.c: Likewise.
4352 * config/tc-s390.h: Likewise.
4354 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4356 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4357 information for instructions.
4359 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4361 * as.h: Fix formatting.
4364 * dwarf2dbg.c: Likewise.
4365 * frags.h: Likewise.
4367 * macro.c: Likewise.
4369 * stabs.c: Likewise.
4370 * symbols.c: Likewise.
4372 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4374 * app.c (mri_pseudo): Only declare for TC_M68K.
4376 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4377 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4378 BFD_RELOC_16_BASEREL.
4379 (md_assemble): Likewise.
4380 (md_apply_fix3): Likewise.
4382 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4384 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4385 zero into an add of zero - it is not the same.
4387 2002-05-01 Arati Dikey <aratid@kpit.com>
4389 * tc-sh.c (get_specific): Generate warning if the same
4390 destination register is used in parallel instructions.
4392 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4394 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4396 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4398 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4399 backwards to prevent cascading errors.
4401 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4403 * configure.in: Add support for powerpc-*-windiss.
4404 * configure: Regenerated.
4406 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4408 * config/tc-s390.c (md_parse_option): Formatting.
4410 * config/tc-i386.c: Formatting fixes, add missing space in error
4413 2002-04-24 Christian Groessler <chris@groessler.org>
4415 * config/tc-z8k.c (build_bytes): Add support for new cases:
4416 CLASS_IGNORE and ARG_NIM4.
4417 (md_assemble): Prevent destruction of input_line_pointer if
4418 get_operands returns failure.
4420 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4422 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4423 instructions to be generated by macros.
4425 2002-04-24 Andreas Schwab <schwab@suse.de>
4427 * config/tc-i386.c (output_jump, output_disp)
4428 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4430 (md_apply_fix3): Remember addend value for rela relocations.
4431 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4433 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4435 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4436 from previous change.
4438 2002-04-22 Eric Christopher <echristo@redhat.com>
4440 * config/tc-mips.c (macro_build): Add warning if macro instructions
4441 are expanded into a branch delay slot.
4443 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4445 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4446 numbers, gdb relies on them to detect the start of the prologue.
4448 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4450 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4451 symbols in merge sections.
4453 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4455 * as.c (main): Don't reference _bfd_chunksize.
4457 2002-04-15 Tom Rix <trix@redhat.com>
4459 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4460 symbols in merge sections.
4462 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4464 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4465 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4466 argument for the precision.
4467 (gen_to_words): Update accordingly.
4469 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4471 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4472 BFD_VERSION_STRING unavailable.
4473 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4475 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4477 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4478 symbol_used_in_reloc_p is true.
4480 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4483 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4485 * dep-in.sed: Cope with absolute paths.
4486 * Makefile.am (dep.sed): Subst TOPDIR.
4488 * Makefile.in: Regenerate.
4490 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4492 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4493 (mips_ip): Remove unused variable.
4494 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4495 unsigned char with bfd_byte.
4496 (s_file): Remove unused variable.
4497 (s_mips_ent): Likewise.
4499 2002-04-03 Tom Rix <trix@redhat.com>
4501 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4503 (find_opcode): Fix warning in as_warn.
4504 * config/tc-d10v.h: Update Copyright.
4506 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4507 Tom Rix <trix@redhat.com>
4509 From Jeff Knaggs <jknaggs@redhat.com>
4510 * config/tc-d10v.c (check_resource_conflict): New function to
4511 check for resource conflicts.
4513 From Jason Eckhardt <jle@redhat.com>
4514 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4516 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4517 reserved control registers is used.
4518 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4521 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4522 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4523 instruction cannot be packed.
4525 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4526 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4527 write-write conflicts.
4528 (md_assemble): Reformat introductory comment.
4529 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4532 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4534 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4535 O_logical_not>): Derive final_seg from add_symbol.
4536 <O_multiply..O_logical_or>: More final_seg twiddles.
4538 2002-04-01 Jessica Han <jessica@cup.hp.com>
4540 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4543 2002-03-27 Andreas Schwab <schwab@suse.de>
4545 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4546 field for pc-relative fixups.
4547 (output_disp): Likewise.
4548 (md_estimate_size_before_relax): Likewise.
4549 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4550 pc-relative fixups in 64bit mode.
4552 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4554 * config/te-aix5.h: Typo fix.
4556 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4558 * Makefile.am: Run "make dep-am".
4559 * Makefile.in: Regenerate.
4560 * doc/Makefile.in: Regenerate.
4562 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4564 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4565 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4567 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4569 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4570 the EXTENDED bit here; report the estimate according to the
4573 2002-03-18 Tom Rix <trix@redhat.com>
4575 * configure.in: Add AIX 5 support.
4576 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4577 * config/te-aix5.h: New file. AIX 5 support.
4578 * configure: Regenerate.
4580 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4582 * po/fr.po: Updated version.
4584 2002-03-16 Andreas Jaeger <aj@suse.de>
4586 * doc/c-mips.texi (Machine Dependencies): Add new node.
4588 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4590 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4591 (mips_opts): Initialize "ase_mips3d" member.
4592 (file_ase_mips3d): New variable.
4593 (CPU_HAS_MIPS3D): New macro.
4594 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4595 based on command line options and configuration defaults.
4596 (macro_build, mips_ip): Accept MIPS-3D instructions if
4597 mips_opts.ase_mips3d is set.
4598 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4599 Add support for "-mips3d" and "-no-mips3d" options.
4600 (OPTION_ELF_BASE): Move to accomodate new options.
4601 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4602 (mips_elf_final_processing): Add a comment indicating that a
4603 MIPS-3D ASE ELF header flag should be set, when one exists.
4604 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4605 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4606 nomips3d" directives.
4608 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4610 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4611 a weak symbol in same section to be within reach.
4613 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4615 * po/fr.po: Updated version.
4617 2002-03-12 Andreas Schwab <schwab@suse.de>
4619 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4620 body record so that an error is given for misplaced .save
4623 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4625 * config/tc-i386.h (REX_OPCODE): Define.
4626 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4627 (rex_byte): typedef to int.
4628 * config/tc-i386.c: Group prototypes and vars together.
4629 Formatting fixes. Remove occurrences of "register" keyword.
4632 (mode_from_disp_size): Add INLINE keyword to prototype.
4633 (fits_in_signed_byte): Likewise.
4634 (fits_in_unsigned_byte): Likewise.
4635 (fits_in_unsigned_word): Likewise.
4636 (fits_in_signed_word): Likewise.
4637 (fits_in_unsigned_long): Likewise.
4638 (fits_in_signed_long): Likewise.
4639 (type_names): Constify.
4640 (intel_float_operand): Constify param.
4641 (add_prefix): Use REX_OPCODE.
4642 (md_assemble): Likewise. Modify for changed rex_byte.
4643 (parse_insn): Split out of md_assemble.
4644 (parse_operands): Likewise.
4645 (swap_operands): Likewise.
4646 (optimize_imm): Likewise.
4647 (optimize_disp): Likewise.
4648 (match_template): Likewise.
4649 (check_string): Likewise.
4650 (process_suffix): Likewise.
4651 (check_byte_reg): Likewise.
4652 (check_long_reg): Likewise.
4653 (check_qword_reg): Likewise.
4654 (check_word_reg): Likewise.
4655 (finalize_imm): Likewise.
4656 (process_operands): Likewise.
4657 (build_modrm_byte): Likewise.
4658 (output_insn): Likewise.
4659 (output_branch): Likewise.
4660 (output_jump): Likewise.
4661 (output_interseg_jump): Likewise.
4662 (output_disp): Likewise.
4663 (output_imm): Likewise.
4665 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4667 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4669 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4671 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4672 relocs except when BFD64.
4674 * write.c (number_to_chars_bigendian): Don't abort when N is
4675 larger than sizeof (VAL).
4676 (number_to_chars_littleendian): Likewise.
4678 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4680 * config/tc-hppa.c (md_apply_fix3): Add cast.
4681 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4684 2002-03-05 Paul Koning <pkoning@equallogic.com>
4686 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4687 (parse_ac5): New function for parsing float regs in float operand.
4688 (parse_expression): Remove attempt to make literals be octal.
4689 (parse_op_no_deferred): Support float literals.
4690 (parse_op): Reject attempts to refer to float regs.
4691 (parse_fop): New function, like parse_op but for float operand.
4692 (md_assemble): Add cases to parse float operands. Also fix
4693 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4695 2002-03-04 H.J. Lu <hjl@gnu.org>
4697 * config/obj-elf.c (special_section): Add .init_array,
4698 .fini_array and .preinit_array.
4700 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4701 .init_array and .fini_array.
4703 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4705 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4707 (obj_frob_symbol): Copy visibility.
4709 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4711 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4713 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4715 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4717 * po/es.po: Updated.
4719 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4721 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4722 only, undo the changes made on 2001-06-08, with the
4723 effect being that common or extern symbols are
4724 adjusted for embedded-PIC, but weak symbols are not.
4725 (md_estimate_size_before_relax: Likewise, with the effect
4726 that extern symbols are treated the same as weak symbols
4727 only if not embedded-PIC.
4728 (mips_fix_adjustable) Likewise, with the effect that
4729 weak or extern symbols are not adjusted for embedded-PIC.
4730 (md_apply_fix3): Tweak so that the case where value is zero
4731 is handled more correctly for embedded-PIC code.
4733 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4735 * doc/as.texinfo (Overview): Add missing @ifset IA64
4737 * configure.in (LINGUAS): Add es.po.
4738 * configure: Regenerate.
4739 * po/es.po: New file.
4741 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4743 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4744 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4745 and NO_PIC cases. Code cleanup.
4746 (macro2): Fix handling of 64bit register loads.
4748 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4750 * doc/as.texinfo: Add entry for IA64.
4751 * doc/c-ia64.texi: New file.
4753 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4755 * config/tc-hppa.c: Update copyright date.
4757 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4758 Remove references to chip manufacturers.
4759 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4761 (md_show_usage): Remove references to chip manufacturers. Mention
4763 (md_begin): Test power4 opcode flag bits.
4765 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4767 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4768 count exceeds prologue count.
4769 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4770 (unwind.label_prologue_count): New member.
4772 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4774 (get_saved_prologue_count): New function.
4775 (save_prologue_count): New function.
4776 (free_saved_prologue_count): New function.
4777 (dot_label_state): Record state label by calling save_prologue_count().
4778 (dot_copy_state): Restore prologue count by calling
4779 get_saved_prologue_count().
4780 (generate_unwind_image): Free up list of saved prologue
4781 counts by calling free_saved_prologue_counts().
4783 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4785 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4786 function declarations.
4788 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4790 * NEWS: Note that GASP is now deprecated.
4791 * Makefile.am: Do not build gasp-new by default.
4792 * Makefile.in: Regenerate.
4793 * doc/Makefile.am: Do not install gasp.info.
4794 * doc/Makefile.in: Regenerate.
4795 * gas/gasp.texi: Note that gasp is now deprecated.
4797 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4799 * NEWS: Mark 2.12 branch.
4801 2002-02-19 Tom Tromey <tromey@redhat.com>
4803 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4805 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4807 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4810 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4812 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4813 Make bit size independent of architecture switch.
4814 (md_begin): Add warning for -m64 with -Aesa.
4815 (s390_md_end): Use renamed architecture defines.
4817 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4819 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4821 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4823 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4826 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4828 * config/tc-mips.c (md_estimate_size_before_relax): Really
4829 make sure we treat weak like extern only for ELF. (Fixes
4830 patch from 2001-07-25.)
4832 2002-02-15 Ben Elliston <bje@redhat.com>
4834 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4837 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4839 * NEWS: Mention support for MMIX.
4841 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4843 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4844 a sequence of indpendent 'if' statements for easier debugging
4845 and future modification.
4847 2002-02-13 Matt Fredette <fredette@netbsd.org>
4849 * config/tc-m68k.c (md_show_usage): No longer display a
4850 hard-coded "68020" for the default CPU, instead display the
4851 canonical name of the true, configured default CPU.
4852 (m68k_elf_final_processing): Mark objects for sub-68020
4853 CPUs with the new EF_M68000 flag.
4855 2002-02-13 Andreas Schwab <schwab@suse.de>
4857 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4858 pc-relative relocations to merge sections in 64-bit mode.
4860 2002-02-13 Ben Elliston <bje@redhat.com>
4862 * NEWS: Document floating point number handling in gasp.
4863 * gasp.c: Include <assert.h> and "xregex.h".
4864 (is_flonum): New function.
4865 (chew_flownum): Likewise.
4866 (change_base): Consume flonums from the input, where possible.
4867 * doc/gasp.texi (Constants): Document floating point numbers.
4869 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4871 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4872 that implicitly use LR and RR selectors.
4874 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4876 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4877 and `epsw' as available on AM33 and above only.
4878 (other_register_name): Add logic to handle machine type encoded in
4881 2002-02-11 Tom Rix <trix@redhat.com>
4883 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4886 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4888 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4891 2002-02-11 Jan Hubicka <jh@suse.cz>
4893 * i386.c (md_assemble): Support 32bit address prefix.
4894 (i386_displacement): Likewise.
4895 (i386_index_check): Accept 32bit addressing in 64bit mode.
4897 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4899 * config/tc-sh.c (dot): Removed unused function.
4901 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4903 * Makefile.am: "make dep-am".
4904 * Makefile.in: Regenerate.
4905 * aclocal.m4: Regenerate.
4906 * config.in: Regenerate.
4907 * configure: Regenerate.
4908 * doc/Makefile.in: Regenerate.
4910 2002-02-10 Richard Henderson <rth@redhat.com>
4912 * doc/c-alpha.texi: New file.
4913 * doc/Makefile.am (CPU_DOCS): Add it.
4914 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4916 2002-02-09 Richard Henderson <rth@redhat.com>
4918 * config/tc-alpha.c (O_samegp): New.
4919 (USER_RELOC_P): Include it.
4920 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4921 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4922 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4923 (alpha_validate_fix): New.
4924 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4926 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4928 * doc/c-cris.texi: New.
4929 * doc/all.texi: @set CRIS.
4930 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4931 Include c-cris.texi.
4932 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4933 * doc/Makefile.in: Regenerate.
4935 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4937 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4938 determine if a number is a sign-extended 32-bit number.
4939 (load_register): Use IS_SEXT_32BIT_NUM.
4940 (macro): Check if load/store macro handling is using a
4941 constant 32-bit address on 64-bit address systems, and if
4942 so optimize the generation of that address.
4944 2002-02-08 Richard Henderson <rth@redhat.com>
4946 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4947 we've eliminated all foreign relocation types yet.
4948 (alpha_fix_adjustable): Likewise.
4950 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4952 Contribute sh64-elf.
4953 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4954 Stephen Clarke <Stephen.Clarke@st.com>
4955 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4956 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4957 * config/tc-sh.c (md_relax_table): Added default sizes for
4958 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4959 MOVI_16, MOVI_32 and MOVI_48.
4960 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4961 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4963 (shmedia_md_estimate_size_before_relax): Remove redundant
4964 blocks. Set fragP->fr_var even if relaxation type unchanged.
4965 Retain UNDEF_MOVI until expression decays to number.
4966 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4967 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4968 relocation types. Take fixP->fx_addnumber into account too.
4969 (shmedia_md_apply_fix): Likewise.
4970 (shmedia_md_convert_frag): Likewise.
4971 (shmedia_build_Mytes): Likewise.
4972 (sh64_consume_datalabel): Complain about nested datalabel.
4973 Support PIC relocs. Call sh_parse_name.
4974 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4975 in tc-sh.h to SHmedia reloc types.
4976 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4977 MOVI_GOTPC): New relaxation constants.
4978 (md_relax_table): Introduce relaxation directives for PIC-related
4980 (sh_PIC_related_p): Handle datalabel.
4981 (sh_check_fixup): Choose SH5 PIC relocations.
4982 (sh_cons_fix_new): Added BDF_RELOC_64.
4983 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4984 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4985 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4986 current ISA is SHmedia, get 7 bytes.
4987 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4988 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4990 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4991 shmedia_apply_fix3 and make void.
4992 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4993 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4995 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4996 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4997 2001-03-14 DJ Delorie <dj@redhat.com>
4998 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4999 * doc/Makefile.in(CPU_DOCS): Ditto.
5000 * doc/c-sh64.texi: New file.
5001 * doc/as.texinfo: Add SH64 support.
5002 2001-03-13 DJ Delorie <dj@redhat.com>
5003 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
5004 A_REUSE_PREV so that its purpose is more obvious.
5005 (shmedia_build_Mytes): Ditto.
5006 2001-03-07 DJ Delorie <dj@redhat.com>
5007 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
5009 (sh64_vtable_inherit): Ditto.
5010 (strip_datalabels): New, strip "datalabel" from given line.
5011 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
5013 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
5014 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
5016 (shmedia_build_Mytes): ... to here.
5017 2001-03-06 DJ Delorie <dj@redhat.com>
5018 * config/tc-sh.c: Remove sh64-specific uaquad now that there
5020 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
5021 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
5022 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
5023 address by one in call to dwarf2_emit_insn.
5024 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
5025 Implement ".abi" pseudo and correct .cranges descriptors. Correct
5026 alignment handling broken by imported changes.
5027 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
5028 (sh64_handle_align): Declare.
5029 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
5030 (sh64_max_mem_for_rs_align_code): Declare.
5031 (enum sh64_isa_values): Moved here from tc-sh64.c.
5032 (md_do_align): Define.
5033 (sh64_do_align): Declare.
5034 (struct sh64_tc_frag_data): New.
5035 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5037 (TC_FRAG_INIT): Change to set new datatype.
5038 (struct sh64_segment_info_type): Rename member
5039 last_flushed_location to last_contents_mark. All users changed.
5040 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5041 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5042 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5043 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5044 of unsetting seen_insn.
5045 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5046 call sh64_update_contents_mark.
5047 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5048 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5049 enum sh64_isa_values.
5050 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5051 (emitting_crange): Boolean guard moved to file scope from function
5052 scope in sh64_set_contents_type.
5054 (sh64_update_contents_mark): New; most split out from
5055 sh64_flush_pending_output.
5056 (shmedia_md_end): Call sh64_update_contents_mark. Set
5057 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5058 (sh64_do_align): New function.
5059 (sh64_max_mem_for_rs_align_code): New function.
5060 (sh64_handle_align): Rename from shmedia_do_align. Make
5061 non-static. Add head comment. Emit zero bytes for n bytes modulo
5062 four. Change return-type to void.
5063 (shmedia_elf_new_section): Remove.
5064 (shmedia_md_assemble): Call sh64_update_contents_mark.
5065 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5066 new frag. Call sh64_update_contents_mark after making the new
5068 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5069 and sh_flush_pending_output.
5070 (sh64_flag_output): Also call md_flush_pending_output, but add
5071 condition on not emitting_crange.
5072 (sh64_tc_cons_fix_new): Remove.
5073 2001-01-12 Nick Clifton <nickc@redhat.com>
5074 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5075 alignment handling scheme imported from sourceware.
5076 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5077 * config/tc-sh64.h (TARGET_FORMAT): Define.
5078 (sh64_target_format): Prototype.
5079 * config/tc-sh64.c (sh64_target_mach): New function.
5080 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5081 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5082 zero_address_frag instead of copying the frag of the symbol.
5083 (shmedia_frob_file_before_adjust): Ditto.
5084 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5085 to valueT to remove signedness.
5086 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5087 headers to output_bfd. Do not evaluate symbols if final is false;
5089 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5090 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5091 to the current frag, call shmedia_md_convert_frag to emit fixups
5092 and make frag_wane neutralize the frag. Update comments.
5093 * config/tc-sh.c (md_convert_frag): Change caller of
5094 shmedia_md_convert_frag.
5095 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5096 * config/tc-sh64.h: Tweak comments and correct formatting.
5097 * config/tc-sh64.c: Ditto.
5098 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5099 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5100 for the no-relocation case.
5101 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5102 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5104 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5106 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5107 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5109 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5111 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5112 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5113 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5114 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5115 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5116 if reloc is emitted.
5117 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5118 New options plus bugfixes.
5119 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5121 (md_parse_option): Handle new options.
5122 (md_show_usage): Add blurb for new options.
5123 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5124 (sh64_expand, sh64_pt32): New variables.
5125 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5126 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5127 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5128 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5129 <resolved previously-pc-relative relocs>: Handle
5130 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5131 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5132 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5133 points to SHcompact code.
5134 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5135 SH64PCREL16)>: Check that ISA of what operand points at and
5136 PTA/PTB matches, or emit error.
5137 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5138 SHMEDIA_BFD_RELOC_PT.
5139 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5141 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5142 condition for MOVI expansion.
5143 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5144 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5146 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5148 (sh64_target_format): Error-check setting of sh64_pt32 and
5149 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5150 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5151 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5152 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5153 * config/tc-sh64.c: Improve comments.
5154 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5155 not say the linker will check correctness of PTA/PTB expansion.
5156 (shmedia_md_end): Make non-static.
5157 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5159 * config/tc-sh.c (sh_finalize): Remove.
5160 * config/tc-sh.h (md_end): Do not define.
5161 Remove prototype for sh_finalize.
5162 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5163 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5164 sh64_section_data container when storing section type in tdata
5165 field in elf_section_data.
5166 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5168 * Makefile.am: Update dependencies.
5169 * Makefile.in: Regenerate.
5170 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5171 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5172 dwarf2_emit_insn call with test on debug_type.
5173 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5174 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5175 CRT_SH5_ISA32 sticky for 64-bit.
5176 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5177 Generate .crange sections when switching ISA mode or emitting
5178 constants in same section as code.
5179 * config/tc-sh64.c: Reformat structure definitions.
5180 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5182 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5183 to emit a .cranges descriptor when contents type changes. Only
5184 emit error if changing contents type and -no-mix is in effect.
5185 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5186 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5187 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5188 sh64_flush_last_crange over sections.
5189 When checking main symbol of datalabel symbol, check for
5190 STO_SH5_ISA32, not ISA type of section in definition.
5191 (shmedia_frob_file_before_adjust): Check main symbol for
5192 STO_SH5_ISA32; don't check ISA type of section in definition.
5193 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5194 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5195 .cranges entries have been output.
5196 (shmedia_elf_new_section): Just call md_flush_pending_output.
5197 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5198 fix. Do not set tc_segment_info_data.in_code for section. Call
5199 sh64_set_contents_type for SHmedia code.
5200 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5201 false. Call md_flush_pending_output.
5202 (sh64_target_format): Check that -no-mix and
5203 -shcompact-const-crange are used in sane combination with other
5205 (shmedia_md_pcrel_from_section): Check type of fix for how to
5207 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5208 not ISA type of section in definition.
5209 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5210 hold contents-type state.
5211 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5212 (sh64_flush_pending_output): Declare.
5213 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5214 (sh64_tc_cons_fix_new): Declare.
5215 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5216 call sh64_flag_output.
5217 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5218 call sh64_set_contents_type to mark SHcompact code and set
5220 (md_longopts): New options "-no-mix" and
5221 "-shcompact-const-crange".
5222 (md_parse_option): Handle new options.
5223 (md_show_usage): Add blurb for new options.
5224 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5225 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5226 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5227 (sh64_last_insn_frag): New.
5228 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5229 to get frag for insn opcode for generating fixups; do not assume it
5231 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5233 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5235 (TC_FRAG_TYPE): Define as fragS *.
5236 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5237 (sh64_last_insn_frag): Declare.
5238 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5239 not == NULL before dereferencing.
5240 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5241 Get rid of BFD section flag and EF_SH64_ABI64.
5242 * config/tc-sh64.c (shmedia_frob_section_type): Use
5243 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5244 communicate the section as containing SHmedia code. Describe why.
5245 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5246 EF_SH64 regardless of ABI.
5247 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5248 in error message. Handle resolved expressions for
5249 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5250 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5251 (shmedia_check_limits): Handle BFD_RELOC_64.
5252 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5253 a STO_SH5_ISA32 symbol, only the BFD value.
5254 2000-12-11 Ben Elliston <bje@redhat.com>
5255 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5256 dwarf2_generate_asm_lineno.
5257 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5258 Handle PC-relative MOVI expansions with assembler relaxation.
5259 Generate PC-relative relocs from 16-bit PC-relative expressions.
5260 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5261 (shmedia_md_pcrel_from_section): ...here.
5262 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5263 turned completely resolved. Adjust relocation type for 16-bit
5264 immediate operands that has turned PC-relative. Adjust back for
5265 MD_PCREL_FROM_SECTION being applied twice.
5266 (shmedia_md_convert_frag): Always emit reloc for expression with
5267 global or weak symbol. Handle relaxation result for PC-relative
5269 (shmedia_md_estimate_size_before_relax): An expression with a weak
5270 or global symbol can not be relaxed. Break out tests for
5271 relaxable symbol into variable sym_relaxable.
5272 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5273 UNDEF_MOVI)>: Break out any PC-relative expression and change
5275 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5277 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5278 MOVI expansion. If X_op_symbol of the immediate expression is
5279 set, make an expression symbol for the argument to frag_var.
5280 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5282 (END): Adjust for new relaxations.
5283 (md_relax_table): Add entries for new relaxations.
5284 2000-12-07 Ben Elliston <bje@redhat.com>
5285 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5286 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5287 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5288 SHORI operand offsets in PT/PTA/PTB expansions.
5289 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5290 Implement DataLabel semantics.
5291 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5292 shmedia_frob_file_before_adjust.
5293 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5294 (DATALABEL_SUFFIX): Define.
5295 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5296 symbol list to update "datalabel" symbols to their main symbol
5298 (shmedia_frob_file_before_adjust): New.
5299 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5300 undefined and set STT_DATALABEL.
5301 (sh64_frob_label): Initialize TC symbol field.
5302 (sh64_consume_datalabel): Actually implement semantics. New
5303 parameter operandf, call it instead of expression.
5304 (sh64_exclude_symbol): New.
5305 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5306 to sh64_consume_datalabel.
5307 (tc_symbol_new_hook): Define to tc_frob_symbol.
5308 (TC_SYMFIELD_TYPE): Define to symbolS *.
5309 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5310 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5311 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5313 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5314 generating dwarf2 debug information.
5315 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5316 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5317 elf64-sh64 for the 64-bit ABI.
5318 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5320 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5321 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5323 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5324 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5325 (enum sh64_abi_values): New type.
5326 (enum sh64_isa_values): New type.
5327 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5328 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5329 (sh64_abi): Replace shmedia_64.
5330 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5331 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5332 (s_sh64_mode): Check validity for this target.
5333 (sh64_target_format): Initialize defaults for ISA and ABI.
5334 Fallback to old object format if no SH64 ISA or ABI has been
5336 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5337 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5338 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5339 * config/tc-sh64.h: Fix typo in comment.
5340 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5341 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5342 <PT fixups for absolute values>: Size will be longest, not
5344 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5345 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5346 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5347 and l1 to hold lowercase of two first characters. Change all
5348 remaining TO_LOWER to tolower.
5349 * config/tc-sh64.c (TO_LOWER): Delete.
5350 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5351 (md_parse_name): Define.
5352 (sh64_consume_datalabel): Declare.
5353 (DOLLAR_DOT): Define.
5354 * config/tc-sh64.c (shmedia_parse_exp): New.
5355 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5356 (shmedia_parse_reg): Remove const from src
5358 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5359 (shmedia_md_assemble): Ditto for op_end variable.
5360 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5361 Use shmedia_parse_exp, not parse_exp.
5362 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5363 parameter. All callers changed.
5364 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5366 (shmedia_parse_reg): Put first two character in local variables.
5367 Use tolower, not TO_LOWER. If no register is found and argtype
5368 indicates a control register, scan shmedia_creg_table
5370 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5371 * Makefile.am (CPU_TYPES): Add sh64.
5372 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5373 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5374 Regenerate dependencies.
5375 * Makefile.in: Regenerate.
5376 * configure.in: Add support for sh64-*-elf*.
5377 * configure: Regenerate.
5378 * config/tc-sh64.h: New.
5379 * config/tc-sh64.c: New.
5380 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5381 .mode, .isa and .uaquad.
5382 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5383 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5384 [HAVE_SH64] (END): Define as 10.
5385 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5386 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5388 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5389 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5390 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5391 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5393 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5394 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5395 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5396 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5397 SHmedia instructions. Handle state-change after switching to
5399 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5400 (md_parse_option) [HAVE_SH64]: Parse new options.
5401 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5402 (md_convert_frag) [HAVE_SH64] <default>: Call
5403 shmedia_md_convert_frag instead of abort.
5404 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5405 BFD_RELOC_SH_SHMEDIA_CODE.
5406 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5407 SHcompact or SHmedia code.
5408 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5409 shmedia_md_apply_fix instead of abort.
5410 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5411 result from calling shmedia_md_estimate_size_before_relax instead
5413 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5415 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5416 shmedia_init_reloc and do nothing more if it returns non-zero.
5417 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5418 * po/POTFILES.in: Regenerate.
5419 * po/gas.pot: Regenerate.
5421 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5423 * config/tc-sh.c (parse_at): Install the correct version of
5426 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5427 assume fixP->fx_subsy is non-NULL.
5429 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5431 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5432 A_DISP_PC_ABS, and adjust it by -4.
5433 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5435 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5436 the operand type is not A_DISP_PC_ABS.
5438 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5440 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5441 common and weak symbols. Handle common and weak symbols as
5442 undefined symbols with regards to GREG handling and merging.
5443 (mmix_frob_file): Ditto.
5445 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5447 * configure.in (hppa-*-netbsd*): New target.
5448 * configure: Regenerate.
5449 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5451 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5453 * config/tc-v850.c: Add missing prototypes amd use old-style
5454 function definitions.
5455 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5456 (sdata_section tdata_section, zdata_section, sbss_section,
5457 tbss_section, zbss_section, rosdata_section, rozdata_section,
5458 scommon_section, tcommon_section, zcommon_section,
5459 call_table_data_section, call_table_text_section): Delete.
5460 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5461 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5462 v850_call_table_data, v850_call_table_text): Delete.
5463 (struct v850_seg_entry): New.
5464 (v850_seg_table): New.
5465 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5466 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5467 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5468 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5471 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5472 recording of alignment.
5473 (md_pseudo_table): Use v850_seg.
5474 (md_begin): Don't init .call_table_data and .call_table_text here.
5475 Set v850_seg_table bss entry.
5477 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5479 Support on-demand global register allocation by passing on
5480 base-plus-offset relocs to the linker.
5481 * config/tc-mmix.c: Tweak and fix typos in comments.
5482 (allocate_undefined_gregs_in_linker): New variable.
5483 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5484 (md_longopts): Add --linker-allocated-gregs.
5485 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5486 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5487 (md_show_usage): Update text for -x. Add text for
5488 --linker-allocated-gregs.
5489 (tc_gen_reloc): Derive default value for addend from val and
5490 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5491 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5492 GREG if allocate_undefined_gregs_in_linker.
5493 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5494 --linker-allocated-gregs.
5495 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5496 --linker-allocated-gregs. Mention that it's implied by -x.
5497 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5498 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5500 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5502 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5504 * Makefile.am: Run "make dep-am"
5505 * Makefile.in: Regenerate.
5507 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5509 * config/tc-or32.c: New file.
5510 * config/tc-or32.h: New file.
5511 * configure.in: Add support for or32 targets.
5512 * configure: Regenerate.
5513 * config/obj-coff.c: Add support for or32 targets.
5514 * config/obj-coff.h: Add support for or32 targets.
5515 * Makefile.am: Add support for or32 targets.
5516 * Makefile.in: Regenerate.
5517 * NEWS: Mention support for OpenRISC.
5518 * doc/Makefile.in: Regenerate.
5519 * po/POTFILES.in: Regenerate.
5520 * po/gas.pot: Regenerate.
5522 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5524 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5527 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5529 * config/tc-mips.c (tc_gen_reloc): Arrange for
5530 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5531 their LO16 parts, even for ELF.
5533 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5535 * config/tc-i386.c: Protect definitions of true and false
5538 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5540 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5541 made because of .weak, if they are neither defined nor used in any
5544 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5546 * configure: Regenerated.
5548 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5550 * doc/Makefile.am (install): Depend on install-info.
5551 * doc/Makefile.in: Regenerate.
5553 2002-01-26 Nick Clifton <nick@redhat.com>
5555 * po/fr.po: Updated version
5557 2002-01-24 Kazu Hirata <kazu@hxi.com>
5559 * config/tc-h8300.c (check_operand): Don't print a warning
5560 when a valid 24-bit address is given to a 16-bit address
5563 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5565 * config/tc-sh.c (sh_elf_suffix): Removed.
5566 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5567 sh_end_of_match, sh_parse_name): New functions.
5568 (sh_elf_cons): Simplify.
5569 (parse_exp): Reject misplaced PIC operands.
5570 (md_undefined_symbol): Simplify.
5571 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5572 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5573 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5574 Complain if subsy remains at the end.
5575 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5576 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5578 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5580 * config/tc-mn10300.c (xr_registers): Move `pc'...
5581 (other_registers): ... here.
5583 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5585 * Makefile.am: Run "make dep-am".
5586 * Makefile.in: Regenerate.
5587 * gas/po/POTFILES.in: Regenerate.
5589 2002-01-21 DJ Delorie <dj@redhat.com>
5591 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5592 stabstr_name allocation permanent, as it will be referenced from
5595 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5597 * configure.in (ia64-*-netbsd*): New target.
5598 * configure: Regenerate.
5600 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5602 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5604 <Detailed description, ARM options>: Ditto.
5605 * doc/c-arm.texi (ARM Options): Ditto.
5607 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5609 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5610 do_mia, do_mar and do_mra respectively.
5611 (do_mav_*): Renamed from do_c_*.
5612 (mav_reg_required_here, mav_parse_offset): Renamed from
5613 cirrus_reg_required_here and cirrus_parse_offset respectively.
5614 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5616 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5617 Keith Walker <keith.walker@arm.com>
5619 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5620 (insns): Add pattern for bxj instruction.
5621 (do_bxj): New function.
5622 (arm_cpus): Add arm926ej.
5623 (arm_archs): Add armv5tej.
5625 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5627 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5629 2002-01-19 Keith Walker <keith.walker@arm.com>
5631 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5633 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5635 * NEWS: Mention new ARM command-line options and VFP support.
5637 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5639 (ARM_CEXT_MAVERICK): Similarly.
5640 (ARM_ANY): Now means any core instruction.
5641 (CPU_DEFAULT): Default to ARM_ANY.
5642 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5643 (pic_code): Declare for all object types. Make type int.
5644 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5645 (march_fpu_opt, mfpu_opt): Declare.
5646 (md_longopts): Tidy up conditional definitions.
5647 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5648 (arm_long_opts): New tables.
5649 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5650 (arm_parse_extension): New function.
5651 (md_parse_option): Rewrite using new table-driven system.
5652 (md_show_usage): Use new table-driven system.
5653 (md_begin): Calculate cpu_variant from command line option data.
5654 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5655 command-line options.
5656 * doc/c-arm.texi: Likewise.
5658 2002-01-18 Andreas Jaeger <aj@suse.de>
5660 * as.c (parse_args): Update year.
5662 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5664 * config/tc-tic54x.c (encode_address): Add a more informative
5665 warning about incorrect syntax.
5667 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5669 * po/gas.pot: Regenerate.
5671 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5673 * macro.c (get_any_string): Add no-c-format comment to prevent
5674 confusion when translating string.
5675 * gasp.c (get_any_string): Add no-c-format comment to prevent
5676 confusion when translating string.
5678 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5679 Johannes Stezenbach <js@convergence.de>
5680 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5681 matched before the shorter ones.
5682 (my_getSmallParser): Fix handling of nested parentheses in
5683 percent_op's. Code cleanup.
5684 (my_getPercentOp): New function, code from my_getSmallParser.
5685 (my_getSmallExpression): Fix handling of closing parentheses.
5686 Code cleanup. Better comments.
5688 2002-01-16 Nick Clifton <nickc@redhat.com>
5690 po/tr.po: New file: Turkish translation.
5691 configure.in (LINGUAS): Add "tr".
5692 configure: Regenerate.
5694 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5696 Support for VFP instructions
5697 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5698 (cp_address_required_here): New argument wb_ok. When false, do not
5699 accept write-back forms of addressing. Change all callers.
5700 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5701 (FPU_VFP_EXT_V2): Define.
5702 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5703 Define in terms of above.
5704 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5705 (vfp_reg): New struct.
5706 (vfp_regs): New array of registers.
5707 (insns): Add VFP instructions.
5708 (sn_table): New array of VFP single-precision register names.
5709 (dn_table): New array of VFP double-precision register names.
5710 (all_reg_maps): Add the new register tables.
5711 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5712 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5713 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5714 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5715 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5716 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5717 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5718 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5719 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5720 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5721 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5722 (do_vfp_sp_dp_cvt): New functions.
5723 (md_begin): Set soft-float flag for appropriate VFP work.
5724 (md_atof): Handle VFP-format doubles.
5725 (md_parse_option): Handle VFP command-line options.
5726 (md_show_usage): Display VFP command-line options.
5728 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5730 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5731 various command line options.
5733 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5735 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5737 (xstormy16_md_apply_fix3): Do not return a value.
5739 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5741 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5742 the -EL/-EB option that matches the target's endianness.
5743 (md_parse_option): Likewise.
5745 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5747 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5748 is not dependent on ARM_BI_ENDIAN.
5750 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5752 * tc-arm.c (all error messages): Normalize capitalization of messages.
5754 * tc-arm.h (md_operand): Delete define.
5755 * tc-arm.c (in_my_get_expression): New static variable.
5756 (my_get_expression): Set and clear it.
5757 (md_operand): New function. If called from my_get_expression
5758 put the error in inst.error.
5759 (output_inst): Now takes argument of instruction being assembled.
5760 Print it out with any error message.
5761 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5763 (end_of_line): Don't update inst.error if it is already set.
5765 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5767 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5768 op that can be translated into a mvn instruction.
5770 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5772 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5773 setting default md.flags.
5774 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5775 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5776 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5777 for 32 bit unwind info blocks.
5778 (generate_unwind_image): Add support for different types
5779 of unwind images (32 bits and/or big-endian).
5780 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5781 (ia64_target_format): Add support for hpux target formats.
5782 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5783 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5784 SHT_FINI_ARRAY elf section types.
5786 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5788 * tc-arm.c (struct reg_entry): Move before prototypes.
5789 (int_register, cp_register, fp_register): Delete.
5790 (reg_table): Delete. Replaced with ...
5791 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5792 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5793 (mav_dspsc_table): ... one table per register set.
5794 (arm_reg_hsh): Delete.
5795 (struct reg_map): New structure.
5796 (all_reg_maps): New array.
5797 (enum arm_reg_type): New enums.
5798 (build_reg_hsh): New function.
5799 (insert_reg_alias): Use hash table passed by caller. Adjust all
5801 (create_register_alias): New function, split out from ...
5802 (md_assemble): ... here.
5803 (md_begin): Build new register hash tables.
5804 (arm_reg_parse): New argument for the hash table to search. Adjust all
5806 (arm_reg_parse_any): New function.
5807 (co_proc_number): Look up the processor number in the processor hash
5809 (cirrus_regtype): Delete.
5810 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5811 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5812 (ARM_EXT_MAVERICKsc_register): Delete.
5813 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5814 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5816 (do_c_triple_4, do_c_triple_5): Delete.
5817 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5818 (do_c_quad_6): Delete.
5819 (do_c_quad_6[ab]): New functions.
5820 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5821 arguments to use new register parsing methods.
5822 (cirrus_reg_required_here): Likewise.
5823 (insns): Reclassify cirrus maverick worker functions.
5824 (cirrus_valid_reg): Delete.
5826 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5828 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5829 (sh*-*-netbsdelf*): New target.
5830 * configure: Regenerate.
5831 * tc-sh.h: Update copyright years.
5832 (TARGET_FORMAT): Add version for TE_NetBSD.
5834 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5836 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5839 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5841 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5842 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5844 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5846 * tc-mips.c (mips_cprestore_valid): New flag.
5847 (mips_frame_reg_valid): New flag.
5848 (macro) [M_JAL_2]: Check both flags.
5849 [M_JAL_A]: Likewise.
5850 (s_cprestore): Set mips_cprestore_valid.
5851 (tc_get_register): If setting mips_frame_reg, set
5852 mips_frame_reg_valid and clear mips_cprestore_valid.
5853 (s_mips_ent): Clear both flags.
5854 (s_mips_end): Clear both flags.
5856 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5858 * write.c (write_object_file): Make use of bfd_section_list_remove.
5859 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5860 * config/tc-mmix.c (mmix_frob_file): Likewise.
5862 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5864 * configure.in (i386-*-netbsdelf*): Collapse target into...
5865 (i386-*-netbsd*): ...this. Add support for x86-64.
5866 * configure: Regenerated.
5868 2002-01-03 matthew green <mrg@redhat.com>
5870 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5872 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5874 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5877 For older changes see ChangeLog-0001
5883 version-control: never