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