1 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
4 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
5 exceptions from size assert. Remove most of the addend fixup
6 specialcasing. Remove value, use valP directly. simplify fx_addnumber
7 handling. Remove zero addend specialcases.
8 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
9 the addend fixup specialcase.
10 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
12 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
14 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
15 in the RELOC_EXPANSION_POSSIBLE case.
17 2003-06-11 Alan Modra <amodra@bigpond.net.au>
19 * config/tc-i960.c (line_comment_chars): Add '#'.
20 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
22 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
24 * po/Make-in (DESTDIR): New.
25 (install-data-yes): Support $(DESTDIR).
26 (uninstall): Likewise.
28 2003-06-11 Alan Modra <amodra@bigpond.net.au>
30 * Makefile.am: Run "make dep-am".
31 * Makefile.in: Regenerate.
32 * po/POTFILES.in: Regenerate.
34 2003-06-10 Doug Evans <dje@sebabeach.org>
36 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
38 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
39 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
40 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
42 2003-06-10 Alan Modra <amodra@bigpond.net.au>
43 Gary Hade <garyhade@us.ibm.com>
45 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
46 (md_apply_fix3): Special case lq insn.
48 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
50 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
51 lists. Allow single-register ranges.
53 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
55 * config/tc-h8300.c (h8300sxnmode): New.
56 (md_pseudo_table): Add .h8300sxn entry.
58 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
60 * NEWS: Updated for the new -n option for the i386 assembler.
62 * config/tc-i386.c (optimize_align_code): New.
63 (md_shortopts): Add 'n'.
64 (md_parse_option): Handle 'n'.
65 (md_show_usage): Add '-n'.
67 * config/tc-i386.h (optimize_align_code): Declared.
68 (md_do_align): Optimize code alignment only if optimize_align_code
71 * doc/as.texinfo: Add the new -n option.
73 * doc/c-i386.texi: Document the new -n option.
75 2003-06-07 Richard Henderson <rth@redhat.com>
77 * doc/as.texinfo: Document .cfi_rel_offset.
79 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
80 (cfi_add_CFA_offset): Detect invalid offsets.
81 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
82 (cfi_add_CFA_restore_state): Restore it.
83 (CFI_rel_offset): New.
84 (cfi_pseudo_table): Add it.
87 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
89 * app.c (do_scrub_chars): Add states 14 and 15 to handle
92 2003-06-05 Michael Snyder <msnyder@redhat.com>
94 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
97 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
99 * config/tc-h8sx.c (DMODE): Remove.
100 (colonmod24): Don't choose a default if the operand is a 16-bit
102 (fix_operand_size): New function.
103 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
104 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
106 2003-06-05 Michal Ludvig <mludvig@suse.cz>
108 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
109 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
110 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
111 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
112 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
113 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
114 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
115 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
116 (cfi_pseudo_table): New directives .cfi_return_column,
117 .cfi_restore, .cfi_undefined, .cfi_same_value,
118 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
119 (dot_cfi, output_cfi_insn): Handle new directives.
120 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
121 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
122 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
124 2003-06-04 Richard Henderson <rth@redhat.com>
126 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
128 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
130 2003-06-04 Richard Henderson <rth@redhat.com>
132 * config/tc-alpha.c (s_alpha_usepv): New.
133 (md_pseudo_table): Add it.
134 (alpha_cfi_frame_initial_instructions): New.
135 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
136 (tc_cfi_frame_initial_instructions): New.
137 * doc/c-alpha.texi: Document .usepv.
139 2003-06-04 Jakub Jelinek <jakub@redhat.com>
141 * as.c (show_usage): Document --execstack and --noexecstack.
142 (parse_args): Add --execstack and --noexecstack.
143 (main): Create .note.GNU-stack section if --execstack or
144 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
145 * as.h (flag_execstack, flag_noexecstack): New.
147 2003-06-03 Chris Demetriou <cgd@broadcom.com>
149 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
150 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
151 (OPTION_MISC_BASE): New defines.
152 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
153 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
154 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
155 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
156 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
157 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
158 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
159 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
160 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
161 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
162 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
163 (OPTION_TRAP): Redefine in terms of new defines.
164 (md_longopts): Reorder entries.
166 2003-05-14 Michael Snyder <msnyder@redhat.com>
167 From Bernd Schmidt <bernds@redhat.com>
168 and Michael Snyder <msnyder@redhat.com>
169 and Alexandre Oliva <aoliva@redhat.com>
170 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
171 * config/tc-h8300.h: Ditto.
173 2003-06-03 Nick Clifton <nickc@redhat.com>
175 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
176 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
177 before calling bfd_reloc_type_lookup.
179 2003-06-02 Alan Modra <amodra@bigpond.net.au>
181 * read.c (emit_expr): Set dot_value.
182 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
184 2003-06-02 Alan Modra <amodra@bigpond.net.au>
186 * macro.c (sub_actual): Don't lose string if it turns out that
187 &string wasn't an arg.
189 2003-05-31 Richard Henderson <rth@redhat.com>
191 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
192 (cfi_finish): Set flag_traditional_format around .eh_frame data.
194 2003-05-29 Richard Henderson <rth@redhat.com>
196 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
197 (all_frame_data, plast_frame_data, cur_frame_data): New.
198 (s_alpha_ent): Record data for dwarf2 cfi.
199 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
200 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
201 * config/tc-alpha.h (md_end): New.
202 (DWARF2_DEFAULT_RETURN_COLUMN): New.
203 (DWARF2_CIE_DATA_ALIGNMENT): New.
205 2003-05-29 Nick Clifton <nickc@redhat.com>
207 * configure.in: Add i386-*-freebsd* entry.
208 * configure: Regenerate.
210 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
212 * config/tc-m32r.c: Amend comment to refer to Renesas
214 2003-05-27 Richard Henderson <rth@redhat.com>
216 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
218 (current_location): Use symbol_temp_new_now.
219 * stabs.c (s_stab_generic): Use symbol_temp_new.
220 * symbols.c (temp_label_name): Remove.
221 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
223 2003-05-27 Richard Henderson <rth@redhat.com>
225 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
226 * as.c (main): Always call cfi_finish.
227 * config/tc-i386.c (x86_dwarf2_return_column): New.
228 (x86_cie_data_alignment): New.
229 (md_begin): Set them.
230 (tc_x86_cfi_init): Remove.
231 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
232 return int, not unsigned long; don't as_bad here.
233 (tc_x86_frame_initial_instructions): Streamline; use
235 * config/tc-i386.h (tc_cfi_init): Remove.
236 (DWARF2_DEFAULT_RETURN_COLUMN): New.
237 (DWARF2_CIE_DATA_ALIGNMENT): New.
239 2003-05-27 Richard Henderson <rth@redhat.com>
241 * symbols.c (temp_label_name): New.
242 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
243 (symbol_set_value_now): New.
244 * symbols.h: Prototype them.
245 * dwarf2dbg.c: Use them.
246 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
248 2003-05-23 Jason Eckhardt <jle@rice.edu>
250 * config/tc-i860.c (target_xp): Declare variable.
251 (OPTION_XP): Declare macro.
252 (md_longopts): Add option -mxp.
253 (md_parse_option): Set target_xp.
254 (md_show_usage): Add -mxp usage.
255 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
256 (md_assemble): Don't try expansions if XP_ONLY is set.
257 * doc/c-i860.texi: Document -mxp option and i860XP support.
259 2003-05-23 Eric Christopher <echristo@redhat.com>
261 * config/tc-mips.c (macro_build_jalr): Warning patrol.
263 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
265 * config/tc-mips.c (append_insn): Use actual relocation size for new
266 fixp's. Don't relax overflow checking for partial_inplace relocations.
267 Use the actual relocation type in combined relocs, not just the type
269 (macro_build_jalr): Use actual relocation size for new fix.
270 (s_cpsetup, s_gpdword): Likewise.
272 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
274 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
276 2003-05-22 Nick Clifton <nickc@redhat.com>
278 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
279 section relative offsets for relocs that will not be based on the
281 (xstormy16_md_apply_fix3): Remove previous patch to this
284 2003-05-07 Eric Christopher <echristo@redhat.com>
286 * config/tc-mips.c (mips_abicalls): New variable.
287 (md_parse_option): Use.
290 (mips_elf_final_processing): Set EF_MIPS_PIC and
291 EF_MIPS_CPIC dependent on above.
293 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
295 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
297 2003-05-21 Nick Clifton <nickc@redhat.com>
299 * config/obj-elf.c: Include dwarf2dbg.h.
300 (elf_pseudo_tab): Add .file and .loc.
301 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
302 * config/tc-arm.c: Likewise.
303 * config/tc-h8300.c: Likewise.
304 * config/tc-hppa.c: Likewise.
305 * config/tc-ia64.c: Likewise.
306 * config/tc-m68hc11.c: Likewise.
307 * config/tc-m68k.c: Likewise.
308 * config/tc-mmix.c: Likewise.
309 * config/tc-mn10300.c: Likewise.
310 * config/tc-ppc.c: Likewise.
311 * config/tc-sh.c: Likewise.
312 * config/tc-sparc.c: Likewise.
313 * config/tc-v850.c: Likewise.
314 * config/tc-frv.c: Likewise, and remove redundant inclusion of
316 * config/tc-ip2k.c: Likewise.
317 * config/tc-iq2000.c: Likewise.
318 * config/tc-xstormy16.c: Likewise.
319 * config/tc-xtensa.c: Likewise.
320 * Makefile.am: Regenerate dependencies.
321 * Makefile.in: Regenerate.
322 * aclocal.m4: Regenerate.
323 * config.in: Regenerate.
324 * configure: Regenerate.
325 * po/POTFILES.in: Regenerate.
326 * po/gas.pot: Regenerate.
328 2003-05-21 Nick Clifton <nickc@redhat.com>
330 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
331 BFD_ASSEMBLER targets.
332 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
333 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
334 defining BFD_ASSEMBLER.
336 2003-05-20 Michal Ludvig <mludvig@suse.cz>
338 * as.c (main): Remove tc_cfi_init().
339 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
341 (cfi_pseudo_table): Add "cfi_register" entry.
342 (cfi_make_insn): Handle CFA_register.
343 (cfi_output_insn): Ditto.
345 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
346 (dot_cfi_endproc): Reuse already emitted CIEs.
347 * testsuite/gas/cfi/cfi-i386.d: New pattern.
348 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
350 2003-05-20 Nick Clifton <nickc@redhat.com>
352 * config/tc-xstormy16.c: Include dwarf2dbg.h.
353 (md_pseudo_table): Add entries for .loc and .line.
355 2003-05-20 Alan Modra <amodra@bigpond.net.au>
357 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
359 (dot_cfi_endproc): Avoid C99 construct.
361 2003-05-20 Michal Ludvig <mludvig@suse.cz>
363 * dw2gencfi.c, dw2gencfi.h: New files.
364 * config/tc-i386.c (tc_x86_cfi_init): New function.
365 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
366 * as.c (parse_args): Set verbose flag on --verbose.
367 (main): Call tc_cfi_init()/cfi_finish().
368 * as.h (verbose): New external variable.
369 * read.c (pobegin): Insert CFI pops to the list.
370 * symbols.c (local_symbol_make): Make symbol external.
371 * symbols.h (local_symbol_make): New prototype.
372 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
373 * Makefile.in: Regenerate.
374 * doc/as.texinfo: Added node "CFI directives" with description of
375 all implemented .cfi_* directives.
376 * doc/Makefile.in: Regenerate.
377 * po/POTFILES.in: Regenerate.
379 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
381 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
383 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
385 2003-05-18 Jason Eckhardt <jle@rice.edu>
387 * config/tc-i860.c (i860_process_insn): Initialize fc after
388 each opcode mismatch.
390 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
392 * configure.in: Accept i[3-7]86 variants.
393 * configure: Regenerate.
395 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
397 * config/tc-mips.h: Fix comment formatting.
399 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
401 * read.c (old_buffer, old_input, old_limit): Remove variables.
402 (read_a_source_file): Delete label contin.
403 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
404 input as with macros, instead of in separate old_* variables.
405 Zero-terminate string being scrubbed.
407 2003-05-12 Nick Clifton <nickc@redhat.com>
409 * config/tc-xstormy16.c (skipping_fptr): New local variable.
410 (md_assemble): Reset skipping_fptr.
411 (md_operand): If @fptr() is followed by a minus sign, set
412 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
413 @fptr is detected, ignore it and reset skipping_fptr.
415 2003-05-11 Jason Eckhardt <jle@rice.edu>
417 * config/tc-i860.c (MAX_FIXUPS): Define.
418 (struct i860_fi fi[]): New struct.
419 (struct i860_it the_insn): Add above as member and move fields
420 exp, reloc, pcrel and fup into i860_fi.
421 (md_assemble): Replace all instances of exp, reloc, pcrel
422 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
423 Add a loop to possibly emit multiple fix-ups for each insn.
424 (i860_process_insn): Likewise.
425 (i860_get_expression): Likewise.
426 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
428 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
430 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
432 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
434 * config/tc-ia64.c (alias_hash): New.
435 (alias_name_hash): New.
436 (secalias_hash): New.
437 (secalias_name_hash): New.
438 (md_pseudo_table): Add "secalias".
439 (md_begin): Initialize alias_hash, alias_name_hash,
440 secalias_hash and secalias_name_hash.
442 (dot_alias): Implement .alias and .secalias directives.
444 (ia64_adjust_symtab): New.
446 (ia64_frob_file): New.
448 * config/tc-ia64.h (ia64_adjust_symtab): New.
449 (tc_adjust_symtab): Defined.
450 (ia64_frob_file): New.
451 (tc_frob_file): Defined.
453 2003-05-07 Dmitry Diky <diwil@mail.ru>
455 * tc-msp430.c: Add missing lines to known cpus list.
457 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
459 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
460 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
461 * config.in, configure: Rebuilt.
463 2003-05-05 H.J. Lu <hjl@gnu.org>
465 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
466 howto->partial_inplace is false.
468 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
470 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
471 symbol_used_in_reloc_p check.
472 (md_apply_fix3): Remove check for howto->pcrel_offset.
474 2003-05-03 H.J. Lu <hjl@gnu.org>
476 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
477 fatal error for unknown section attribute.
479 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
480 unknown section attribute.
481 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
482 * config/tc-ppc.c (ppc_section_letter): Likewise.
484 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
485 (ia64_elf_section_type): Accept "unwind".
487 2003-05-02 H.J. Lu <hjl@gnu.org>
489 * read.h (demand_copy_string): New.
491 * config/tc-alpha.c (demand_copy_string): Removed.
493 2003-05-02 Michael Snyder <msnyder@redhat.com>
495 * write.h (FAKE_LABEL_NAME): Allow override
496 (for targets that like eg. a leading dot in a local label).
498 2003-05-02 Nick Clifton <nickc@redhat.com>
500 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
501 addend with the symbol's value for pc-relative relocations against
502 a defined symbol - this will be done automatically.
504 2003-05-01 H.J. Lu <hjl@gnu.org>
506 * config/obj-elf.c (obj_elf_type): Accept "notype" and
509 2003-05-01 H.J. Lu <hjl@gnu.org>
511 * config/tc-ia64.h (tc_canonicalize_section_name): New.
513 * config/obj-elf.c (obj_elf_section_name): Call
514 tc_canonicalize_section_name if it is defined.
516 2003-05-01 H.J. Lu <hjl@gnu.org>
518 * config/tc-ia64.c (ia64_check_label): New.
519 * config/tc-ia64.h (tc_check_label): New.
521 * read.c (read_a_source_file): Call tc_check_label after
522 creating a user-defined label if defined.
524 2003-05-02 Alan Modra <amodra@bigpond.net.au>
526 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
527 -be and split strings to below 509 bytes in length.
529 2003-05-01 Christian Groessler <chris@groessler.org>
531 * expr.h: Fix comments in operatorT typedef.
532 * config/tc-z8k.c: Add 2003 to copyright message.
533 Fold s_segm() and s_unseg() into one function s_segm(parm) which
534 decides by the parameter.
535 (md_begin): Don't set linkrelax. Only set Z8002 default if no
536 command line argument was given to select the intended
538 (get_interrupt_operand): Warn if NOP type code is emitted.
539 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
540 (apply_fix): Call newfix with additional 'size' parameter.
541 (build_bytes): Remove unused variable 'nib'. Detect overflow in
542 4 bit immediate arguments.
543 (md_longopts): Add 'linkrelax' option.
544 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
545 variable when 'linkrelax' command line option is specified.
546 (md_show_usage): Display 'linkrelax' option.
547 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
549 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
551 2003-04-30 H.J. Lu <hjl@gnu.org>
553 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
554 (ia64_float_to_chars): Likewise.
555 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
556 and ia64_float_to_chars by tc_segment_info_data.endian from
557 the current segment if byteorder == -1.
558 (md_begin): Call dot_byteorder to set target_big_endian.
559 (md_atof): Call ia64_float_to_chars to convert floating point.
560 (ia64_float_to_chars_bigendian): New function.
561 (ia64_float_to_chars_littleendian): Likewise.
562 (ia64_elf_section_change_hook): Likewise.
564 * config/tc-ia64.h (ia64_number_to_chars): New.
565 (md_number_to_chars): Changed to (*ia64_number_to_chars)
566 (ia64_elf_section_change_hook): New.
567 (md_elf_section_change_hook): Defined.
568 (ia64_segment_info_type): New struct.
569 (TC_SEGMENT_INFO_TYPE): Defined.
571 2003-04-30 H.J. Lu <hjl@gnu.org>
573 * config/tc-ia64.c (md_section_align): Deleted.
575 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
576 (md_section_align): New.
578 2003-04-30 H.J. Lu <hjl@gnu.org>
580 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
582 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
584 (md_atof): Add 6 byte padding of zero for real16.
586 2003-04-29 Nick Clifton <nickc@redhat.com>
588 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
589 start of a version name.
591 2003-04-28 Chris Demetriou <cgd@broadcom.com>
593 * configure.in (mips-*-*n*bsd*): Replace with...
594 (mips-*-netbsd*, mips-*-openbsd*): These.
595 * configure: Regenerate.
597 2003-04-28 H.J. Lu <hjl@gnu.org>
599 * config/tc-hppa.c (hppa_symbol_chars): New.
600 * config/tc-hppa.h (tc_symbol_chars): Likewise.
602 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
604 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
606 2003-04-25 Chris Demetriou <cgd@broadcom.com>
608 * NEWS: Belatedly mention support for MIPS32 Release 2.
610 2003-04-24 Eric Christopher <echristo@redhat.com>
612 * config/tc-mips.c (nopic_need_relax): Revert previous
615 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
617 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
618 * config/tc-h8300.c (dwarf2dbg.h): Include
619 (md_pseudo_table): Handle .loc and .file
620 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
621 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
622 * Makefile.in: Regenerate.
624 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
626 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
627 (md_pseudo_table): Add h8300hn, h8300sn.
628 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
629 * doc/c-h8300.texi : Add documentation for new machine directives.
631 2003-04-24 Nick Clifton <nickc@redhat.com>
633 * config/tc-ppc.c (ppc_symbol_chars): Define.
634 * config/tc-ppc.h (tc_symbol_chars): Define.
636 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
638 * config/tc-sh.c: Amend comment to refer to SuperH.
639 * config/tc-sh.h: Likewise.
640 (LISTING_HEADER): Amend to refer to SuperH.
641 * config/tc-sh64.c: Change comment to refer to SuperH.
642 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
643 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
644 * doc/c-sh.texi: Amend to refer to SuperH.
645 Add SuperH architecture documentation references.
646 * doc/c-sh64.texi: Change to refer to SuperH.
648 2003-04-23 H.J. Lu <hjl@gnu.org>
650 * app.c (do_scrub_chars): More checks for valid labels.
652 2003-04-22 H.J. Lu <hjl@gnu.org>
654 * app.c (do_scrub_chars): Check for valid label.
656 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
658 * doc/as.texinfo: Replace references to Mitsubishi M32R with
659 references to Renesas M32R.
660 * doc/c-m32r.texi: Likewise.
662 2003-04-21 Richard Henderson <rth@redhat.com>
664 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
665 (out_file_list): Assign non-null filename after generating error.
667 2003-04-18 Jakub Jelinek <jakub@redhat.com>
669 * ehopt.c (check_eh_frame): For aug_size == 0
670 in state_seeing_aug_size state skip the state_skipping_aug
673 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
675 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
677 * doc/c-h8500.texi: Likewise.
678 * doc/c-sh.texi: Likewise.
679 * doc/c-sh64.texi: Likewise.
680 * doc/h8.texi: Likewise.
681 * config/tc-h8300.c: Likewise.
682 * config/tc-h8300.h: Likewise.
683 * config/tc-h8500.c: Likewise.
684 * config/tc-h8500.h: Likewise.
685 * config/tc-sh.c: Likewise.
686 * config/tc-sh.h: Likewise.
687 * config/tc-sh64.c: Likewise.
688 * config/tc-sh64.h: Likewise.
690 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
692 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
693 * config/tc-mips.c: Use signed add for n32 address arithmetic.
694 (append_insn): When filling delay slots with instructions
695 that have fixups that tc_gen_reloc might consider modifyable
696 in variant frags, start a new frag.
697 (load_address): Generate GOT_DISP with of without offset
698 depending on whether symbol is local. For -xgot, use
699 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
700 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
701 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
702 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
703 <ld_st>: In NewABI with small got, always use
704 GOT_PAGE/GOT_OFST, with the latter in the load/store
705 instruction. With big got, use GOT_HI16/GOT_LO16 or
707 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
708 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
709 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
710 (md_convert_frag): Use memmove for safe copying of overlapping
713 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
715 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
716 -mlong, -mshort-double and -mlong-double options; use table @code.
717 (M68HC11-Syntax): Update to document 68HC12 operands.
718 (M68HC11-Modifiers): New section for operand modifiers.
719 (M68HC11-Directives): New section for specific assembler directives.
720 (M68HC11-Branch): Fix Overfull hbox error.
722 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
724 * config/tc-mips.c (macro): Add comments explaining the rationale
727 2003-04-09 Chris Demetriou <cgd@broadcom.com>
729 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
730 constant address that Alexandre took out by accident. Reject
731 64-bit addresses that are not sign extensions of 32 bits only if
732 we don't support 64-bit address constants.
734 2003-04-09 Alan Modra <amodra@bigpond.net.au>
736 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
738 2003-04-08 Nick Clifton <nickc@redhat.com>
740 * as.c (perform_an_assembly_pass): If using cgen, call
742 * cgen.c (gas_cgen_begin): New function. If
743 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
744 otherwise call cgen_clear_signed_overflow_ok.
745 * cgen.h: Prototype gas_cgen_begin.
747 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
749 * write.c (write_relocs): Remove unused variable.
751 2003-04-06 Chris Demetriou <cgd@broadcom.com>
753 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
754 (macro): Use new macro to decide whether to emit constant address
755 as 32 or 64 bits if addresses are 32-bit wide but registers are
758 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
760 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
761 (M6811_OP_PAGE_ADDR): New internal define.
762 (get_operand): New modifier %page and %addr to obtain page and
763 address part of a far-function.
764 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
765 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
767 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
768 (find_opcode): Add comment.
769 (md_estimate_size_before_relax): Force relocation of
770 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
771 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
772 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
773 on the symbol itself so that DWARF2 strings are merged correctly.
775 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
777 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
778 default tic4x target format to 'coff2-tic4x'.
779 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
781 * config/tc-tic4x.h: Ditto
783 2003-04-03 Nick Clifton <nickc@redhat.com>
785 * NEWS: Mention support for Xtensa architecture.
787 2003-04-02 Philip Blundell <philb@gnu.org>
789 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
791 2003-04-02 Chris Demetriou <cgd@broadcom.com>
793 * config/tc-mips.c (macro2): Adjust implementation of
794 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
795 in the case where the source and destination registers
798 2003-04-01 Bob Wilson <bob.wilson@acm.org>
800 * Makefile.am (CPU_TYPES): Add xtensa.
801 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
802 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
803 (xtensa-relax.o): New target.
805 * Makefile.in: Regenerate.
806 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
807 extra_objects for xtensa targets.
808 * configure: Regenerate.
809 * write.c (write_object_file): Add new md_post_relax_hook.
810 * config/tc-xtensa.c: New file.
811 * config/tc-xtensa.h: Likewise.
812 * config/xtensa-istack.h: Likewise.
813 * config/xtensa-relax.c: Likewise.
814 * config/xtensa-relax.h: Likewise.
815 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
816 * doc/Makefile.in: Regenerate.
817 * doc/all.texi: Set new XTENSA variable.
818 * doc/as.texinfo: Set new Xtensa variable. Describe
819 Xtensa-specific options. Define line comment character for
820 Xtensa. Add Xtensa processors to list of ELF targets where
821 alignment is specified in bytes. Add new Xtensa-Dependent node.
822 Add acknowledgements for those contributing to the Xtensa port.
823 * doc/internals.texi: Describe new md_post_relax_hook.
824 * doc/c-xtensa.texi: New file.
826 2003-04-01 Nick Clifton <nickc@redhat.com>
827 Richard Earnshaw <rearnsha@arm.com>
829 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
830 (ARM_ARCH_IWMMXT): Simplify.
831 (insns): Place iwmmx instructions in correct place in table.
832 (arm_add_note): New function: Add a note entry to a .note section.
833 (md_begin): Make the default architecture be unknown.
834 Suppress the creation of an arm note section.
836 2003-03-26 Eric Christopher <echristo@redhat.com>
838 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
840 2003-03-25 Stan Cox <scox@redhat.com>
841 Nick Clifton <nickc@redhat.com>
843 Contribute support for Intel's iWMMXt chip - an ARM variant:
845 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
846 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
847 (enum wreg_type, enum iwmmxt_insn_type): New types.
848 (wr_register, wc_register, wcg_register): New macros.
849 (iwmmxt_table): New variable.
850 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
851 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
852 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
853 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
854 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
855 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
856 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
857 cp_byte_address_offset, cp_byte_address_required_here,
858 check_iwmmxt_insn): New functions.
859 (asm_opcode_insns): Add iWMMXt instructions.
860 (md_begin): Set the mach value for iWMMXt targets. Create a note
861 section to identify iwmmxt binaries.
862 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
863 * doc/c-arm.texi: Document the support for the iWMMXt.
864 * NEWS: Mention new support.
866 2003-03-24 Daniel Néri <dne@mayonnaise.net>
868 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
869 * doc/all.texi: Likewise.
870 * doc/c-tic54x.texi: Likewise.
872 2003-03-21 Andreas Schwab <schwab@suse.de>
874 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
875 avoid aliasing issue.
877 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
879 * config/tc-s390.c (s390_arch_size): Initialize to zero.
880 (current_arch_mask): Rename to current_mode_mask.
881 (current_arch_requested): Remove variable.
882 (current_cpu): New variable.
883 (init_default_arch): Set defaults values for s390_arch_size,
884 current_mode_mask and current_cpu.
885 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
886 (md_begin): Replace current_arch_mask by current_cpu.
887 (md_assemble): Adapt check and error message to current_mode_mask and
890 2003-03-09 James E Wilson <wilson@tuliptree.org>
892 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
893 * read.c (get_line_sb): Return end of line character or '\n' if
894 it is zero or non-existent.
896 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
898 * config/tc-mips.c (mips_validate_fix): New function.
899 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
900 (mips_validate_fix): Declare.
902 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
904 * Reverted 2003-03-02's patch.
906 2003-03-11 Steve Ellcey <sje@cup.hp.com>
908 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
909 (TC_DWARF2_EMIT_OFFSET): Provide default.
910 (out_debug_aranges, out_debug_info): Use it.
911 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
912 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
913 (ia64_gen_real_reloc_type): ... here.
914 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
916 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
918 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
919 (s_mips_ent): Likewise.
921 2003-03-04 Dmitry Diky <diwil@mail.ru>
923 * config/tc-msp430.c (mcu_types): Add recently announced x1122
924 and x1123 devices, add missed x437.
925 (md_show_usage): Sort device list.
927 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
929 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
930 (md_begin): Use preset_target_arch.
931 (md_longopts): Make isa option unconditional.
932 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
933 set preset_target_arch.
934 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
935 by -S_GET_VALUE (fixP->fx_subsy).
936 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
938 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
939 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
941 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
943 * config/tc-mips.c (append_insn): Add handling of
944 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
945 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
946 misaligned address and reange overflow.
947 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
948 earlier warnings about misaligned address and reange overflow.
949 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
950 (md_apply_fix): Likewise. Fix warning output.
951 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
952 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
953 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
955 2003-02-21 Nick Clifton <nickc@redhat.com>
957 * NEWS: Mention availability of test generator program.
959 2003-02-21 Miles Bader <miles@gnu.org>
961 * config/tc-v850.c (system_registers): Add v850e debug registers.
962 (system_register_name): Accept up to 27 (the last v850e sys register).
964 2003-02-21 Bob Wilson <bob.wilson@acm.org>
966 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
967 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
968 Capitalize section headings consistently. Format index entries more
969 consistently. Unconditionalize text about whether text and data
970 sections are alterable. Use @ifnottex for alternatives to @tex output
971 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
972 .size and .type directives. Be more polite about bad bug reports.
973 Move FDL into a separate file.
974 * doc/fdl.texi: New file.
976 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
978 * config/tc-mips.c (prev_reloc_op_frag): New variable.
979 (macro): Check it to decide whether a new frag is needed.
980 (my_getSmallExpression): Set it.
982 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
984 * cgen.c: Fix typo: intial -> initial.
986 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
988 * app.c (do_scrub_chars): Handle '||' in two states.
990 2003-02-13 Alan Modra <amodra@bigpond.net.au>
992 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
993 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
995 2003-02-11 Uwe Stieber <uwe@wwws.de>
997 * configure.in: Add support for kaOS as cross build target system.
998 * configure: Regenerated.
1000 2003-02-10 Nick Clifton <nickc@redhat.com>
1002 * config/tc-arm.c (md_begin): If the Maverick co-processor is
1003 selected, set the EF_ARM_MAVERICK_FLOAT flag and
1004 bfd_mach_arm_ep9312 machine number.
1006 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
1008 * config/tc-mips.c (reloc_needs_lo_p): New function.
1009 (fixup_has_matching_lo_p): New function.
1010 (append_insn): Use reloc_needs_lo_p to check whether a relocation
1011 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
1012 if that fixup already has a matching %lo(). Don't call frag_wane here.
1013 (macro): Call frag_wane here if the last unmatched hi was in the
1015 (pic_need_relax): New function, split out from...
1016 (md_estimate_size_before_relax): ...here.
1017 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
1018 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
1020 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1022 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1024 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1026 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1029 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1031 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1032 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1033 accept x@got+off etc.
1034 (md_assemble): Handle TLS relocs.
1035 (ppc_force_relocation): Force for all TLS relocs.
1036 (ppc_fix_adjustable): Likewise.
1037 (md_apply_fix3): Handle TLS relocs.
1039 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1041 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1042 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1044 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1046 * config/tc-mips.c (enum small_ex_type): Remove.
1047 (imm_unmatched_hi): Remove.
1048 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1049 argument from calls to append_insn.
1050 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1052 (macro_build): Update append_insn calls.
1053 (mips16_macro_build, macro_build_lui): Likewise.
1054 (mips_ip): Rework handling of small expressions. Move explicit
1055 relocation handling into my_getSmallExpression. Assume that the
1056 value of 'o' operands is zero if there is only one bracketed
1058 (percent_op): Make constant. Record the BFD relocation code
1059 associated with each operator.
1060 (my_getSmallParser, my_getPercentOp): Remove.
1061 (parse_relocation): New function.
1062 (my_getSamllExpression): Rework. Fill in relocations here
1063 rather than in mips_ip.
1065 2003-01-29 Nick Clifton <nickc@redhat.com>
1067 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1068 assembler's handling of # <linenum> "<filename>" directives work.
1070 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1072 * dwarf2dbg.c: Include filenames.h.
1073 (struct file_entry): Make filename const char *.
1074 (dirs, dirs_in_use, dirs_allocated): New variables.
1075 (get_filenum): Add NUM argument. Build directory table.
1076 (dwarf2_where): Adjust caller.
1077 (dwarf2_directive_file): Use get_filenum to allocate
1078 slot in file and directory tables.
1079 (dwarf2_directive_loc): Recreate full filename from
1080 directory and filename part if needed for listing.
1081 (out_file_list): Output directory table.
1082 Output main source file dirname before its filename.
1084 2003-01-28 Dmitry Diky <diwil@mail.ru>
1086 * config/tc-msp430.c: Replace occurences of 'tolower' with
1089 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1091 * config/tc-ia64.c (dot_vframesp): Correct error message.
1092 (dot_vframepsp): Ditto.
1094 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1096 * configure.in (em): Set to irix on all Irix systems.
1097 * configure: Rebuilt.
1098 * config/te-irix.h: New file.
1099 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1100 whether to use Irix-specific 64-bit format.
1102 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1104 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1106 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1108 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1109 (tc_gen_reloc): Handle TLS relocs.
1110 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1111 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1113 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1114 (obj_elf_type): Handle tls_object.
1116 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1118 * config/tc-s390.c (s390_tls_suffix): New function.
1119 (elf_suffix_type): Add suffix enums for TLS relocations.
1120 (s390_elf_suffix): Add suffix strings for TLS relocations.
1121 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1123 (md_gather_operands): Map new instruction operand/elf suffix
1124 combinations for TLS to bfd relocations.
1125 (tc_s390_fix_adjustable): Add new TLS relocations.
1126 (tc_s390_force_relocation): Likewise.
1127 (md_apply_fix3): Likewise.
1129 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1131 * as.h: Update copyright date.
1132 * symbols.c: Likewise.
1133 * config/tc-d10v.h: Likewise.
1134 * config/tc-fr30.h: Likewise.
1135 * config/tc-i960.h: Likewise.
1136 * config/tc-mips.h: Likewise.
1138 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1139 (MD_APPLY_SYM_VALUE): Move.
1141 2003-01-23 Nick Clifton <nickc@redhat.com>
1143 * NEWS: Announce sh2e support.
1146 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1147 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1148 (sh_elf_final_processing): Handle arch_sh2e.
1150 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1152 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1153 * symbols.h (S_FORCE_RELOC): Likewise.
1154 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1155 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1156 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1157 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1158 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1159 * write.c (generic_force_reloc): New function.
1160 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1161 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1162 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1163 * as.h (generic_force_reloc): Declare.
1164 * doc/internals.texi (S_FORCE_RELOC): Update.
1165 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1167 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1168 generic_force_reloc.
1169 (alpha_fix_adjustable): Likewise.
1170 * config/tc-arm.c (arm_force_relocation): Likewise.
1171 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1172 * config/tc-frv.c (frv_force_relocation): Likewise.
1173 * config/tc-i386.c (md_apply_fix3): Likewise.
1174 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1175 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1176 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1177 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1178 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1179 * config/tc-mips.c (mips_force_relocation): Likewise.
1180 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1181 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1182 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1183 * config/tc-sh.c (sh_force_relocation): Likewise.
1184 (md_pcrel_from_section): Likewise.
1185 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1186 * config/tc-v850.c (v850_force_relocation): Likewise.
1187 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1188 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1189 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1190 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1192 * config/tc-d10v.c (d10v_force_relocation): Delete.
1193 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1194 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1195 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1196 * config/tc-fr30.c (fr30_force_relocation): Delete.
1197 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1198 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1199 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1200 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1201 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1202 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1203 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1204 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1205 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1206 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1207 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1208 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1209 * config/tc-i386.c (i386_force_relocation): Delete.
1210 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1212 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1213 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1214 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1215 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1217 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1218 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1220 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1222 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1223 sh64_elf_section_data.
1224 * config/tc-sh64.h: Include elf32-sh64.h.
1225 * config/tc-m68hc11.c: Don't include stdio.h.
1226 (md_show_usage): Fix missing continuation.
1227 * Makefile.am: Run "make dep-am".
1228 * Makefile.in: Regenerate.
1230 2003-01-22 Nick Clifton <nickc@redhat.com>
1232 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1234 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1236 * configure.in: Handle *-*-aros*.
1237 * configure: Regenerated from configure.in.
1239 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1241 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1242 gotplt and pltoff relocations.
1243 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1244 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1245 gotplt and pltoff to bfd relocations.
1246 (md_gather_operands): Map new instruction operand/elf suffix
1247 combinations to bfd relocations.
1248 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1249 to the list of unadjustable relocations.
1250 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1251 and pltoff relocations.
1252 (md_apply_fix3): Add the new relocations.
1254 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1256 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1257 with a subsy symbol.
1259 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1261 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1262 of relocs for memory bank addressing.
1264 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1266 * config/tc-m68hc11.c (md_show_usage): Update usage.
1267 (md_parse_option): Recognize -m68hcs12.
1268 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1270 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1272 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1274 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1276 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1278 * Makefile.am: Run "make dep-am".
1279 * Makefile.in: Regenerate.
1280 * po/POTFILES.in: Regenerate.
1282 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1284 * read.c (get_absolute_expr): New, split out from..
1285 (get_absolute_expression): ..here.
1286 * read.h (get_absolute_expr): Declare.
1287 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1288 Trim size to arch bits_per_address, and test for negative input
1289 via get_absolute_expr.
1291 2003-01-07 DJ Delorie <dj@redhat.com>
1293 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1295 (xstormy16_md_apply_fix3): Use adjustment.
1297 2003-01-02 Ben Elliston <bje@redhat.com>
1299 * configure.in: Add iq2000-elf target.
1300 * configure: Regenerate.
1301 * config/tc-iq2000.c: New file.
1302 * config/tc-iq2000.h: Likewise.
1303 * po/gas.pot: Regenerate.
1305 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1307 * config/tc-mips.c: Update copyright years to include 2003.
1308 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1309 Additionally, clean up their code slightly and clean up their
1312 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1314 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1316 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1318 * doc/Makefile.in: Regenerate.
1320 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1322 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1323 of .init and .fini sections for array initializers and finalizers.
1325 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1327 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1328 the "+D" operand, which will be used only by the disassembler.
1330 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1332 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1334 * configure: Regenerate.
1335 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1336 (macro_build): Handle "K" operand.
1337 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1338 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1339 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1340 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1341 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1342 (validate_mips_insn): Implement "+" as a way to extend the
1343 allowed operands, and implement "K", "+A", "+B", and "+C"
1345 (OPTION_MIPS32R2): New define.
1346 (md_longopts): Add entry for OPTION_MIPS32R2.
1347 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1348 (md_parse_option): Handle OPTION_MIPS32R2.
1349 (s_mipsset): Reimplement handling of ".set mipsN" options
1350 and add support for ".set mips32r2".
1351 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1352 (md_show_usage): Document "-mips32r2" option.
1353 * doc/as.texinfo: Document "-mips32r2" option.
1354 * doc/c-mips.texi: Likewise.
1356 2002-12-30 Dmitry Diky <diwil@mail.ru>
1358 * configure.in: Add msp430 target.
1359 * configure: Regenerate.
1360 * Makefile.am: Add msp430 target.
1361 * Makefile.in: Regenerate.
1362 * config/tc-msp430.c: New file: msp430 assembler.
1363 * config/tc-msp430.h: New file: target macros for msp430.
1364 * doc/Makefile.am: Add msp430 target.
1365 * doc/Makefile.in: Regenerate.
1366 * doc/as.texinfo: Include msp430 documenation.
1367 * doc/all.texi: Enable msp430 documentation.
1368 * doc/c-msp430.texi: New file: document msp430 specific features
1371 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1373 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1374 (dwarf2_finish): Use it.
1375 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1376 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1378 2002-12-20 DJ Delorie <dj@redhat.com>
1380 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1381 BFD_RELOC_XSTORMY16_12.
1383 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1385 * doc/as.texinfo (Invoking): Typo fix.
1386 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1388 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1390 * doc/c-alpha.texi: Fix typos.
1391 * doc/c-arm.texi: Likewise.
1392 * doc/c-d10v.texi: Likewise.
1393 * doc/c-i370.texi: Likewise.
1394 * doc/c-i960.texi: Likewise.
1395 * doc/c-ia64.texi: Likewise.
1396 * doc/c-mmix.texi: Likewise.
1397 * doc/c-ns32k.texi: Likewise.
1398 * doc/c-pdp11.texi: Likewise.
1399 * doc/c-pj.texi: Likewise.
1400 * doc/c-sh64.texi: Likewise.
1401 * doc/c-sparc.texi: Likewise.
1402 * doc/c-tic54x.texi: Likewise.
1403 * doc/c-v850.texi: Likewise.
1404 * doc/c-vax.texi: Likewise.
1405 * doc/internals.texi: Likewise.
1407 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1409 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1410 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1411 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1412 arrange not to issue warnings about use of AT when AT is not
1415 2002-12-17 Nick Clifton <nickc@redhat.com>
1417 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1418 prevent it being confused with -k.
1420 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1422 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1423 has already been set up, use it.
1425 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1427 * ChangeLog-9295: Fix a typo.
1429 * config/tc-d10v.c: Fix a comment typo.
1430 * config/tc-dlx.c: Likewise.
1431 * config/tc-h8300.h: Likewise.
1432 * config/tc-h8500.h: Likewise.
1433 * config/tc-mips.c: Likewise.
1434 * config/tc-s390.c: Likewise.
1435 * config/tc-sh.h: Likewise.
1436 * config/tc-tic80.h: Likewise.
1437 * config/tc-w65.h: Likewise.
1438 * config/tc-z8k.c: Likewise.
1439 * config/tc-z8k.h: Likewise.
1440 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1442 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1444 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1445 Simplify sign extension. Remove redundant unsigned < 0 test.
1446 * config/tc-i960.c (md_ri_to_chars): Prototype.
1447 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1448 (dump_literals): Init brarsym, and test later instead of isforce.
1450 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1451 (parse): Constify line and lineptr.
1452 (md_begin): Calculate endop here.
1454 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1456 * config/obj-vms.c: Formatting. Include fnctl.h.
1457 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1458 (Object_Record_Offset): Make it a size_t.
1459 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1460 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1461 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1462 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1463 (vms_fixup_data_section <data_size>): Add here instead.
1464 * config/e-criself.c: Fix typo in last change.
1466 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1468 * write.c (write_object_file): Fix signed/unsigned warning.
1469 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1470 * config/e-criself.c (criself_bfd_name): Prototype.
1471 * config/obj-aout.c (s_sect): Remove unused function.
1472 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1473 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1474 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1475 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1476 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1477 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1478 (vms_fixup_text_section <text_siz>): Likewise.
1479 (synthesize_data_segment <data_size>): Likewise.
1480 (vms_fixup_xtors_section <sect_no>): Likewise.
1481 (structure_count): Don't use implicit int type.
1482 * config/tc-a29k.c (insert_sreg): Prototype.
1483 (define_some_regs): Prototype, make static.
1484 (parse_operand): Likewise.
1485 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1486 (md_show_usage <stream>): Likewise.
1487 (md_section_align <segment>): Likewise.
1488 (md_convert_frag <all args>): Likewise.
1489 (md_estimate_size_before_relax <all args>): Likewise.
1490 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1491 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1492 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1493 (md_undefined_symbol <name>): Likewise.
1494 (md_convert_frag <all args>): Likewise.
1495 (write_long <opcode>): Likewise.
1496 (tc_gen_reloc <seg>): Likewise.
1497 (md_estimate_size_before_relax <all args>): Likewise.
1498 (md_apply_fix3 <seg>): Likewise.
1499 (s_d30v_align <ignore>): Likewise.
1500 (build_insn): Correct format string.
1501 (md_apply_fix3): Likewise.
1502 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1503 (md_undefined_symbol <name>): Likewise.
1504 (md_convert_frag <all args>): Likewise.
1505 (md_cgen_lookup_reloc <insn>): Likewise.
1506 (md_begin): Delete unused vars.
1507 (md_assemble): Likewise.
1508 (md_estimate_size_before_relax): Likewise.
1509 (fr30_relax_frag): #if 0 out, seems unused.
1510 (md_atof): Remove declaration of atof_ieee.
1511 (restore_colon): Prototype.
1512 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1513 (frv_find_in_vliw): Likewise.
1514 (frv_debug_tomcat): Likewise.
1515 (frv_adjust_vliw_count): Likewise.
1516 (frv_tomcat_shuffle): Likewise.
1517 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1518 frv_find_in_vliw call.
1519 (md_atof): Remove declaration of atof_ieee.
1520 * config/tc-h8500.c (cons): Delete declaration.
1521 (md_begin <opcode>): Constify.
1522 (displacement_size, immediate_size, absolute_size): Remove.
1523 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1524 (tc_crawl_symbol_chain <headers>): Likewise.
1525 (md_undefined_symbol <name>): Likewise.
1526 (tc_headers_hook <headers>): Likewise.
1527 (md_parse_option <c,arg>): Likewise.
1528 (md_show_usage <stream>): Likewise.
1529 (md_convert_frag <headers, seg>): Likewise.
1530 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1531 (md_atof): Remove declaration of atof_ieee.
1532 (tc_aout_fix_to_chars): Remove unused function.
1533 (parse_reg): Prototype.
1534 (parse_exp): Prototype.
1535 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1536 (parse_reglist): Prototype.
1537 (get_operand): Prototype.
1538 (get_operands): Prototype.
1539 (get_specific): Prototype. Make "this_index" signed.
1540 (check): Prototype, make static.
1542 (build_relaxable_instruction): Prototype, make static.
1543 (build_bytes): Prototype.
1544 (wordify_scb): Prototype.
1545 * config/tc-h8500.h (start_label): Declare.
1546 (tc_coff_sizemachdep): Declare.
1547 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1548 (i370_rmode <unused>): Likewise.
1549 (i370_csect <unused>): Likewise.
1550 (i370_dc <unused>): Likewise.
1551 (i370_ds <unused>): Likewise.
1552 (i370_elf_lcomm <unused>): Likewise.
1553 (i370_ltorg <ignore>): Likewise.
1554 (i370_using <ignore>): Likewise.
1555 (i370_drop <ignore>): Likewise.
1556 (i370_byte <ignore>): Likewise.
1557 (i370_tc <ignore>): Likewise.
1558 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1559 (md_convert_frag <all args>): Likewise.
1560 (md_undefined_symbol <name>): Likewise.
1561 (md_pcrel_from_section <sec>): Likewise.
1562 (tc_gen_reloc <seg>): Likewise.
1563 (i370_section_letter): #if 0 unused functions.
1564 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1565 (symbol_locate): Prototype.
1566 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1567 (md_number_to_disp, md_number_to_field): Remove.
1568 (md_apply_fix3): Correct format string and cast "fup".
1569 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1570 (s_endian <ignore>): Likewise.
1571 (md_undefined_symbol <name>): Likewise.
1572 (tc_crawl_symbol_chain <headers>): Likewise.
1573 (tc_set_bal_of_call): Likewise.
1574 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1575 (i960_handle_align <fragp>): Likewise.
1576 (i960_validate_fix <this_segment_type>): Likewise
1577 (tc_gen_reloc <section>): Likewise.
1578 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1579 (struct memS, struct regop): Forward declare.
1580 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1581 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1582 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1583 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1584 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1585 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1586 (md_number_to_field): Likewise.
1587 (md_number_to_disp): Remove unused function.
1588 (md_atof): Remove declaration of atof_ieee.
1589 (md_apply_fix3): Correct md_number_to_imm call.
1590 * config/tc-ip2k.c (md_assemble): Warning fix.
1591 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1592 (fill_insn <ignore>): Likewise.
1593 (debug_sym <ignore>): Likewise.
1594 (md_undefined_symbol <name>): Likewise.
1595 (m32r_scomm <ignore>): Likewise.
1596 (md_convert_frag <abfd>): Likewise.
1597 (md_cgen_lookup_reloc <insn>): Likewise.
1598 (m32r_record_hi16 <seg>): Likewise.
1599 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1600 (allow_m32rx): Prototype.
1601 (first_writes_to_seconds_operands): Prototype.
1602 (writes_to_pc): Prototype.
1603 (can_make_parallel): Prototype.
1604 (make_parallel): Prototype.
1605 (target_make_parallel): Prototype.
1606 (assemble_two_insns): Prototype.
1607 (m32r_record_hi16): Prototype.
1608 (md_atof): Remove declaration of atof_ieee.
1609 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1610 (m32r_force_relocation): Prototype.
1611 (m32r_elf_section_change_hook): Prototype.
1612 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1613 (md_show_usage): Fix signed/unsigned warning.
1614 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1615 (calcop): Ditto for reg_prefix var.
1616 (hexval): Add cast to fix signed/unsigned warning.
1617 (md_number_to_disp): Delete unused function.
1618 (md_number_to_field): Likewise.
1619 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1620 (match_name): Prototype.
1621 (get_bf2): Prototype.
1622 (get_bf_offset_expression): Prototype.
1623 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1624 (md_undefined_symbol <ignore>): Likewise.
1625 (md_create_short_jump <all args>): Likewise.
1626 (md_create_long_jump <all args>): Likewise.
1627 (md_convert_frag <abfd, sec>): Likewise.
1628 (md_apply_fix3 <segment>): Likewise.
1629 (md_section_align <segment>): Likewise.
1630 (md_pcrel_from_section <sec>): Likewise.
1631 (tc_gen_reloc <section>): Likewise.
1632 (reg_m, reg_n, immediate): Delete unused vars.
1633 (dump_literals): Fix signed/unsigned warning.
1634 (enter_literal): Likewise.
1635 (parse_imm): Likewise. Also fix format string.
1636 (parse_mem): Remove unused var.
1637 (md_assemble <LS>): Abort on unexpected inst.
1638 (md_atof): Remove declaration of atof_ieee.
1639 (md_parse_option): Remove unused vars.
1640 (md_apply_fix3): Fix format strings, cast args.
1641 (tc_gen_reloc): Delete unused var.
1642 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1643 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1644 (md_undefined_symbol <name>): Likewise.
1645 (md_convert_frag <abfd>): Likewise.
1646 (tc_gen_reloc <seg>): Likewise.
1647 (check_operand <insn>): Likewise.
1648 (md_convert_frag): Fix format strings.
1649 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1650 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1651 (md_atof): Remove declaration of atof_ieee.
1652 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1653 (md_apply_fix3): Fix bogus >>='s.
1654 (md_undefined_symbol): Delete unused var.
1655 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1656 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1657 (fake_opcode): Adjust for pj_opc_int_t change.
1658 (md_begin): Likewise.
1659 (md_assemble): Likewise.
1660 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1661 instead of non-existent third arg of parse_exp_save_ilp.
1662 (md_parse_option): Correct "little" and "big" calls.
1663 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1664 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1665 (tc_gen_reloc <section>): Likewise.
1666 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1667 (debug): Rewrite using VA_* macros.
1668 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1669 (md_convert_frag): Likewise.
1670 (md_parse_option): Likewise.
1671 (md_show_usage): Likewise.
1672 (md_undefined_symbol): Likewise.
1673 (tc_gen_reloc): Likewise.
1674 (md_operand): Likewise.
1675 (tc_aout_pre_write_hook): Delete.
1676 (struct tic30_insn): Make "operands" unsigned.
1677 (struct tic30_par_insn): Likewise.
1678 (md_assemble): Likewise for "count", "i" and "numops".
1679 (tic30_parallel_insn): Likewise for vars here.
1680 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1681 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1682 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1683 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1684 (md_undefined_symbol): Likewise.
1685 (md_parse_option): Likewise.
1686 (md_convert_frag): Likewise.
1687 (tc_coff_symbol_emit_hook): Likewise.
1688 (md_atof): Remove declaration of atof_ieee.
1689 (const_overflow): Warning fixes, tidy.
1690 (get_operands): Delete unused vars.
1691 (internal_error_a): Adjust format string to expect a long for arg.
1692 (find_opcode): Warning fixes, simplify.
1693 (build_insn): Cast internal_error_a arg.
1694 (md_begin): Likewise.
1695 (md_apply_fix3): Likewise.
1696 (md_assemble): Delete unused var.
1697 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1698 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1699 (whatreg, parse_reg, parse_exp): Make static, prototype.
1700 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1701 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1702 (get_operand, get_operands, get_specific, newfix): Likewise.
1703 (apply_fix, build_bytes): Likewise.
1704 (md_atof): Remove declaration of atof_ieee.
1705 (tc_aout_fix_to_chars): Delete.
1706 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1708 (md_parse_option): Fix s_segm and s_unseg calls.
1710 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1712 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1714 (RELAX_BRANCH_RELOC_S2): Delete.
1715 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1716 Do not handle BFD_RELOC_16_PCREL.
1717 (macro_build, mips_ip): Likewise.
1718 (md_pcrel_from): Return 4 for undefined symbols regardless of
1720 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1721 Don't dereference howto if no such relocation is available.
1722 Do not apply hack for in-place zero addend in NEWABI.
1723 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1725 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1726 Alan Modra <amodra@bigpond.net.au>
1728 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1729 (TC_LINKRELAX_FIXUP): Add comments.
1731 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1733 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1735 (r_register_name, xr_register_name): Add prototype declarations.
1737 2002-12-08 H.J. Lu <hjl@gnu.org>
1739 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1740 copied from tc-i386.c.
1742 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1744 Fix Bug savannah/1825:
1745 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1746 (md_relax_table): Define specific relax for PC-rel offsets.
1747 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1748 (m68hc11_relax_frag): Handle the new relax code.
1749 (md_convert_frag): Likewise.
1750 (md_estimate_size_before_relax): Likewise.
1752 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1754 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1756 2002-12-05 Richard Henderson <rth@redhat.com>
1758 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1759 (ia64_gen_real_reloc_type): Handle it.
1760 (pseudo_func): Add @ltoffx.
1761 (md_begin): Build .<ltoffx>.
1762 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1764 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1766 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1767 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1768 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1769 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1770 COFF to call arm_force_relocation.
1772 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1774 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1776 (emit_one_bundle): Handle "hint" instruction.
1777 (operand_match): Match IA64_OPND_AR_CSD.
1779 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1781 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1784 2002-12-03 Nick Clifton <nickc@redhat.com>
1786 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1787 .PPC.EMB.apuinfo sections.
1789 2002-12-03 Richard Henderson <rth@redhat.com>
1791 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1793 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1795 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1796 (cons, s_align_bytes): Delete declaration.
1798 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1800 (dot): Delete unused function.
1801 (w65_expression): Remove unused arg.
1802 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1804 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1806 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1808 (check): Remove unused function.
1809 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1810 on unhandled switch case.
1811 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1813 (tc_crawl_symbol_chain): Delete unused function.
1814 (tc_headers_hook): Likewise.
1815 (tc_Nout_fix_to_chars): Likewise.
1816 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1817 (md_parse_option): Likewise.
1818 (md_convert_frag): Likewise.
1819 (tc_coff_symbol_emit_hook): Likewise.
1820 (md_show_usage): Likewise.
1821 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1822 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1823 (w65_expression): Declare.
1825 * po/POTFILES.in: Regenerate.
1827 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1828 and ARM_ADRL_IMMEDIATE.
1830 2002-12-02 Nick Clifton <nickc@redhat.com>
1832 * gasp.c: Delete. It has been deprecated.
1833 * NEWS: Mention that gasp has been removed.
1834 * Makefile.am: Remove references to gasp.
1835 * makefile.vms: Likewise.
1836 * mpw-make.sed: Likewise.
1837 * Makeile.in: Regenerate.
1838 * doc/gasp.texi: Delete.
1839 * doc/Makefile.am: Remove references to gasp.texi.
1840 * doc/Makefile.in: Regenerate.
1841 * macro.c: Delete references to gasp.
1842 Remove use of comment_char function parameter as it is no longer
1844 * macro.h: Update prototypes to remove comment_char parameter.
1846 * read.c (read_a_source_file, s_irp): Remove comment_char
1847 parameter from invocation of functions in macro.c
1849 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1851 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1853 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1855 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1856 (tc_gen_reloc): Mark section param as not used.
1858 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1860 Fix Bug savannah/1825:
1861 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1862 that are not pc-relative.
1863 (m68hc11_relax_frag): Declare.
1865 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1866 the offsetable indexed addressing modes (n,r).
1867 (build_insn): Cleanup some locals.
1868 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1869 relaxation of difference between two symbols of same section.
1870 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1871 only when this is a PC-relative operand and the offset is not absolute.
1872 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1873 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1874 be handled by m68hc11_relax_frag.
1876 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1878 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1879 (32-bit int, 64-bit double).
1880 (md_longopts): New options -mshort, -mlong, -mshort-double and
1881 -mlong-double to control the ABI.
1882 (md_show_usage): Update.
1883 (md_parse_option): Handle new options.
1884 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1886 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1888 * symbols.c (report_op_error): New function, broken out of ...
1889 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1892 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1894 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1895 for BFD_RELOC_32_PLT_PCREL.
1897 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1899 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1900 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1901 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1902 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1903 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1904 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1905 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1906 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1907 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1908 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1909 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1910 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1911 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1912 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1913 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1914 TRUE/FALSE. Formatting.
1916 2002-11-29 Nick Clifton <nickc@redhat.com>
1918 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1919 assume a value of zero.
1920 (do_bkpt): Likewise.
1922 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1924 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1925 for TLS relocations.
1927 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1929 * config/tc-ia64.c (md_apply_fix3): Add default case.
1931 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1933 * symbols.c (S_SET_THREAD_LOCAL): New function.
1934 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1935 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1936 for TLS relocations.
1937 * config/tc-ia64.c (md_apply_fix3): Likewise.
1938 * config/tc-alpha.c (md_apply_fix3): Likewise.
1940 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1942 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1945 2002-11-26 DJ Delorie <dj@redhat.com.
1947 * dwarf2dbg.c (scale_addr_delta): New.
1948 (size_inc_line_addr): Use it.
1949 (emit_inc_line_addr): Use it.
1951 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1953 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1954 (md_assemble): Don't pass on branches to constants as relaxable.
1957 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1959 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1961 2002-11-21 Randolph Chung <randolph@tausq.org>
1963 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1964 only if they have default visibility.
1966 2002-11-21 Richard Henderson <rth@redhat.com>
1968 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1971 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1973 * config/tc-mcore.c (mcore_pool_count): New function.
1974 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1976 2002-11-20 Klee Dienes <kdienes@apple.com>
1978 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1979 coalesce the name fields to use the same pointer.
1981 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1982 the name fields to use the same pointer.
1983 (get_specific): Check for opcodes with the same name using strcmp
1984 as well as comparing the pointer.
1986 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1988 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1991 2002-11-19 Richard Henderson <rth@redhat.com>
1993 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1994 visibility portion of st_other.
1996 2002-11-19 Klee Dienes <kdienes@apple.com>
1998 * config/tc-h8300.c (struct h8_instruction): New type, used to
1999 wrap h8_opcodes with length, noperands, idx, and size fields
2000 (computed at run-time).
2001 (h8_instructions): New variable.
2002 (md_begin): Allocate the storage for h8_instructions. Fill
2003 h8_instructions with pointers to the appropriate opcode and the
2004 correct value for the additional fields.
2005 (clever_message): Update to use h8_instructions instead of
2007 (build_bytes): Ditto.
2008 (get_specific): Ditto.
2009 (md_assemble): Ditto.
2011 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
2013 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
2014 adjustments to symbols in merge sections.
2016 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
2018 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
2020 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2022 * dwarf2dbg.h (dwarf2_format): New enum.
2023 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2024 (out_debug_line, out_debug_info): Add code for handling 64-bit
2026 * config/tc-mips.h (mips_dwarf2_format): Declare.
2027 * config/tc-mips.c (mips_dwarf2_format): New function.
2028 * doc/internals.texi (DWARF2_FORMAT): Document.
2030 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2032 * config/tc-mips.c (s_change_section): Make sure input buffer
2033 is not accessed past the end. Don't hand
2034 obj_elf_change_section a pointer into the input buffer.
2036 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2038 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2041 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2043 * config/tc-tic4x.c: Fixed proper commandline
2044 parameters. Added support for new opcode-list format. General
2045 error message fixups.
2046 (c4x_inst_add): Reject insn not for our CPU
2047 (md_begin): Added matrix for setting the proper opcode-level &
2048 device-flags according to cpu type and revision. Rewrite the
2050 (c4x_operand_parse): Fix opcode bug
2051 (c4x_operands_match): New function argument. Added dry-run
2052 mechanism, that is optional error generation. Added constraint 'i'
2054 (c4x_insn_check): Added new function for post-verification of the
2056 (md_assemble): Check all opcodes before croaking because of an
2057 argument mismatch. Need this to be able to fully support
2058 ortogonally arguments.
2059 (md_parse_options): Revised commandprompt swicthes and added new
2061 (md_show_usage): Complete rewrite of printout.
2063 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2065 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2066 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2067 warning when using constant direct bigger than 2^16. Add the new
2070 2002-11-11 Christopher Faylor <cgf@redhat.com>
2072 * configure.in: Use .gdbinit under Cygwin.
2073 * configure: Regenerate.
2075 2002-11-11 Christopher Faylor <cgf@redhat.com>
2077 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2080 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2082 * config/tc-tic4x.c: Declare as many functions as possible as
2083 static. Maintenance on the general indenting. Removed unnecessary
2084 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2085 function. Add support for new DSP, TMS320VC33. Fix bug for
2086 converting flonum constants.
2087 (c4x_do_align): Add proper align handling. Setup align to insert
2089 (c4x_gen_to_words): Support for extended TI type floats.
2090 (md_atof): Proper dumping of multiple-word littlenums.
2091 (c4x_atof): Added support for extended TI type floats.
2092 (c4x_stringer): Added new function to handle compact strings.
2093 (c4x_emit_char): Added new function argument to handle custom
2094 length inserts, like single-byte strings.
2095 * config/tc-tic4x.h: Add proper align handling with NOP's.
2096 * Makefile.am: Added tic4x dependecy
2097 * Makefile.in: Regenerate
2099 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2101 * macro.c (get_any_string): Correct logic for not going beyond end
2104 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2106 * config/tc-mmix.c (get_putget_operands): Mark both possible
2107 operands as invalid at beginning.
2109 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2110 Initialize target of fixup to zero.
2112 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2114 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2115 NEWABI, but we should still emit HI16_S for non-PIC n32.
2117 2002-11-06 Richard Henderson <rth@redhat.com>
2119 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2120 (alpha_fix_adjustable): ... here.
2121 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2123 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2125 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2128 2002-11-05 H.J. Lu <hjl@gnu.org>
2130 * config/tc-mips.c (support_64bit_objects): Check *l before it
2133 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2135 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2136 SEC_LOAD flags for sections marked as 's'.
2138 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2140 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2141 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2142 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2145 * dep-in.sed: Fix typo.
2147 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2149 * configure.in: Update ARM CPU patterns.
2150 * configure: Regenerated.
2152 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2154 * itbl-lex.l: Use #include <> for generated headers.
2155 * itbl-ops.c: Likewise.
2157 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2159 * doc/gasp.texi: Fix typo in deprecation note.
2161 2002-10-23 Nick Clifton <nickc@redhat.com>
2163 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2164 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2166 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2168 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2169 (tc_frob_file_before_adjust): Don't define.
2170 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2172 (mmix_frob_file_before_adjust): Remove ineffective function.
2174 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2176 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2177 (cris_relax_frag): New function.
2178 (md_estimate_size_before_relax) <case ENCODE_RELAX
2179 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2180 expressions that will become absolute expressions to relaxation.
2181 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2182 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2183 value, not distance to symbol.
2184 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2185 Ditto. Correct placement of fixup.
2186 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2188 * config/tc-cris.h (cris_relax_frag): Declare.
2189 (md_relax_frag): Define.
2191 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2193 * config/obj-elf.c (special_sections): Use correct types for init
2195 (obj_elf_change_section): Don't mess with init array section type.
2197 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2199 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2200 for relocs against symbols in a merged section.
2202 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2204 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2205 table as register names.
2207 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2209 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2212 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2214 * expr.c (operand): Add support for n.nn flonums.
2216 2002-10-17 Johannes Stezenbach <js@convergence.de>
2218 * itbl-parse.y (entry): Provide empty action.
2220 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2222 * configure.in (BFDVER_H): Set and subst.
2223 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2224 * Makefile.am: Run "make dep-am".
2226 * configure: Regenerate.
2227 * Makefile.in: Regenerate.
2228 * doc/Makefile.in: Regenerate.
2230 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2232 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2233 (MD_APPLY_SYM_VALUE): Define for PE too.
2235 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2237 * Makefile.am: Run "make dep-am".
2238 (CPU_OBJ_VALID): sh64 coff is invalid.
2239 * as.c: #include "bfdver.h".
2240 * Makefile.in: Regenerate.
2241 * config.in: Regenerate.
2243 2002-10-14 Momchil Velikov <velco@fadata.bg>
2245 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2247 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2249 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2250 * configure: Regenerate.
2252 2002-10-13 Eric Christopher <echristo@redhat.com>
2253 Alexandre Oliva <aoliva@redhat.com>
2255 * config/tc-mips.c (s_gpdword): New function.
2256 (mips_pseudo_table): Add .gpdword.
2257 (mips_need_elf_addend_fixup): never for NEWABI.
2258 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2260 (s_cpadd): Generate .cpadd on NEWABI.
2262 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2264 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2266 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2268 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2269 (md_relax_frag): Adjust macro.
2270 * config/tc-mips.c (mips_relax_branch): New variable.
2271 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2272 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2273 (RELAX_MIPS16_P): Adjust.
2274 (append_insn): Emit branch to non-constant in a frag_var if
2275 branch-relaxation is desirable and possible.
2276 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2277 (OPTION_ELF_BASE): Adjust.
2278 (md_parse_option): Handle new options.
2279 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2281 (relaxed_branch_length): New function.
2282 (md_estimate_size_before_relax): Handle branch frags.
2283 (mips_relax_frag): Likewise.
2284 (md_convert_frag): Handle branch frags. Warn if branch is
2287 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2289 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2291 (md_apply_fix3): Add TLS relocs.
2292 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2295 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2296 Alan Modra <amodra@bigpond.net.au>
2298 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2299 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2301 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2303 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2306 2002-10-09 Richard Shann <richard.shann@superh.com>
2307 Stephen Clarke <stephen.clarke@superh.com>
2309 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2312 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2314 * contig/tc-sh.c (sh_local_pcrel): New.
2315 (sh_force_relocation): Use sh_local_pcrel.
2316 (md_pcrel_from_section): Check the relocation type whether it
2317 should be resolved locally. Use S_FORCE_RELOC.
2319 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2321 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2322 (TC_FORCE_RELOCATION): Tidy arg.
2324 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2325 Ken Raeburn <raeburn@cygnus.com>
2326 Aldy Hernandez <aldyh@redhat.com>
2327 DJ Delorie <dj@redhat.com>
2328 Michael Meissner <meissner@redhat.com>
2329 Eric Christopher <echristo@redhat.com>
2330 Richard Sandiford <rsandifo@redhat.com>
2332 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2333 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2334 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2335 (hilo_interlocks): True for CPU_VR5500.
2336 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2337 (mips_fix_vr4122_bugs): New.
2338 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2339 (mips_emit_delays): Likewise.
2340 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2341 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2342 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2343 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2344 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2345 (OPTION_ELF_BASE): Bump.
2346 (md_parse_option): Handle the new options.
2347 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2350 2002-09-29 H.J. Lu <hjl@gnu.org>
2352 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2353 twice if howto->pcrel_offset is true.
2355 2002-09-28 Matt Thomas <matt@3am-software.com>
2356 Jason Thorpe <thorpej@wasabisystems.com>
2358 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2359 convert undefined references to GOT32/PLT32 if PIC code is
2360 requested. Fix comment.
2362 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2364 * config/tc-sh.c (sh_force_relocation): Return 0 for
2365 some PC relative relocations when not relaxing.
2367 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2369 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2370 Define them if not BFD_ASSEMBLER.
2371 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2373 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2374 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2375 (tc_gen_reloc): Handle x86-64 TLS relocs.
2377 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2379 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2380 fixups to current or absolute section.
2382 2002-09-26 Jim Wilson <wilson@redhat.com>
2384 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2387 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2389 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2390 capable configuration.
2391 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2393 (mips_ip): Likewise.
2395 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2397 * config/tc-mips.c (append_insn): Fix jump overflow check.
2399 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2401 * config/tc-i386.c (process_operands): Warn about "lea" segment
2404 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2406 * write.c: Delete set_segment_vma and prototype. Update all callers.
2408 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2410 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2411 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2412 Rename "fseg" to "sym_seg".
2413 * Makefile.am: Run "make dep-am".
2414 * Makefile.in: Regenerate.
2415 * doc/Makefile.in: Regenerate.
2417 2002-09-20 Nick Clifton <nickc@redhat.com>
2419 * symbols.c (colon): Do not allow symbols to be created in the
2420 absolute section if WORKING_DOT_WORD is not defined and
2421 new_broken_words would require a new frag to be created.
2423 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2425 * expr.c (expr): Simplify foo-foo here.
2426 (clean_up_expression): Remove O_subtract code.
2428 * write.h (struct fix): Add fx_dot_value.
2429 (dot_value): Declare.
2430 * write.c (dot_value): New var.
2431 (fix_new_internal): Save dot_value as fx_dot_value.
2432 (fixup_segment): Adjust fx_offset using fx_dot_value.
2433 * expr.c (expr): Update dot_value.
2435 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2437 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2438 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2439 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2441 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2442 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2443 BFD_RELOC_386_TLS_GOTIE.
2445 2002-09-19 Richard Henderson <rth@redhat.com>
2447 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2449 (alpha_force_relocation): Don't special-case branch type relocs.
2451 2002-09-19 Nick Clifton <nickc@redhat.com>
2453 * config/tc-m68k.c (select_control_regs): Handle situation where
2454 architecture has not yet been selected.
2456 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2458 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2459 (IS_SEXT_16BIT_NUM): New macro.
2460 (macro_build_ldst_constoffset): New function, to build a set of
2461 instructions to do a load or store from a constant offset relative
2462 to a given register.
2463 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2464 .cprestore pseudo-op.
2466 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2468 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2470 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2472 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2474 2002-09-17 Stan Cox <scox@redhat.com>
2476 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2477 (macro): Likewise for la. Likewise for ld.
2478 (mips_after_parse_args): Make -xgot optional, not the default.
2479 (md_apply_fix3): Allow composite relocation to set up gp.
2480 (tc_gen_reloc): Allow relaxing for newabi.
2481 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2482 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2484 2002-09-17 Nick Clifton <nickc@redhat.com>
2486 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2487 BFD_RELOC_ARM_IMMEDIATE has been done.
2488 (tc_gen_reloc): Do not issue reloc number of unimplemented
2489 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2490 their name is already in the error message - plus remove them
2491 from the default case.
2493 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2494 behavior of instructions.
2496 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2498 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2499 Convert functions to K&R format.
2501 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2503 * config/tc-mips.c (pdr_seg): Define only for ELF.
2504 (s_change_section): Remove unused variable. Don't use for nonELF.
2506 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2508 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2510 * config/obj-elf.h (obj_elf_change_section): Likewise.
2512 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2514 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2515 (out_debug_info): Likewise.
2517 2002-09-16 Bruno Haible <bruno@clisp.org>
2519 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2520 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2521 * config/tc-i386.c (i386_target_format): Likewise.
2522 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2523 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2525 2002-09-13 Nick Clifton <nickc@redhat.com>
2527 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2528 when deciding if any operands have been skipped.
2530 2002-09-11 Nick Clifton <nickc@redhat.com>
2532 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2534 * po/tr.po: Updated Turkish translation.
2536 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2538 * config/tc-i386.c (md_apply_fix3): Allow addend for
2539 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2540 BFD_RELOC_386_TLS_LE_32.
2542 2002-09-05 Jeff Law <law@redhat.com>
2544 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2545 marker relocations such as ENTRY/EXIT.
2546 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2547 to both OBJ_ELF and OBJ_SOM.
2549 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2551 * doc/internals.texi (md_apply_fix3): Expand.
2552 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2553 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2554 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2555 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2556 EXTERN_FORCE_RELOC): Document.
2557 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2558 * as.h: Don't include struc-symbol.h for arc.
2560 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2561 subtract absolute symbol.
2562 * obj.h (struct format_ops): Add frob_file_before_fix.
2563 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2564 * symbols.c (S_FORCE_RELOC): New function.
2565 * symbols.h (S_FORCE_RELOC): Declare.
2566 * write.c (TC_FORCE_RELOCATION): Change default.
2567 (TC_FORCE_RELOCATION_ABS): Define.
2568 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2569 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2570 (TC_FORCE_RELOCATION_SECTION): Don't define.
2571 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2572 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2573 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2574 (TC_VALIDATE_FIX_SUB): Define.
2575 (TC_FIX_ADJUSTABLE): Don't define.
2576 (MD_APPLY_SYM_VALUE): Define this instead.
2577 (abs_section_sym): New variable.
2578 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2579 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2580 Don't put the absolute section sym on fixups here.
2581 (fix_segment): New function.
2582 (write_relocs): Don't call fixup_segment from here.
2583 (write_object_file): Instead call tc_frob_file_before_fix,
2584 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2585 Don't output the absolute section symbol.
2586 (fixup_segment): Rewrite.
2587 * write.h (abs_section_sym): Declare.
2588 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2590 (aout_format_ops): Adjust to suit.
2591 * config/obj-aout.h (obj_frob_file): Don't define.
2592 (obj_frob_file_before_fix): Define.
2593 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2594 (S_FORCE_RELOC): Define.
2595 * config/obj-bout.h (S_FORCE_RELOC): Define.
2596 * config/obj-coff.c (coff_format_ops): Init new field.
2597 * config/obj-coff.h: Formatting fixes.
2598 (obj_sec_sym_ok_for_reloc): Define.
2599 (S_FORCE_RELOC): Define.
2600 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2601 (ecoff_frob_file): .. from here.
2602 (ecoff_format_ops): Add new function.
2603 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2604 (obj_frob_file_before_fix): Define.
2605 * config/obj-elf.c (elf_format_ops): Init new field.
2606 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2607 * config/obj-ieee.h: Formatting fixes.
2608 (S_FORCE_RELOC): Define.
2609 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2610 * config/obj-vms.h (S_FORCE_RELOC): Define.
2611 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2612 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2613 for BFD_RELOC_32 and BFD_RELOC_64.
2614 (alpha_fix_adjustable): Remove extern and weak tests.
2615 (alpha_before_fix): Rename from alpha_adjust_symtab.
2616 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2617 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2618 (TC_VALIDATE_FIX): Tweak param name.
2619 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2620 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2621 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2622 (MD_APPLY_SYM_VALUE): Define.
2623 (tc_adjust_symtab): Don't define.
2624 (alpha_adjust_symtab): Don't declare.
2625 (tc_frob_file_before_fix): Define.
2626 (alpha_before_fix): Declare.
2627 (TC_INIT_FIX_DATA): Tweak param names.
2628 * config/tc-arc.c: Include "struc-symbol.h".
2629 (md_pcrel_from): Remove undefined sym fudge.
2630 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2631 Don't set fx_addnumber.
2632 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2633 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2634 (EXTERN_FORCE_RELOC): Define.
2635 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2636 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2637 (arm_validate_fix): Return void.
2638 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2639 Add plt and got reloc tests.
2640 (arm_force_relocation): Call S_FORCE_RELOC.
2641 * config/tc-arm.h (struct fix): Forward declare.
2642 (TC_VALIDATE_FIX): No longer set add_symbolP.
2643 (arm_validate_fix): Adjust declaration.
2644 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2645 (TC_FORCE_RELOCATION): Tweak param name.
2646 (TC_INIT_FIX_DATA): Likewise.
2647 (obj_fix_adjustable): Don't define.
2648 (tc_fix_adjustable): Call arm_fix_adjustable.
2649 (TC_FIX_ADJUSTABLE): Don't define.
2650 (MD_APPLY_SYM_VALUE): Define.
2651 (EXTERN_FORCE_RELOC): Define.
2652 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2653 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2654 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2655 Remove *valP fudges and code to subtract abs sym. Don't set
2657 * config/tc-avr.h: Formatting.
2658 (EXTERN_FORCE_RELOC): Define.
2659 (MD_APPLY_SYM_VALUE): Define.
2660 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2661 (md_apply_fix3): Remove code to subtract abs sym.
2662 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2663 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2664 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2665 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2666 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2667 (tc_fix_adjustable): Remove extern, weak tests.
2668 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2669 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2670 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2671 and code to subtract abs sym.
2672 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2673 (d10v_force_relocation): Call S_FORCE_RELOC.
2674 * config/tc-d10v.h: Don't include write.h.
2675 (struct fix): Instead, forward declare.
2676 (MD_PCREL_FROM_SECTION): Tweak param names.
2677 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2678 (d10v_fix_adjustable): Likewise.
2679 (obj_fix_adjustable): Don't define.
2680 (tc_fix_adjustable): Define.
2681 (TC_FORCE_RELOCATION): Tweak param name.
2682 (MD_APPLY_SYM_VALUE): Define.
2683 (EXTERN_FORCE_RELOC): Define.
2684 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2685 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2686 and code to subtract abs sym.
2687 * config/tc-d30v.h: Don't include write.h.
2688 (struct fix): Instead, forward declare.
2689 (MD_PCREL_FROM_SECTION): Tweak param names.
2690 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2691 (MD_APPLY_SYM_VALUE): Define.
2692 (EXTERN_FORCE_RELOC): Define.
2693 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2694 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2695 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2696 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2697 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2698 Don't use fx_addnumber.
2699 * config/tc-dlx.h: Don't include write.h.
2700 (md_convert_frag): We're not alpha twice over.
2701 (EXTERN_FORCE_RELOC): Define.
2702 (obj_fix_adjustable): Don't define.
2703 (tc_fix_adjustable): Define.
2704 (TC_FIX_ADJUSTABLE): Don't define.
2705 (MD_APPLY_SYM_VALUE): Define.
2706 (LOCAL_LABELS_DOLLAR): Undef always.
2707 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2708 (fr30_fix_adjustable): Remove extern, weak tests.
2709 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2710 (obj_fix_adjustable): Don't define.
2711 (tc_fix_adjustable): Define.
2712 (struct fix): Forward declare.
2713 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2714 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2715 (frv_fix_adjustable): Don't do extern, weak tests.
2716 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2717 (TC_FIX_ADJUSTABLE): Don't define.
2718 (obj_fix_adjustable): Don't define.
2719 (tc_fix_adjustable): Define.
2720 (struct fix): Forward declare.
2721 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2722 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2723 * config/tc-h8300.h (struct fix): Forward declare.
2724 (EXTERN_FORCE_RELOC): Define.
2725 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2726 (hppa_fix_adjustable): Don't test extern or weak. Don't
2727 symbol_mark_used_in_reloc.
2728 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2730 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2731 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2732 (TC_FORCE_RELOCATION_SECTION): Don't define.
2733 (MD_APPLY_SYM_VALUE): Define.
2734 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2735 to subtract abs sym.
2736 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2737 (MD_APPLY_SYM_VALUE): Define.
2738 (MD_PCREL_FROM_SECTION): Tweak param name.
2739 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2740 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2741 (i386_force_relocation): New function.
2742 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2743 (TC_VALIDATE_FIX): Likewise.
2744 (TC_FIX_ADJUSTABLE): Don't define.
2745 (MD_APPLY_SYM_VALUE): Define.
2746 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2747 (i386_force_relocation): Declare.
2748 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2749 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2750 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2751 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2752 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2753 (EXTERN_FORCE_RELOC): Define.
2754 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2755 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2756 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2757 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2758 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2759 Remove #if 0 code. Invert return boolean.
2760 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2761 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2762 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2763 (tc_coff_sizemachdep): Prototype.
2764 (i960_handle_align): Likewise.
2765 (i960_validate_fix): Adjust declaration.
2766 (reloc_callj): Likewise.
2767 (EXTERN_FORCE_RELOC): Define.
2768 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2769 (TC_FORCE_RELOCATION_ABS): Define.
2770 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2771 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2772 (TC_FIX_ADJUSTABLE): Don't define.
2773 (MD_APPLY_SYM_VALUE): Define.
2774 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2775 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2776 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2777 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2778 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2779 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2780 (MD_APPLY_SYM_VALUE): Define.
2781 (EXTERN_FORCE_RELOC): Define.
2782 (TC_FORCE_RELOCATION): Tweak param name.
2783 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2784 (m32r_fix_adjustable): Don't test extern, weak.
2785 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2786 (MD_APPLY_SYM_VALUE): Define.
2787 (obj_fix_adjustable): Don't define.
2788 (tc_fix_adjustable): Define.
2789 (tc_frob_file): Don't define.
2790 (tc_frob_file_before_fix): Define.
2791 (EXTERN_FORCE_RELOC): Define.
2792 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2793 BFD_RELOC_VTABLE_ENTRY address.
2794 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2795 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2796 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2797 Remove duplicated fx_done code.
2798 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2799 (EXTERN_FORCE_RELOC): Define.
2800 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2802 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2803 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2804 (TC_FIX_ADJUSTABLE): Don't define.
2805 (EXTERN_FORCE_RELOC): Define.
2806 (MD_APPLY_SYM_VALUE): Define.
2807 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2808 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2809 Remove fx_addsy tests.
2810 (mcore_force_relocation): Call S_FORCE_RELOC.
2811 (mcore_fix_adjustable): Don't test fx_addsy.
2812 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2813 (EXTERN_FORCE_RELOC): Define.
2814 (obj_fix_adjustable): Don't define.
2815 (tc_fix_adjustable): Define.
2816 (MD_APPLY_SYM_VALUE): Define.
2817 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2818 (mips_pic): No longer static.
2819 (mips_force_relocation): Call S_FORCE_RELOC.
2820 (mips_fix_adjustable): Remove extern, weak tests.
2821 * config/tc-mips.h (enum mips_pic_level): Declare.
2822 (mips_pic): Declare.
2823 (tc_frob_file): Don't define.
2824 (tc_frob_file_before_fix): Define this instead.
2825 (EXTERN_FORCE_RELOC): Define.
2826 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2827 with reg_section tests. Set fx_done instead of calling
2828 symbol_clear_used_in_reloc on bad relocs.
2829 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2830 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2831 (mmix_adjust_symtab): Simplify list handling. Abort on any
2833 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2834 BFD_RELOC_MMIX_LOCAL.
2835 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2836 (EXTERN_FORCE_RELOC): Define.
2837 (MD_PCREL_FROM_SECTION): Tweak param name.
2838 (tc_frob_file): Don't define.
2839 (tc_frob_file_before_fix): Define this instead.
2840 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2841 Remove SEC_CODE checks.
2842 (mn10300_fix_adjustable): Remove extern and weak tests.
2843 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2844 (TC_FORCE_RELOCATION): Tweak param name.
2845 (obj_fix_adjustable): Don't define.
2846 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2847 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2848 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2849 (openrisc_fix_adjustable): Don't test fx_addsy.
2850 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2851 (obj_fix_adjustable): Don't define.
2852 (tc_fix_adjustable): Define this instead.
2853 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2854 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2855 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2856 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2857 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2858 (MD_APPLY_SYM_VALUE): Define.
2859 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2860 Don't subtract symbol value.
2861 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2862 (EXTERN_FORCE_RELOC): Define.
2863 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2864 (MD_APPLY_SYM_VALUE): Define.
2865 (obj_fix_adjustable): Don't define.
2866 (tc_fix_adjustable): Define this instead.
2867 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2869 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2870 (ppc_force_relocation <elf version>): New.
2871 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2872 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2873 comments. Don't subtract fx_subsy as that is already done.
2874 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2875 (MD_PCREL_FROM_SECTION): Likewise.
2876 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2877 ppc_force_relocation.
2878 (TC_FORCE_RELOCATION_SECTION): Delete.
2879 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2880 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2881 (MD_APPLY_SYM_VALUE): Define.
2882 * config/tc-s390.c: #include "dwarf2dbg.h".
2883 (s390_insn): Remove excess parens.
2884 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2885 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2886 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2887 non-NULL. Don't subtract off fx_addsy value.
2888 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2889 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2890 (TC_FIX_ADJUSTABLE): Don't define.
2891 (MD_APPLY_SYM_VALUE): Define.
2892 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2893 (SWITCH_TABLE): Likewise.
2894 (sh_force_relocation): Call S_FORCE_RELOC.
2895 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2896 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2897 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2898 fx_addnumber is zero on entry. Save val in fx_addnumber.
2899 (tc_gen_reloc): Don't subtract fx_subsy.
2900 * config/tc-sh.h (struct fix): Move.
2901 (obj_fix_adjustable): Don't define.
2902 (tc_fix_adjustable): Define this instead.
2903 (TC_FIX_ADJUSTABLE): Don't define.
2904 (MD_APPLY_SYM_VALUE): Define.
2905 (SWITCH_TABLE_CONS): Define.
2906 (SWITCH_TABLE): Define.
2907 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2908 (TC_VALIDATE_FIX_SUB): Define.
2909 (MD_PCREL_FROM_SECTION): Tweak param name.
2910 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2911 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2912 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2913 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2914 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2915 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2916 (TC_VALIDATE_FIX_SUB): Define.
2917 (MD_PCREL_FROM_SECTION): Tweak param name.
2918 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2919 (tc_gen_reloc): Use S_FORCE_RELOC.
2920 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2921 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2922 (TC_FORCE_RELOCATION_ABS): Define this instead.
2923 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2924 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2925 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2926 (MD_APPLY_SYM_VALUE): Define.
2927 (TC_FIX_DATA_PRINT): Tweak param name.
2928 * config/tc-tic30.c (USE_STDOUT): Don't define.
2929 (md_parse_option): Remove stupid debug code.
2930 (tc_gen_reloc): Don't use fx_addnumber.
2931 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2932 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2933 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2934 (tc_fix_adjustable): Define this instead.
2935 (TC_FIX_ADJUSTABLE): Don't define.
2936 (MD_APPLY_SYM_VALUE): Define this instead.
2937 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2938 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2939 (TC_FIX_ADJUSTABLE): Don't define.
2940 (MD_APPLY_SYM_VALUE): Define this instead.
2941 (tc_fix_adjustable): Remove extern and weak tests.
2942 * config/tc-w65.h (struct fix): Forward declare.
2943 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2945 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2946 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2947 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2949 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2950 (MD_APPLY_SYM_VALUE): Define.
2951 (obj_fix_adjustable): Don't define.
2952 (tc_fix_adjustable): Define this instead.
2953 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2955 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2957 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2958 (ppc_fix_adjustable <coff version>): Cleanup.
2960 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2961 (md_parse_option): No -a64 without BFD64.
2962 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2963 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2965 2002-09-04 Nick Clifton <nickc@redhat.com>
2967 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2968 instructions into the hash table if the target cpu is the BookE32.
2970 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2972 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2975 2000-08-28 Catherine Moore <clm@redhat.com>
2977 * tc-v850.c (v850_relax): Declare.
2978 (v850_longcode): New routine.
2979 (v850_handle_align): New routine.
2980 (md_pseudo_table): Add longcall and longjump.
2981 (md_parse_option): Check for relax option.
2982 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2983 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2984 (md_apply_fix3): Likewise.
2985 (v850_force_relocation): Likewise.
2986 (v850_comm): Change the current section.
2987 (md_assemble): Ensure that the correct value is put in the
2989 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2990 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2991 Remove redundant v850ea support.
2992 * tc-v850.h (HANDLE_ALIGN): Define.
2993 (v850_handle_align): Declare.
2994 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2996 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2998 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2999 * configure: Regenerate.
3000 * NEWS: Mention new port.
3002 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3004 * config/obj-coff.c: Add sdef definition.
3005 * config/obj-coff.h: Add tic4x include file and set
3007 * config/tc-tic4x.c: New file.
3008 * config/tc-tic4x.h: New file.
3010 2002-08-28 Alan Modra <amodra@bigpond.net.au>
3012 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
3013 (TC_ADJUST_RELOC_COUNT): Tweak param name.
3014 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
3015 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
3016 (RELOC_ENUM): Define.
3017 (fix_new_internal): Use RELOC_ENUM.
3018 (fix_new, fix_new_exp): Likewise.
3019 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
3020 Replace gotos with continue.
3021 (write_relocs): Formatting. Avoid symbol loops in
3022 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3023 errors, and error number in other cases.
3024 (fixup_segment): Remove param names from prototype. Rename
3025 "this_segment_type" to "this_segment". Update linkrelax comment.
3026 Remove "size, "place" and "where" local vars. Formatting. Update
3027 "no symbol" comment. Remove #if 0 and #if 1.
3029 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3031 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3033 * dwarf2dbg.c: Always include dwarf2dbg.h.
3034 (dwarf2_directive_file): Adjust dummy version args.
3035 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3036 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3037 when symbol values differ.
3038 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3039 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3040 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3042 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3044 * config/tc-w65.c (md_section_align): Fix typo.
3045 (md_parse_option): Return 0, not 1.
3047 2002-08-22 Nick Clifton <nickc@redhat.com>
3049 * doc/as.texinfo (Section): Note that if '@' is a comment
3050 character then another symbol is used to prefix the section's
3053 2002-08-22 Christian Groessler <chris@groessler.org>
3055 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3058 2002-08-12 Graeme Peterson <gp@qnx.com>
3060 * configure.in: Add support for sh-**-nto* target.
3061 * configure: Regenerate.
3063 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3065 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3067 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3069 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3071 (ppc_apuinfo_section_add): Define only if format is ELF.
3072 (md_assemble): Emit APUinfo section only if format is ELF.
3075 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3077 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3078 * config/tc-frv.c: Likewise.
3079 * config/tc-hppa.c: Likewise.
3080 * config/tc-ia64.c: Likewise.
3081 * config/tc-ip2k.c: Likewise.
3082 * config/tc-m68hc11.c: Likewise.
3083 * config/tc-m68k.c: Likewise.
3084 * config/tc-mmix.c: Likewise.
3085 * config/tc-mn10300.c: Likewise.
3086 * config/tc-sh.c: Likewise.
3087 * config/tc-sparc.c: Likewise.
3088 * config/tc-v850.c: Likewise.
3090 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3092 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3095 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3097 From matthew green <mrg@redhat.com>
3099 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3100 PPC_OPCODE_PPC is, except for BookE architectures.
3101 (md_parse_option): Add support for -mspe.
3102 (md_show_usage): Add -mspe.
3103 (md_parse_option): Add support for -me500 and
3104 -me500x2 to generate code for Motorola e500 core complex.
3105 (md_show_usage): Add -me500 and -me500x2.
3107 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3108 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3109 PPC_APUINFO_BRLOCK): New macros.
3111 (ppc_cleanup): New function.
3112 (ppc_apuinfo_section_add): New function.
3114 (md_assemble): Collect info and write the APUinfo section.
3116 * config/tc-ppc.h (md_cleanup): Define.
3117 (ppc_cleanup): Export.
3118 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3120 2002-08-17 Stan Cox <scox@redhat.com>
3122 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3123 config/tc-mips.c (s_change_section): New function to support
3124 IRIX .section pseudo-op.
3126 2002-08-16 Nick Clifton <nickc@redhat.com>
3128 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3130 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3132 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3133 the fix-up against on the right frag.
3134 (s_cpsetup): Likewise. Parse third argument as expression, to
3135 handle global symbols and forward/backward labels correctly.
3137 2002-08-14 Nick Clifton <nickc@redhat.com>
3139 * read.c (stringer): Catch attempts to create strings in the abs
3142 * config/tc-alpha.c: Fix compiling for COFF targets.
3143 Some minor formatting tidyups.
3145 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3147 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3148 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3149 according to the reloc.
3150 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3151 (TC_FORCE_RELOCATION): Define.
3152 (tc_m68hc11_force_relocation): Declare.
3154 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3155 (s_m68hc11_relax): New function for relax group.
3156 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3157 beginning of jump instruction.
3158 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3159 address computation.
3160 (tc-gen_reloc): Update.
3161 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3163 (tc_m68hc11_force_relocation): New function, handle new relocs.
3164 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3165 reloc for the linker relax pass.
3166 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3169 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3171 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3172 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3173 (s_m68hc11_mode): New function for .mode pseudo op.
3174 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3176 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3177 (m68hc11_elf_final_processing): Declare.
3179 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3181 * config/tc-m68hc11.c (md_begin): Take into account additional
3182 page operand for call instruction.
3183 (print_opcode_format): Likewise.
3184 (check_range): Likewise for page range checking.
3185 (get_operand): Don't skip a possible comma in operands.
3186 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3187 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3188 (fixup24): New to handle call reloc.
3189 (build_insn): Handle missing page operand for call instruction.
3191 (md_apply_fix3): Take into account new relocs.
3192 (get_operand): Fix the mode for indexed indirect addressing.
3193 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3195 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3197 * config/tc-mips.c (mips_ip): Don't work out the value of
3198 constant %hi()s here.
3200 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3202 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3203 for ELF, and don't bother checking ELF relocs when non-ELF.
3204 (i386_immediate): Allow absolute_section expressions for aout.
3205 (i386_displacement): Likewise. Also test bfd_is_com_section.
3206 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3207 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3208 not when fx_addsy. Remove dead code.
3210 2002-08-09 Graeme Peterson <gp@qnx.com>
3212 * configure.in: Add support for ppc-*-nto* target.
3213 * configure: Regenerate.
3215 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3217 * config/tc-i386.h: Reorganize.
3219 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3221 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3222 immediate offset in "dla" and "la" expansions.
3224 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3226 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3227 Remove "bfd_gas=yes" from target table when covered later.
3228 Consolidate some entries.
3229 * configure: Regenerate
3231 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3233 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3234 at start of insn, pass it to output_disp and output_imm.
3235 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3236 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3238 (output_imm): Added arguments. Compute properly addend for
3240 (md_apply_fix3): Remove R_386_GOTPC handling.
3242 2002-08-06 George France <france@handhelds.org>
3244 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3245 and m21264b processor names and cpu types.
3246 * doc/c-alpha.texi: Documented new types.
3248 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3250 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3252 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3254 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3255 handling to BFD_RELOC_MIPS16_GPREL.
3257 2002-08-01 Nick Clifton <nickc@redhat.com>
3259 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3260 pool is computed using signed arithmetic so that proper sign
3261 extension is performed if X_add_number is a 64-bit integer.
3263 2002-08-01 H.J. Lu <hjl@gnu.org>
3264 Daniel Jacobowitz <drow@mvista.com>
3266 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3267 .debug_line section unless it has line information.
3269 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3271 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3272 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3273 Allow default displacement size to be an option "--disp-size-default".
3274 (md_number_to_disp): Make error messages include value. Use %d to
3275 print integers, not %s.
3276 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3277 get duplicate messages sometimes.
3278 (convert_iif): Grow frag to max possible instruction size. Avoid
3279 creating unnecessary fixes.
3280 (md_number_to_field) Add prototype.
3281 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3282 prototypes and make static.
3283 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3284 (evaluate_expr): Use resultP argument instead of exprP global.
3285 (get_addr_mode): Quiten compiler warnings.
3286 (encode_operand): eliminate unused variables. Quiten compiler
3287 warnings. Eliminate nul character in format strings.
3288 (parse): argc is unsigned.
3289 (reloc): Type cast index to quieten compiler.
3290 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3291 (md_convert_frag): Note unused parameters. Remove unused
3293 (md_create_long_jump, md_create_short_jump,
3294 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3297 2002-07-31 Nick Clifton <nickc@redhat.com>
3299 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3300 of the PDP-11 and 2.11BSD a.out support.
3302 2002-07-31 Momchil Velikov <velco@fadata.bg>
3304 * config/tc-v850.c (md_assemble): Fix range check for immediate
3307 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3309 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3310 to Broadcom SB-1 core support.
3312 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3314 * config/tc-mips.c (mips_target_format): Fix formatting.
3315 Add recognition of n32 ABI formats.
3317 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3319 * tc-mips.c (load_address): Don't clobber $at when loading a
3320 64-bit address in non-PIC code if noat is in effect.
3323 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3325 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3326 used in division/multiply macro expansions similarly to how they
3327 are used in the variants with break instructions.
3330 2002-07-30 Graeme Peterson <gp@qnx.com>
3332 * configure.in: Add support for arm-*-nto target.
3333 * configure: Regenerate.
3335 2002-07-30 Nick Clifton <nickc@redhat.com>
3337 * config/tc-arm.c (struct literal_pool): Add fields to allow
3338 multiple literal pools to be maintained.
3339 (find_literal_pool): New function.
3340 (find_or_make_literal_pool): New function.
3341 (add_to_literal_pool): Use find_or_make_literal_pool.
3342 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3344 (s_ltorg): Use find_literal_pool.
3345 (arm_cleanup): Dump all literal pools.
3346 * doc/c-arm.texi: Document new behaviour of only dumping literal
3349 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3351 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3352 rather than PPC_OPCODE_32 for powerpc64*.
3354 2002-07-25 Nick Clifton <nickc@redhat.com>
3356 * po/es.po: Updated Spanish translation.
3357 * po/fr.po: Updated French translation.
3359 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3361 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3362 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3363 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3364 * configure, config.in: Regenerate.
3365 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3366 (mips_set_options): Remove "abi" field.
3367 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3370 (mips_arch_string, mips_arch_info): New vars.
3371 (mips_tune_string, mips_tune_info): New vars.
3372 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3373 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3374 (mips_isa_to_str, mips_cpu_to_str): Remove.
3375 (mips_ip): If the selected architecture is a generic ISA rather
3376 than a processor, only mention the ISA level in error messages.
3377 (OPTION_MCPU): Remove.
3379 (md_longopts): Add -mfp64, remove -mcpu.
3380 (mips_set_option_string): New fn.
3381 (md_parse_option): Make -mipsN update file_mips_isa rather than
3382 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3383 Don't let -mgp32 and -mfp32 change the ABI.
3384 (show): Move to end of file. Constify string argument.
3385 (md_show_usage): Move to the end of the file. Read available
3386 architectures from mips_cpu_info_table.
3387 (mips_set_architecture): New fn.
3388 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3389 is an alias for -march=mipsN. Don't change the ABI based on other
3390 flags. Infer the register size from the ABI as well as the
3391 architecture. Complain about more conflicting arguments.
3392 Unify logic with GCC.
3393 (s_mipsset): Don't change the ABI.
3394 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3395 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3396 "mipsN"-type entries. Remove entries that vary only in the
3397 manufacturer's prefix, or that have "000" replaced by "k".
3398 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3399 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3400 (mips_parse_cpu): New fn.
3401 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3402 (mips_cpu_info_from_isa): Minor formatting tweak.
3404 2002-07-24 Nick Clifton <nickc@redhat.com>
3406 * po/sv.po: Updated Swedish translation.
3407 * po/es.po: Updated Spanish translation.
3409 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3411 * Makefile.am: Run "make dep-am".
3412 * Makefile.in: Regenerate.
3413 * doc/Makefile.in: Regenerate.
3414 * config.in: Regenerate.
3415 * po/POTFILES.in: Regenerate.
3417 2002-07-23 Nick Clifton <nickc@redhat.com>
3419 * po/fr.po: Updated French translation.
3421 2002-07-23 Nick Clifton <nickc@redhat.com>
3423 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3426 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3428 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3429 instead of S_IS_EXTERN.
3430 (md_estimate_size_before_relax): Likewise.
3431 (mips_fix_adjustable): Likewise.
3433 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3435 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3437 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3438 Nick Clifton <nickc@redhat.com>
3440 * cond.c (s_ifdef): Treat a referenced but not yet defined
3441 symbol as if it were undefined, in exactly the same way as
3444 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3445 consider referenced bug not yet defined symbols to be
3448 2002-07-18 Denis Chertykov <denisc@overta.ru>
3449 Frank Ch. Eigler <fche@redhat.com>
3450 Alan Lehotsky <alehotsky@cygnus.com>
3451 John Healy <jhealy@redhat.com>
3452 Jeff Johnston <jjohnstn@redhat.com>
3454 * configure.in: Add ip2k configuraton.
3455 * configure: Regenerate.
3456 * Makefile.am: Add ip2k configuraton.
3457 * Makefile.in: Regenerate.
3458 * configure: Regenerate.
3459 * Makefile.in: Regenerate.
3460 * config/tc-ip2k.c: New file.
3461 * config/tc-ip2k.h: New files.
3462 * NEWS: Mention new support.
3463 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3464 * doc/Makefile.in: Regenerate.
3465 * doc/all.texi: Set IP2K
3466 * doc/as.texinfo: Add IP2K description.
3467 * doc/c-ip2k.texi: New file.
3469 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3471 * NEWS: Reformat to match style of other NEWS files.
3473 2002-07-17 Jan Hubicka <jh@suse.cz>
3475 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3477 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3479 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3481 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3483 * NEWS: Add 'Changes in 2.13'.
3485 2002-07-15 Matt Fredette <fredette@netbsd.org>
3487 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3489 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3491 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3492 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3495 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3497 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3498 (ppc_frob_file_before_adjust): New function.
3499 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3500 (ppc_elf_frob_symbol): Don't declare.
3501 (tc_frob_file_before_adjust): Define.
3502 (ppc_frob_file_before_adjust): Declare.
3504 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3505 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3508 (ppc_xcoff64): Rename to ppc_obj64.
3509 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3510 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3511 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3513 (ppc_target_format): Use ppc_obj64 to select format.
3514 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3515 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3516 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3517 (tc_frob_symbol): Likewise.
3518 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3519 BFD_DEFAULT_TARGET_SIZE.
3521 (ppc_is_toc_sym): Likewise.
3522 (md_apply_fix3): Likewise.
3523 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3524 BFD_DEFAULT_TARGET_SIZE.
3525 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3526 (tc_frob_symbol): Likewise.
3528 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3530 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3531 (mips_ip): Likewise.
3533 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3535 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3536 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3537 (md_apply_fix3): Formatting. Remove redundant test.
3538 (tc_gen_reloc): Remove redundant code.
3539 (tc_i386_force_relocation): Delete. Movy body of function to..
3540 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3542 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3544 * configure.in: Add hppa-*-openbsd* target, change
3545 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3547 * configure: Regenerate.
3549 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3551 * config/tc-mips.c (macro): Shift the 32-bit address range
3552 accessible with a lone "lui" down by 32768.
3554 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3556 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3557 instead of "dadd" in address calculations.
3560 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3562 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3564 (md_assemble): Instead, zap the suffix here.
3566 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3568 * NEWS: Remove next release number until the release is actually
3571 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3573 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3575 * Makefile.in: Regenerate.
3577 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3579 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3580 to symbols in merge sections, even non pc-relative ones.
3582 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3584 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3586 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3588 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3589 .softregs and .eeprom.
3591 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3593 * NEWS: Note the next release is 2.13.
3595 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3597 * po/tr.po: New translation imported.
3599 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3601 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3602 (ecoff_directive_def): Likewise.
3603 (ecoff_directive_tag): Likewise.
3604 * listing.c (file_info): Likewise.
3605 * hash.c (what): Likewise.
3607 2002-06-25 H.J. Lu <hjl@gnu.org>
3609 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3610 * Makefile.in: Regenerated.
3612 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3614 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3615 (assemble_ppi): Generate warning if the same register is used
3616 twice as destination in the same padd / pmuls instruction.
3618 2002-06-18 Dave Brolley <brolley@redhat.com>
3620 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3621 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3622 * configure.in: Support frv-*-*.
3623 * Makefile.am (CPU_TYPES): Add frv.
3624 (TARGET_CPU_CFILES): Add tc-frv.c.
3625 (TARGET_CPU_HFILES): Add tc-frv.h.
3626 (DEPTC_frv_coff): New variable.
3627 (DEPTC_frv_elf): New variable.
3628 (DEPOBJ_frv_coff): New variable.
3629 (DEPOBJ_frv_elf): New variable.
3630 (DEP_frv_coff): New variable.
3631 (DEP_frv_elf): New variable.
3632 * tc-frv.c: New file.
3633 * tc-frv.h: New file.
3635 2002-06-17 Catherine Moore <clm@redhat.com>
3637 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3639 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3641 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3643 2002-06-17 Tom Rix <trix@redhat.com>
3645 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3647 2002-06-14 H.J. Lu <hjl@gnu.org>
3648 Daniel Jacobowitz <drow@mvista.com>
3650 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3651 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3652 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3653 and new_logical_line for the first .file directive.
3654 * read.c (s_app_file_string): New function.
3655 (s_app_file): Call it.
3656 * read.h (s_app_file_string): Add declaration.
3658 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3660 * configure.in: Remove MIPS_STABS_ELF.
3661 * configure: Regenerated.
3662 * config.in: Regenerated.
3663 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3665 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3667 (pdr_seg): Declare unconditionally.
3668 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3669 (s_mips_end): Likewise. Generate stabs function markers.
3670 (s_mips_ent): Generate stabs function markers.
3671 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3673 (s_mips_mask): Likewise.
3674 (mips_flag_mdebug): New.
3675 (md_longopts): Add "mdebug" and "no-mdebug".
3676 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3677 (mips_after_parse_args): Set mips_flag_mdebug.
3678 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3680 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3682 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3683 value twice for RELA relocations.
3685 2002-06-12 Ben Elliston <bje@redhat.com>
3687 * symbols.c (resolve_symbol_value): Initialise final_val.
3689 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3691 2002-06-11 Tom Rix <trix@redhat.com>
3693 * config/tc-ppc.c (ppc_subseg_align): Delete.
3694 (ppc_change_csect): Default csect align is 2.
3695 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3697 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3699 * config/tc-avr.c (mcu_types): Update.
3701 2002-06-08 Matt Thomas <matt@3am-software.com>
3703 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3704 (vax-*-netbsd*): New targets.
3705 * configure: Regenerate.
3706 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3707 * config/tc-vax.c: Add support for ELF and PIC.
3708 (flag_want_pic): New flag.
3709 (float_cons): Fix prototype.
3710 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3711 (md_assemble): Introduce a new is_absolute local, and use it
3712 rather than repeating the test. Make fatal errors actually
3713 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3714 Add support for ELF. Add support for PIC.
3715 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3716 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3718 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3719 optional for a.out, and not allowed for VMS. Adjust all callers.
3720 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3721 (md_create_long_jump): Likewise.
3722 (md_undefined_symbol): Likewise.
3723 (md_section_align): Likewise.
3724 (md_shortopts): Allow -k and -K for ELF.
3725 (md_parse_option): Set flag_want_pic if -k or -K.
3726 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3727 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3728 * config/tc-vax.h (tc_headers_hook): Remove.
3729 (TARGET_FORMAT): Set according to object format and target
3731 (BFD_ARCH, TARGET_ARCH): Define.
3732 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3733 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3734 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3735 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3737 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3739 * Makefile.am: Run "make dep-am".
3740 * Makefile.in: Regenerate.
3742 * as.c: Replace CONST with const.
3743 * write.c: Likewise.
3744 * config/obj-coff.c: Likewise.
3745 * config/tc-a29k.c: Likewise.
3746 * config/tc-arm.c: Likewise.
3747 * config/tc-dlx.c: Likewise.
3748 * config/tc-h8300.c: Likewise.
3749 * config/tc-h8500.c: Likewise.
3750 * config/tc-i370.c: Likewise.
3751 * config/tc-i860.c: Likewise.
3752 * config/tc-i960.c: Likewise.
3753 * config/tc-m68hc11.c: Likewise.
3754 * config/tc-m68k.c: Likewise.
3755 * config/tc-m88k.c: Likewise.
3756 * config/tc-mcore.c: Likewise.
3757 * config/tc-mips.c: Likewise.
3758 * config/tc-ns32k.c: Likewise.
3759 * config/tc-pdp11.c: Likewise.
3760 * config/tc-pj.c: Likewise.
3761 * config/tc-s390.c: Likewise.
3762 * config/tc-sh.c: Likewise.
3763 * config/tc-sparc.c: Likewise.
3764 * config/tc-tahoe.c: Likewise.
3765 * config/tc-tic80.c: Likewise.
3766 * config/tc-v850.c: Likewise.
3767 * config/tc-vax.c: Likewise.
3768 * config/tc-w65.c: Likewise.
3769 * config/tc-z8k.c: Likewise.
3771 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3773 Based on patch from Matt Green:
3774 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3775 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3776 (s_mips_loc): New function.
3777 (mips_nonecoff_pseudo_table): Call them.
3778 (append_insn): Call dwarf2_emit_insn.
3780 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3782 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3784 (file_ase_mips16): New veriable.
3785 (mips_eabi64): Remove.
3786 (CPU_HAS_MIPS16): New define.
3787 (CPU_HAS_MDMX): Fix data type.
3788 (md_begin): Code cleanup. Use file_ase_mips16.
3789 (mips_elf_final_processing): Handle mips16 header flag.
3790 Handle EABI flag without intermediate variable.
3792 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3794 * doc/as.texinfo: Update MIPS documentation.
3796 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3798 * config/tc-mips.c: Add define for $zero register.
3799 (md_begin): Add $zero as alias name for $0.
3800 (insn_uses_reg): Use ZERO define.
3801 (mips_ip): Add $zero as alias name for $0.
3802 (mips16_ip): Likewise.
3803 (s_cplocal): Demand empty rest of input line.
3804 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3805 names. Use ZERO define. Fix input_line_pointer progress.
3807 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3809 * symbols.c: Replace CONST by const throughout.
3810 (symbol_find_exact): Split out from..
3811 (symbol_find_base): ..here.
3812 * symbols.h: Replace CONST by const throughout.
3813 (symbol_find_exact): Declare.
3814 * config/obj-elf.c: #include "struc-symbol.h".
3815 (elf_frob_file): If group name matches an exported symbol, use that
3816 symbol for the signature and ".group" as the section name.
3818 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3820 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3823 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3825 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3826 and mips_opts.ase_mdmx if they are uninitialized.
3828 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3830 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3831 (hppa_force_relocation): Check if a stub just before the start symbol
3832 of the last call_info is reachable before forcing relocation. Fix
3835 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3837 * config/tc-mips.c (mips_after_parse_args): New function.
3838 (md_begin): Move processing of defaults to mips_after_parse_args.
3839 config/tc-mips.h (md_after_parse_args): Define.
3841 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3843 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3844 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3845 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3846 * configure: Regenerate.
3847 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3850 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3852 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3854 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3856 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3857 linkonce flag. Print all warnings.
3858 (obj_elf_section): Parse ",comdat" for groups.
3859 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3860 consistency of comdat flag.
3862 2002-06-02 Richard Henderson <rth@redhat.com>
3864 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3865 with LITERALs without sequence numbers.
3867 2002-06-01 Richard Henderson <rth@redhat.com>
3869 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3870 Rename them LITUSE_ALPHA_*.
3872 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3874 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3875 accept parentheses enclosed register lists.
3877 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3879 * Makefile.am: Run "make dep-am".
3880 * Makefile.in: Regenerate.
3881 * po/POTFILES.in: Regenerate.
3883 2002-05-31 Graeme Peterson <gp@qnx.com>
3885 * configure.in: Add i386-*-nto-qnx*.
3886 * configure: Regenerate.
3888 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3890 * config/tc-mips.c (mips_ip): Use unsigned long values for
3893 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3895 * config/tc-mips.c (s_cpsetup): Fix initialization of
3896 mips_cpreturn_register and mips_cpreturn_offset.
3898 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3900 * config/tc-mips.c (s_cpsetup): Fix comment.
3902 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3904 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3905 (mips_ip): Likewise.
3906 (mips16_ip): Likewise.
3907 (tc_get_register): Likewise.
3909 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3910 Ed Satterthwaite <ehs@broadcom.com>
3912 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3913 (mips_opts): Initialize "ase_mdmx" member.
3914 (file_ase_mdmx): New variable.
3915 (CPU_HAS_MDMX): New macro.
3916 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3917 based on command line options and configuration defaults.
3918 (macro_build): Note in comment that use of MDMX in macros is
3919 not currently allowed.
3920 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3921 "Z" MDMX operand types.
3922 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3923 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3925 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3926 Add support for "-mdmx" and "-no-mdmx" options.
3927 (OPTION_ELF_BASE): Move to accomodate new options.
3928 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3929 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3930 file_ase_mdmx was set.
3931 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3932 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3935 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3937 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3938 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3939 command line switch conforming to gcc conventions.
3940 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3942 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3944 * config/tc-mips.c (macro_build_jalr): New Function.
3945 (md_begin): NewABI uses big GOTs.
3946 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3947 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3948 (load_address): Add some NewABI PIC support.
3950 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3951 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3953 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3955 * config/tc-mips.c (load_address): Use mips_gp_register instead
3956 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3958 (macro): Use mips_gp_register instead of hardcoded value.
3960 2002-05-30 Richard Henderson <rth@redhat.com>
3962 * expr.h (operatorT): Add O_md17..O_md32.
3963 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3964 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3965 O_tprelhi, O_tprello, O_tprel): New.
3966 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3967 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3968 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3969 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3970 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3971 (md_apply_fix3): Handle TLS relocations.
3972 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3973 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3974 associated TLS reloc. Check lituse_tls relocs match up.
3975 (emit_insn): Handle TLS relocations.
3978 * doc/c-alpha.texi: Add docs for tls relocations.
3980 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3982 * config/tc-mips.c (mips_gprel_offset): New variable.
3983 (s_gpvalue): Use it.
3985 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3987 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3988 write-write conflicts.
3989 (md_assemble): Reformat introductory comment.
3990 (parallel_ok): Prevent packing only if the first
3991 instruction cannot be packed.
3993 2002-05-30 Jason Eckhardt <jle@redhat.com>
3994 Tom Rix <trix@redhat.com>
3996 * config/tc-d10v.c (build_insn): Check for immediates.
3998 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4000 * config/tc-mips.c: Replace GP in comments by $gp.
4001 (mips_big_got): Initialize.
4002 (mips_trap): Initialize.
4003 (load_address): Use mips_gp_register instead of hardcoded value.
4004 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
4005 (macro): Use mips_gp_register instead of hardcoded value.
4006 (macro2): Change load_address calls.
4007 (md_pcrel_from): Comment formatting.
4008 (s_cpload): Use mips_gp_register instead of hardcoded value.
4009 (s_cprestore): Likewise. Comment formatting.
4010 (s_gpword): Fix data type.
4011 (s_cpadd): Use mips_gp_register instead of hardcoded value.
4012 (nopic_need_relax): Replace GP in comments by $gp.
4013 (mips_elf_final_processing): Better comment.
4015 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
4017 * configure.in: Add DLX configuraton
4018 * Makefile.am: Add DLX configuraton
4019 * configure: Regenerate.
4020 * Makefile.in: Regenerate.
4021 * config/tc-dlx.c: New file.
4022 * config/tc-dlx.h: New files.
4023 * NEWS: Mention new support.
4025 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4027 * config/obj-coff.c (write_object_file): Add missing semicolon.
4029 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4031 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4032 by the define. Remove superfluous check of mips_opts.mips16.
4033 (append_insn): Likewise. Canonicalize variable increments.
4034 (macro_build): Canonicalize variable increments.
4035 (macro_build_lui): Likewise.
4036 (load_register): Likewise.
4037 (load_address): Move pointer initialization.
4038 (macro): Move pointer to a more local scope. Canonicalize variable
4039 increments. Better comments. Replace magic constant for RA by the
4041 (macro2): Replace magic constant for RA by the define. Canonicalize
4042 variable increments.
4043 (mips_ip): Canonicalize variable increments.
4044 (mips16_ip): Replace magic constant for RA by the define.
4045 (my_getSmallParser): Canonicalize variable increments/decrements.
4046 (my_getPercentOp): Likewise.
4047 (my_getSmallExpression): Likewise.
4048 (s_align): Likewise.
4049 (s_mipsset): Likewise.
4050 (s_cpsetup): Likewise.
4051 (s_insn): Remove superfluous check of mips_opts.mips16.
4052 (s_mips_stab): Likewise.
4053 (mips_handle_align): Canonicalize variable increments.
4054 (s_mips_ent): Likewise.
4055 (s_mips_end): Add comment.
4057 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4059 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4060 * configure: Regenerate.
4062 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4064 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4065 * Makefile.in: Regenerate.
4066 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4067 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4068 * configure: Regenerate.
4069 * as.h: Use #include "" instead of <> for local header files.
4070 * flonum-konst.c: Likewise.
4071 * flonum-mult.c: Likewise.
4073 * listing.c: Likewise.
4074 * config/tc-ia64.h: Likewise.
4075 * config/tc-v850.h: Likewise.
4077 2002-05-24 TAMURA Kent <kent@netbsd.org>
4079 * configure.in: Add a target for i386-netbsdpe.
4080 * configure: Regenerate.
4082 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4084 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4085 (obj_elf_common): Call elf_common.
4086 (obj_elf_tls_common): New function.
4087 (elf_pseudo_tab): Support .tls_common.
4088 (special_sections): Add .tdata and .tbss.
4089 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4091 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4092 (obj_elf_parse_section_letters): Include T in error message.
4093 * config/tc-ppc.c (ppc_section_letter): Likewise.
4094 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4095 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4097 * config/tc-sparc.c (md_apply_fix3): Likewise.
4098 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4099 Define them if not BFD_ASSEMBLER.
4100 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4102 (md_apply_fix3): Add TLS relocs.
4103 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4104 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4105 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4106 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4107 (ia64_elf_section_letter): Include T in error message.
4108 (md_begin): Support TLS operators.
4109 (md_operand): Likewise.
4110 (ia64_gen_real_reloc_type): Support TLS relocs.
4111 * write.c (adjust_reloc_syms): Don't change symbols in
4112 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4114 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4116 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4117 round the relocation up rather than down.
4119 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4121 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4123 * doc/as.texinfo: Document that the COFF version of .section
4124 ignores the 'a' flag.
4126 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4128 * config/tc-alpha.c (assemble_tokens): Protect use of
4129 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4131 * write.c (size_seg): Check adjustment to last frag.
4132 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4134 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4135 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4136 (write_object_file): Invoke md_do_align if available, and use
4137 frag_align_code on text sections.
4138 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4139 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4140 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4141 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4142 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4145 2002-05-22 H.J. Lu <hjl@gnu.org>
4147 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4150 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4152 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4155 2002-05-22 H.J. Lu <hjl@gnu.org>
4157 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4158 for one .loc for compiler.
4160 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4162 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4165 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4167 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4168 Optimize the rotate by zero case.
4170 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4172 * configure.in: Remove accidental enabling of bfd_gas=yes for
4174 * configure: Regenerate.
4176 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4178 * app.c: Fix formatting.
4180 * ehopt.c: Likewise.
4182 * input-file.c: Likewise.
4183 * listing.c: Likewise.
4184 * macro.h: Likewise.
4185 * stabs.c: Likewise.
4186 * symbols.c: Likewise.
4188 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4190 * config/obj-generic.c: Delete file.
4191 * config/obj-generic.h: Likewise.
4193 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4195 * config/tc-avr.c (mcu_types): Update for new devices.
4197 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4199 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4201 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4203 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4204 worked sometimes by accident. Fix copy&paste comment.
4206 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4208 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4209 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4210 (mips_elf_final_processing): Let n32 use .reginfo.
4212 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4214 * config/tc-mips.c (append_insn): Fix too small range of variable.
4216 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4218 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4219 listing_prev_line().
4221 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4223 * config/tc-arm.c (md_assemble): Remove redundant call to
4226 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4229 * stabs.c (s_stab_generic): Fix grammatical error in warning
4232 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4234 * write.c (subsegs_finish): Don't specially align last subseg.
4236 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4238 * stabs.c (s_stab_generic): Warn about a description field that is
4241 * config/obj-coff.c: Fix compile time warnings when compiling
4242 without BFD_ASSEMBLER defined.
4245 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4247 (md_pcrel_from_section): Use md_pcrel_from().
4249 2002-05-11 Bruno Haible <bruno@clisp.org>
4251 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4252 by dwarf2_directive_loc, instead of calling dwarf2_where.
4254 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4256 * config/obj-coff.h: Fix formatting.
4257 * config/tc-mcore.c: Likewise.
4258 * config/tc-mn10300.c: Likewise.
4259 * config/tc-openrisc.c: Likewise.
4260 * config/tc-or32.c: Likewise.
4261 * config/tc-pdp11.c: Likewise.
4262 * config/tc-ppc.c: Likewise.
4263 * config/tc-ppc.h: Likewise.
4264 * config/tc-sh64.c: Likewise.
4265 * config/tc-sh.c: Likewise.
4266 * config/tc-tic54x.c: Likewise.
4267 * config/tc-xstormy16.c: Likewise.
4268 * config/tc-xstormy16.h: Likewise.
4270 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4272 * config/obj-coff.c: Fix formatting.
4273 * config/obj-elf.c: Likewise.
4274 * config/tc-alpha.c: Likewise.
4275 * config/tc-arm.c: Likewise.
4276 * config/tc-d10v.c: Likewise.
4277 * config/tc-d30v.c: Likewise.
4278 * config/tc-h8300.c: Likewise.
4279 * config/tc-hppa.c: Likewise.
4281 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4283 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4284 reloc when no_cond_jump_promotion.
4286 2002-05-08 Jim Wilson <wilson@redhat.com>
4288 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4289 current variable part of frag.
4291 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4293 * config/tc-mmix.c: Fix formatting.
4294 * config/tc-mmix.h: Likewise.
4296 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4298 * configure: Regenerate.
4300 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4302 * config/tc-m68k.c: Fix formatting.
4304 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4306 * Makefile.am: Honour DESTDIR.
4307 * Makefile.in: Regenerate.
4309 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4311 * config/tc-ia64.c: Fix formatting.
4312 * config/tc-ia64.h: Likewise.
4314 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4316 * config/tc-mips.c: Fix formatting.
4317 * config/tc-s390.c: Likewise.
4318 * config/tc-s390.h: Likewise.
4320 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4322 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4323 information for instructions.
4325 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4327 * as.h: Fix formatting.
4330 * dwarf2dbg.c: Likewise.
4331 * frags.h: Likewise.
4333 * macro.c: Likewise.
4335 * stabs.c: Likewise.
4336 * symbols.c: Likewise.
4338 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4340 * app.c (mri_pseudo): Only declare for TC_M68K.
4342 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4343 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4344 BFD_RELOC_16_BASEREL.
4345 (md_assemble): Likewise.
4346 (md_apply_fix3): Likewise.
4348 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4350 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4351 zero into an add of zero - it is not the same.
4353 2002-05-01 Arati Dikey <aratid@kpit.com>
4355 * tc-sh.c (get_specific): Generate warning if the same
4356 destination register is used in parallel instructions.
4358 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4360 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4362 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4364 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4365 backwards to prevent cascading errors.
4367 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4369 * configure.in: Add support for powerpc-*-windiss.
4370 * configure: Regenerated.
4372 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4374 * config/tc-s390.c (md_parse_option): Formatting.
4376 * config/tc-i386.c: Formatting fixes, add missing space in error
4379 2002-04-24 Christian Groessler <chris@groessler.org>
4381 * config/tc-z8k.c (build_bytes): Add support for new cases:
4382 CLASS_IGNORE and ARG_NIM4.
4383 (md_assemble): Prevent destruction of input_line_pointer if
4384 get_operands returns failure.
4386 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4388 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4389 instructions to be generated by macros.
4391 2002-04-24 Andreas Schwab <schwab@suse.de>
4393 * config/tc-i386.c (output_jump, output_disp)
4394 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4396 (md_apply_fix3): Remember addend value for rela relocations.
4397 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4399 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4401 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4402 from previous change.
4404 2002-04-22 Eric Christopher <echristo@redhat.com>
4406 * config/tc-mips.c (macro_build): Add warning if macro instructions
4407 are expanded into a branch delay slot.
4409 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4411 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4412 numbers, gdb relies on them to detect the start of the prologue.
4414 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4416 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4417 symbols in merge sections.
4419 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4421 * as.c (main): Don't reference _bfd_chunksize.
4423 2002-04-15 Tom Rix <trix@redhat.com>
4425 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4426 symbols in merge sections.
4428 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4430 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4431 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4432 argument for the precision.
4433 (gen_to_words): Update accordingly.
4435 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4437 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4438 BFD_VERSION_STRING unavailable.
4439 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4441 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4443 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4444 symbol_used_in_reloc_p is true.
4446 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4449 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4451 * dep-in.sed: Cope with absolute paths.
4452 * Makefile.am (dep.sed): Subst TOPDIR.
4454 * Makefile.in: Regenerate.
4456 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4458 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4459 (mips_ip): Remove unused variable.
4460 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4461 unsigned char with bfd_byte.
4462 (s_file): Remove unused variable.
4463 (s_mips_ent): Likewise.
4465 2002-04-03 Tom Rix <trix@redhat.com>
4467 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4469 (find_opcode): Fix warning in as_warn.
4470 * config/tc-d10v.h: Update Copyright.
4472 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4473 Tom Rix <trix@redhat.com>
4475 From Jeff Knaggs <jknaggs@redhat.com>
4476 * config/tc-d10v.c (check_resource_conflict): New function to
4477 check for resource conflicts.
4479 From Jason Eckhardt <jle@redhat.com>
4480 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4482 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4483 reserved control registers is used.
4484 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4487 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4488 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4489 instruction cannot be packed.
4491 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4492 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4493 write-write conflicts.
4494 (md_assemble): Reformat introductory comment.
4495 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4498 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4500 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4501 O_logical_not>): Derive final_seg from add_symbol.
4502 <O_multiply..O_logical_or>: More final_seg twiddles.
4504 2002-04-01 Jessica Han <jessica@cup.hp.com>
4506 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4509 2002-03-27 Andreas Schwab <schwab@suse.de>
4511 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4512 field for pc-relative fixups.
4513 (output_disp): Likewise.
4514 (md_estimate_size_before_relax): Likewise.
4515 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4516 pc-relative fixups in 64bit mode.
4518 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4520 * config/te-aix5.h: Typo fix.
4522 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4524 * Makefile.am: Run "make dep-am".
4525 * Makefile.in: Regenerate.
4526 * doc/Makefile.in: Regenerate.
4528 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4530 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4531 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4533 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4535 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4536 the EXTENDED bit here; report the estimate according to the
4539 2002-03-18 Tom Rix <trix@redhat.com>
4541 * configure.in: Add AIX 5 support.
4542 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4543 * config/te-aix5.h: New file. AIX 5 support.
4544 * configure: Regenerate.
4546 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4548 * po/fr.po: Updated version.
4550 2002-03-16 Andreas Jaeger <aj@suse.de>
4552 * doc/c-mips.texi (Machine Dependencies): Add new node.
4554 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4556 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4557 (mips_opts): Initialize "ase_mips3d" member.
4558 (file_ase_mips3d): New variable.
4559 (CPU_HAS_MIPS3D): New macro.
4560 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4561 based on command line options and configuration defaults.
4562 (macro_build, mips_ip): Accept MIPS-3D instructions if
4563 mips_opts.ase_mips3d is set.
4564 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4565 Add support for "-mips3d" and "-no-mips3d" options.
4566 (OPTION_ELF_BASE): Move to accomodate new options.
4567 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4568 (mips_elf_final_processing): Add a comment indicating that a
4569 MIPS-3D ASE ELF header flag should be set, when one exists.
4570 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4571 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4572 nomips3d" directives.
4574 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4576 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4577 a weak symbol in same section to be within reach.
4579 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4581 * po/fr.po: Updated version.
4583 2002-03-12 Andreas Schwab <schwab@suse.de>
4585 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4586 body record so that an error is given for misplaced .save
4589 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4591 * config/tc-i386.h (REX_OPCODE): Define.
4592 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4593 (rex_byte): typedef to int.
4594 * config/tc-i386.c: Group prototypes and vars together.
4595 Formatting fixes. Remove occurrences of "register" keyword.
4598 (mode_from_disp_size): Add INLINE keyword to prototype.
4599 (fits_in_signed_byte): Likewise.
4600 (fits_in_unsigned_byte): Likewise.
4601 (fits_in_unsigned_word): Likewise.
4602 (fits_in_signed_word): Likewise.
4603 (fits_in_unsigned_long): Likewise.
4604 (fits_in_signed_long): Likewise.
4605 (type_names): Constify.
4606 (intel_float_operand): Constify param.
4607 (add_prefix): Use REX_OPCODE.
4608 (md_assemble): Likewise. Modify for changed rex_byte.
4609 (parse_insn): Split out of md_assemble.
4610 (parse_operands): Likewise.
4611 (swap_operands): Likewise.
4612 (optimize_imm): Likewise.
4613 (optimize_disp): Likewise.
4614 (match_template): Likewise.
4615 (check_string): Likewise.
4616 (process_suffix): Likewise.
4617 (check_byte_reg): Likewise.
4618 (check_long_reg): Likewise.
4619 (check_qword_reg): Likewise.
4620 (check_word_reg): Likewise.
4621 (finalize_imm): Likewise.
4622 (process_operands): Likewise.
4623 (build_modrm_byte): Likewise.
4624 (output_insn): Likewise.
4625 (output_branch): Likewise.
4626 (output_jump): Likewise.
4627 (output_interseg_jump): Likewise.
4628 (output_disp): Likewise.
4629 (output_imm): Likewise.
4631 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4633 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4635 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4637 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4638 relocs except when BFD64.
4640 * write.c (number_to_chars_bigendian): Don't abort when N is
4641 larger than sizeof (VAL).
4642 (number_to_chars_littleendian): Likewise.
4644 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4646 * config/tc-hppa.c (md_apply_fix3): Add cast.
4647 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4650 2002-03-05 Paul Koning <pkoning@equallogic.com>
4652 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4653 (parse_ac5): New function for parsing float regs in float operand.
4654 (parse_expression): Remove attempt to make literals be octal.
4655 (parse_op_no_deferred): Support float literals.
4656 (parse_op): Reject attempts to refer to float regs.
4657 (parse_fop): New function, like parse_op but for float operand.
4658 (md_assemble): Add cases to parse float operands. Also fix
4659 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4661 2002-03-04 H.J. Lu <hjl@gnu.org>
4663 * config/obj-elf.c (special_section): Add .init_array,
4664 .fini_array and .preinit_array.
4666 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4667 .init_array and .fini_array.
4669 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4671 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4673 (obj_frob_symbol): Copy visibility.
4675 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4677 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4679 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4681 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4683 * po/es.po: Updated.
4685 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4687 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4688 only, undo the changes made on 2001-06-08, with the
4689 effect being that common or extern symbols are
4690 adjusted for embedded-PIC, but weak symbols are not.
4691 (md_estimate_size_before_relax: Likewise, with the effect
4692 that extern symbols are treated the same as weak symbols
4693 only if not embedded-PIC.
4694 (mips_fix_adjustable) Likewise, with the effect that
4695 weak or extern symbols are not adjusted for embedded-PIC.
4696 (md_apply_fix3): Tweak so that the case where value is zero
4697 is handled more correctly for embedded-PIC code.
4699 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4701 * doc/as.texinfo (Overview): Add missing @ifset IA64
4703 * configure.in (LINGUAS): Add es.po.
4704 * configure: Regenerate.
4705 * po/es.po: New file.
4707 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4709 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4710 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4711 and NO_PIC cases. Code cleanup.
4712 (macro2): Fix handling of 64bit register loads.
4714 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4716 * doc/as.texinfo: Add entry for IA64.
4717 * doc/c-ia64.texi: New file.
4719 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4721 * config/tc-hppa.c: Update copyright date.
4723 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4724 Remove references to chip manufacturers.
4725 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4727 (md_show_usage): Remove references to chip manufacturers. Mention
4729 (md_begin): Test power4 opcode flag bits.
4731 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4733 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4734 count exceeds prologue count.
4735 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4736 (unwind.label_prologue_count): New member.
4738 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4740 (get_saved_prologue_count): New function.
4741 (save_prologue_count): New function.
4742 (free_saved_prologue_count): New function.
4743 (dot_label_state): Record state label by calling save_prologue_count().
4744 (dot_copy_state): Restore prologue count by calling
4745 get_saved_prologue_count().
4746 (generate_unwind_image): Free up list of saved prologue
4747 counts by calling free_saved_prologue_counts().
4749 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4751 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4752 function declarations.
4754 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4756 * NEWS: Note that GASP is now deprecated.
4757 * Makefile.am: Do not build gasp-new by default.
4758 * Makefile.in: Regenerate.
4759 * doc/Makefile.am: Do not install gasp.info.
4760 * doc/Makefile.in: Regenerate.
4761 * gas/gasp.texi: Note that gasp is now deprecated.
4763 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4765 * NEWS: Mark 2.12 branch.
4767 2002-02-19 Tom Tromey <tromey@redhat.com>
4769 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4771 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4773 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4776 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4778 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4779 Make bit size independent of architecture switch.
4780 (md_begin): Add warning for -m64 with -Aesa.
4781 (s390_md_end): Use renamed architecture defines.
4783 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4785 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4787 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4789 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4792 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4794 * config/tc-mips.c (md_estimate_size_before_relax): Really
4795 make sure we treat weak like extern only for ELF. (Fixes
4796 patch from 2001-07-25.)
4798 2002-02-15 Ben Elliston <bje@redhat.com>
4800 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4803 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4805 * NEWS: Mention support for MMIX.
4807 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4809 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4810 a sequence of indpendent 'if' statements for easier debugging
4811 and future modification.
4813 2002-02-13 Matt Fredette <fredette@netbsd.org>
4815 * config/tc-m68k.c (md_show_usage): No longer display a
4816 hard-coded "68020" for the default CPU, instead display the
4817 canonical name of the true, configured default CPU.
4818 (m68k_elf_final_processing): Mark objects for sub-68020
4819 CPUs with the new EF_M68000 flag.
4821 2002-02-13 Andreas Schwab <schwab@suse.de>
4823 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4824 pc-relative relocations to merge sections in 64-bit mode.
4826 2002-02-13 Ben Elliston <bje@redhat.com>
4828 * NEWS: Document floating point number handling in gasp.
4829 * gasp.c: Include <assert.h> and "xregex.h".
4830 (is_flonum): New function.
4831 (chew_flownum): Likewise.
4832 (change_base): Consume flonums from the input, where possible.
4833 * doc/gasp.texi (Constants): Document floating point numbers.
4835 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4837 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4838 that implicitly use LR and RR selectors.
4840 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4842 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4843 and `epsw' as available on AM33 and above only.
4844 (other_register_name): Add logic to handle machine type encoded in
4847 2002-02-11 Tom Rix <trix@redhat.com>
4849 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4852 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4854 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4857 2002-02-11 Jan Hubicka <jh@suse.cz>
4859 * i386.c (md_assemble): Support 32bit address prefix.
4860 (i386_displacement): Likewise.
4861 (i386_index_check): Accept 32bit addressing in 64bit mode.
4863 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4865 * config/tc-sh.c (dot): Removed unused function.
4867 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4869 * Makefile.am: "make dep-am".
4870 * Makefile.in: Regenerate.
4871 * aclocal.m4: Regenerate.
4872 * config.in: Regenerate.
4873 * configure: Regenerate.
4874 * doc/Makefile.in: Regenerate.
4876 2002-02-10 Richard Henderson <rth@redhat.com>
4878 * doc/c-alpha.texi: New file.
4879 * doc/Makefile.am (CPU_DOCS): Add it.
4880 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4882 2002-02-09 Richard Henderson <rth@redhat.com>
4884 * config/tc-alpha.c (O_samegp): New.
4885 (USER_RELOC_P): Include it.
4886 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4887 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4888 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4889 (alpha_validate_fix): New.
4890 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4892 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4894 * doc/c-cris.texi: New.
4895 * doc/all.texi: @set CRIS.
4896 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4897 Include c-cris.texi.
4898 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4899 * doc/Makefile.in: Regenerate.
4901 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4903 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4904 determine if a number is a sign-extended 32-bit number.
4905 (load_register): Use IS_SEXT_32BIT_NUM.
4906 (macro): Check if load/store macro handling is using a
4907 constant 32-bit address on 64-bit address systems, and if
4908 so optimize the generation of that address.
4910 2002-02-08 Richard Henderson <rth@redhat.com>
4912 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4913 we've eliminated all foreign relocation types yet.
4914 (alpha_fix_adjustable): Likewise.
4916 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4918 Contribute sh64-elf.
4919 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4920 Stephen Clarke <Stephen.Clarke@st.com>
4921 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4922 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4923 * config/tc-sh.c (md_relax_table): Added default sizes for
4924 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4925 MOVI_16, MOVI_32 and MOVI_48.
4926 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4927 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4929 (shmedia_md_estimate_size_before_relax): Remove redundant
4930 blocks. Set fragP->fr_var even if relaxation type unchanged.
4931 Retain UNDEF_MOVI until expression decays to number.
4932 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4933 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4934 relocation types. Take fixP->fx_addnumber into account too.
4935 (shmedia_md_apply_fix): Likewise.
4936 (shmedia_md_convert_frag): Likewise.
4937 (shmedia_build_Mytes): Likewise.
4938 (sh64_consume_datalabel): Complain about nested datalabel.
4939 Support PIC relocs. Call sh_parse_name.
4940 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4941 in tc-sh.h to SHmedia reloc types.
4942 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4943 MOVI_GOTPC): New relaxation constants.
4944 (md_relax_table): Introduce relaxation directives for PIC-related
4946 (sh_PIC_related_p): Handle datalabel.
4947 (sh_check_fixup): Choose SH5 PIC relocations.
4948 (sh_cons_fix_new): Added BDF_RELOC_64.
4949 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4950 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4951 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4952 current ISA is SHmedia, get 7 bytes.
4953 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4954 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4956 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4957 shmedia_apply_fix3 and make void.
4958 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4959 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4961 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4962 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4963 2001-03-14 DJ Delorie <dj@redhat.com>
4964 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4965 * doc/Makefile.in(CPU_DOCS): Ditto.
4966 * doc/c-sh64.texi: New file.
4967 * doc/as.texinfo: Add SH64 support.
4968 2001-03-13 DJ Delorie <dj@redhat.com>
4969 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4970 A_REUSE_PREV so that its purpose is more obvious.
4971 (shmedia_build_Mytes): Ditto.
4972 2001-03-07 DJ Delorie <dj@redhat.com>
4973 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4975 (sh64_vtable_inherit): Ditto.
4976 (strip_datalabels): New, strip "datalabel" from given line.
4977 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4979 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4980 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4982 (shmedia_build_Mytes): ... to here.
4983 2001-03-06 DJ Delorie <dj@redhat.com>
4984 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4986 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4987 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4988 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4989 address by one in call to dwarf2_emit_insn.
4990 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4991 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4992 alignment handling broken by imported changes.
4993 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4994 (sh64_handle_align): Declare.
4995 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4996 (sh64_max_mem_for_rs_align_code): Declare.
4997 (enum sh64_isa_values): Moved here from tc-sh64.c.
4998 (md_do_align): Define.
4999 (sh64_do_align): Declare.
5000 (struct sh64_tc_frag_data): New.
5001 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
5003 (TC_FRAG_INIT): Change to set new datatype.
5004 (struct sh64_segment_info_type): Rename member
5005 last_flushed_location to last_contents_mark. All users changed.
5006 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
5007 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
5008 * config/tc-sh.c (md_pseudo_table): Add ".abi".
5009 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
5010 of unsetting seen_insn.
5011 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
5012 call sh64_update_contents_mark.
5013 (sh_handle_align): Remove HAVE_SH64-conditioned code.
5014 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
5015 enum sh64_isa_values.
5016 (sh64_set_contents_type): Drop segT parameter. All callers changed.
5017 (emitting_crange): Boolean guard moved to file scope from function
5018 scope in sh64_set_contents_type.
5020 (sh64_update_contents_mark): New; most split out from
5021 sh64_flush_pending_output.
5022 (shmedia_md_end): Call sh64_update_contents_mark. Set
5023 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5024 (sh64_do_align): New function.
5025 (sh64_max_mem_for_rs_align_code): New function.
5026 (sh64_handle_align): Rename from shmedia_do_align. Make
5027 non-static. Add head comment. Emit zero bytes for n bytes modulo
5028 four. Change return-type to void.
5029 (shmedia_elf_new_section): Remove.
5030 (shmedia_md_assemble): Call sh64_update_contents_mark.
5031 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5032 new frag. Call sh64_update_contents_mark after making the new
5034 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5035 and sh_flush_pending_output.
5036 (sh64_flag_output): Also call md_flush_pending_output, but add
5037 condition on not emitting_crange.
5038 (sh64_tc_cons_fix_new): Remove.
5039 2001-01-12 Nick Clifton <nickc@redhat.com>
5040 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5041 alignment handling scheme imported from sourceware.
5042 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5043 * config/tc-sh64.h (TARGET_FORMAT): Define.
5044 (sh64_target_format): Prototype.
5045 * config/tc-sh64.c (sh64_target_mach): New function.
5046 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5047 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5048 zero_address_frag instead of copying the frag of the symbol.
5049 (shmedia_frob_file_before_adjust): Ditto.
5050 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5051 to valueT to remove signedness.
5052 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5053 headers to output_bfd. Do not evaluate symbols if final is false;
5055 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5056 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5057 to the current frag, call shmedia_md_convert_frag to emit fixups
5058 and make frag_wane neutralize the frag. Update comments.
5059 * config/tc-sh.c (md_convert_frag): Change caller of
5060 shmedia_md_convert_frag.
5061 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5062 * config/tc-sh64.h: Tweak comments and correct formatting.
5063 * config/tc-sh64.c: Ditto.
5064 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5065 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5066 for the no-relocation case.
5067 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5068 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5070 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5072 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5073 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5075 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5077 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5078 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5079 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5080 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5081 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5082 if reloc is emitted.
5083 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5084 New options plus bugfixes.
5085 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5087 (md_parse_option): Handle new options.
5088 (md_show_usage): Add blurb for new options.
5089 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5090 (sh64_expand, sh64_pt32): New variables.
5091 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5092 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5093 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5094 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5095 <resolved previously-pc-relative relocs>: Handle
5096 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5097 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5098 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5099 points to SHcompact code.
5100 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5101 SH64PCREL16)>: Check that ISA of what operand points at and
5102 PTA/PTB matches, or emit error.
5103 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5104 SHMEDIA_BFD_RELOC_PT.
5105 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5107 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5108 condition for MOVI expansion.
5109 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5110 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5112 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5114 (sh64_target_format): Error-check setting of sh64_pt32 and
5115 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5116 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5117 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5118 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5119 * config/tc-sh64.c: Improve comments.
5120 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5121 not say the linker will check correctness of PTA/PTB expansion.
5122 (shmedia_md_end): Make non-static.
5123 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5125 * config/tc-sh.c (sh_finalize): Remove.
5126 * config/tc-sh.h (md_end): Do not define.
5127 Remove prototype for sh_finalize.
5128 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5129 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5130 sh64_section_data container when storing section type in tdata
5131 field in elf_section_data.
5132 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5134 * Makefile.am: Update dependencies.
5135 * Makefile.in: Regenerate.
5136 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5137 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5138 dwarf2_emit_insn call with test on debug_type.
5139 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5140 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5141 CRT_SH5_ISA32 sticky for 64-bit.
5142 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5143 Generate .crange sections when switching ISA mode or emitting
5144 constants in same section as code.
5145 * config/tc-sh64.c: Reformat structure definitions.
5146 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5148 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5149 to emit a .cranges descriptor when contents type changes. Only
5150 emit error if changing contents type and -no-mix is in effect.
5151 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5152 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5153 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5154 sh64_flush_last_crange over sections.
5155 When checking main symbol of datalabel symbol, check for
5156 STO_SH5_ISA32, not ISA type of section in definition.
5157 (shmedia_frob_file_before_adjust): Check main symbol for
5158 STO_SH5_ISA32; don't check ISA type of section in definition.
5159 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5160 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5161 .cranges entries have been output.
5162 (shmedia_elf_new_section): Just call md_flush_pending_output.
5163 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5164 fix. Do not set tc_segment_info_data.in_code for section. Call
5165 sh64_set_contents_type for SHmedia code.
5166 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5167 false. Call md_flush_pending_output.
5168 (sh64_target_format): Check that -no-mix and
5169 -shcompact-const-crange are used in sane combination with other
5171 (shmedia_md_pcrel_from_section): Check type of fix for how to
5173 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5174 not ISA type of section in definition.
5175 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5176 hold contents-type state.
5177 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5178 (sh64_flush_pending_output): Declare.
5179 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5180 (sh64_tc_cons_fix_new): Declare.
5181 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5182 call sh64_flag_output.
5183 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5184 call sh64_set_contents_type to mark SHcompact code and set
5186 (md_longopts): New options "-no-mix" and
5187 "-shcompact-const-crange".
5188 (md_parse_option): Handle new options.
5189 (md_show_usage): Add blurb for new options.
5190 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5191 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5192 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5193 (sh64_last_insn_frag): New.
5194 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5195 to get frag for insn opcode for generating fixups; do not assume it
5197 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5199 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5201 (TC_FRAG_TYPE): Define as fragS *.
5202 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5203 (sh64_last_insn_frag): Declare.
5204 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5205 not == NULL before dereferencing.
5206 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5207 Get rid of BFD section flag and EF_SH64_ABI64.
5208 * config/tc-sh64.c (shmedia_frob_section_type): Use
5209 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5210 communicate the section as containing SHmedia code. Describe why.
5211 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5212 EF_SH64 regardless of ABI.
5213 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5214 in error message. Handle resolved expressions for
5215 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5216 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5217 (shmedia_check_limits): Handle BFD_RELOC_64.
5218 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5219 a STO_SH5_ISA32 symbol, only the BFD value.
5220 2000-12-11 Ben Elliston <bje@redhat.com>
5221 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5222 dwarf2_generate_asm_lineno.
5223 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5224 Handle PC-relative MOVI expansions with assembler relaxation.
5225 Generate PC-relative relocs from 16-bit PC-relative expressions.
5226 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5227 (shmedia_md_pcrel_from_section): ...here.
5228 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5229 turned completely resolved. Adjust relocation type for 16-bit
5230 immediate operands that has turned PC-relative. Adjust back for
5231 MD_PCREL_FROM_SECTION being applied twice.
5232 (shmedia_md_convert_frag): Always emit reloc for expression with
5233 global or weak symbol. Handle relaxation result for PC-relative
5235 (shmedia_md_estimate_size_before_relax): An expression with a weak
5236 or global symbol can not be relaxed. Break out tests for
5237 relaxable symbol into variable sym_relaxable.
5238 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5239 UNDEF_MOVI)>: Break out any PC-relative expression and change
5241 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5243 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5244 MOVI expansion. If X_op_symbol of the immediate expression is
5245 set, make an expression symbol for the argument to frag_var.
5246 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5248 (END): Adjust for new relaxations.
5249 (md_relax_table): Add entries for new relaxations.
5250 2000-12-07 Ben Elliston <bje@redhat.com>
5251 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5252 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5253 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5254 SHORI operand offsets in PT/PTA/PTB expansions.
5255 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5256 Implement DataLabel semantics.
5257 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5258 shmedia_frob_file_before_adjust.
5259 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5260 (DATALABEL_SUFFIX): Define.
5261 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5262 symbol list to update "datalabel" symbols to their main symbol
5264 (shmedia_frob_file_before_adjust): New.
5265 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5266 undefined and set STT_DATALABEL.
5267 (sh64_frob_label): Initialize TC symbol field.
5268 (sh64_consume_datalabel): Actually implement semantics. New
5269 parameter operandf, call it instead of expression.
5270 (sh64_exclude_symbol): New.
5271 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5272 to sh64_consume_datalabel.
5273 (tc_symbol_new_hook): Define to tc_frob_symbol.
5274 (TC_SYMFIELD_TYPE): Define to symbolS *.
5275 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5276 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5277 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5279 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5280 generating dwarf2 debug information.
5281 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5282 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5283 elf64-sh64 for the 64-bit ABI.
5284 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5286 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5287 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5289 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5290 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5291 (enum sh64_abi_values): New type.
5292 (enum sh64_isa_values): New type.
5293 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5294 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5295 (sh64_abi): Replace shmedia_64.
5296 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5297 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5298 (s_sh64_mode): Check validity for this target.
5299 (sh64_target_format): Initialize defaults for ISA and ABI.
5300 Fallback to old object format if no SH64 ISA or ABI has been
5302 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5303 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5304 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5305 * config/tc-sh64.h: Fix typo in comment.
5306 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5307 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5308 <PT fixups for absolute values>: Size will be longest, not
5310 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5311 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5312 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5313 and l1 to hold lowercase of two first characters. Change all
5314 remaining TO_LOWER to tolower.
5315 * config/tc-sh64.c (TO_LOWER): Delete.
5316 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5317 (md_parse_name): Define.
5318 (sh64_consume_datalabel): Declare.
5319 (DOLLAR_DOT): Define.
5320 * config/tc-sh64.c (shmedia_parse_exp): New.
5321 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5322 (shmedia_parse_reg): Remove const from src
5324 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5325 (shmedia_md_assemble): Ditto for op_end variable.
5326 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5327 Use shmedia_parse_exp, not parse_exp.
5328 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5329 parameter. All callers changed.
5330 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5332 (shmedia_parse_reg): Put first two character in local variables.
5333 Use tolower, not TO_LOWER. If no register is found and argtype
5334 indicates a control register, scan shmedia_creg_table
5336 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5337 * Makefile.am (CPU_TYPES): Add sh64.
5338 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5339 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5340 Regenerate dependencies.
5341 * Makefile.in: Regenerate.
5342 * configure.in: Add support for sh64-*-elf*.
5343 * configure: Regenerate.
5344 * config/tc-sh64.h: New.
5345 * config/tc-sh64.c: New.
5346 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5347 .mode, .isa and .uaquad.
5348 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5349 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5350 [HAVE_SH64] (END): Define as 10.
5351 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5352 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5354 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5355 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5356 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5357 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5359 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5360 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5361 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5362 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5363 SHmedia instructions. Handle state-change after switching to
5365 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5366 (md_parse_option) [HAVE_SH64]: Parse new options.
5367 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5368 (md_convert_frag) [HAVE_SH64] <default>: Call
5369 shmedia_md_convert_frag instead of abort.
5370 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5371 BFD_RELOC_SH_SHMEDIA_CODE.
5372 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5373 SHcompact or SHmedia code.
5374 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5375 shmedia_md_apply_fix instead of abort.
5376 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5377 result from calling shmedia_md_estimate_size_before_relax instead
5379 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5381 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5382 shmedia_init_reloc and do nothing more if it returns non-zero.
5383 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5384 * po/POTFILES.in: Regenerate.
5385 * po/gas.pot: Regenerate.
5387 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5389 * config/tc-sh.c (parse_at): Install the correct version of
5392 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5393 assume fixP->fx_subsy is non-NULL.
5395 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5397 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5398 A_DISP_PC_ABS, and adjust it by -4.
5399 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5401 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5402 the operand type is not A_DISP_PC_ABS.
5404 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5406 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5407 common and weak symbols. Handle common and weak symbols as
5408 undefined symbols with regards to GREG handling and merging.
5409 (mmix_frob_file): Ditto.
5411 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5413 * configure.in (hppa-*-netbsd*): New target.
5414 * configure: Regenerate.
5415 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5417 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5419 * config/tc-v850.c: Add missing prototypes amd use old-style
5420 function definitions.
5421 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5422 (sdata_section tdata_section, zdata_section, sbss_section,
5423 tbss_section, zbss_section, rosdata_section, rozdata_section,
5424 scommon_section, tcommon_section, zcommon_section,
5425 call_table_data_section, call_table_text_section): Delete.
5426 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5427 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5428 v850_call_table_data, v850_call_table_text): Delete.
5429 (struct v850_seg_entry): New.
5430 (v850_seg_table): New.
5431 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5432 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5433 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5434 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5437 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5438 recording of alignment.
5439 (md_pseudo_table): Use v850_seg.
5440 (md_begin): Don't init .call_table_data and .call_table_text here.
5441 Set v850_seg_table bss entry.
5443 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5445 Support on-demand global register allocation by passing on
5446 base-plus-offset relocs to the linker.
5447 * config/tc-mmix.c: Tweak and fix typos in comments.
5448 (allocate_undefined_gregs_in_linker): New variable.
5449 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5450 (md_longopts): Add --linker-allocated-gregs.
5451 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5452 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5453 (md_show_usage): Update text for -x. Add text for
5454 --linker-allocated-gregs.
5455 (tc_gen_reloc): Derive default value for addend from val and
5456 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5457 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5458 GREG if allocate_undefined_gregs_in_linker.
5459 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5460 --linker-allocated-gregs.
5461 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5462 --linker-allocated-gregs. Mention that it's implied by -x.
5463 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5464 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5466 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5468 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5470 * Makefile.am: Run "make dep-am"
5471 * Makefile.in: Regenerate.
5473 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5475 * config/tc-or32.c: New file.
5476 * config/tc-or32.h: New file.
5477 * configure.in: Add support for or32 targets.
5478 * configure: Regenerate.
5479 * config/obj-coff.c: Add support for or32 targets.
5480 * config/obj-coff.h: Add support for or32 targets.
5481 * Makefile.am: Add support for or32 targets.
5482 * Makefile.in: Regenerate.
5483 * NEWS: Mention support for OpenRISC.
5484 * doc/Makefile.in: Regenerate.
5485 * po/POTFILES.in: Regenerate.
5486 * po/gas.pot: Regenerate.
5488 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5490 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5493 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5495 * config/tc-mips.c (tc_gen_reloc): Arrange for
5496 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5497 their LO16 parts, even for ELF.
5499 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5501 * config/tc-i386.c: Protect definitions of true and false
5504 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5506 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5507 made because of .weak, if they are neither defined nor used in any
5510 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5512 * configure: Regenerated.
5514 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5516 * doc/Makefile.am (install): Depend on install-info.
5517 * doc/Makefile.in: Regenerate.
5519 2002-01-26 Nick Clifton <nick@redhat.com>
5521 * po/fr.po: Updated version
5523 2002-01-24 Kazu Hirata <kazu@hxi.com>
5525 * config/tc-h8300.c (check_operand): Don't print a warning
5526 when a valid 24-bit address is given to a 16-bit address
5529 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5531 * config/tc-sh.c (sh_elf_suffix): Removed.
5532 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5533 sh_end_of_match, sh_parse_name): New functions.
5534 (sh_elf_cons): Simplify.
5535 (parse_exp): Reject misplaced PIC operands.
5536 (md_undefined_symbol): Simplify.
5537 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5538 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5539 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5540 Complain if subsy remains at the end.
5541 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5542 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5544 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5546 * config/tc-mn10300.c (xr_registers): Move `pc'...
5547 (other_registers): ... here.
5549 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5551 * Makefile.am: Run "make dep-am".
5552 * Makefile.in: Regenerate.
5553 * gas/po/POTFILES.in: Regenerate.
5555 2002-01-21 DJ Delorie <dj@redhat.com>
5557 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5558 stabstr_name allocation permanent, as it will be referenced from
5561 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5563 * configure.in (ia64-*-netbsd*): New target.
5564 * configure: Regenerate.
5566 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5568 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5570 <Detailed description, ARM options>: Ditto.
5571 * doc/c-arm.texi (ARM Options): Ditto.
5573 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5575 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5576 do_mia, do_mar and do_mra respectively.
5577 (do_mav_*): Renamed from do_c_*.
5578 (mav_reg_required_here, mav_parse_offset): Renamed from
5579 cirrus_reg_required_here and cirrus_parse_offset respectively.
5580 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5582 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5583 Keith Walker <keith.walker@arm.com>
5585 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5586 (insns): Add pattern for bxj instruction.
5587 (do_bxj): New function.
5588 (arm_cpus): Add arm926ej.
5589 (arm_archs): Add armv5tej.
5591 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5593 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5595 2002-01-19 Keith Walker <keith.walker@arm.com>
5597 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5599 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5601 * NEWS: Mention new ARM command-line options and VFP support.
5603 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5605 (ARM_CEXT_MAVERICK): Similarly.
5606 (ARM_ANY): Now means any core instruction.
5607 (CPU_DEFAULT): Default to ARM_ANY.
5608 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5609 (pic_code): Declare for all object types. Make type int.
5610 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5611 (march_fpu_opt, mfpu_opt): Declare.
5612 (md_longopts): Tidy up conditional definitions.
5613 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5614 (arm_long_opts): New tables.
5615 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5616 (arm_parse_extension): New function.
5617 (md_parse_option): Rewrite using new table-driven system.
5618 (md_show_usage): Use new table-driven system.
5619 (md_begin): Calculate cpu_variant from command line option data.
5620 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5621 command-line options.
5622 * doc/c-arm.texi: Likewise.
5624 2002-01-18 Andreas Jaeger <aj@suse.de>
5626 * as.c (parse_args): Update year.
5628 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5630 * config/tc-tic54x.c (encode_address): Add a more informative
5631 warning about incorrect syntax.
5633 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5635 * po/gas.pot: Regenerate.
5637 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5639 * macro.c (get_any_string): Add no-c-format comment to prevent
5640 confusion when translating string.
5641 * gasp.c (get_any_string): Add no-c-format comment to prevent
5642 confusion when translating string.
5644 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5645 Johannes Stezenbach <js@convergence.de>
5646 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5647 matched before the shorter ones.
5648 (my_getSmallParser): Fix handling of nested parentheses in
5649 percent_op's. Code cleanup.
5650 (my_getPercentOp): New function, code from my_getSmallParser.
5651 (my_getSmallExpression): Fix handling of closing parentheses.
5652 Code cleanup. Better comments.
5654 2002-01-16 Nick Clifton <nickc@redhat.com>
5656 po/tr.po: New file: Turkish translation.
5657 configure.in (LINGUAS): Add "tr".
5658 configure: Regenerate.
5660 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5662 Support for VFP instructions
5663 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5664 (cp_address_required_here): New argument wb_ok. When false, do not
5665 accept write-back forms of addressing. Change all callers.
5666 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5667 (FPU_VFP_EXT_V2): Define.
5668 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5669 Define in terms of above.
5670 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5671 (vfp_reg): New struct.
5672 (vfp_regs): New array of registers.
5673 (insns): Add VFP instructions.
5674 (sn_table): New array of VFP single-precision register names.
5675 (dn_table): New array of VFP double-precision register names.
5676 (all_reg_maps): Add the new register tables.
5677 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5678 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5679 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5680 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5681 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5682 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5683 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5684 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5685 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5686 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5687 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5688 (do_vfp_sp_dp_cvt): New functions.
5689 (md_begin): Set soft-float flag for appropriate VFP work.
5690 (md_atof): Handle VFP-format doubles.
5691 (md_parse_option): Handle VFP command-line options.
5692 (md_show_usage): Display VFP command-line options.
5694 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5696 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5697 various command line options.
5699 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5701 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5703 (xstormy16_md_apply_fix3): Do not return a value.
5705 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5707 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5708 the -EL/-EB option that matches the target's endianness.
5709 (md_parse_option): Likewise.
5711 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5713 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5714 is not dependent on ARM_BI_ENDIAN.
5716 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5718 * tc-arm.c (all error messages): Normalize capitalization of messages.
5720 * tc-arm.h (md_operand): Delete define.
5721 * tc-arm.c (in_my_get_expression): New static variable.
5722 (my_get_expression): Set and clear it.
5723 (md_operand): New function. If called from my_get_expression
5724 put the error in inst.error.
5725 (output_inst): Now takes argument of instruction being assembled.
5726 Print it out with any error message.
5727 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5729 (end_of_line): Don't update inst.error if it is already set.
5731 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5733 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5734 op that can be translated into a mvn instruction.
5736 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5738 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5739 setting default md.flags.
5740 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5741 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5742 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5743 for 32 bit unwind info blocks.
5744 (generate_unwind_image): Add support for different types
5745 of unwind images (32 bits and/or big-endian).
5746 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5747 (ia64_target_format): Add support for hpux target formats.
5748 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5749 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5750 SHT_FINI_ARRAY elf section types.
5752 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5754 * tc-arm.c (struct reg_entry): Move before prototypes.
5755 (int_register, cp_register, fp_register): Delete.
5756 (reg_table): Delete. Replaced with ...
5757 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5758 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5759 (mav_dspsc_table): ... one table per register set.
5760 (arm_reg_hsh): Delete.
5761 (struct reg_map): New structure.
5762 (all_reg_maps): New array.
5763 (enum arm_reg_type): New enums.
5764 (build_reg_hsh): New function.
5765 (insert_reg_alias): Use hash table passed by caller. Adjust all
5767 (create_register_alias): New function, split out from ...
5768 (md_assemble): ... here.
5769 (md_begin): Build new register hash tables.
5770 (arm_reg_parse): New argument for the hash table to search. Adjust all
5772 (arm_reg_parse_any): New function.
5773 (co_proc_number): Look up the processor number in the processor hash
5775 (cirrus_regtype): Delete.
5776 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5777 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5778 (ARM_EXT_MAVERICKsc_register): Delete.
5779 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5780 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5782 (do_c_triple_4, do_c_triple_5): Delete.
5783 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5784 (do_c_quad_6): Delete.
5785 (do_c_quad_6[ab]): New functions.
5786 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5787 arguments to use new register parsing methods.
5788 (cirrus_reg_required_here): Likewise.
5789 (insns): Reclassify cirrus maverick worker functions.
5790 (cirrus_valid_reg): Delete.
5792 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5794 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5795 (sh*-*-netbsdelf*): New target.
5796 * configure: Regenerate.
5797 * tc-sh.h: Update copyright years.
5798 (TARGET_FORMAT): Add version for TE_NetBSD.
5800 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5802 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5805 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5807 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5808 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5810 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5812 * tc-mips.c (mips_cprestore_valid): New flag.
5813 (mips_frame_reg_valid): New flag.
5814 (macro) [M_JAL_2]: Check both flags.
5815 [M_JAL_A]: Likewise.
5816 (s_cprestore): Set mips_cprestore_valid.
5817 (tc_get_register): If setting mips_frame_reg, set
5818 mips_frame_reg_valid and clear mips_cprestore_valid.
5819 (s_mips_ent): Clear both flags.
5820 (s_mips_end): Clear both flags.
5822 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5824 * write.c (write_object_file): Make use of bfd_section_list_remove.
5825 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5826 * config/tc-mmix.c (mmix_frob_file): Likewise.
5828 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5830 * configure.in (i386-*-netbsdelf*): Collapse target into...
5831 (i386-*-netbsd*): ...this. Add support for x86-64.
5832 * configure: Regenerated.
5834 2002-01-03 matthew green <mrg@redhat.com>
5836 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5838 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5840 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5843 For older changes see ChangeLog-0001
5849 version-control: never