1 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
3 * po/Make-in (DESTDIR): New.
4 (install-data-yes): Support $(DESTDIR).
7 2003-06-11 Alan Modra <amodra@bigpond.net.au>
9 * Makefile.am: Run "make dep-am".
10 * Makefile.in: Regenerate.
11 * po/POTFILES.in: Regenerate.
13 2003-06-10 Doug Evans <dje@sebabeach.org>
15 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
17 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
18 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
19 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
21 2003-06-10 Alan Modra <amodra@bigpond.net.au>
22 Gary Hade <garyhade@us.ibm.com>
24 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
25 (md_apply_fix3): Special case lq insn.
27 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
29 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
30 lists. Allow single-register ranges.
32 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
34 * config/tc-h8300.c (h8300sxnmode): New.
35 (md_pseudo_table): Add .h8300sxn entry.
37 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
39 * NEWS: Updated for the new -n option for the i386 assembler.
41 * config/tc-i386.c (optimize_align_code): New.
42 (md_shortopts): Add 'n'.
43 (md_parse_option): Handle 'n'.
44 (md_show_usage): Add '-n'.
46 * config/tc-i386.h (optimize_align_code): Declared.
47 (md_do_align): Optimize code alignment only if optimize_align_code
50 * doc/as.texinfo: Add the new -n option.
52 * doc/c-i386.texi: Document the new -n option.
54 2003-06-07 Richard Henderson <rth@redhat.com>
56 * doc/as.texinfo: Document .cfi_rel_offset.
58 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
59 (cfi_add_CFA_offset): Detect invalid offsets.
60 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
61 (cfi_add_CFA_restore_state): Restore it.
62 (CFI_rel_offset): New.
63 (cfi_pseudo_table): Add it.
66 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
68 * app.c (do_scrub_chars): Add states 14 and 15 to handle
71 2003-06-05 Michael Snyder <msnyder@redhat.com>
73 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
76 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
78 * config/tc-h8sx.c (DMODE): Remove.
79 (colonmod24): Don't choose a default if the operand is a 16-bit
81 (fix_operand_size): New function.
82 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
83 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
85 2003-06-05 Michal Ludvig <mludvig@suse.cz>
87 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
88 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
89 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
90 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
91 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
92 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
93 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
94 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
95 (cfi_pseudo_table): New directives .cfi_return_column,
96 .cfi_restore, .cfi_undefined, .cfi_same_value,
97 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
98 (dot_cfi, output_cfi_insn): Handle new directives.
99 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
100 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
101 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
103 2003-06-04 Richard Henderson <rth@redhat.com>
105 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
107 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
109 2003-06-04 Richard Henderson <rth@redhat.com>
111 * config/tc-alpha.c (s_alpha_usepv): New.
112 (md_pseudo_table): Add it.
113 (alpha_cfi_frame_initial_instructions): New.
114 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
115 (tc_cfi_frame_initial_instructions): New.
116 * doc/c-alpha.texi: Document .usepv.
118 2003-06-04 Jakub Jelinek <jakub@redhat.com>
120 * as.c (show_usage): Document --execstack and --noexecstack.
121 (parse_args): Add --execstack and --noexecstack.
122 (main): Create .note.GNU-stack section if --execstack or
123 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
124 * as.h (flag_execstack, flag_noexecstack): New.
126 2003-06-03 Chris Demetriou <cgd@broadcom.com>
128 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
129 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
130 (OPTION_MISC_BASE): New defines.
131 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
132 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
133 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
134 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
135 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
136 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
137 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
138 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
139 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
140 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
141 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
142 (OPTION_TRAP): Redefine in terms of new defines.
143 (md_longopts): Reorder entries.
145 2003-05-14 Michael Snyder <msnyder@redhat.com>
146 From Bernd Schmidt <bernds@redhat.com>
147 and Michael Snyder <msnyder@redhat.com>
148 and Alexandre Oliva <aoliva@redhat.com>
149 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
150 * config/tc-h8300.h: Ditto.
152 2003-06-03 Nick Clifton <nickc@redhat.com>
154 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
155 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
156 before calling bfd_reloc_type_lookup.
158 2003-06-02 Alan Modra <amodra@bigpond.net.au>
160 * read.c (emit_expr): Set dot_value.
161 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
163 2003-06-02 Alan Modra <amodra@bigpond.net.au>
165 * macro.c (sub_actual): Don't lose string if it turns out that
166 &string wasn't an arg.
168 2003-05-31 Richard Henderson <rth@redhat.com>
170 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
171 (cfi_finish): Set flag_traditional_format around .eh_frame data.
173 2003-05-29 Richard Henderson <rth@redhat.com>
175 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
176 (all_frame_data, plast_frame_data, cur_frame_data): New.
177 (s_alpha_ent): Record data for dwarf2 cfi.
178 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
179 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
180 * config/tc-alpha.h (md_end): New.
181 (DWARF2_DEFAULT_RETURN_COLUMN): New.
182 (DWARF2_CIE_DATA_ALIGNMENT): New.
184 2003-05-29 Nick Clifton <nickc@redhat.com>
186 * configure.in: Add i386-*-freebsd* entry.
187 * configure: Regenerate.
189 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
191 * config/tc-m32r.c: Amend comment to refer to Renesas
193 2003-05-27 Richard Henderson <rth@redhat.com>
195 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
197 (current_location): Use symbol_temp_new_now.
198 * stabs.c (s_stab_generic): Use symbol_temp_new.
199 * symbols.c (temp_label_name): Remove.
200 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
202 2003-05-27 Richard Henderson <rth@redhat.com>
204 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
205 * as.c (main): Always call cfi_finish.
206 * config/tc-i386.c (x86_dwarf2_return_column): New.
207 (x86_cie_data_alignment): New.
208 (md_begin): Set them.
209 (tc_x86_cfi_init): Remove.
210 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
211 return int, not unsigned long; don't as_bad here.
212 (tc_x86_frame_initial_instructions): Streamline; use
214 * config/tc-i386.h (tc_cfi_init): Remove.
215 (DWARF2_DEFAULT_RETURN_COLUMN): New.
216 (DWARF2_CIE_DATA_ALIGNMENT): New.
218 2003-05-27 Richard Henderson <rth@redhat.com>
220 * symbols.c (temp_label_name): New.
221 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
222 (symbol_set_value_now): New.
223 * symbols.h: Prototype them.
224 * dwarf2dbg.c: Use them.
225 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
227 2003-05-23 Jason Eckhardt <jle@rice.edu>
229 * config/tc-i860.c (target_xp): Declare variable.
230 (OPTION_XP): Declare macro.
231 (md_longopts): Add option -mxp.
232 (md_parse_option): Set target_xp.
233 (md_show_usage): Add -mxp usage.
234 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
235 (md_assemble): Don't try expansions if XP_ONLY is set.
236 * doc/c-i860.texi: Document -mxp option and i860XP support.
238 2003-05-23 Eric Christopher <echristo@redhat.com>
240 * config/tc-mips.c (macro_build_jalr): Warning patrol.
242 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
244 * config/tc-mips.c (append_insn): Use actual relocation size for new
245 fixp's. Don't relax overflow checking for partial_inplace relocations.
246 Use the actual relocation type in combined relocs, not just the type
248 (macro_build_jalr): Use actual relocation size for new fix.
249 (s_cpsetup, s_gpdword): Likewise.
251 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
253 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
255 2003-05-22 Nick Clifton <nickc@redhat.com>
257 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
258 section relative offsets for relocs that will not be based on the
260 (xstormy16_md_apply_fix3): Remove previous patch to this
263 2003-05-07 Eric Christopher <echristo@redhat.com>
265 * config/tc-mips.c (mips_abicalls): New variable.
266 (md_parse_option): Use.
269 (mips_elf_final_processing): Set EF_MIPS_PIC and
270 EF_MIPS_CPIC dependent on above.
272 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
274 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
276 2003-05-21 Nick Clifton <nickc@redhat.com>
278 * config/obj-elf.c: Include dwarf2dbg.h.
279 (elf_pseudo_tab): Add .file and .loc.
280 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
281 * config/tc-arm.c: Likewise.
282 * config/tc-h8300.c: Likewise.
283 * config/tc-hppa.c: Likewise.
284 * config/tc-ia64.c: Likewise.
285 * config/tc-m68hc11.c: Likewise.
286 * config/tc-m68k.c: Likewise.
287 * config/tc-mmix.c: Likewise.
288 * config/tc-mn10300.c: Likewise.
289 * config/tc-ppc.c: Likewise.
290 * config/tc-sh.c: Likewise.
291 * config/tc-sparc.c: Likewise.
292 * config/tc-v850.c: Likewise.
293 * config/tc-frv.c: Likewise, and remove redundant inclusion of
295 * config/tc-ip2k.c: Likewise.
296 * config/tc-iq2000.c: Likewise.
297 * config/tc-xstormy16.c: Likewise.
298 * config/tc-xtensa.c: Likewise.
299 * Makefile.am: Regenerate dependencies.
300 * Makefile.in: Regenerate.
301 * aclocal.m4: Regenerate.
302 * config.in: Regenerate.
303 * configure: Regenerate.
304 * po/POTFILES.in: Regenerate.
305 * po/gas.pot: Regenerate.
307 2003-05-21 Nick Clifton <nickc@redhat.com>
309 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
310 BFD_ASSEMBLER targets.
311 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
312 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
313 defining BFD_ASSEMBLER.
315 2003-05-20 Michal Ludvig <mludvig@suse.cz>
317 * as.c (main): Remove tc_cfi_init().
318 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
320 (cfi_pseudo_table): Add "cfi_register" entry.
321 (cfi_make_insn): Handle CFA_register.
322 (cfi_output_insn): Ditto.
324 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
325 (dot_cfi_endproc): Reuse already emitted CIEs.
326 * testsuite/gas/cfi/cfi-i386.d: New pattern.
327 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
329 2003-05-20 Nick Clifton <nickc@redhat.com>
331 * config/tc-xstormy16.c: Include dwarf2dbg.h.
332 (md_pseudo_table): Add entries for .loc and .line.
334 2003-05-20 Alan Modra <amodra@bigpond.net.au>
336 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
338 (dot_cfi_endproc): Avoid C99 construct.
340 2003-05-20 Michal Ludvig <mludvig@suse.cz>
342 * dw2gencfi.c, dw2gencfi.h: New files.
343 * config/tc-i386.c (tc_x86_cfi_init): New function.
344 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
345 * as.c (parse_args): Set verbose flag on --verbose.
346 (main): Call tc_cfi_init()/cfi_finish().
347 * as.h (verbose): New external variable.
348 * read.c (pobegin): Insert CFI pops to the list.
349 * symbols.c (local_symbol_make): Make symbol external.
350 * symbols.h (local_symbol_make): New prototype.
351 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
352 * Makefile.in: Regenerate.
353 * doc/as.texinfo: Added node "CFI directives" with description of
354 all implemented .cfi_* directives.
355 * doc/Makefile.in: Regenerate.
356 * po/POTFILES.in: Regenerate.
358 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
360 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
362 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
364 2003-05-18 Jason Eckhardt <jle@rice.edu>
366 * config/tc-i860.c (i860_process_insn): Initialize fc after
367 each opcode mismatch.
369 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
371 * configure.in: Accept i[3-7]86 variants.
372 * configure: Regenerate.
374 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
376 * config/tc-mips.h: Fix comment formatting.
378 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
380 * read.c (old_buffer, old_input, old_limit): Remove variables.
381 (read_a_source_file): Delete label contin.
382 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
383 input as with macros, instead of in separate old_* variables.
384 Zero-terminate string being scrubbed.
386 2003-05-12 Nick Clifton <nickc@redhat.com>
388 * config/tc-xstormy16.c (skipping_fptr): New local variable.
389 (md_assemble): Reset skipping_fptr.
390 (md_operand): If @fptr() is followed by a minus sign, set
391 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
392 @fptr is detected, ignore it and reset skipping_fptr.
394 2003-05-11 Jason Eckhardt <jle@rice.edu>
396 * config/tc-i860.c (MAX_FIXUPS): Define.
397 (struct i860_fi fi[]): New struct.
398 (struct i860_it the_insn): Add above as member and move fields
399 exp, reloc, pcrel and fup into i860_fi.
400 (md_assemble): Replace all instances of exp, reloc, pcrel
401 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
402 Add a loop to possibly emit multiple fix-ups for each insn.
403 (i860_process_insn): Likewise.
404 (i860_get_expression): Likewise.
405 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
407 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
409 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
411 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
413 * config/tc-ia64.c (alias_hash): New.
414 (alias_name_hash): New.
415 (secalias_hash): New.
416 (secalias_name_hash): New.
417 (md_pseudo_table): Add "secalias".
418 (md_begin): Initialize alias_hash, alias_name_hash,
419 secalias_hash and secalias_name_hash.
421 (dot_alias): Implement .alias and .secalias directives.
423 (ia64_adjust_symtab): New.
425 (ia64_frob_file): New.
427 * config/tc-ia64.h (ia64_adjust_symtab): New.
428 (tc_adjust_symtab): Defined.
429 (ia64_frob_file): New.
430 (tc_frob_file): Defined.
432 2003-05-07 Dmitry Diky <diwil@mail.ru>
434 * tc-msp430.c: Add missing lines to known cpus list.
436 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
438 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
439 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
440 * config.in, configure: Rebuilt.
442 2003-05-05 H.J. Lu <hjl@gnu.org>
444 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
445 howto->partial_inplace is false.
447 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
449 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
450 symbol_used_in_reloc_p check.
451 (md_apply_fix3): Remove check for howto->pcrel_offset.
453 2003-05-03 H.J. Lu <hjl@gnu.org>
455 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
456 fatal error for unknown section attribute.
458 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
459 unknown section attribute.
460 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
461 * config/tc-ppc.c (ppc_section_letter): Likewise.
463 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
464 (ia64_elf_section_type): Accept "unwind".
466 2003-05-02 H.J. Lu <hjl@gnu.org>
468 * read.h (demand_copy_string): New.
470 * config/tc-alpha.c (demand_copy_string): Removed.
472 2003-05-02 Michael Snyder <msnyder@redhat.com>
474 * write.h (FAKE_LABEL_NAME): Allow override
475 (for targets that like eg. a leading dot in a local label).
477 2003-05-02 Nick Clifton <nickc@redhat.com>
479 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
480 addend with the symbol's value for pc-relative relocations against
481 a defined symbol - this will be done automatically.
483 2003-05-01 H.J. Lu <hjl@gnu.org>
485 * config/obj-elf.c (obj_elf_type): Accept "notype" and
488 2003-05-01 H.J. Lu <hjl@gnu.org>
490 * config/tc-ia64.h (tc_canonicalize_section_name): New.
492 * config/obj-elf.c (obj_elf_section_name): Call
493 tc_canonicalize_section_name if it is defined.
495 2003-05-01 H.J. Lu <hjl@gnu.org>
497 * config/tc-ia64.c (ia64_check_label): New.
498 * config/tc-ia64.h (tc_check_label): New.
500 * read.c (read_a_source_file): Call tc_check_label after
501 creating a user-defined label if defined.
503 2003-05-02 Alan Modra <amodra@bigpond.net.au>
505 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
506 -be and split strings to below 509 bytes in length.
508 2003-05-01 Christian Groessler <chris@groessler.org>
510 * expr.h: Fix comments in operatorT typedef.
511 * config/tc-z8k.c: Add 2003 to copyright message.
512 Fold s_segm() and s_unseg() into one function s_segm(parm) which
513 decides by the parameter.
514 (md_begin): Don't set linkrelax. Only set Z8002 default if no
515 command line argument was given to select the intended
517 (get_interrupt_operand): Warn if NOP type code is emitted.
518 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
519 (apply_fix): Call newfix with additional 'size' parameter.
520 (build_bytes): Remove unused variable 'nib'. Detect overflow in
521 4 bit immediate arguments.
522 (md_longopts): Add 'linkrelax' option.
523 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
524 variable when 'linkrelax' command line option is specified.
525 (md_show_usage): Display 'linkrelax' option.
526 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
528 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
530 2003-04-30 H.J. Lu <hjl@gnu.org>
532 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
533 (ia64_float_to_chars): Likewise.
534 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
535 and ia64_float_to_chars by tc_segment_info_data.endian from
536 the current segment if byteorder == -1.
537 (md_begin): Call dot_byteorder to set target_big_endian.
538 (md_atof): Call ia64_float_to_chars to convert floating point.
539 (ia64_float_to_chars_bigendian): New function.
540 (ia64_float_to_chars_littleendian): Likewise.
541 (ia64_elf_section_change_hook): Likewise.
543 * config/tc-ia64.h (ia64_number_to_chars): New.
544 (md_number_to_chars): Changed to (*ia64_number_to_chars)
545 (ia64_elf_section_change_hook): New.
546 (md_elf_section_change_hook): Defined.
547 (ia64_segment_info_type): New struct.
548 (TC_SEGMENT_INFO_TYPE): Defined.
550 2003-04-30 H.J. Lu <hjl@gnu.org>
552 * config/tc-ia64.c (md_section_align): Deleted.
554 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
555 (md_section_align): New.
557 2003-04-30 H.J. Lu <hjl@gnu.org>
559 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
561 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
563 (md_atof): Add 6 byte padding of zero for real16.
565 2003-04-29 Nick Clifton <nickc@redhat.com>
567 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
568 start of a version name.
570 2003-04-28 Chris Demetriou <cgd@broadcom.com>
572 * configure.in (mips-*-*n*bsd*): Replace with...
573 (mips-*-netbsd*, mips-*-openbsd*): These.
574 * configure: Regenerate.
576 2003-04-28 H.J. Lu <hjl@gnu.org>
578 * config/tc-hppa.c (hppa_symbol_chars): New.
579 * config/tc-hppa.h (tc_symbol_chars): Likewise.
581 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
583 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
585 2003-04-25 Chris Demetriou <cgd@broadcom.com>
587 * NEWS: Belatedly mention support for MIPS32 Release 2.
589 2003-04-24 Eric Christopher <echristo@redhat.com>
591 * config/tc-mips.c (nopic_need_relax): Revert previous
594 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
596 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
597 * config/tc-h8300.c (dwarf2dbg.h): Include
598 (md_pseudo_table): Handle .loc and .file
599 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
600 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
601 * Makefile.in: Regenerate.
603 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
605 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
606 (md_pseudo_table): Add h8300hn, h8300sn.
607 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
608 * doc/c-h8300.texi : Add documentation for new machine directives.
610 2003-04-24 Nick Clifton <nickc@redhat.com>
612 * config/tc-ppc.c (ppc_symbol_chars): Define.
613 * config/tc-ppc.h (tc_symbol_chars): Define.
615 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
617 * config/tc-sh.c: Amend comment to refer to SuperH.
618 * config/tc-sh.h: Likewise.
619 (LISTING_HEADER): Amend to refer to SuperH.
620 * config/tc-sh64.c: Change comment to refer to SuperH.
621 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
622 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
623 * doc/c-sh.texi: Amend to refer to SuperH.
624 Add SuperH architecture documentation references.
625 * doc/c-sh64.texi: Change to refer to SuperH.
627 2003-04-23 H.J. Lu <hjl@gnu.org>
629 * app.c (do_scrub_chars): More checks for valid labels.
631 2003-04-22 H.J. Lu <hjl@gnu.org>
633 * app.c (do_scrub_chars): Check for valid label.
635 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
637 * doc/as.texinfo: Replace references to Mitsubishi M32R with
638 references to Renesas M32R.
639 * doc/c-m32r.texi: Likewise.
641 2003-04-21 Richard Henderson <rth@redhat.com>
643 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
644 (out_file_list): Assign non-null filename after generating error.
646 2003-04-18 Jakub Jelinek <jakub@redhat.com>
648 * ehopt.c (check_eh_frame): For aug_size == 0
649 in state_seeing_aug_size state skip the state_skipping_aug
652 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
654 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
656 * doc/c-h8500.texi: Likewise.
657 * doc/c-sh.texi: Likewise.
658 * doc/c-sh64.texi: Likewise.
659 * doc/h8.texi: Likewise.
660 * config/tc-h8300.c: Likewise.
661 * config/tc-h8300.h: Likewise.
662 * config/tc-h8500.c: Likewise.
663 * config/tc-h8500.h: Likewise.
664 * config/tc-sh.c: Likewise.
665 * config/tc-sh.h: Likewise.
666 * config/tc-sh64.c: Likewise.
667 * config/tc-sh64.h: Likewise.
669 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
671 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
672 * config/tc-mips.c: Use signed add for n32 address arithmetic.
673 (append_insn): When filling delay slots with instructions
674 that have fixups that tc_gen_reloc might consider modifyable
675 in variant frags, start a new frag.
676 (load_address): Generate GOT_DISP with of without offset
677 depending on whether symbol is local. For -xgot, use
678 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
679 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
680 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
681 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
682 <ld_st>: In NewABI with small got, always use
683 GOT_PAGE/GOT_OFST, with the latter in the load/store
684 instruction. With big got, use GOT_HI16/GOT_LO16 or
686 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
687 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
688 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
689 (md_convert_frag): Use memmove for safe copying of overlapping
692 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
694 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
695 -mlong, -mshort-double and -mlong-double options; use table @code.
696 (M68HC11-Syntax): Update to document 68HC12 operands.
697 (M68HC11-Modifiers): New section for operand modifiers.
698 (M68HC11-Directives): New section for specific assembler directives.
699 (M68HC11-Branch): Fix Overfull hbox error.
701 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
703 * config/tc-mips.c (macro): Add comments explaining the rationale
706 2003-04-09 Chris Demetriou <cgd@broadcom.com>
708 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
709 constant address that Alexandre took out by accident. Reject
710 64-bit addresses that are not sign extensions of 32 bits only if
711 we don't support 64-bit address constants.
713 2003-04-09 Alan Modra <amodra@bigpond.net.au>
715 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
717 2003-04-08 Nick Clifton <nickc@redhat.com>
719 * as.c (perform_an_assembly_pass): If using cgen, call
721 * cgen.c (gas_cgen_begin): New function. If
722 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
723 otherwise call cgen_clear_signed_overflow_ok.
724 * cgen.h: Prototype gas_cgen_begin.
726 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
728 * write.c (write_relocs): Remove unused variable.
730 2003-04-06 Chris Demetriou <cgd@broadcom.com>
732 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
733 (macro): Use new macro to decide whether to emit constant address
734 as 32 or 64 bits if addresses are 32-bit wide but registers are
737 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
739 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
740 (M6811_OP_PAGE_ADDR): New internal define.
741 (get_operand): New modifier %page and %addr to obtain page and
742 address part of a far-function.
743 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
744 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
746 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
747 (find_opcode): Add comment.
748 (md_estimate_size_before_relax): Force relocation of
749 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
750 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
751 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
752 on the symbol itself so that DWARF2 strings are merged correctly.
754 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
756 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
757 default tic4x target format to 'coff2-tic4x'.
758 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
760 * config/tc-tic4x.h: Ditto
762 2003-04-03 Nick Clifton <nickc@redhat.com>
764 * NEWS: Mention support for Xtensa architecture.
766 2003-04-02 Philip Blundell <philb@gnu.org>
768 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
770 2003-04-02 Chris Demetriou <cgd@broadcom.com>
772 * config/tc-mips.c (macro2): Adjust implementation of
773 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
774 in the case where the source and destination registers
777 2003-04-01 Bob Wilson <bob.wilson@acm.org>
779 * Makefile.am (CPU_TYPES): Add xtensa.
780 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
781 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
782 (xtensa-relax.o): New target.
784 * Makefile.in: Regenerate.
785 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
786 extra_objects for xtensa targets.
787 * configure: Regenerate.
788 * write.c (write_object_file): Add new md_post_relax_hook.
789 * config/tc-xtensa.c: New file.
790 * config/tc-xtensa.h: Likewise.
791 * config/xtensa-istack.h: Likewise.
792 * config/xtensa-relax.c: Likewise.
793 * config/xtensa-relax.h: Likewise.
794 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
795 * doc/Makefile.in: Regenerate.
796 * doc/all.texi: Set new XTENSA variable.
797 * doc/as.texinfo: Set new Xtensa variable. Describe
798 Xtensa-specific options. Define line comment character for
799 Xtensa. Add Xtensa processors to list of ELF targets where
800 alignment is specified in bytes. Add new Xtensa-Dependent node.
801 Add acknowledgements for those contributing to the Xtensa port.
802 * doc/internals.texi: Describe new md_post_relax_hook.
803 * doc/c-xtensa.texi: New file.
805 2003-04-01 Nick Clifton <nickc@redhat.com>
806 Richard Earnshaw <rearnsha@arm.com>
808 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
809 (ARM_ARCH_IWMMXT): Simplify.
810 (insns): Place iwmmx instructions in correct place in table.
811 (arm_add_note): New function: Add a note entry to a .note section.
812 (md_begin): Make the default architecture be unknown.
813 Suppress the creation of an arm note section.
815 2003-03-26 Eric Christopher <echristo@redhat.com>
817 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
819 2003-03-25 Stan Cox <scox@redhat.com>
820 Nick Clifton <nickc@redhat.com>
822 Contribute support for Intel's iWMMXt chip - an ARM variant:
824 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
825 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
826 (enum wreg_type, enum iwmmxt_insn_type): New types.
827 (wr_register, wc_register, wcg_register): New macros.
828 (iwmmxt_table): New variable.
829 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
830 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
831 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
832 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
833 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
834 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
835 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
836 cp_byte_address_offset, cp_byte_address_required_here,
837 check_iwmmxt_insn): New functions.
838 (asm_opcode_insns): Add iWMMXt instructions.
839 (md_begin): Set the mach value for iWMMXt targets. Create a note
840 section to identify iwmmxt binaries.
841 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
842 * doc/c-arm.texi: Document the support for the iWMMXt.
843 * NEWS: Mention new support.
845 2003-03-24 Daniel Néri <dne@mayonnaise.net>
847 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
848 * doc/all.texi: Likewise.
849 * doc/c-tic54x.texi: Likewise.
851 2003-03-21 Andreas Schwab <schwab@suse.de>
853 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
854 avoid aliasing issue.
856 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
858 * config/tc-s390.c (s390_arch_size): Initialize to zero.
859 (current_arch_mask): Rename to current_mode_mask.
860 (current_arch_requested): Remove variable.
861 (current_cpu): New variable.
862 (init_default_arch): Set defaults values for s390_arch_size,
863 current_mode_mask and current_cpu.
864 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
865 (md_begin): Replace current_arch_mask by current_cpu.
866 (md_assemble): Adapt check and error message to current_mode_mask and
869 2003-03-09 James E Wilson <wilson@tuliptree.org>
871 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
872 * read.c (get_line_sb): Return end of line character or '\n' if
873 it is zero or non-existent.
875 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
877 * config/tc-mips.c (mips_validate_fix): New function.
878 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
879 (mips_validate_fix): Declare.
881 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
883 * Reverted 2003-03-02's patch.
885 2003-03-11 Steve Ellcey <sje@cup.hp.com>
887 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
888 (TC_DWARF2_EMIT_OFFSET): Provide default.
889 (out_debug_aranges, out_debug_info): Use it.
890 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
891 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
892 (ia64_gen_real_reloc_type): ... here.
893 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
895 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
897 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
898 (s_mips_ent): Likewise.
900 2003-03-04 Dmitry Diky <diwil@mail.ru>
902 * config/tc-msp430.c (mcu_types): Add recently announced x1122
903 and x1123 devices, add missed x437.
904 (md_show_usage): Sort device list.
906 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
908 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
909 (md_begin): Use preset_target_arch.
910 (md_longopts): Make isa option unconditional.
911 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
912 set preset_target_arch.
913 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
914 by -S_GET_VALUE (fixP->fx_subsy).
915 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
917 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
918 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
920 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
922 * config/tc-mips.c (append_insn): Add handling of
923 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
924 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
925 misaligned address and reange overflow.
926 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
927 earlier warnings about misaligned address and reange overflow.
928 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
929 (md_apply_fix): Likewise. Fix warning output.
930 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
931 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
932 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
934 2003-02-21 Nick Clifton <nickc@redhat.com>
936 * NEWS: Mention availability of test generator program.
938 2003-02-21 Miles Bader <miles@gnu.org>
940 * config/tc-v850.c (system_registers): Add v850e debug registers.
941 (system_register_name): Accept up to 27 (the last v850e sys register).
943 2003-02-21 Bob Wilson <bob.wilson@acm.org>
945 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
946 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
947 Capitalize section headings consistently. Format index entries more
948 consistently. Unconditionalize text about whether text and data
949 sections are alterable. Use @ifnottex for alternatives to @tex output
950 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
951 .size and .type directives. Be more polite about bad bug reports.
952 Move FDL into a separate file.
953 * doc/fdl.texi: New file.
955 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
957 * config/tc-mips.c (prev_reloc_op_frag): New variable.
958 (macro): Check it to decide whether a new frag is needed.
959 (my_getSmallExpression): Set it.
961 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
963 * cgen.c: Fix typo: intial -> initial.
965 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
967 * app.c (do_scrub_chars): Handle '||' in two states.
969 2003-02-13 Alan Modra <amodra@bigpond.net.au>
971 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
972 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
974 2003-02-11 Uwe Stieber <uwe@wwws.de>
976 * configure.in: Add support for kaOS as cross build target system.
977 * configure: Regenerated.
979 2003-02-10 Nick Clifton <nickc@redhat.com>
981 * config/tc-arm.c (md_begin): If the Maverick co-processor is
982 selected, set the EF_ARM_MAVERICK_FLOAT flag and
983 bfd_mach_arm_ep9312 machine number.
985 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
987 * config/tc-mips.c (reloc_needs_lo_p): New function.
988 (fixup_has_matching_lo_p): New function.
989 (append_insn): Use reloc_needs_lo_p to check whether a relocation
990 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
991 if that fixup already has a matching %lo(). Don't call frag_wane here.
992 (macro): Call frag_wane here if the last unmatched hi was in the
994 (pic_need_relax): New function, split out from...
995 (md_estimate_size_before_relax): ...here.
996 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
997 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
999 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
1001 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
1003 2003-02-06 Alan Modra <amodra@bigpond.net.au>
1005 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
1008 2003-02-05 Alan Modra <amodra@bigpond.net.au>
1010 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
1011 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
1012 accept x@got+off etc.
1013 (md_assemble): Handle TLS relocs.
1014 (ppc_force_relocation): Force for all TLS relocs.
1015 (ppc_fix_adjustable): Likewise.
1016 (md_apply_fix3): Handle TLS relocs.
1018 2003-02-04 Alan Modra <amodra@bigpond.net.au>
1020 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
1021 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
1023 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
1025 * config/tc-mips.c (enum small_ex_type): Remove.
1026 (imm_unmatched_hi): Remove.
1027 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
1028 argument from calls to append_insn.
1029 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1031 (macro_build): Update append_insn calls.
1032 (mips16_macro_build, macro_build_lui): Likewise.
1033 (mips_ip): Rework handling of small expressions. Move explicit
1034 relocation handling into my_getSmallExpression. Assume that the
1035 value of 'o' operands is zero if there is only one bracketed
1037 (percent_op): Make constant. Record the BFD relocation code
1038 associated with each operator.
1039 (my_getSmallParser, my_getPercentOp): Remove.
1040 (parse_relocation): New function.
1041 (my_getSamllExpression): Rework. Fill in relocations here
1042 rather than in mips_ip.
1044 2003-01-29 Nick Clifton <nickc@redhat.com>
1046 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1047 assembler's handling of # <linenum> "<filename>" directives work.
1049 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1051 * dwarf2dbg.c: Include filenames.h.
1052 (struct file_entry): Make filename const char *.
1053 (dirs, dirs_in_use, dirs_allocated): New variables.
1054 (get_filenum): Add NUM argument. Build directory table.
1055 (dwarf2_where): Adjust caller.
1056 (dwarf2_directive_file): Use get_filenum to allocate
1057 slot in file and directory tables.
1058 (dwarf2_directive_loc): Recreate full filename from
1059 directory and filename part if needed for listing.
1060 (out_file_list): Output directory table.
1061 Output main source file dirname before its filename.
1063 2003-01-28 Dmitry Diky <diwil@mail.ru>
1065 * config/tc-msp430.c: Replace occurences of 'tolower' with
1068 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1070 * config/tc-ia64.c (dot_vframesp): Correct error message.
1071 (dot_vframepsp): Ditto.
1073 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1075 * configure.in (em): Set to irix on all Irix systems.
1076 * configure: Rebuilt.
1077 * config/te-irix.h: New file.
1078 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1079 whether to use Irix-specific 64-bit format.
1081 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1083 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1085 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1087 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1088 (tc_gen_reloc): Handle TLS relocs.
1089 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1090 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1092 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1093 (obj_elf_type): Handle tls_object.
1095 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1097 * config/tc-s390.c (s390_tls_suffix): New function.
1098 (elf_suffix_type): Add suffix enums for TLS relocations.
1099 (s390_elf_suffix): Add suffix strings for TLS relocations.
1100 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1102 (md_gather_operands): Map new instruction operand/elf suffix
1103 combinations for TLS to bfd relocations.
1104 (tc_s390_fix_adjustable): Add new TLS relocations.
1105 (tc_s390_force_relocation): Likewise.
1106 (md_apply_fix3): Likewise.
1108 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1110 * as.h: Update copyright date.
1111 * symbols.c: Likewise.
1112 * config/tc-d10v.h: Likewise.
1113 * config/tc-fr30.h: Likewise.
1114 * config/tc-i960.h: Likewise.
1115 * config/tc-mips.h: Likewise.
1117 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1118 (MD_APPLY_SYM_VALUE): Move.
1120 2003-01-23 Nick Clifton <nickc@redhat.com>
1122 * NEWS: Announce sh2e support.
1125 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1126 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1127 (sh_elf_final_processing): Handle arch_sh2e.
1129 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1131 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1132 * symbols.h (S_FORCE_RELOC): Likewise.
1133 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1134 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1135 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1136 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1137 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1138 * write.c (generic_force_reloc): New function.
1139 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1140 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1141 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1142 * as.h (generic_force_reloc): Declare.
1143 * doc/internals.texi (S_FORCE_RELOC): Update.
1144 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1146 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1147 generic_force_reloc.
1148 (alpha_fix_adjustable): Likewise.
1149 * config/tc-arm.c (arm_force_relocation): Likewise.
1150 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1151 * config/tc-frv.c (frv_force_relocation): Likewise.
1152 * config/tc-i386.c (md_apply_fix3): Likewise.
1153 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1154 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1155 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1156 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1157 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1158 * config/tc-mips.c (mips_force_relocation): Likewise.
1159 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1160 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1161 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1162 * config/tc-sh.c (sh_force_relocation): Likewise.
1163 (md_pcrel_from_section): Likewise.
1164 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1165 * config/tc-v850.c (v850_force_relocation): Likewise.
1166 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1167 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1168 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1169 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1171 * config/tc-d10v.c (d10v_force_relocation): Delete.
1172 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1173 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1174 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1175 * config/tc-fr30.c (fr30_force_relocation): Delete.
1176 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1177 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1178 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1179 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1180 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1181 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1182 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1183 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1184 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1185 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1186 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1187 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1188 * config/tc-i386.c (i386_force_relocation): Delete.
1189 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1191 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1192 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1193 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1194 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1196 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1197 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1199 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1201 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1202 sh64_elf_section_data.
1203 * config/tc-sh64.h: Include elf32-sh64.h.
1204 * config/tc-m68hc11.c: Don't include stdio.h.
1205 (md_show_usage): Fix missing continuation.
1206 * Makefile.am: Run "make dep-am".
1207 * Makefile.in: Regenerate.
1209 2003-01-22 Nick Clifton <nickc@redhat.com>
1211 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1213 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1215 * configure.in: Handle *-*-aros*.
1216 * configure: Regenerated from configure.in.
1218 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1220 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1221 gotplt and pltoff relocations.
1222 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1223 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1224 gotplt and pltoff to bfd relocations.
1225 (md_gather_operands): Map new instruction operand/elf suffix
1226 combinations to bfd relocations.
1227 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1228 to the list of unadjustable relocations.
1229 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1230 and pltoff relocations.
1231 (md_apply_fix3): Add the new relocations.
1233 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1235 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1236 with a subsy symbol.
1238 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1240 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1241 of relocs for memory bank addressing.
1243 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1245 * config/tc-m68hc11.c (md_show_usage): Update usage.
1246 (md_parse_option): Recognize -m68hcs12.
1247 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1249 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1251 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1253 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1255 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1257 * Makefile.am: Run "make dep-am".
1258 * Makefile.in: Regenerate.
1259 * po/POTFILES.in: Regenerate.
1261 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1263 * read.c (get_absolute_expr): New, split out from..
1264 (get_absolute_expression): ..here.
1265 * read.h (get_absolute_expr): Declare.
1266 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1267 Trim size to arch bits_per_address, and test for negative input
1268 via get_absolute_expr.
1270 2003-01-07 DJ Delorie <dj@redhat.com>
1272 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1274 (xstormy16_md_apply_fix3): Use adjustment.
1276 2003-01-02 Ben Elliston <bje@redhat.com>
1278 * configure.in: Add iq2000-elf target.
1279 * configure: Regenerate.
1280 * config/tc-iq2000.c: New file.
1281 * config/tc-iq2000.h: Likewise.
1282 * po/gas.pot: Regenerate.
1284 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1286 * config/tc-mips.c: Update copyright years to include 2003.
1287 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1288 Additionally, clean up their code slightly and clean up their
1291 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1293 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1295 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1297 * doc/Makefile.in: Regenerate.
1299 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1301 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1302 of .init and .fini sections for array initializers and finalizers.
1304 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1306 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1307 the "+D" operand, which will be used only by the disassembler.
1309 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1311 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1313 * configure: Regenerate.
1314 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1315 (macro_build): Handle "K" operand.
1316 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1317 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1318 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1319 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1320 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1321 (validate_mips_insn): Implement "+" as a way to extend the
1322 allowed operands, and implement "K", "+A", "+B", and "+C"
1324 (OPTION_MIPS32R2): New define.
1325 (md_longopts): Add entry for OPTION_MIPS32R2.
1326 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1327 (md_parse_option): Handle OPTION_MIPS32R2.
1328 (s_mipsset): Reimplement handling of ".set mipsN" options
1329 and add support for ".set mips32r2".
1330 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1331 (md_show_usage): Document "-mips32r2" option.
1332 * doc/as.texinfo: Document "-mips32r2" option.
1333 * doc/c-mips.texi: Likewise.
1335 2002-12-30 Dmitry Diky <diwil@mail.ru>
1337 * configure.in: Add msp430 target.
1338 * configure: Regenerate.
1339 * Makefile.am: Add msp430 target.
1340 * Makefile.in: Regenerate.
1341 * config/tc-msp430.c: New file: msp430 assembler.
1342 * config/tc-msp430.h: New file: target macros for msp430.
1343 * doc/Makefile.am: Add msp430 target.
1344 * doc/Makefile.in: Regenerate.
1345 * doc/as.texinfo: Include msp430 documenation.
1346 * doc/all.texi: Enable msp430 documentation.
1347 * doc/c-msp430.texi: New file: document msp430 specific features
1350 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1352 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1353 (dwarf2_finish): Use it.
1354 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1355 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1357 2002-12-20 DJ Delorie <dj@redhat.com>
1359 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1360 BFD_RELOC_XSTORMY16_12.
1362 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1364 * doc/as.texinfo (Invoking): Typo fix.
1365 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1367 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1369 * doc/c-alpha.texi: Fix typos.
1370 * doc/c-arm.texi: Likewise.
1371 * doc/c-d10v.texi: Likewise.
1372 * doc/c-i370.texi: Likewise.
1373 * doc/c-i960.texi: Likewise.
1374 * doc/c-ia64.texi: Likewise.
1375 * doc/c-mmix.texi: Likewise.
1376 * doc/c-ns32k.texi: Likewise.
1377 * doc/c-pdp11.texi: Likewise.
1378 * doc/c-pj.texi: Likewise.
1379 * doc/c-sh64.texi: Likewise.
1380 * doc/c-sparc.texi: Likewise.
1381 * doc/c-tic54x.texi: Likewise.
1382 * doc/c-v850.texi: Likewise.
1383 * doc/c-vax.texi: Likewise.
1384 * doc/internals.texi: Likewise.
1386 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1388 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1389 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1390 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1391 arrange not to issue warnings about use of AT when AT is not
1394 2002-12-17 Nick Clifton <nickc@redhat.com>
1396 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1397 prevent it being confused with -k.
1399 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1401 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1402 has already been set up, use it.
1404 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1406 * ChangeLog-9295: Fix a typo.
1408 * config/tc-d10v.c: Fix a comment typo.
1409 * config/tc-dlx.c: Likewise.
1410 * config/tc-h8300.h: Likewise.
1411 * config/tc-h8500.h: Likewise.
1412 * config/tc-mips.c: Likewise.
1413 * config/tc-s390.c: Likewise.
1414 * config/tc-sh.h: Likewise.
1415 * config/tc-tic80.h: Likewise.
1416 * config/tc-w65.h: Likewise.
1417 * config/tc-z8k.c: Likewise.
1418 * config/tc-z8k.h: Likewise.
1419 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1421 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1423 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1424 Simplify sign extension. Remove redundant unsigned < 0 test.
1425 * config/tc-i960.c (md_ri_to_chars): Prototype.
1426 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1427 (dump_literals): Init brarsym, and test later instead of isforce.
1429 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1430 (parse): Constify line and lineptr.
1431 (md_begin): Calculate endop here.
1433 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1435 * config/obj-vms.c: Formatting. Include fnctl.h.
1436 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1437 (Object_Record_Offset): Make it a size_t.
1438 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1439 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1440 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1441 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1442 (vms_fixup_data_section <data_size>): Add here instead.
1443 * config/e-criself.c: Fix typo in last change.
1445 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1447 * write.c (write_object_file): Fix signed/unsigned warning.
1448 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1449 * config/e-criself.c (criself_bfd_name): Prototype.
1450 * config/obj-aout.c (s_sect): Remove unused function.
1451 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1452 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1453 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1454 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1455 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1456 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1457 (vms_fixup_text_section <text_siz>): Likewise.
1458 (synthesize_data_segment <data_size>): Likewise.
1459 (vms_fixup_xtors_section <sect_no>): Likewise.
1460 (structure_count): Don't use implicit int type.
1461 * config/tc-a29k.c (insert_sreg): Prototype.
1462 (define_some_regs): Prototype, make static.
1463 (parse_operand): Likewise.
1464 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1465 (md_show_usage <stream>): Likewise.
1466 (md_section_align <segment>): Likewise.
1467 (md_convert_frag <all args>): Likewise.
1468 (md_estimate_size_before_relax <all args>): Likewise.
1469 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1470 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1471 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1472 (md_undefined_symbol <name>): Likewise.
1473 (md_convert_frag <all args>): Likewise.
1474 (write_long <opcode>): Likewise.
1475 (tc_gen_reloc <seg>): Likewise.
1476 (md_estimate_size_before_relax <all args>): Likewise.
1477 (md_apply_fix3 <seg>): Likewise.
1478 (s_d30v_align <ignore>): Likewise.
1479 (build_insn): Correct format string.
1480 (md_apply_fix3): Likewise.
1481 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1482 (md_undefined_symbol <name>): Likewise.
1483 (md_convert_frag <all args>): Likewise.
1484 (md_cgen_lookup_reloc <insn>): Likewise.
1485 (md_begin): Delete unused vars.
1486 (md_assemble): Likewise.
1487 (md_estimate_size_before_relax): Likewise.
1488 (fr30_relax_frag): #if 0 out, seems unused.
1489 (md_atof): Remove declaration of atof_ieee.
1490 (restore_colon): Prototype.
1491 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1492 (frv_find_in_vliw): Likewise.
1493 (frv_debug_tomcat): Likewise.
1494 (frv_adjust_vliw_count): Likewise.
1495 (frv_tomcat_shuffle): Likewise.
1496 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1497 frv_find_in_vliw call.
1498 (md_atof): Remove declaration of atof_ieee.
1499 * config/tc-h8500.c (cons): Delete declaration.
1500 (md_begin <opcode>): Constify.
1501 (displacement_size, immediate_size, absolute_size): Remove.
1502 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1503 (tc_crawl_symbol_chain <headers>): Likewise.
1504 (md_undefined_symbol <name>): Likewise.
1505 (tc_headers_hook <headers>): Likewise.
1506 (md_parse_option <c,arg>): Likewise.
1507 (md_show_usage <stream>): Likewise.
1508 (md_convert_frag <headers, seg>): Likewise.
1509 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1510 (md_atof): Remove declaration of atof_ieee.
1511 (tc_aout_fix_to_chars): Remove unused function.
1512 (parse_reg): Prototype.
1513 (parse_exp): Prototype.
1514 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1515 (parse_reglist): Prototype.
1516 (get_operand): Prototype.
1517 (get_operands): Prototype.
1518 (get_specific): Prototype. Make "this_index" signed.
1519 (check): Prototype, make static.
1521 (build_relaxable_instruction): Prototype, make static.
1522 (build_bytes): Prototype.
1523 (wordify_scb): Prototype.
1524 * config/tc-h8500.h (start_label): Declare.
1525 (tc_coff_sizemachdep): Declare.
1526 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1527 (i370_rmode <unused>): Likewise.
1528 (i370_csect <unused>): Likewise.
1529 (i370_dc <unused>): Likewise.
1530 (i370_ds <unused>): Likewise.
1531 (i370_elf_lcomm <unused>): Likewise.
1532 (i370_ltorg <ignore>): Likewise.
1533 (i370_using <ignore>): Likewise.
1534 (i370_drop <ignore>): Likewise.
1535 (i370_byte <ignore>): Likewise.
1536 (i370_tc <ignore>): Likewise.
1537 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1538 (md_convert_frag <all args>): Likewise.
1539 (md_undefined_symbol <name>): Likewise.
1540 (md_pcrel_from_section <sec>): Likewise.
1541 (tc_gen_reloc <seg>): Likewise.
1542 (i370_section_letter): #if 0 unused functions.
1543 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1544 (symbol_locate): Prototype.
1545 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1546 (md_number_to_disp, md_number_to_field): Remove.
1547 (md_apply_fix3): Correct format string and cast "fup".
1548 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1549 (s_endian <ignore>): Likewise.
1550 (md_undefined_symbol <name>): Likewise.
1551 (tc_crawl_symbol_chain <headers>): Likewise.
1552 (tc_set_bal_of_call): Likewise.
1553 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1554 (i960_handle_align <fragp>): Likewise.
1555 (i960_validate_fix <this_segment_type>): Likewise
1556 (tc_gen_reloc <section>): Likewise.
1557 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1558 (struct memS, struct regop): Forward declare.
1559 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1560 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1561 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1562 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1563 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1564 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1565 (md_number_to_field): Likewise.
1566 (md_number_to_disp): Remove unused function.
1567 (md_atof): Remove declaration of atof_ieee.
1568 (md_apply_fix3): Correct md_number_to_imm call.
1569 * config/tc-ip2k.c (md_assemble): Warning fix.
1570 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1571 (fill_insn <ignore>): Likewise.
1572 (debug_sym <ignore>): Likewise.
1573 (md_undefined_symbol <name>): Likewise.
1574 (m32r_scomm <ignore>): Likewise.
1575 (md_convert_frag <abfd>): Likewise.
1576 (md_cgen_lookup_reloc <insn>): Likewise.
1577 (m32r_record_hi16 <seg>): Likewise.
1578 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1579 (allow_m32rx): Prototype.
1580 (first_writes_to_seconds_operands): Prototype.
1581 (writes_to_pc): Prototype.
1582 (can_make_parallel): Prototype.
1583 (make_parallel): Prototype.
1584 (target_make_parallel): Prototype.
1585 (assemble_two_insns): Prototype.
1586 (m32r_record_hi16): Prototype.
1587 (md_atof): Remove declaration of atof_ieee.
1588 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1589 (m32r_force_relocation): Prototype.
1590 (m32r_elf_section_change_hook): Prototype.
1591 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1592 (md_show_usage): Fix signed/unsigned warning.
1593 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1594 (calcop): Ditto for reg_prefix var.
1595 (hexval): Add cast to fix signed/unsigned warning.
1596 (md_number_to_disp): Delete unused function.
1597 (md_number_to_field): Likewise.
1598 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1599 (match_name): Prototype.
1600 (get_bf2): Prototype.
1601 (get_bf_offset_expression): Prototype.
1602 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1603 (md_undefined_symbol <ignore>): Likewise.
1604 (md_create_short_jump <all args>): Likewise.
1605 (md_create_long_jump <all args>): Likewise.
1606 (md_convert_frag <abfd, sec>): Likewise.
1607 (md_apply_fix3 <segment>): Likewise.
1608 (md_section_align <segment>): Likewise.
1609 (md_pcrel_from_section <sec>): Likewise.
1610 (tc_gen_reloc <section>): Likewise.
1611 (reg_m, reg_n, immediate): Delete unused vars.
1612 (dump_literals): Fix signed/unsigned warning.
1613 (enter_literal): Likewise.
1614 (parse_imm): Likewise. Also fix format string.
1615 (parse_mem): Remove unused var.
1616 (md_assemble <LS>): Abort on unexpected inst.
1617 (md_atof): Remove declaration of atof_ieee.
1618 (md_parse_option): Remove unused vars.
1619 (md_apply_fix3): Fix format strings, cast args.
1620 (tc_gen_reloc): Delete unused var.
1621 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1622 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1623 (md_undefined_symbol <name>): Likewise.
1624 (md_convert_frag <abfd>): Likewise.
1625 (tc_gen_reloc <seg>): Likewise.
1626 (check_operand <insn>): Likewise.
1627 (md_convert_frag): Fix format strings.
1628 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1629 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1630 (md_atof): Remove declaration of atof_ieee.
1631 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1632 (md_apply_fix3): Fix bogus >>='s.
1633 (md_undefined_symbol): Delete unused var.
1634 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1635 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1636 (fake_opcode): Adjust for pj_opc_int_t change.
1637 (md_begin): Likewise.
1638 (md_assemble): Likewise.
1639 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1640 instead of non-existent third arg of parse_exp_save_ilp.
1641 (md_parse_option): Correct "little" and "big" calls.
1642 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1643 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1644 (tc_gen_reloc <section>): Likewise.
1645 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1646 (debug): Rewrite using VA_* macros.
1647 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1648 (md_convert_frag): Likewise.
1649 (md_parse_option): Likewise.
1650 (md_show_usage): Likewise.
1651 (md_undefined_symbol): Likewise.
1652 (tc_gen_reloc): Likewise.
1653 (md_operand): Likewise.
1654 (tc_aout_pre_write_hook): Delete.
1655 (struct tic30_insn): Make "operands" unsigned.
1656 (struct tic30_par_insn): Likewise.
1657 (md_assemble): Likewise for "count", "i" and "numops".
1658 (tic30_parallel_insn): Likewise for vars here.
1659 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1660 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1661 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1662 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1663 (md_undefined_symbol): Likewise.
1664 (md_parse_option): Likewise.
1665 (md_convert_frag): Likewise.
1666 (tc_coff_symbol_emit_hook): Likewise.
1667 (md_atof): Remove declaration of atof_ieee.
1668 (const_overflow): Warning fixes, tidy.
1669 (get_operands): Delete unused vars.
1670 (internal_error_a): Adjust format string to expect a long for arg.
1671 (find_opcode): Warning fixes, simplify.
1672 (build_insn): Cast internal_error_a arg.
1673 (md_begin): Likewise.
1674 (md_apply_fix3): Likewise.
1675 (md_assemble): Delete unused var.
1676 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1677 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1678 (whatreg, parse_reg, parse_exp): Make static, prototype.
1679 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1680 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1681 (get_operand, get_operands, get_specific, newfix): Likewise.
1682 (apply_fix, build_bytes): Likewise.
1683 (md_atof): Remove declaration of atof_ieee.
1684 (tc_aout_fix_to_chars): Delete.
1685 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1687 (md_parse_option): Fix s_segm and s_unseg calls.
1689 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1691 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1693 (RELAX_BRANCH_RELOC_S2): Delete.
1694 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1695 Do not handle BFD_RELOC_16_PCREL.
1696 (macro_build, mips_ip): Likewise.
1697 (md_pcrel_from): Return 4 for undefined symbols regardless of
1699 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1700 Don't dereference howto if no such relocation is available.
1701 Do not apply hack for in-place zero addend in NEWABI.
1702 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1704 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1705 Alan Modra <amodra@bigpond.net.au>
1707 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1708 (TC_LINKRELAX_FIXUP): Add comments.
1710 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1712 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1714 (r_register_name, xr_register_name): Add prototype declarations.
1716 2002-12-08 H.J. Lu <hjl@gnu.org>
1718 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1719 copied from tc-i386.c.
1721 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1723 Fix Bug savannah/1825:
1724 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1725 (md_relax_table): Define specific relax for PC-rel offsets.
1726 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1727 (m68hc11_relax_frag): Handle the new relax code.
1728 (md_convert_frag): Likewise.
1729 (md_estimate_size_before_relax): Likewise.
1731 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1733 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1735 2002-12-05 Richard Henderson <rth@redhat.com>
1737 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1738 (ia64_gen_real_reloc_type): Handle it.
1739 (pseudo_func): Add @ltoffx.
1740 (md_begin): Build .<ltoffx>.
1741 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1743 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1745 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1746 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1747 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1748 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1749 COFF to call arm_force_relocation.
1751 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1753 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1755 (emit_one_bundle): Handle "hint" instruction.
1756 (operand_match): Match IA64_OPND_AR_CSD.
1758 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1760 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1763 2002-12-03 Nick Clifton <nickc@redhat.com>
1765 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1766 .PPC.EMB.apuinfo sections.
1768 2002-12-03 Richard Henderson <rth@redhat.com>
1770 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1772 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1774 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1775 (cons, s_align_bytes): Delete declaration.
1777 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1779 (dot): Delete unused function.
1780 (w65_expression): Remove unused arg.
1781 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1783 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1785 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1787 (check): Remove unused function.
1788 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1789 on unhandled switch case.
1790 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1792 (tc_crawl_symbol_chain): Delete unused function.
1793 (tc_headers_hook): Likewise.
1794 (tc_Nout_fix_to_chars): Likewise.
1795 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1796 (md_parse_option): Likewise.
1797 (md_convert_frag): Likewise.
1798 (tc_coff_symbol_emit_hook): Likewise.
1799 (md_show_usage): Likewise.
1800 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1801 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1802 (w65_expression): Declare.
1804 * po/POTFILES.in: Regenerate.
1806 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1807 and ARM_ADRL_IMMEDIATE.
1809 2002-12-02 Nick Clifton <nickc@redhat.com>
1811 * gasp.c: Delete. It has been deprecated.
1812 * NEWS: Mention that gasp has been removed.
1813 * Makefile.am: Remove references to gasp.
1814 * makefile.vms: Likewise.
1815 * mpw-make.sed: Likewise.
1816 * Makeile.in: Regenerate.
1817 * doc/gasp.texi: Delete.
1818 * doc/Makefile.am: Remove references to gasp.texi.
1819 * doc/Makefile.in: Regenerate.
1820 * macro.c: Delete references to gasp.
1821 Remove use of comment_char function parameter as it is no longer
1823 * macro.h: Update prototypes to remove comment_char parameter.
1825 * read.c (read_a_source_file, s_irp): Remove comment_char
1826 parameter from invocation of functions in macro.c
1828 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1830 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1832 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1834 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1835 (tc_gen_reloc): Mark section param as not used.
1837 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1839 Fix Bug savannah/1825:
1840 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1841 that are not pc-relative.
1842 (m68hc11_relax_frag): Declare.
1844 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1845 the offsetable indexed addressing modes (n,r).
1846 (build_insn): Cleanup some locals.
1847 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1848 relaxation of difference between two symbols of same section.
1849 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1850 only when this is a PC-relative operand and the offset is not absolute.
1851 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1852 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1853 be handled by m68hc11_relax_frag.
1855 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1857 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1858 (32-bit int, 64-bit double).
1859 (md_longopts): New options -mshort, -mlong, -mshort-double and
1860 -mlong-double to control the ABI.
1861 (md_show_usage): Update.
1862 (md_parse_option): Handle new options.
1863 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1865 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1867 * symbols.c (report_op_error): New function, broken out of ...
1868 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1871 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1873 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1874 for BFD_RELOC_32_PLT_PCREL.
1876 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1878 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1879 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1880 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1881 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1882 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1883 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1884 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1885 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1886 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1887 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1888 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1889 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1890 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1891 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1892 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1893 TRUE/FALSE. Formatting.
1895 2002-11-29 Nick Clifton <nickc@redhat.com>
1897 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1898 assume a value of zero.
1899 (do_bkpt): Likewise.
1901 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1903 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1904 for TLS relocations.
1906 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1908 * config/tc-ia64.c (md_apply_fix3): Add default case.
1910 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1912 * symbols.c (S_SET_THREAD_LOCAL): New function.
1913 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1914 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1915 for TLS relocations.
1916 * config/tc-ia64.c (md_apply_fix3): Likewise.
1917 * config/tc-alpha.c (md_apply_fix3): Likewise.
1919 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1921 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1924 2002-11-26 DJ Delorie <dj@redhat.com.
1926 * dwarf2dbg.c (scale_addr_delta): New.
1927 (size_inc_line_addr): Use it.
1928 (emit_inc_line_addr): Use it.
1930 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1932 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1933 (md_assemble): Don't pass on branches to constants as relaxable.
1936 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1938 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1940 2002-11-21 Randolph Chung <randolph@tausq.org>
1942 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1943 only if they have default visibility.
1945 2002-11-21 Richard Henderson <rth@redhat.com>
1947 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1950 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1952 * config/tc-mcore.c (mcore_pool_count): New function.
1953 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1955 2002-11-20 Klee Dienes <kdienes@apple.com>
1957 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1958 coalesce the name fields to use the same pointer.
1960 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1961 the name fields to use the same pointer.
1962 (get_specific): Check for opcodes with the same name using strcmp
1963 as well as comparing the pointer.
1965 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1967 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1970 2002-11-19 Richard Henderson <rth@redhat.com>
1972 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1973 visibility portion of st_other.
1975 2002-11-19 Klee Dienes <kdienes@apple.com>
1977 * config/tc-h8300.c (struct h8_instruction): New type, used to
1978 wrap h8_opcodes with length, noperands, idx, and size fields
1979 (computed at run-time).
1980 (h8_instructions): New variable.
1981 (md_begin): Allocate the storage for h8_instructions. Fill
1982 h8_instructions with pointers to the appropriate opcode and the
1983 correct value for the additional fields.
1984 (clever_message): Update to use h8_instructions instead of
1986 (build_bytes): Ditto.
1987 (get_specific): Ditto.
1988 (md_assemble): Ditto.
1990 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1992 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1993 adjustments to symbols in merge sections.
1995 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1997 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1999 2002-11-18 Kevin Buettner <kevinb@redhat.com>
2001 * dwarf2dbg.h (dwarf2_format): New enum.
2002 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
2003 (out_debug_line, out_debug_info): Add code for handling 64-bit
2005 * config/tc-mips.h (mips_dwarf2_format): Declare.
2006 * config/tc-mips.c (mips_dwarf2_format): New function.
2007 * doc/internals.texi (DWARF2_FORMAT): Document.
2009 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
2011 * config/tc-mips.c (s_change_section): Make sure input buffer
2012 is not accessed past the end. Don't hand
2013 obj_elf_change_section a pointer into the input buffer.
2015 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
2017 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
2020 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2022 * config/tc-tic4x.c: Fixed proper commandline
2023 parameters. Added support for new opcode-list format. General
2024 error message fixups.
2025 (c4x_inst_add): Reject insn not for our CPU
2026 (md_begin): Added matrix for setting the proper opcode-level &
2027 device-flags according to cpu type and revision. Rewrite the
2029 (c4x_operand_parse): Fix opcode bug
2030 (c4x_operands_match): New function argument. Added dry-run
2031 mechanism, that is optional error generation. Added constraint 'i'
2033 (c4x_insn_check): Added new function for post-verification of the
2035 (md_assemble): Check all opcodes before croaking because of an
2036 argument mismatch. Need this to be able to fully support
2037 ortogonally arguments.
2038 (md_parse_options): Revised commandprompt swicthes and added new
2040 (md_show_usage): Complete rewrite of printout.
2042 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2044 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2045 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2046 warning when using constant direct bigger than 2^16. Add the new
2049 2002-11-11 Christopher Faylor <cgf@redhat.com>
2051 * configure.in: Use .gdbinit under Cygwin.
2052 * configure: Regenerate.
2054 2002-11-11 Christopher Faylor <cgf@redhat.com>
2056 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2059 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2061 * config/tc-tic4x.c: Declare as many functions as possible as
2062 static. Maintenance on the general indenting. Removed unnecessary
2063 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2064 function. Add support for new DSP, TMS320VC33. Fix bug for
2065 converting flonum constants.
2066 (c4x_do_align): Add proper align handling. Setup align to insert
2068 (c4x_gen_to_words): Support for extended TI type floats.
2069 (md_atof): Proper dumping of multiple-word littlenums.
2070 (c4x_atof): Added support for extended TI type floats.
2071 (c4x_stringer): Added new function to handle compact strings.
2072 (c4x_emit_char): Added new function argument to handle custom
2073 length inserts, like single-byte strings.
2074 * config/tc-tic4x.h: Add proper align handling with NOP's.
2075 * Makefile.am: Added tic4x dependecy
2076 * Makefile.in: Regenerate
2078 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2080 * macro.c (get_any_string): Correct logic for not going beyond end
2083 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2085 * config/tc-mmix.c (get_putget_operands): Mark both possible
2086 operands as invalid at beginning.
2088 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2089 Initialize target of fixup to zero.
2091 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2093 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2094 NEWABI, but we should still emit HI16_S for non-PIC n32.
2096 2002-11-06 Richard Henderson <rth@redhat.com>
2098 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2099 (alpha_fix_adjustable): ... here.
2100 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2102 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2104 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2107 2002-11-05 H.J. Lu <hjl@gnu.org>
2109 * config/tc-mips.c (support_64bit_objects): Check *l before it
2112 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2114 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2115 SEC_LOAD flags for sections marked as 's'.
2117 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2119 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2120 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2121 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2124 * dep-in.sed: Fix typo.
2126 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2128 * configure.in: Update ARM CPU patterns.
2129 * configure: Regenerated.
2131 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2133 * itbl-lex.l: Use #include <> for generated headers.
2134 * itbl-ops.c: Likewise.
2136 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2138 * doc/gasp.texi: Fix typo in deprecation note.
2140 2002-10-23 Nick Clifton <nickc@redhat.com>
2142 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2143 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2145 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2147 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2148 (tc_frob_file_before_adjust): Don't define.
2149 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2151 (mmix_frob_file_before_adjust): Remove ineffective function.
2153 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2155 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2156 (cris_relax_frag): New function.
2157 (md_estimate_size_before_relax) <case ENCODE_RELAX
2158 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2159 expressions that will become absolute expressions to relaxation.
2160 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2161 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2162 value, not distance to symbol.
2163 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2164 Ditto. Correct placement of fixup.
2165 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2167 * config/tc-cris.h (cris_relax_frag): Declare.
2168 (md_relax_frag): Define.
2170 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2172 * config/obj-elf.c (special_sections): Use correct types for init
2174 (obj_elf_change_section): Don't mess with init array section type.
2176 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2178 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2179 for relocs against symbols in a merged section.
2181 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2183 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2184 table as register names.
2186 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2188 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2191 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2193 * expr.c (operand): Add support for n.nn flonums.
2195 2002-10-17 Johannes Stezenbach <js@convergence.de>
2197 * itbl-parse.y (entry): Provide empty action.
2199 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2201 * configure.in (BFDVER_H): Set and subst.
2202 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2203 * Makefile.am: Run "make dep-am".
2205 * configure: Regenerate.
2206 * Makefile.in: Regenerate.
2207 * doc/Makefile.in: Regenerate.
2209 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2211 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2212 (MD_APPLY_SYM_VALUE): Define for PE too.
2214 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2216 * Makefile.am: Run "make dep-am".
2217 (CPU_OBJ_VALID): sh64 coff is invalid.
2218 * as.c: #include "bfdver.h".
2219 * Makefile.in: Regenerate.
2220 * config.in: Regenerate.
2222 2002-10-14 Momchil Velikov <velco@fadata.bg>
2224 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2226 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2228 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2229 * configure: Regenerate.
2231 2002-10-13 Eric Christopher <echristo@redhat.com>
2232 Alexandre Oliva <aoliva@redhat.com>
2234 * config/tc-mips.c (s_gpdword): New function.
2235 (mips_pseudo_table): Add .gpdword.
2236 (mips_need_elf_addend_fixup): never for NEWABI.
2237 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2239 (s_cpadd): Generate .cpadd on NEWABI.
2241 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2243 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2245 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2247 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2248 (md_relax_frag): Adjust macro.
2249 * config/tc-mips.c (mips_relax_branch): New variable.
2250 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2251 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2252 (RELAX_MIPS16_P): Adjust.
2253 (append_insn): Emit branch to non-constant in a frag_var if
2254 branch-relaxation is desirable and possible.
2255 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2256 (OPTION_ELF_BASE): Adjust.
2257 (md_parse_option): Handle new options.
2258 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2260 (relaxed_branch_length): New function.
2261 (md_estimate_size_before_relax): Handle branch frags.
2262 (mips_relax_frag): Likewise.
2263 (md_convert_frag): Handle branch frags. Warn if branch is
2266 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2268 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2270 (md_apply_fix3): Add TLS relocs.
2271 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2274 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2275 Alan Modra <amodra@bigpond.net.au>
2277 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2278 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2280 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2282 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2285 2002-10-09 Richard Shann <richard.shann@superh.com>
2286 Stephen Clarke <stephen.clarke@superh.com>
2288 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2291 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2293 * contig/tc-sh.c (sh_local_pcrel): New.
2294 (sh_force_relocation): Use sh_local_pcrel.
2295 (md_pcrel_from_section): Check the relocation type whether it
2296 should be resolved locally. Use S_FORCE_RELOC.
2298 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2300 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2301 (TC_FORCE_RELOCATION): Tidy arg.
2303 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2304 Ken Raeburn <raeburn@cygnus.com>
2305 Aldy Hernandez <aldyh@redhat.com>
2306 DJ Delorie <dj@redhat.com>
2307 Michael Meissner <meissner@redhat.com>
2308 Eric Christopher <echristo@redhat.com>
2309 Richard Sandiford <rsandifo@redhat.com>
2311 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2312 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2313 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2314 (hilo_interlocks): True for CPU_VR5500.
2315 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2316 (mips_fix_vr4122_bugs): New.
2317 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2318 (mips_emit_delays): Likewise.
2319 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2320 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2321 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2322 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2323 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2324 (OPTION_ELF_BASE): Bump.
2325 (md_parse_option): Handle the new options.
2326 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2329 2002-09-29 H.J. Lu <hjl@gnu.org>
2331 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2332 twice if howto->pcrel_offset is true.
2334 2002-09-28 Matt Thomas <matt@3am-software.com>
2335 Jason Thorpe <thorpej@wasabisystems.com>
2337 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2338 convert undefined references to GOT32/PLT32 if PIC code is
2339 requested. Fix comment.
2341 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2343 * config/tc-sh.c (sh_force_relocation): Return 0 for
2344 some PC relative relocations when not relaxing.
2346 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2348 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2349 Define them if not BFD_ASSEMBLER.
2350 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2352 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2353 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2354 (tc_gen_reloc): Handle x86-64 TLS relocs.
2356 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2358 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2359 fixups to current or absolute section.
2361 2002-09-26 Jim Wilson <wilson@redhat.com>
2363 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2366 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2368 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2369 capable configuration.
2370 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2372 (mips_ip): Likewise.
2374 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2376 * config/tc-mips.c (append_insn): Fix jump overflow check.
2378 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2380 * config/tc-i386.c (process_operands): Warn about "lea" segment
2383 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2385 * write.c: Delete set_segment_vma and prototype. Update all callers.
2387 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2389 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2390 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2391 Rename "fseg" to "sym_seg".
2392 * Makefile.am: Run "make dep-am".
2393 * Makefile.in: Regenerate.
2394 * doc/Makefile.in: Regenerate.
2396 2002-09-20 Nick Clifton <nickc@redhat.com>
2398 * symbols.c (colon): Do not allow symbols to be created in the
2399 absolute section if WORKING_DOT_WORD is not defined and
2400 new_broken_words would require a new frag to be created.
2402 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2404 * expr.c (expr): Simplify foo-foo here.
2405 (clean_up_expression): Remove O_subtract code.
2407 * write.h (struct fix): Add fx_dot_value.
2408 (dot_value): Declare.
2409 * write.c (dot_value): New var.
2410 (fix_new_internal): Save dot_value as fx_dot_value.
2411 (fixup_segment): Adjust fx_offset using fx_dot_value.
2412 * expr.c (expr): Update dot_value.
2414 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2416 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2417 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2418 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2420 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2421 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2422 BFD_RELOC_386_TLS_GOTIE.
2424 2002-09-19 Richard Henderson <rth@redhat.com>
2426 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2428 (alpha_force_relocation): Don't special-case branch type relocs.
2430 2002-09-19 Nick Clifton <nickc@redhat.com>
2432 * config/tc-m68k.c (select_control_regs): Handle situation where
2433 architecture has not yet been selected.
2435 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2437 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2438 (IS_SEXT_16BIT_NUM): New macro.
2439 (macro_build_ldst_constoffset): New function, to build a set of
2440 instructions to do a load or store from a constant offset relative
2441 to a given register.
2442 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2443 .cprestore pseudo-op.
2445 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2447 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2449 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2451 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2453 2002-09-17 Stan Cox <scox@redhat.com>
2455 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2456 (macro): Likewise for la. Likewise for ld.
2457 (mips_after_parse_args): Make -xgot optional, not the default.
2458 (md_apply_fix3): Allow composite relocation to set up gp.
2459 (tc_gen_reloc): Allow relaxing for newabi.
2460 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2461 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2463 2002-09-17 Nick Clifton <nickc@redhat.com>
2465 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2466 BFD_RELOC_ARM_IMMEDIATE has been done.
2467 (tc_gen_reloc): Do not issue reloc number of unimplemented
2468 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2469 their name is already in the error message - plus remove them
2470 from the default case.
2472 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2473 behavior of instructions.
2475 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2477 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2478 Convert functions to K&R format.
2480 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2482 * config/tc-mips.c (pdr_seg): Define only for ELF.
2483 (s_change_section): Remove unused variable. Don't use for nonELF.
2485 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2487 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2489 * config/obj-elf.h (obj_elf_change_section): Likewise.
2491 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2493 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2494 (out_debug_info): Likewise.
2496 2002-09-16 Bruno Haible <bruno@clisp.org>
2498 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2499 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2500 * config/tc-i386.c (i386_target_format): Likewise.
2501 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2502 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2504 2002-09-13 Nick Clifton <nickc@redhat.com>
2506 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2507 when deciding if any operands have been skipped.
2509 2002-09-11 Nick Clifton <nickc@redhat.com>
2511 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2513 * po/tr.po: Updated Turkish translation.
2515 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2517 * config/tc-i386.c (md_apply_fix3): Allow addend for
2518 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2519 BFD_RELOC_386_TLS_LE_32.
2521 2002-09-05 Jeff Law <law@redhat.com>
2523 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2524 marker relocations such as ENTRY/EXIT.
2525 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2526 to both OBJ_ELF and OBJ_SOM.
2528 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2530 * doc/internals.texi (md_apply_fix3): Expand.
2531 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2532 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2533 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2534 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2535 EXTERN_FORCE_RELOC): Document.
2536 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2537 * as.h: Don't include struc-symbol.h for arc.
2539 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2540 subtract absolute symbol.
2541 * obj.h (struct format_ops): Add frob_file_before_fix.
2542 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2543 * symbols.c (S_FORCE_RELOC): New function.
2544 * symbols.h (S_FORCE_RELOC): Declare.
2545 * write.c (TC_FORCE_RELOCATION): Change default.
2546 (TC_FORCE_RELOCATION_ABS): Define.
2547 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2548 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2549 (TC_FORCE_RELOCATION_SECTION): Don't define.
2550 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2551 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2552 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2553 (TC_VALIDATE_FIX_SUB): Define.
2554 (TC_FIX_ADJUSTABLE): Don't define.
2555 (MD_APPLY_SYM_VALUE): Define this instead.
2556 (abs_section_sym): New variable.
2557 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2558 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2559 Don't put the absolute section sym on fixups here.
2560 (fix_segment): New function.
2561 (write_relocs): Don't call fixup_segment from here.
2562 (write_object_file): Instead call tc_frob_file_before_fix,
2563 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2564 Don't output the absolute section symbol.
2565 (fixup_segment): Rewrite.
2566 * write.h (abs_section_sym): Declare.
2567 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2569 (aout_format_ops): Adjust to suit.
2570 * config/obj-aout.h (obj_frob_file): Don't define.
2571 (obj_frob_file_before_fix): Define.
2572 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2573 (S_FORCE_RELOC): Define.
2574 * config/obj-bout.h (S_FORCE_RELOC): Define.
2575 * config/obj-coff.c (coff_format_ops): Init new field.
2576 * config/obj-coff.h: Formatting fixes.
2577 (obj_sec_sym_ok_for_reloc): Define.
2578 (S_FORCE_RELOC): Define.
2579 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2580 (ecoff_frob_file): .. from here.
2581 (ecoff_format_ops): Add new function.
2582 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2583 (obj_frob_file_before_fix): Define.
2584 * config/obj-elf.c (elf_format_ops): Init new field.
2585 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2586 * config/obj-ieee.h: Formatting fixes.
2587 (S_FORCE_RELOC): Define.
2588 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2589 * config/obj-vms.h (S_FORCE_RELOC): Define.
2590 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2591 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2592 for BFD_RELOC_32 and BFD_RELOC_64.
2593 (alpha_fix_adjustable): Remove extern and weak tests.
2594 (alpha_before_fix): Rename from alpha_adjust_symtab.
2595 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2596 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2597 (TC_VALIDATE_FIX): Tweak param name.
2598 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2599 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2600 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2601 (MD_APPLY_SYM_VALUE): Define.
2602 (tc_adjust_symtab): Don't define.
2603 (alpha_adjust_symtab): Don't declare.
2604 (tc_frob_file_before_fix): Define.
2605 (alpha_before_fix): Declare.
2606 (TC_INIT_FIX_DATA): Tweak param names.
2607 * config/tc-arc.c: Include "struc-symbol.h".
2608 (md_pcrel_from): Remove undefined sym fudge.
2609 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2610 Don't set fx_addnumber.
2611 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2612 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2613 (EXTERN_FORCE_RELOC): Define.
2614 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2615 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2616 (arm_validate_fix): Return void.
2617 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2618 Add plt and got reloc tests.
2619 (arm_force_relocation): Call S_FORCE_RELOC.
2620 * config/tc-arm.h (struct fix): Forward declare.
2621 (TC_VALIDATE_FIX): No longer set add_symbolP.
2622 (arm_validate_fix): Adjust declaration.
2623 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2624 (TC_FORCE_RELOCATION): Tweak param name.
2625 (TC_INIT_FIX_DATA): Likewise.
2626 (obj_fix_adjustable): Don't define.
2627 (tc_fix_adjustable): Call arm_fix_adjustable.
2628 (TC_FIX_ADJUSTABLE): Don't define.
2629 (MD_APPLY_SYM_VALUE): Define.
2630 (EXTERN_FORCE_RELOC): Define.
2631 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2632 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2633 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2634 Remove *valP fudges and code to subtract abs sym. Don't set
2636 * config/tc-avr.h: Formatting.
2637 (EXTERN_FORCE_RELOC): Define.
2638 (MD_APPLY_SYM_VALUE): Define.
2639 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2640 (md_apply_fix3): Remove code to subtract abs sym.
2641 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2642 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2643 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2644 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2645 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2646 (tc_fix_adjustable): Remove extern, weak tests.
2647 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2648 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2649 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2650 and code to subtract abs sym.
2651 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2652 (d10v_force_relocation): Call S_FORCE_RELOC.
2653 * config/tc-d10v.h: Don't include write.h.
2654 (struct fix): Instead, forward declare.
2655 (MD_PCREL_FROM_SECTION): Tweak param names.
2656 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2657 (d10v_fix_adjustable): Likewise.
2658 (obj_fix_adjustable): Don't define.
2659 (tc_fix_adjustable): Define.
2660 (TC_FORCE_RELOCATION): Tweak param name.
2661 (MD_APPLY_SYM_VALUE): Define.
2662 (EXTERN_FORCE_RELOC): Define.
2663 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2664 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2665 and code to subtract abs sym.
2666 * config/tc-d30v.h: Don't include write.h.
2667 (struct fix): Instead, forward declare.
2668 (MD_PCREL_FROM_SECTION): Tweak param names.
2669 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2670 (MD_APPLY_SYM_VALUE): Define.
2671 (EXTERN_FORCE_RELOC): Define.
2672 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2673 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2674 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2675 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2676 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2677 Don't use fx_addnumber.
2678 * config/tc-dlx.h: Don't include write.h.
2679 (md_convert_frag): We're not alpha twice over.
2680 (EXTERN_FORCE_RELOC): Define.
2681 (obj_fix_adjustable): Don't define.
2682 (tc_fix_adjustable): Define.
2683 (TC_FIX_ADJUSTABLE): Don't define.
2684 (MD_APPLY_SYM_VALUE): Define.
2685 (LOCAL_LABELS_DOLLAR): Undef always.
2686 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2687 (fr30_fix_adjustable): Remove extern, weak tests.
2688 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2689 (obj_fix_adjustable): Don't define.
2690 (tc_fix_adjustable): Define.
2691 (struct fix): Forward declare.
2692 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2693 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2694 (frv_fix_adjustable): Don't do extern, weak tests.
2695 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2696 (TC_FIX_ADJUSTABLE): Don't define.
2697 (obj_fix_adjustable): Don't define.
2698 (tc_fix_adjustable): Define.
2699 (struct fix): Forward declare.
2700 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2701 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2702 * config/tc-h8300.h (struct fix): Forward declare.
2703 (EXTERN_FORCE_RELOC): Define.
2704 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2705 (hppa_fix_adjustable): Don't test extern or weak. Don't
2706 symbol_mark_used_in_reloc.
2707 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2709 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2710 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2711 (TC_FORCE_RELOCATION_SECTION): Don't define.
2712 (MD_APPLY_SYM_VALUE): Define.
2713 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2714 to subtract abs sym.
2715 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2716 (MD_APPLY_SYM_VALUE): Define.
2717 (MD_PCREL_FROM_SECTION): Tweak param name.
2718 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2719 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2720 (i386_force_relocation): New function.
2721 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2722 (TC_VALIDATE_FIX): Likewise.
2723 (TC_FIX_ADJUSTABLE): Don't define.
2724 (MD_APPLY_SYM_VALUE): Define.
2725 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2726 (i386_force_relocation): Declare.
2727 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2728 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2729 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2730 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2731 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2732 (EXTERN_FORCE_RELOC): Define.
2733 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2734 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2735 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2736 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2737 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2738 Remove #if 0 code. Invert return boolean.
2739 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2740 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2741 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2742 (tc_coff_sizemachdep): Prototype.
2743 (i960_handle_align): Likewise.
2744 (i960_validate_fix): Adjust declaration.
2745 (reloc_callj): Likewise.
2746 (EXTERN_FORCE_RELOC): Define.
2747 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2748 (TC_FORCE_RELOCATION_ABS): Define.
2749 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2750 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2751 (TC_FIX_ADJUSTABLE): Don't define.
2752 (MD_APPLY_SYM_VALUE): Define.
2753 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2754 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2755 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2756 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2757 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2758 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2759 (MD_APPLY_SYM_VALUE): Define.
2760 (EXTERN_FORCE_RELOC): Define.
2761 (TC_FORCE_RELOCATION): Tweak param name.
2762 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2763 (m32r_fix_adjustable): Don't test extern, weak.
2764 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2765 (MD_APPLY_SYM_VALUE): Define.
2766 (obj_fix_adjustable): Don't define.
2767 (tc_fix_adjustable): Define.
2768 (tc_frob_file): Don't define.
2769 (tc_frob_file_before_fix): Define.
2770 (EXTERN_FORCE_RELOC): Define.
2771 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2772 BFD_RELOC_VTABLE_ENTRY address.
2773 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2774 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2775 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2776 Remove duplicated fx_done code.
2777 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2778 (EXTERN_FORCE_RELOC): Define.
2779 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2781 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2782 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2783 (TC_FIX_ADJUSTABLE): Don't define.
2784 (EXTERN_FORCE_RELOC): Define.
2785 (MD_APPLY_SYM_VALUE): Define.
2786 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2787 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2788 Remove fx_addsy tests.
2789 (mcore_force_relocation): Call S_FORCE_RELOC.
2790 (mcore_fix_adjustable): Don't test fx_addsy.
2791 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2792 (EXTERN_FORCE_RELOC): Define.
2793 (obj_fix_adjustable): Don't define.
2794 (tc_fix_adjustable): Define.
2795 (MD_APPLY_SYM_VALUE): Define.
2796 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2797 (mips_pic): No longer static.
2798 (mips_force_relocation): Call S_FORCE_RELOC.
2799 (mips_fix_adjustable): Remove extern, weak tests.
2800 * config/tc-mips.h (enum mips_pic_level): Declare.
2801 (mips_pic): Declare.
2802 (tc_frob_file): Don't define.
2803 (tc_frob_file_before_fix): Define this instead.
2804 (EXTERN_FORCE_RELOC): Define.
2805 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2806 with reg_section tests. Set fx_done instead of calling
2807 symbol_clear_used_in_reloc on bad relocs.
2808 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2809 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2810 (mmix_adjust_symtab): Simplify list handling. Abort on any
2812 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2813 BFD_RELOC_MMIX_LOCAL.
2814 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2815 (EXTERN_FORCE_RELOC): Define.
2816 (MD_PCREL_FROM_SECTION): Tweak param name.
2817 (tc_frob_file): Don't define.
2818 (tc_frob_file_before_fix): Define this instead.
2819 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2820 Remove SEC_CODE checks.
2821 (mn10300_fix_adjustable): Remove extern and weak tests.
2822 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2823 (TC_FORCE_RELOCATION): Tweak param name.
2824 (obj_fix_adjustable): Don't define.
2825 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2826 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2827 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2828 (openrisc_fix_adjustable): Don't test fx_addsy.
2829 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2830 (obj_fix_adjustable): Don't define.
2831 (tc_fix_adjustable): Define this instead.
2832 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2833 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2834 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2835 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2836 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2837 (MD_APPLY_SYM_VALUE): Define.
2838 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2839 Don't subtract symbol value.
2840 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2841 (EXTERN_FORCE_RELOC): Define.
2842 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2843 (MD_APPLY_SYM_VALUE): Define.
2844 (obj_fix_adjustable): Don't define.
2845 (tc_fix_adjustable): Define this instead.
2846 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2848 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2849 (ppc_force_relocation <elf version>): New.
2850 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2851 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2852 comments. Don't subtract fx_subsy as that is already done.
2853 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2854 (MD_PCREL_FROM_SECTION): Likewise.
2855 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2856 ppc_force_relocation.
2857 (TC_FORCE_RELOCATION_SECTION): Delete.
2858 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2859 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2860 (MD_APPLY_SYM_VALUE): Define.
2861 * config/tc-s390.c: #include "dwarf2dbg.h".
2862 (s390_insn): Remove excess parens.
2863 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2864 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2865 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2866 non-NULL. Don't subtract off fx_addsy value.
2867 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2868 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2869 (TC_FIX_ADJUSTABLE): Don't define.
2870 (MD_APPLY_SYM_VALUE): Define.
2871 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2872 (SWITCH_TABLE): Likewise.
2873 (sh_force_relocation): Call S_FORCE_RELOC.
2874 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2875 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2876 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2877 fx_addnumber is zero on entry. Save val in fx_addnumber.
2878 (tc_gen_reloc): Don't subtract fx_subsy.
2879 * config/tc-sh.h (struct fix): Move.
2880 (obj_fix_adjustable): Don't define.
2881 (tc_fix_adjustable): Define this instead.
2882 (TC_FIX_ADJUSTABLE): Don't define.
2883 (MD_APPLY_SYM_VALUE): Define.
2884 (SWITCH_TABLE_CONS): Define.
2885 (SWITCH_TABLE): Define.
2886 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2887 (TC_VALIDATE_FIX_SUB): Define.
2888 (MD_PCREL_FROM_SECTION): Tweak param name.
2889 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2890 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2891 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2892 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2893 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2894 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2895 (TC_VALIDATE_FIX_SUB): Define.
2896 (MD_PCREL_FROM_SECTION): Tweak param name.
2897 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2898 (tc_gen_reloc): Use S_FORCE_RELOC.
2899 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2900 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2901 (TC_FORCE_RELOCATION_ABS): Define this instead.
2902 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2903 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2904 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2905 (MD_APPLY_SYM_VALUE): Define.
2906 (TC_FIX_DATA_PRINT): Tweak param name.
2907 * config/tc-tic30.c (USE_STDOUT): Don't define.
2908 (md_parse_option): Remove stupid debug code.
2909 (tc_gen_reloc): Don't use fx_addnumber.
2910 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2911 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2912 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2913 (tc_fix_adjustable): Define this instead.
2914 (TC_FIX_ADJUSTABLE): Don't define.
2915 (MD_APPLY_SYM_VALUE): Define this instead.
2916 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2917 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2918 (TC_FIX_ADJUSTABLE): Don't define.
2919 (MD_APPLY_SYM_VALUE): Define this instead.
2920 (tc_fix_adjustable): Remove extern and weak tests.
2921 * config/tc-w65.h (struct fix): Forward declare.
2922 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2924 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2925 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2926 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2928 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2929 (MD_APPLY_SYM_VALUE): Define.
2930 (obj_fix_adjustable): Don't define.
2931 (tc_fix_adjustable): Define this instead.
2932 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2934 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2936 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2937 (ppc_fix_adjustable <coff version>): Cleanup.
2939 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2940 (md_parse_option): No -a64 without BFD64.
2941 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2942 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2944 2002-09-04 Nick Clifton <nickc@redhat.com>
2946 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2947 instructions into the hash table if the target cpu is the BookE32.
2949 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2951 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2954 2000-08-28 Catherine Moore <clm@redhat.com>
2956 * tc-v850.c (v850_relax): Declare.
2957 (v850_longcode): New routine.
2958 (v850_handle_align): New routine.
2959 (md_pseudo_table): Add longcall and longjump.
2960 (md_parse_option): Check for relax option.
2961 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2962 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2963 (md_apply_fix3): Likewise.
2964 (v850_force_relocation): Likewise.
2965 (v850_comm): Change the current section.
2966 (md_assemble): Ensure that the correct value is put in the
2968 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2969 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2970 Remove redundant v850ea support.
2971 * tc-v850.h (HANDLE_ALIGN): Define.
2972 (v850_handle_align): Declare.
2973 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2975 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2977 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2978 * configure: Regenerate.
2979 * NEWS: Mention new port.
2981 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2983 * config/obj-coff.c: Add sdef definition.
2984 * config/obj-coff.h: Add tic4x include file and set
2986 * config/tc-tic4x.c: New file.
2987 * config/tc-tic4x.h: New file.
2989 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2991 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2992 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2993 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2994 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2995 (RELOC_ENUM): Define.
2996 (fix_new_internal): Use RELOC_ENUM.
2997 (fix_new, fix_new_exp): Likewise.
2998 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2999 Replace gotos with continue.
3000 (write_relocs): Formatting. Avoid symbol loops in
3001 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
3002 errors, and error number in other cases.
3003 (fixup_segment): Remove param names from prototype. Rename
3004 "this_segment_type" to "this_segment". Update linkrelax comment.
3005 Remove "size, "place" and "where" local vars. Formatting. Update
3006 "no symbol" comment. Remove #if 0 and #if 1.
3008 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
3010 2002-08-27 Alan Modra <amodra@bigpond.net.au>
3012 * dwarf2dbg.c: Always include dwarf2dbg.h.
3013 (dwarf2_directive_file): Adjust dummy version args.
3014 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
3015 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
3016 when symbol values differ.
3017 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
3018 (pseudo_set <O_subtract>): Remove unnecessary segment test.
3019 * config/obj-bout.c (obj_pseudo_table): Warning fix.
3021 2002-08-26 Alan Modra <amodra@bigpond.net.au>
3023 * config/tc-w65.c (md_section_align): Fix typo.
3024 (md_parse_option): Return 0, not 1.
3026 2002-08-22 Nick Clifton <nickc@redhat.com>
3028 * doc/as.texinfo (Section): Note that if '@' is a comment
3029 character then another symbol is used to prefix the section's
3032 2002-08-22 Christian Groessler <chris@groessler.org>
3034 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3037 2002-08-12 Graeme Peterson <gp@qnx.com>
3039 * configure.in: Add support for sh-**-nto* target.
3040 * configure: Regenerate.
3042 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3044 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3046 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3048 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3050 (ppc_apuinfo_section_add): Define only if format is ELF.
3051 (md_assemble): Emit APUinfo section only if format is ELF.
3054 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3056 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3057 * config/tc-frv.c: Likewise.
3058 * config/tc-hppa.c: Likewise.
3059 * config/tc-ia64.c: Likewise.
3060 * config/tc-ip2k.c: Likewise.
3061 * config/tc-m68hc11.c: Likewise.
3062 * config/tc-m68k.c: Likewise.
3063 * config/tc-mmix.c: Likewise.
3064 * config/tc-mn10300.c: Likewise.
3065 * config/tc-sh.c: Likewise.
3066 * config/tc-sparc.c: Likewise.
3067 * config/tc-v850.c: Likewise.
3069 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3071 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3074 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3076 From matthew green <mrg@redhat.com>
3078 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3079 PPC_OPCODE_PPC is, except for BookE architectures.
3080 (md_parse_option): Add support for -mspe.
3081 (md_show_usage): Add -mspe.
3082 (md_parse_option): Add support for -me500 and
3083 -me500x2 to generate code for Motorola e500 core complex.
3084 (md_show_usage): Add -me500 and -me500x2.
3086 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3087 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3088 PPC_APUINFO_BRLOCK): New macros.
3090 (ppc_cleanup): New function.
3091 (ppc_apuinfo_section_add): New function.
3093 (md_assemble): Collect info and write the APUinfo section.
3095 * config/tc-ppc.h (md_cleanup): Define.
3096 (ppc_cleanup): Export.
3097 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3099 2002-08-17 Stan Cox <scox@redhat.com>
3101 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3102 config/tc-mips.c (s_change_section): New function to support
3103 IRIX .section pseudo-op.
3105 2002-08-16 Nick Clifton <nickc@redhat.com>
3107 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3109 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3111 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3112 the fix-up against on the right frag.
3113 (s_cpsetup): Likewise. Parse third argument as expression, to
3114 handle global symbols and forward/backward labels correctly.
3116 2002-08-14 Nick Clifton <nickc@redhat.com>
3118 * read.c (stringer): Catch attempts to create strings in the abs
3121 * config/tc-alpha.c: Fix compiling for COFF targets.
3122 Some minor formatting tidyups.
3124 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3126 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3127 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3128 according to the reloc.
3129 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3130 (TC_FORCE_RELOCATION): Define.
3131 (tc_m68hc11_force_relocation): Declare.
3133 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3134 (s_m68hc11_relax): New function for relax group.
3135 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3136 beginning of jump instruction.
3137 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3138 address computation.
3139 (tc-gen_reloc): Update.
3140 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3142 (tc_m68hc11_force_relocation): New function, handle new relocs.
3143 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3144 reloc for the linker relax pass.
3145 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3148 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3150 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3151 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3152 (s_m68hc11_mode): New function for .mode pseudo op.
3153 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3155 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3156 (m68hc11_elf_final_processing): Declare.
3158 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3160 * config/tc-m68hc11.c (md_begin): Take into account additional
3161 page operand for call instruction.
3162 (print_opcode_format): Likewise.
3163 (check_range): Likewise for page range checking.
3164 (get_operand): Don't skip a possible comma in operands.
3165 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3166 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3167 (fixup24): New to handle call reloc.
3168 (build_insn): Handle missing page operand for call instruction.
3170 (md_apply_fix3): Take into account new relocs.
3171 (get_operand): Fix the mode for indexed indirect addressing.
3172 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3174 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3176 * config/tc-mips.c (mips_ip): Don't work out the value of
3177 constant %hi()s here.
3179 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3181 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3182 for ELF, and don't bother checking ELF relocs when non-ELF.
3183 (i386_immediate): Allow absolute_section expressions for aout.
3184 (i386_displacement): Likewise. Also test bfd_is_com_section.
3185 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3186 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3187 not when fx_addsy. Remove dead code.
3189 2002-08-09 Graeme Peterson <gp@qnx.com>
3191 * configure.in: Add support for ppc-*-nto* target.
3192 * configure: Regenerate.
3194 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3196 * config/tc-i386.h: Reorganize.
3198 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3200 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3201 immediate offset in "dla" and "la" expansions.
3203 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3205 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3206 Remove "bfd_gas=yes" from target table when covered later.
3207 Consolidate some entries.
3208 * configure: Regenerate
3210 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3212 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3213 at start of insn, pass it to output_disp and output_imm.
3214 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3215 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3217 (output_imm): Added arguments. Compute properly addend for
3219 (md_apply_fix3): Remove R_386_GOTPC handling.
3221 2002-08-06 George France <france@handhelds.org>
3223 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3224 and m21264b processor names and cpu types.
3225 * doc/c-alpha.texi: Documented new types.
3227 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3229 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3231 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3233 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3234 handling to BFD_RELOC_MIPS16_GPREL.
3236 2002-08-01 Nick Clifton <nickc@redhat.com>
3238 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3239 pool is computed using signed arithmetic so that proper sign
3240 extension is performed if X_add_number is a 64-bit integer.
3242 2002-08-01 H.J. Lu <hjl@gnu.org>
3243 Daniel Jacobowitz <drow@mvista.com>
3245 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3246 .debug_line section unless it has line information.
3248 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3250 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3251 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3252 Allow default displacement size to be an option "--disp-size-default".
3253 (md_number_to_disp): Make error messages include value. Use %d to
3254 print integers, not %s.
3255 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3256 get duplicate messages sometimes.
3257 (convert_iif): Grow frag to max possible instruction size. Avoid
3258 creating unnecessary fixes.
3259 (md_number_to_field) Add prototype.
3260 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3261 prototypes and make static.
3262 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3263 (evaluate_expr): Use resultP argument instead of exprP global.
3264 (get_addr_mode): Quiten compiler warnings.
3265 (encode_operand): eliminate unused variables. Quiten compiler
3266 warnings. Eliminate nul character in format strings.
3267 (parse): argc is unsigned.
3268 (reloc): Type cast index to quieten compiler.
3269 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3270 (md_convert_frag): Note unused parameters. Remove unused
3272 (md_create_long_jump, md_create_short_jump,
3273 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3276 2002-07-31 Nick Clifton <nickc@redhat.com>
3278 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3279 of the PDP-11 and 2.11BSD a.out support.
3281 2002-07-31 Momchil Velikov <velco@fadata.bg>
3283 * config/tc-v850.c (md_assemble): Fix range check for immediate
3286 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3288 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3289 to Broadcom SB-1 core support.
3291 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3293 * config/tc-mips.c (mips_target_format): Fix formatting.
3294 Add recognition of n32 ABI formats.
3296 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3298 * tc-mips.c (load_address): Don't clobber $at when loading a
3299 64-bit address in non-PIC code if noat is in effect.
3302 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3304 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3305 used in division/multiply macro expansions similarly to how they
3306 are used in the variants with break instructions.
3309 2002-07-30 Graeme Peterson <gp@qnx.com>
3311 * configure.in: Add support for arm-*-nto target.
3312 * configure: Regenerate.
3314 2002-07-30 Nick Clifton <nickc@redhat.com>
3316 * config/tc-arm.c (struct literal_pool): Add fields to allow
3317 multiple literal pools to be maintained.
3318 (find_literal_pool): New function.
3319 (find_or_make_literal_pool): New function.
3320 (add_to_literal_pool): Use find_or_make_literal_pool.
3321 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3323 (s_ltorg): Use find_literal_pool.
3324 (arm_cleanup): Dump all literal pools.
3325 * doc/c-arm.texi: Document new behaviour of only dumping literal
3328 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3330 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3331 rather than PPC_OPCODE_32 for powerpc64*.
3333 2002-07-25 Nick Clifton <nickc@redhat.com>
3335 * po/es.po: Updated Spanish translation.
3336 * po/fr.po: Updated French translation.
3338 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3340 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3341 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3342 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3343 * configure, config.in: Regenerate.
3344 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3345 (mips_set_options): Remove "abi" field.
3346 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3349 (mips_arch_string, mips_arch_info): New vars.
3350 (mips_tune_string, mips_tune_info): New vars.
3351 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3352 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3353 (mips_isa_to_str, mips_cpu_to_str): Remove.
3354 (mips_ip): If the selected architecture is a generic ISA rather
3355 than a processor, only mention the ISA level in error messages.
3356 (OPTION_MCPU): Remove.
3358 (md_longopts): Add -mfp64, remove -mcpu.
3359 (mips_set_option_string): New fn.
3360 (md_parse_option): Make -mipsN update file_mips_isa rather than
3361 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3362 Don't let -mgp32 and -mfp32 change the ABI.
3363 (show): Move to end of file. Constify string argument.
3364 (md_show_usage): Move to the end of the file. Read available
3365 architectures from mips_cpu_info_table.
3366 (mips_set_architecture): New fn.
3367 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3368 is an alias for -march=mipsN. Don't change the ABI based on other
3369 flags. Infer the register size from the ABI as well as the
3370 architecture. Complain about more conflicting arguments.
3371 Unify logic with GCC.
3372 (s_mipsset): Don't change the ABI.
3373 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3374 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3375 "mipsN"-type entries. Remove entries that vary only in the
3376 manufacturer's prefix, or that have "000" replaced by "k".
3377 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3378 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3379 (mips_parse_cpu): New fn.
3380 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3381 (mips_cpu_info_from_isa): Minor formatting tweak.
3383 2002-07-24 Nick Clifton <nickc@redhat.com>
3385 * po/sv.po: Updated Swedish translation.
3386 * po/es.po: Updated Spanish translation.
3388 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3390 * Makefile.am: Run "make dep-am".
3391 * Makefile.in: Regenerate.
3392 * doc/Makefile.in: Regenerate.
3393 * config.in: Regenerate.
3394 * po/POTFILES.in: Regenerate.
3396 2002-07-23 Nick Clifton <nickc@redhat.com>
3398 * po/fr.po: Updated French translation.
3400 2002-07-23 Nick Clifton <nickc@redhat.com>
3402 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3405 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3407 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3408 instead of S_IS_EXTERN.
3409 (md_estimate_size_before_relax): Likewise.
3410 (mips_fix_adjustable): Likewise.
3412 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3414 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3416 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3417 Nick Clifton <nickc@redhat.com>
3419 * cond.c (s_ifdef): Treat a referenced but not yet defined
3420 symbol as if it were undefined, in exactly the same way as
3423 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3424 consider referenced bug not yet defined symbols to be
3427 2002-07-18 Denis Chertykov <denisc@overta.ru>
3428 Frank Ch. Eigler <fche@redhat.com>
3429 Alan Lehotsky <alehotsky@cygnus.com>
3430 John Healy <jhealy@redhat.com>
3431 Jeff Johnston <jjohnstn@redhat.com>
3433 * configure.in: Add ip2k configuraton.
3434 * configure: Regenerate.
3435 * Makefile.am: Add ip2k configuraton.
3436 * Makefile.in: Regenerate.
3437 * configure: Regenerate.
3438 * Makefile.in: Regenerate.
3439 * config/tc-ip2k.c: New file.
3440 * config/tc-ip2k.h: New files.
3441 * NEWS: Mention new support.
3442 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3443 * doc/Makefile.in: Regenerate.
3444 * doc/all.texi: Set IP2K
3445 * doc/as.texinfo: Add IP2K description.
3446 * doc/c-ip2k.texi: New file.
3448 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3450 * NEWS: Reformat to match style of other NEWS files.
3452 2002-07-17 Jan Hubicka <jh@suse.cz>
3454 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3456 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3458 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3460 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3462 * NEWS: Add 'Changes in 2.13'.
3464 2002-07-15 Matt Fredette <fredette@netbsd.org>
3466 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3468 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3470 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3471 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3474 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3476 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3477 (ppc_frob_file_before_adjust): New function.
3478 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3479 (ppc_elf_frob_symbol): Don't declare.
3480 (tc_frob_file_before_adjust): Define.
3481 (ppc_frob_file_before_adjust): Declare.
3483 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3484 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3487 (ppc_xcoff64): Rename to ppc_obj64.
3488 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3489 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3490 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3492 (ppc_target_format): Use ppc_obj64 to select format.
3493 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3494 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3495 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3496 (tc_frob_symbol): Likewise.
3497 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3498 BFD_DEFAULT_TARGET_SIZE.
3500 (ppc_is_toc_sym): Likewise.
3501 (md_apply_fix3): Likewise.
3502 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3503 BFD_DEFAULT_TARGET_SIZE.
3504 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3505 (tc_frob_symbol): Likewise.
3507 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3509 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3510 (mips_ip): Likewise.
3512 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3514 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3515 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3516 (md_apply_fix3): Formatting. Remove redundant test.
3517 (tc_gen_reloc): Remove redundant code.
3518 (tc_i386_force_relocation): Delete. Movy body of function to..
3519 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3521 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3523 * configure.in: Add hppa-*-openbsd* target, change
3524 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3526 * configure: Regenerate.
3528 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3530 * config/tc-mips.c (macro): Shift the 32-bit address range
3531 accessible with a lone "lui" down by 32768.
3533 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3535 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3536 instead of "dadd" in address calculations.
3539 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3541 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3543 (md_assemble): Instead, zap the suffix here.
3545 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3547 * NEWS: Remove next release number until the release is actually
3550 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3552 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3554 * Makefile.in: Regenerate.
3556 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3558 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3559 to symbols in merge sections, even non pc-relative ones.
3561 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3563 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3565 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3567 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3568 .softregs and .eeprom.
3570 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3572 * NEWS: Note the next release is 2.13.
3574 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3576 * po/tr.po: New translation imported.
3578 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3580 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3581 (ecoff_directive_def): Likewise.
3582 (ecoff_directive_tag): Likewise.
3583 * listing.c (file_info): Likewise.
3584 * hash.c (what): Likewise.
3586 2002-06-25 H.J. Lu <hjl@gnu.org>
3588 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3589 * Makefile.in: Regenerated.
3591 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3593 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3594 (assemble_ppi): Generate warning if the same register is used
3595 twice as destination in the same padd / pmuls instruction.
3597 2002-06-18 Dave Brolley <brolley@redhat.com>
3599 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3600 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3601 * configure.in: Support frv-*-*.
3602 * Makefile.am (CPU_TYPES): Add frv.
3603 (TARGET_CPU_CFILES): Add tc-frv.c.
3604 (TARGET_CPU_HFILES): Add tc-frv.h.
3605 (DEPTC_frv_coff): New variable.
3606 (DEPTC_frv_elf): New variable.
3607 (DEPOBJ_frv_coff): New variable.
3608 (DEPOBJ_frv_elf): New variable.
3609 (DEP_frv_coff): New variable.
3610 (DEP_frv_elf): New variable.
3611 * tc-frv.c: New file.
3612 * tc-frv.h: New file.
3614 2002-06-17 Catherine Moore <clm@redhat.com>
3616 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3618 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3620 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3622 2002-06-17 Tom Rix <trix@redhat.com>
3624 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3626 2002-06-14 H.J. Lu <hjl@gnu.org>
3627 Daniel Jacobowitz <drow@mvista.com>
3629 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3630 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3631 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3632 and new_logical_line for the first .file directive.
3633 * read.c (s_app_file_string): New function.
3634 (s_app_file): Call it.
3635 * read.h (s_app_file_string): Add declaration.
3637 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3639 * configure.in: Remove MIPS_STABS_ELF.
3640 * configure: Regenerated.
3641 * config.in: Regenerated.
3642 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3644 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3646 (pdr_seg): Declare unconditionally.
3647 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3648 (s_mips_end): Likewise. Generate stabs function markers.
3649 (s_mips_ent): Generate stabs function markers.
3650 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3652 (s_mips_mask): Likewise.
3653 (mips_flag_mdebug): New.
3654 (md_longopts): Add "mdebug" and "no-mdebug".
3655 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3656 (mips_after_parse_args): Set mips_flag_mdebug.
3657 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3659 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3661 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3662 value twice for RELA relocations.
3664 2002-06-12 Ben Elliston <bje@redhat.com>
3666 * symbols.c (resolve_symbol_value): Initialise final_val.
3668 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3670 2002-06-11 Tom Rix <trix@redhat.com>
3672 * config/tc-ppc.c (ppc_subseg_align): Delete.
3673 (ppc_change_csect): Default csect align is 2.
3674 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3676 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3678 * config/tc-avr.c (mcu_types): Update.
3680 2002-06-08 Matt Thomas <matt@3am-software.com>
3682 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3683 (vax-*-netbsd*): New targets.
3684 * configure: Regenerate.
3685 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3686 * config/tc-vax.c: Add support for ELF and PIC.
3687 (flag_want_pic): New flag.
3688 (float_cons): Fix prototype.
3689 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3690 (md_assemble): Introduce a new is_absolute local, and use it
3691 rather than repeating the test. Make fatal errors actually
3692 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3693 Add support for ELF. Add support for PIC.
3694 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3695 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3697 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3698 optional for a.out, and not allowed for VMS. Adjust all callers.
3699 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3700 (md_create_long_jump): Likewise.
3701 (md_undefined_symbol): Likewise.
3702 (md_section_align): Likewise.
3703 (md_shortopts): Allow -k and -K for ELF.
3704 (md_parse_option): Set flag_want_pic if -k or -K.
3705 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3706 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3707 * config/tc-vax.h (tc_headers_hook): Remove.
3708 (TARGET_FORMAT): Set according to object format and target
3710 (BFD_ARCH, TARGET_ARCH): Define.
3711 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3712 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3713 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3714 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3716 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3718 * Makefile.am: Run "make dep-am".
3719 * Makefile.in: Regenerate.
3721 * as.c: Replace CONST with const.
3722 * write.c: Likewise.
3723 * config/obj-coff.c: Likewise.
3724 * config/tc-a29k.c: Likewise.
3725 * config/tc-arm.c: Likewise.
3726 * config/tc-dlx.c: Likewise.
3727 * config/tc-h8300.c: Likewise.
3728 * config/tc-h8500.c: Likewise.
3729 * config/tc-i370.c: Likewise.
3730 * config/tc-i860.c: Likewise.
3731 * config/tc-i960.c: Likewise.
3732 * config/tc-m68hc11.c: Likewise.
3733 * config/tc-m68k.c: Likewise.
3734 * config/tc-m88k.c: Likewise.
3735 * config/tc-mcore.c: Likewise.
3736 * config/tc-mips.c: Likewise.
3737 * config/tc-ns32k.c: Likewise.
3738 * config/tc-pdp11.c: Likewise.
3739 * config/tc-pj.c: Likewise.
3740 * config/tc-s390.c: Likewise.
3741 * config/tc-sh.c: Likewise.
3742 * config/tc-sparc.c: Likewise.
3743 * config/tc-tahoe.c: Likewise.
3744 * config/tc-tic80.c: Likewise.
3745 * config/tc-v850.c: Likewise.
3746 * config/tc-vax.c: Likewise.
3747 * config/tc-w65.c: Likewise.
3748 * config/tc-z8k.c: Likewise.
3750 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3752 Based on patch from Matt Green:
3753 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3754 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3755 (s_mips_loc): New function.
3756 (mips_nonecoff_pseudo_table): Call them.
3757 (append_insn): Call dwarf2_emit_insn.
3759 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3761 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3763 (file_ase_mips16): New veriable.
3764 (mips_eabi64): Remove.
3765 (CPU_HAS_MIPS16): New define.
3766 (CPU_HAS_MDMX): Fix data type.
3767 (md_begin): Code cleanup. Use file_ase_mips16.
3768 (mips_elf_final_processing): Handle mips16 header flag.
3769 Handle EABI flag without intermediate variable.
3771 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3773 * doc/as.texinfo: Update MIPS documentation.
3775 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3777 * config/tc-mips.c: Add define for $zero register.
3778 (md_begin): Add $zero as alias name for $0.
3779 (insn_uses_reg): Use ZERO define.
3780 (mips_ip): Add $zero as alias name for $0.
3781 (mips16_ip): Likewise.
3782 (s_cplocal): Demand empty rest of input line.
3783 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3784 names. Use ZERO define. Fix input_line_pointer progress.
3786 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3788 * symbols.c: Replace CONST by const throughout.
3789 (symbol_find_exact): Split out from..
3790 (symbol_find_base): ..here.
3791 * symbols.h: Replace CONST by const throughout.
3792 (symbol_find_exact): Declare.
3793 * config/obj-elf.c: #include "struc-symbol.h".
3794 (elf_frob_file): If group name matches an exported symbol, use that
3795 symbol for the signature and ".group" as the section name.
3797 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3799 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3802 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3804 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3805 and mips_opts.ase_mdmx if they are uninitialized.
3807 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3809 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3810 (hppa_force_relocation): Check if a stub just before the start symbol
3811 of the last call_info is reachable before forcing relocation. Fix
3814 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3816 * config/tc-mips.c (mips_after_parse_args): New function.
3817 (md_begin): Move processing of defaults to mips_after_parse_args.
3818 config/tc-mips.h (md_after_parse_args): Define.
3820 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3822 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3823 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3824 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3825 * configure: Regenerate.
3826 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3829 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3831 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3833 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3835 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3836 linkonce flag. Print all warnings.
3837 (obj_elf_section): Parse ",comdat" for groups.
3838 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3839 consistency of comdat flag.
3841 2002-06-02 Richard Henderson <rth@redhat.com>
3843 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3844 with LITERALs without sequence numbers.
3846 2002-06-01 Richard Henderson <rth@redhat.com>
3848 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3849 Rename them LITUSE_ALPHA_*.
3851 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3853 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3854 accept parentheses enclosed register lists.
3856 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3858 * Makefile.am: Run "make dep-am".
3859 * Makefile.in: Regenerate.
3860 * po/POTFILES.in: Regenerate.
3862 2002-05-31 Graeme Peterson <gp@qnx.com>
3864 * configure.in: Add i386-*-nto-qnx*.
3865 * configure: Regenerate.
3867 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3869 * config/tc-mips.c (mips_ip): Use unsigned long values for
3872 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3874 * config/tc-mips.c (s_cpsetup): Fix initialization of
3875 mips_cpreturn_register and mips_cpreturn_offset.
3877 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3879 * config/tc-mips.c (s_cpsetup): Fix comment.
3881 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3883 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3884 (mips_ip): Likewise.
3885 (mips16_ip): Likewise.
3886 (tc_get_register): Likewise.
3888 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3889 Ed Satterthwaite <ehs@broadcom.com>
3891 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3892 (mips_opts): Initialize "ase_mdmx" member.
3893 (file_ase_mdmx): New variable.
3894 (CPU_HAS_MDMX): New macro.
3895 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3896 based on command line options and configuration defaults.
3897 (macro_build): Note in comment that use of MDMX in macros is
3898 not currently allowed.
3899 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3900 "Z" MDMX operand types.
3901 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3902 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3904 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3905 Add support for "-mdmx" and "-no-mdmx" options.
3906 (OPTION_ELF_BASE): Move to accomodate new options.
3907 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3908 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3909 file_ase_mdmx was set.
3910 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3911 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3914 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3916 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3917 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3918 command line switch conforming to gcc conventions.
3919 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3921 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3923 * config/tc-mips.c (macro_build_jalr): New Function.
3924 (md_begin): NewABI uses big GOTs.
3925 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3926 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3927 (load_address): Add some NewABI PIC support.
3929 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3930 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3932 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3934 * config/tc-mips.c (load_address): Use mips_gp_register instead
3935 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3937 (macro): Use mips_gp_register instead of hardcoded value.
3939 2002-05-30 Richard Henderson <rth@redhat.com>
3941 * expr.h (operatorT): Add O_md17..O_md32.
3942 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3943 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3944 O_tprelhi, O_tprello, O_tprel): New.
3945 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3946 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3947 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3948 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3949 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3950 (md_apply_fix3): Handle TLS relocations.
3951 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3952 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3953 associated TLS reloc. Check lituse_tls relocs match up.
3954 (emit_insn): Handle TLS relocations.
3957 * doc/c-alpha.texi: Add docs for tls relocations.
3959 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3961 * config/tc-mips.c (mips_gprel_offset): New variable.
3962 (s_gpvalue): Use it.
3964 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3966 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3967 write-write conflicts.
3968 (md_assemble): Reformat introductory comment.
3969 (parallel_ok): Prevent packing only if the first
3970 instruction cannot be packed.
3972 2002-05-30 Jason Eckhardt <jle@redhat.com>
3973 Tom Rix <trix@redhat.com>
3975 * config/tc-d10v.c (build_insn): Check for immediates.
3977 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3979 * config/tc-mips.c: Replace GP in comments by $gp.
3980 (mips_big_got): Initialize.
3981 (mips_trap): Initialize.
3982 (load_address): Use mips_gp_register instead of hardcoded value.
3983 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3984 (macro): Use mips_gp_register instead of hardcoded value.
3985 (macro2): Change load_address calls.
3986 (md_pcrel_from): Comment formatting.
3987 (s_cpload): Use mips_gp_register instead of hardcoded value.
3988 (s_cprestore): Likewise. Comment formatting.
3989 (s_gpword): Fix data type.
3990 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3991 (nopic_need_relax): Replace GP in comments by $gp.
3992 (mips_elf_final_processing): Better comment.
3994 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3996 * configure.in: Add DLX configuraton
3997 * Makefile.am: Add DLX configuraton
3998 * configure: Regenerate.
3999 * Makefile.in: Regenerate.
4000 * config/tc-dlx.c: New file.
4001 * config/tc-dlx.h: New files.
4002 * NEWS: Mention new support.
4004 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
4006 * config/obj-coff.c (write_object_file): Add missing semicolon.
4008 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4010 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
4011 by the define. Remove superfluous check of mips_opts.mips16.
4012 (append_insn): Likewise. Canonicalize variable increments.
4013 (macro_build): Canonicalize variable increments.
4014 (macro_build_lui): Likewise.
4015 (load_register): Likewise.
4016 (load_address): Move pointer initialization.
4017 (macro): Move pointer to a more local scope. Canonicalize variable
4018 increments. Better comments. Replace magic constant for RA by the
4020 (macro2): Replace magic constant for RA by the define. Canonicalize
4021 variable increments.
4022 (mips_ip): Canonicalize variable increments.
4023 (mips16_ip): Replace magic constant for RA by the define.
4024 (my_getSmallParser): Canonicalize variable increments/decrements.
4025 (my_getPercentOp): Likewise.
4026 (my_getSmallExpression): Likewise.
4027 (s_align): Likewise.
4028 (s_mipsset): Likewise.
4029 (s_cpsetup): Likewise.
4030 (s_insn): Remove superfluous check of mips_opts.mips16.
4031 (s_mips_stab): Likewise.
4032 (mips_handle_align): Canonicalize variable increments.
4033 (s_mips_ent): Likewise.
4034 (s_mips_end): Add comment.
4036 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4038 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4039 * configure: Regenerate.
4041 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4043 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4044 * Makefile.in: Regenerate.
4045 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4046 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4047 * configure: Regenerate.
4048 * as.h: Use #include "" instead of <> for local header files.
4049 * flonum-konst.c: Likewise.
4050 * flonum-mult.c: Likewise.
4052 * listing.c: Likewise.
4053 * config/tc-ia64.h: Likewise.
4054 * config/tc-v850.h: Likewise.
4056 2002-05-24 TAMURA Kent <kent@netbsd.org>
4058 * configure.in: Add a target for i386-netbsdpe.
4059 * configure: Regenerate.
4061 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4063 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4064 (obj_elf_common): Call elf_common.
4065 (obj_elf_tls_common): New function.
4066 (elf_pseudo_tab): Support .tls_common.
4067 (special_sections): Add .tdata and .tbss.
4068 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4070 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4071 (obj_elf_parse_section_letters): Include T in error message.
4072 * config/tc-ppc.c (ppc_section_letter): Likewise.
4073 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4074 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4076 * config/tc-sparc.c (md_apply_fix3): Likewise.
4077 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4078 Define them if not BFD_ASSEMBLER.
4079 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4081 (md_apply_fix3): Add TLS relocs.
4082 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4083 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4084 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4085 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4086 (ia64_elf_section_letter): Include T in error message.
4087 (md_begin): Support TLS operators.
4088 (md_operand): Likewise.
4089 (ia64_gen_real_reloc_type): Support TLS relocs.
4090 * write.c (adjust_reloc_syms): Don't change symbols in
4091 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4093 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4095 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4096 round the relocation up rather than down.
4098 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4100 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4102 * doc/as.texinfo: Document that the COFF version of .section
4103 ignores the 'a' flag.
4105 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4107 * config/tc-alpha.c (assemble_tokens): Protect use of
4108 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4110 * write.c (size_seg): Check adjustment to last frag.
4111 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4113 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4114 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4115 (write_object_file): Invoke md_do_align if available, and use
4116 frag_align_code on text sections.
4117 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4118 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4119 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4120 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4121 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4124 2002-05-22 H.J. Lu <hjl@gnu.org>
4126 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4129 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4131 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4134 2002-05-22 H.J. Lu <hjl@gnu.org>
4136 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4137 for one .loc for compiler.
4139 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4141 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4144 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4146 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4147 Optimize the rotate by zero case.
4149 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4151 * configure.in: Remove accidental enabling of bfd_gas=yes for
4153 * configure: Regenerate.
4155 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4157 * app.c: Fix formatting.
4159 * ehopt.c: Likewise.
4161 * input-file.c: Likewise.
4162 * listing.c: Likewise.
4163 * macro.h: Likewise.
4164 * stabs.c: Likewise.
4165 * symbols.c: Likewise.
4167 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4169 * config/obj-generic.c: Delete file.
4170 * config/obj-generic.h: Likewise.
4172 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4174 * config/tc-avr.c (mcu_types): Update for new devices.
4176 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4178 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4180 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4182 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4183 worked sometimes by accident. Fix copy&paste comment.
4185 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4187 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4188 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4189 (mips_elf_final_processing): Let n32 use .reginfo.
4191 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4193 * config/tc-mips.c (append_insn): Fix too small range of variable.
4195 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4197 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4198 listing_prev_line().
4200 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4202 * config/tc-arm.c (md_assemble): Remove redundant call to
4205 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4208 * stabs.c (s_stab_generic): Fix grammatical error in warning
4211 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4213 * write.c (subsegs_finish): Don't specially align last subseg.
4215 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4217 * stabs.c (s_stab_generic): Warn about a description field that is
4220 * config/obj-coff.c: Fix compile time warnings when compiling
4221 without BFD_ASSEMBLER defined.
4224 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4226 (md_pcrel_from_section): Use md_pcrel_from().
4228 2002-05-11 Bruno Haible <bruno@clisp.org>
4230 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4231 by dwarf2_directive_loc, instead of calling dwarf2_where.
4233 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4235 * config/obj-coff.h: Fix formatting.
4236 * config/tc-mcore.c: Likewise.
4237 * config/tc-mn10300.c: Likewise.
4238 * config/tc-openrisc.c: Likewise.
4239 * config/tc-or32.c: Likewise.
4240 * config/tc-pdp11.c: Likewise.
4241 * config/tc-ppc.c: Likewise.
4242 * config/tc-ppc.h: Likewise.
4243 * config/tc-sh64.c: Likewise.
4244 * config/tc-sh.c: Likewise.
4245 * config/tc-tic54x.c: Likewise.
4246 * config/tc-xstormy16.c: Likewise.
4247 * config/tc-xstormy16.h: Likewise.
4249 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4251 * config/obj-coff.c: Fix formatting.
4252 * config/obj-elf.c: Likewise.
4253 * config/tc-alpha.c: Likewise.
4254 * config/tc-arm.c: Likewise.
4255 * config/tc-d10v.c: Likewise.
4256 * config/tc-d30v.c: Likewise.
4257 * config/tc-h8300.c: Likewise.
4258 * config/tc-hppa.c: Likewise.
4260 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4262 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4263 reloc when no_cond_jump_promotion.
4265 2002-05-08 Jim Wilson <wilson@redhat.com>
4267 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4268 current variable part of frag.
4270 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4272 * config/tc-mmix.c: Fix formatting.
4273 * config/tc-mmix.h: Likewise.
4275 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4277 * configure: Regenerate.
4279 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4281 * config/tc-m68k.c: Fix formatting.
4283 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4285 * Makefile.am: Honour DESTDIR.
4286 * Makefile.in: Regenerate.
4288 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4290 * config/tc-ia64.c: Fix formatting.
4291 * config/tc-ia64.h: Likewise.
4293 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4295 * config/tc-mips.c: Fix formatting.
4296 * config/tc-s390.c: Likewise.
4297 * config/tc-s390.h: Likewise.
4299 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4301 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4302 information for instructions.
4304 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4306 * as.h: Fix formatting.
4309 * dwarf2dbg.c: Likewise.
4310 * frags.h: Likewise.
4312 * macro.c: Likewise.
4314 * stabs.c: Likewise.
4315 * symbols.c: Likewise.
4317 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4319 * app.c (mri_pseudo): Only declare for TC_M68K.
4321 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4322 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4323 BFD_RELOC_16_BASEREL.
4324 (md_assemble): Likewise.
4325 (md_apply_fix3): Likewise.
4327 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4329 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4330 zero into an add of zero - it is not the same.
4332 2002-05-01 Arati Dikey <aratid@kpit.com>
4334 * tc-sh.c (get_specific): Generate warning if the same
4335 destination register is used in parallel instructions.
4337 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4339 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4341 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4343 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4344 backwards to prevent cascading errors.
4346 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4348 * configure.in: Add support for powerpc-*-windiss.
4349 * configure: Regenerated.
4351 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4353 * config/tc-s390.c (md_parse_option): Formatting.
4355 * config/tc-i386.c: Formatting fixes, add missing space in error
4358 2002-04-24 Christian Groessler <chris@groessler.org>
4360 * config/tc-z8k.c (build_bytes): Add support for new cases:
4361 CLASS_IGNORE and ARG_NIM4.
4362 (md_assemble): Prevent destruction of input_line_pointer if
4363 get_operands returns failure.
4365 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4367 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4368 instructions to be generated by macros.
4370 2002-04-24 Andreas Schwab <schwab@suse.de>
4372 * config/tc-i386.c (output_jump, output_disp)
4373 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4375 (md_apply_fix3): Remember addend value for rela relocations.
4376 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4378 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4380 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4381 from previous change.
4383 2002-04-22 Eric Christopher <echristo@redhat.com>
4385 * config/tc-mips.c (macro_build): Add warning if macro instructions
4386 are expanded into a branch delay slot.
4388 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4390 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4391 numbers, gdb relies on them to detect the start of the prologue.
4393 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4395 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4396 symbols in merge sections.
4398 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4400 * as.c (main): Don't reference _bfd_chunksize.
4402 2002-04-15 Tom Rix <trix@redhat.com>
4404 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4405 symbols in merge sections.
4407 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4409 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4410 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4411 argument for the precision.
4412 (gen_to_words): Update accordingly.
4414 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4416 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4417 BFD_VERSION_STRING unavailable.
4418 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4420 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4422 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4423 symbol_used_in_reloc_p is true.
4425 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4428 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4430 * dep-in.sed: Cope with absolute paths.
4431 * Makefile.am (dep.sed): Subst TOPDIR.
4433 * Makefile.in: Regenerate.
4435 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4437 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4438 (mips_ip): Remove unused variable.
4439 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4440 unsigned char with bfd_byte.
4441 (s_file): Remove unused variable.
4442 (s_mips_ent): Likewise.
4444 2002-04-03 Tom Rix <trix@redhat.com>
4446 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4448 (find_opcode): Fix warning in as_warn.
4449 * config/tc-d10v.h: Update Copyright.
4451 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4452 Tom Rix <trix@redhat.com>
4454 From Jeff Knaggs <jknaggs@redhat.com>
4455 * config/tc-d10v.c (check_resource_conflict): New function to
4456 check for resource conflicts.
4458 From Jason Eckhardt <jle@redhat.com>
4459 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4461 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4462 reserved control registers is used.
4463 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4466 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4467 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4468 instruction cannot be packed.
4470 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4471 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4472 write-write conflicts.
4473 (md_assemble): Reformat introductory comment.
4474 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4477 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4479 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4480 O_logical_not>): Derive final_seg from add_symbol.
4481 <O_multiply..O_logical_or>: More final_seg twiddles.
4483 2002-04-01 Jessica Han <jessica@cup.hp.com>
4485 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4488 2002-03-27 Andreas Schwab <schwab@suse.de>
4490 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4491 field for pc-relative fixups.
4492 (output_disp): Likewise.
4493 (md_estimate_size_before_relax): Likewise.
4494 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4495 pc-relative fixups in 64bit mode.
4497 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4499 * config/te-aix5.h: Typo fix.
4501 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4503 * Makefile.am: Run "make dep-am".
4504 * Makefile.in: Regenerate.
4505 * doc/Makefile.in: Regenerate.
4507 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4509 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4510 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4512 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4514 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4515 the EXTENDED bit here; report the estimate according to the
4518 2002-03-18 Tom Rix <trix@redhat.com>
4520 * configure.in: Add AIX 5 support.
4521 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4522 * config/te-aix5.h: New file. AIX 5 support.
4523 * configure: Regenerate.
4525 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4527 * po/fr.po: Updated version.
4529 2002-03-16 Andreas Jaeger <aj@suse.de>
4531 * doc/c-mips.texi (Machine Dependencies): Add new node.
4533 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4535 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4536 (mips_opts): Initialize "ase_mips3d" member.
4537 (file_ase_mips3d): New variable.
4538 (CPU_HAS_MIPS3D): New macro.
4539 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4540 based on command line options and configuration defaults.
4541 (macro_build, mips_ip): Accept MIPS-3D instructions if
4542 mips_opts.ase_mips3d is set.
4543 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4544 Add support for "-mips3d" and "-no-mips3d" options.
4545 (OPTION_ELF_BASE): Move to accomodate new options.
4546 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4547 (mips_elf_final_processing): Add a comment indicating that a
4548 MIPS-3D ASE ELF header flag should be set, when one exists.
4549 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4550 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4551 nomips3d" directives.
4553 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4555 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4556 a weak symbol in same section to be within reach.
4558 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4560 * po/fr.po: Updated version.
4562 2002-03-12 Andreas Schwab <schwab@suse.de>
4564 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4565 body record so that an error is given for misplaced .save
4568 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4570 * config/tc-i386.h (REX_OPCODE): Define.
4571 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4572 (rex_byte): typedef to int.
4573 * config/tc-i386.c: Group prototypes and vars together.
4574 Formatting fixes. Remove occurrences of "register" keyword.
4577 (mode_from_disp_size): Add INLINE keyword to prototype.
4578 (fits_in_signed_byte): Likewise.
4579 (fits_in_unsigned_byte): Likewise.
4580 (fits_in_unsigned_word): Likewise.
4581 (fits_in_signed_word): Likewise.
4582 (fits_in_unsigned_long): Likewise.
4583 (fits_in_signed_long): Likewise.
4584 (type_names): Constify.
4585 (intel_float_operand): Constify param.
4586 (add_prefix): Use REX_OPCODE.
4587 (md_assemble): Likewise. Modify for changed rex_byte.
4588 (parse_insn): Split out of md_assemble.
4589 (parse_operands): Likewise.
4590 (swap_operands): Likewise.
4591 (optimize_imm): Likewise.
4592 (optimize_disp): Likewise.
4593 (match_template): Likewise.
4594 (check_string): Likewise.
4595 (process_suffix): Likewise.
4596 (check_byte_reg): Likewise.
4597 (check_long_reg): Likewise.
4598 (check_qword_reg): Likewise.
4599 (check_word_reg): Likewise.
4600 (finalize_imm): Likewise.
4601 (process_operands): Likewise.
4602 (build_modrm_byte): Likewise.
4603 (output_insn): Likewise.
4604 (output_branch): Likewise.
4605 (output_jump): Likewise.
4606 (output_interseg_jump): Likewise.
4607 (output_disp): Likewise.
4608 (output_imm): Likewise.
4610 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4612 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4614 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4616 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4617 relocs except when BFD64.
4619 * write.c (number_to_chars_bigendian): Don't abort when N is
4620 larger than sizeof (VAL).
4621 (number_to_chars_littleendian): Likewise.
4623 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4625 * config/tc-hppa.c (md_apply_fix3): Add cast.
4626 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4629 2002-03-05 Paul Koning <pkoning@equallogic.com>
4631 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4632 (parse_ac5): New function for parsing float regs in float operand.
4633 (parse_expression): Remove attempt to make literals be octal.
4634 (parse_op_no_deferred): Support float literals.
4635 (parse_op): Reject attempts to refer to float regs.
4636 (parse_fop): New function, like parse_op but for float operand.
4637 (md_assemble): Add cases to parse float operands. Also fix
4638 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4640 2002-03-04 H.J. Lu <hjl@gnu.org>
4642 * config/obj-elf.c (special_section): Add .init_array,
4643 .fini_array and .preinit_array.
4645 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4646 .init_array and .fini_array.
4648 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4650 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4652 (obj_frob_symbol): Copy visibility.
4654 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4656 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4658 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4660 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4662 * po/es.po: Updated.
4664 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4666 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4667 only, undo the changes made on 2001-06-08, with the
4668 effect being that common or extern symbols are
4669 adjusted for embedded-PIC, but weak symbols are not.
4670 (md_estimate_size_before_relax: Likewise, with the effect
4671 that extern symbols are treated the same as weak symbols
4672 only if not embedded-PIC.
4673 (mips_fix_adjustable) Likewise, with the effect that
4674 weak or extern symbols are not adjusted for embedded-PIC.
4675 (md_apply_fix3): Tweak so that the case where value is zero
4676 is handled more correctly for embedded-PIC code.
4678 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4680 * doc/as.texinfo (Overview): Add missing @ifset IA64
4682 * configure.in (LINGUAS): Add es.po.
4683 * configure: Regenerate.
4684 * po/es.po: New file.
4686 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4688 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4689 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4690 and NO_PIC cases. Code cleanup.
4691 (macro2): Fix handling of 64bit register loads.
4693 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4695 * doc/as.texinfo: Add entry for IA64.
4696 * doc/c-ia64.texi: New file.
4698 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4700 * config/tc-hppa.c: Update copyright date.
4702 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4703 Remove references to chip manufacturers.
4704 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4706 (md_show_usage): Remove references to chip manufacturers. Mention
4708 (md_begin): Test power4 opcode flag bits.
4710 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4712 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4713 count exceeds prologue count.
4714 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4715 (unwind.label_prologue_count): New member.
4717 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4719 (get_saved_prologue_count): New function.
4720 (save_prologue_count): New function.
4721 (free_saved_prologue_count): New function.
4722 (dot_label_state): Record state label by calling save_prologue_count().
4723 (dot_copy_state): Restore prologue count by calling
4724 get_saved_prologue_count().
4725 (generate_unwind_image): Free up list of saved prologue
4726 counts by calling free_saved_prologue_counts().
4728 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4730 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4731 function declarations.
4733 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4735 * NEWS: Note that GASP is now deprecated.
4736 * Makefile.am: Do not build gasp-new by default.
4737 * Makefile.in: Regenerate.
4738 * doc/Makefile.am: Do not install gasp.info.
4739 * doc/Makefile.in: Regenerate.
4740 * gas/gasp.texi: Note that gasp is now deprecated.
4742 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4744 * NEWS: Mark 2.12 branch.
4746 2002-02-19 Tom Tromey <tromey@redhat.com>
4748 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4750 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4752 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4755 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4757 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4758 Make bit size independent of architecture switch.
4759 (md_begin): Add warning for -m64 with -Aesa.
4760 (s390_md_end): Use renamed architecture defines.
4762 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4764 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4766 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4768 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4771 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4773 * config/tc-mips.c (md_estimate_size_before_relax): Really
4774 make sure we treat weak like extern only for ELF. (Fixes
4775 patch from 2001-07-25.)
4777 2002-02-15 Ben Elliston <bje@redhat.com>
4779 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4782 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4784 * NEWS: Mention support for MMIX.
4786 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4788 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4789 a sequence of indpendent 'if' statements for easier debugging
4790 and future modification.
4792 2002-02-13 Matt Fredette <fredette@netbsd.org>
4794 * config/tc-m68k.c (md_show_usage): No longer display a
4795 hard-coded "68020" for the default CPU, instead display the
4796 canonical name of the true, configured default CPU.
4797 (m68k_elf_final_processing): Mark objects for sub-68020
4798 CPUs with the new EF_M68000 flag.
4800 2002-02-13 Andreas Schwab <schwab@suse.de>
4802 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4803 pc-relative relocations to merge sections in 64-bit mode.
4805 2002-02-13 Ben Elliston <bje@redhat.com>
4807 * NEWS: Document floating point number handling in gasp.
4808 * gasp.c: Include <assert.h> and "xregex.h".
4809 (is_flonum): New function.
4810 (chew_flownum): Likewise.
4811 (change_base): Consume flonums from the input, where possible.
4812 * doc/gasp.texi (Constants): Document floating point numbers.
4814 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4816 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4817 that implicitly use LR and RR selectors.
4819 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4821 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4822 and `epsw' as available on AM33 and above only.
4823 (other_register_name): Add logic to handle machine type encoded in
4826 2002-02-11 Tom Rix <trix@redhat.com>
4828 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4831 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4833 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4836 2002-02-11 Jan Hubicka <jh@suse.cz>
4838 * i386.c (md_assemble): Support 32bit address prefix.
4839 (i386_displacement): Likewise.
4840 (i386_index_check): Accept 32bit addressing in 64bit mode.
4842 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4844 * config/tc-sh.c (dot): Removed unused function.
4846 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4848 * Makefile.am: "make dep-am".
4849 * Makefile.in: Regenerate.
4850 * aclocal.m4: Regenerate.
4851 * config.in: Regenerate.
4852 * configure: Regenerate.
4853 * doc/Makefile.in: Regenerate.
4855 2002-02-10 Richard Henderson <rth@redhat.com>
4857 * doc/c-alpha.texi: New file.
4858 * doc/Makefile.am (CPU_DOCS): Add it.
4859 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4861 2002-02-09 Richard Henderson <rth@redhat.com>
4863 * config/tc-alpha.c (O_samegp): New.
4864 (USER_RELOC_P): Include it.
4865 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4866 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4867 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4868 (alpha_validate_fix): New.
4869 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4871 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4873 * doc/c-cris.texi: New.
4874 * doc/all.texi: @set CRIS.
4875 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4876 Include c-cris.texi.
4877 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4878 * doc/Makefile.in: Regenerate.
4880 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4882 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4883 determine if a number is a sign-extended 32-bit number.
4884 (load_register): Use IS_SEXT_32BIT_NUM.
4885 (macro): Check if load/store macro handling is using a
4886 constant 32-bit address on 64-bit address systems, and if
4887 so optimize the generation of that address.
4889 2002-02-08 Richard Henderson <rth@redhat.com>
4891 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4892 we've eliminated all foreign relocation types yet.
4893 (alpha_fix_adjustable): Likewise.
4895 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4897 Contribute sh64-elf.
4898 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4899 Stephen Clarke <Stephen.Clarke@st.com>
4900 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4901 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4902 * config/tc-sh.c (md_relax_table): Added default sizes for
4903 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4904 MOVI_16, MOVI_32 and MOVI_48.
4905 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4906 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4908 (shmedia_md_estimate_size_before_relax): Remove redundant
4909 blocks. Set fragP->fr_var even if relaxation type unchanged.
4910 Retain UNDEF_MOVI until expression decays to number.
4911 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4912 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4913 relocation types. Take fixP->fx_addnumber into account too.
4914 (shmedia_md_apply_fix): Likewise.
4915 (shmedia_md_convert_frag): Likewise.
4916 (shmedia_build_Mytes): Likewise.
4917 (sh64_consume_datalabel): Complain about nested datalabel.
4918 Support PIC relocs. Call sh_parse_name.
4919 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4920 in tc-sh.h to SHmedia reloc types.
4921 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4922 MOVI_GOTPC): New relaxation constants.
4923 (md_relax_table): Introduce relaxation directives for PIC-related
4925 (sh_PIC_related_p): Handle datalabel.
4926 (sh_check_fixup): Choose SH5 PIC relocations.
4927 (sh_cons_fix_new): Added BDF_RELOC_64.
4928 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4929 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4930 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4931 current ISA is SHmedia, get 7 bytes.
4932 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4933 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4935 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4936 shmedia_apply_fix3 and make void.
4937 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4938 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4940 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4941 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4942 2001-03-14 DJ Delorie <dj@redhat.com>
4943 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4944 * doc/Makefile.in(CPU_DOCS): Ditto.
4945 * doc/c-sh64.texi: New file.
4946 * doc/as.texinfo: Add SH64 support.
4947 2001-03-13 DJ Delorie <dj@redhat.com>
4948 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4949 A_REUSE_PREV so that its purpose is more obvious.
4950 (shmedia_build_Mytes): Ditto.
4951 2001-03-07 DJ Delorie <dj@redhat.com>
4952 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4954 (sh64_vtable_inherit): Ditto.
4955 (strip_datalabels): New, strip "datalabel" from given line.
4956 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4958 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4959 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4961 (shmedia_build_Mytes): ... to here.
4962 2001-03-06 DJ Delorie <dj@redhat.com>
4963 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4965 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4966 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4967 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4968 address by one in call to dwarf2_emit_insn.
4969 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4970 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4971 alignment handling broken by imported changes.
4972 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4973 (sh64_handle_align): Declare.
4974 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4975 (sh64_max_mem_for_rs_align_code): Declare.
4976 (enum sh64_isa_values): Moved here from tc-sh64.c.
4977 (md_do_align): Define.
4978 (sh64_do_align): Declare.
4979 (struct sh64_tc_frag_data): New.
4980 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4982 (TC_FRAG_INIT): Change to set new datatype.
4983 (struct sh64_segment_info_type): Rename member
4984 last_flushed_location to last_contents_mark. All users changed.
4985 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4986 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4987 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4988 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4989 of unsetting seen_insn.
4990 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4991 call sh64_update_contents_mark.
4992 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4993 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4994 enum sh64_isa_values.
4995 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4996 (emitting_crange): Boolean guard moved to file scope from function
4997 scope in sh64_set_contents_type.
4999 (sh64_update_contents_mark): New; most split out from
5000 sh64_flush_pending_output.
5001 (shmedia_md_end): Call sh64_update_contents_mark. Set
5002 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
5003 (sh64_do_align): New function.
5004 (sh64_max_mem_for_rs_align_code): New function.
5005 (sh64_handle_align): Rename from shmedia_do_align. Make
5006 non-static. Add head comment. Emit zero bytes for n bytes modulo
5007 four. Change return-type to void.
5008 (shmedia_elf_new_section): Remove.
5009 (shmedia_md_assemble): Call sh64_update_contents_mark.
5010 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
5011 new frag. Call sh64_update_contents_mark after making the new
5013 (sh64_flush_pending_output): Just call sh64_update_contents_mark
5014 and sh_flush_pending_output.
5015 (sh64_flag_output): Also call md_flush_pending_output, but add
5016 condition on not emitting_crange.
5017 (sh64_tc_cons_fix_new): Remove.
5018 2001-01-12 Nick Clifton <nickc@redhat.com>
5019 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
5020 alignment handling scheme imported from sourceware.
5021 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
5022 * config/tc-sh64.h (TARGET_FORMAT): Define.
5023 (sh64_target_format): Prototype.
5024 * config/tc-sh64.c (sh64_target_mach): New function.
5025 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
5026 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
5027 zero_address_frag instead of copying the frag of the symbol.
5028 (shmedia_frob_file_before_adjust): Ditto.
5029 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
5030 to valueT to remove signedness.
5031 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5032 headers to output_bfd. Do not evaluate symbols if final is false;
5034 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5035 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5036 to the current frag, call shmedia_md_convert_frag to emit fixups
5037 and make frag_wane neutralize the frag. Update comments.
5038 * config/tc-sh.c (md_convert_frag): Change caller of
5039 shmedia_md_convert_frag.
5040 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5041 * config/tc-sh64.h: Tweak comments and correct formatting.
5042 * config/tc-sh64.c: Ditto.
5043 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5044 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5045 for the no-relocation case.
5046 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5047 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5049 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5051 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5052 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5054 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5056 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5057 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5058 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5059 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5060 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5061 if reloc is emitted.
5062 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5063 New options plus bugfixes.
5064 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5066 (md_parse_option): Handle new options.
5067 (md_show_usage): Add blurb for new options.
5068 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5069 (sh64_expand, sh64_pt32): New variables.
5070 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5071 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5072 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5073 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5074 <resolved previously-pc-relative relocs>: Handle
5075 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5076 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5077 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5078 points to SHcompact code.
5079 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5080 SH64PCREL16)>: Check that ISA of what operand points at and
5081 PTA/PTB matches, or emit error.
5082 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5083 SHMEDIA_BFD_RELOC_PT.
5084 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5086 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5087 condition for MOVI expansion.
5088 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5089 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5091 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5093 (sh64_target_format): Error-check setting of sh64_pt32 and
5094 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5095 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5096 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5097 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5098 * config/tc-sh64.c: Improve comments.
5099 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5100 not say the linker will check correctness of PTA/PTB expansion.
5101 (shmedia_md_end): Make non-static.
5102 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5104 * config/tc-sh.c (sh_finalize): Remove.
5105 * config/tc-sh.h (md_end): Do not define.
5106 Remove prototype for sh_finalize.
5107 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5108 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5109 sh64_section_data container when storing section type in tdata
5110 field in elf_section_data.
5111 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5113 * Makefile.am: Update dependencies.
5114 * Makefile.in: Regenerate.
5115 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5116 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5117 dwarf2_emit_insn call with test on debug_type.
5118 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5119 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5120 CRT_SH5_ISA32 sticky for 64-bit.
5121 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5122 Generate .crange sections when switching ISA mode or emitting
5123 constants in same section as code.
5124 * config/tc-sh64.c: Reformat structure definitions.
5125 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5127 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5128 to emit a .cranges descriptor when contents type changes. Only
5129 emit error if changing contents type and -no-mix is in effect.
5130 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5131 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5132 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5133 sh64_flush_last_crange over sections.
5134 When checking main symbol of datalabel symbol, check for
5135 STO_SH5_ISA32, not ISA type of section in definition.
5136 (shmedia_frob_file_before_adjust): Check main symbol for
5137 STO_SH5_ISA32; don't check ISA type of section in definition.
5138 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5139 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5140 .cranges entries have been output.
5141 (shmedia_elf_new_section): Just call md_flush_pending_output.
5142 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5143 fix. Do not set tc_segment_info_data.in_code for section. Call
5144 sh64_set_contents_type for SHmedia code.
5145 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5146 false. Call md_flush_pending_output.
5147 (sh64_target_format): Check that -no-mix and
5148 -shcompact-const-crange are used in sane combination with other
5150 (shmedia_md_pcrel_from_section): Check type of fix for how to
5152 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5153 not ISA type of section in definition.
5154 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5155 hold contents-type state.
5156 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5157 (sh64_flush_pending_output): Declare.
5158 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5159 (sh64_tc_cons_fix_new): Declare.
5160 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5161 call sh64_flag_output.
5162 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5163 call sh64_set_contents_type to mark SHcompact code and set
5165 (md_longopts): New options "-no-mix" and
5166 "-shcompact-const-crange".
5167 (md_parse_option): Handle new options.
5168 (md_show_usage): Add blurb for new options.
5169 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5170 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5171 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5172 (sh64_last_insn_frag): New.
5173 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5174 to get frag for insn opcode for generating fixups; do not assume it
5176 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5178 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5180 (TC_FRAG_TYPE): Define as fragS *.
5181 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5182 (sh64_last_insn_frag): Declare.
5183 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5184 not == NULL before dereferencing.
5185 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5186 Get rid of BFD section flag and EF_SH64_ABI64.
5187 * config/tc-sh64.c (shmedia_frob_section_type): Use
5188 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5189 communicate the section as containing SHmedia code. Describe why.
5190 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5191 EF_SH64 regardless of ABI.
5192 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5193 in error message. Handle resolved expressions for
5194 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5195 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5196 (shmedia_check_limits): Handle BFD_RELOC_64.
5197 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5198 a STO_SH5_ISA32 symbol, only the BFD value.
5199 2000-12-11 Ben Elliston <bje@redhat.com>
5200 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5201 dwarf2_generate_asm_lineno.
5202 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5203 Handle PC-relative MOVI expansions with assembler relaxation.
5204 Generate PC-relative relocs from 16-bit PC-relative expressions.
5205 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5206 (shmedia_md_pcrel_from_section): ...here.
5207 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5208 turned completely resolved. Adjust relocation type for 16-bit
5209 immediate operands that has turned PC-relative. Adjust back for
5210 MD_PCREL_FROM_SECTION being applied twice.
5211 (shmedia_md_convert_frag): Always emit reloc for expression with
5212 global or weak symbol. Handle relaxation result for PC-relative
5214 (shmedia_md_estimate_size_before_relax): An expression with a weak
5215 or global symbol can not be relaxed. Break out tests for
5216 relaxable symbol into variable sym_relaxable.
5217 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5218 UNDEF_MOVI)>: Break out any PC-relative expression and change
5220 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5222 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5223 MOVI expansion. If X_op_symbol of the immediate expression is
5224 set, make an expression symbol for the argument to frag_var.
5225 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5227 (END): Adjust for new relaxations.
5228 (md_relax_table): Add entries for new relaxations.
5229 2000-12-07 Ben Elliston <bje@redhat.com>
5230 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5231 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5232 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5233 SHORI operand offsets in PT/PTA/PTB expansions.
5234 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5235 Implement DataLabel semantics.
5236 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5237 shmedia_frob_file_before_adjust.
5238 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5239 (DATALABEL_SUFFIX): Define.
5240 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5241 symbol list to update "datalabel" symbols to their main symbol
5243 (shmedia_frob_file_before_adjust): New.
5244 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5245 undefined and set STT_DATALABEL.
5246 (sh64_frob_label): Initialize TC symbol field.
5247 (sh64_consume_datalabel): Actually implement semantics. New
5248 parameter operandf, call it instead of expression.
5249 (sh64_exclude_symbol): New.
5250 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5251 to sh64_consume_datalabel.
5252 (tc_symbol_new_hook): Define to tc_frob_symbol.
5253 (TC_SYMFIELD_TYPE): Define to symbolS *.
5254 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5255 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5256 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5258 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5259 generating dwarf2 debug information.
5260 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5261 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5262 elf64-sh64 for the 64-bit ABI.
5263 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5265 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5266 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5268 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5269 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5270 (enum sh64_abi_values): New type.
5271 (enum sh64_isa_values): New type.
5272 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5273 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5274 (sh64_abi): Replace shmedia_64.
5275 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5276 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5277 (s_sh64_mode): Check validity for this target.
5278 (sh64_target_format): Initialize defaults for ISA and ABI.
5279 Fallback to old object format if no SH64 ISA or ABI has been
5281 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5282 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5283 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5284 * config/tc-sh64.h: Fix typo in comment.
5285 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5286 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5287 <PT fixups for absolute values>: Size will be longest, not
5289 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5290 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5291 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5292 and l1 to hold lowercase of two first characters. Change all
5293 remaining TO_LOWER to tolower.
5294 * config/tc-sh64.c (TO_LOWER): Delete.
5295 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5296 (md_parse_name): Define.
5297 (sh64_consume_datalabel): Declare.
5298 (DOLLAR_DOT): Define.
5299 * config/tc-sh64.c (shmedia_parse_exp): New.
5300 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5301 (shmedia_parse_reg): Remove const from src
5303 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5304 (shmedia_md_assemble): Ditto for op_end variable.
5305 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5306 Use shmedia_parse_exp, not parse_exp.
5307 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5308 parameter. All callers changed.
5309 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5311 (shmedia_parse_reg): Put first two character in local variables.
5312 Use tolower, not TO_LOWER. If no register is found and argtype
5313 indicates a control register, scan shmedia_creg_table
5315 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5316 * Makefile.am (CPU_TYPES): Add sh64.
5317 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5318 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5319 Regenerate dependencies.
5320 * Makefile.in: Regenerate.
5321 * configure.in: Add support for sh64-*-elf*.
5322 * configure: Regenerate.
5323 * config/tc-sh64.h: New.
5324 * config/tc-sh64.c: New.
5325 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5326 .mode, .isa and .uaquad.
5327 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5328 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5329 [HAVE_SH64] (END): Define as 10.
5330 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5331 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5333 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5334 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5335 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5336 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5338 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5339 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5340 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5341 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5342 SHmedia instructions. Handle state-change after switching to
5344 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5345 (md_parse_option) [HAVE_SH64]: Parse new options.
5346 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5347 (md_convert_frag) [HAVE_SH64] <default>: Call
5348 shmedia_md_convert_frag instead of abort.
5349 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5350 BFD_RELOC_SH_SHMEDIA_CODE.
5351 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5352 SHcompact or SHmedia code.
5353 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5354 shmedia_md_apply_fix instead of abort.
5355 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5356 result from calling shmedia_md_estimate_size_before_relax instead
5358 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5360 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5361 shmedia_init_reloc and do nothing more if it returns non-zero.
5362 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5363 * po/POTFILES.in: Regenerate.
5364 * po/gas.pot: Regenerate.
5366 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5368 * config/tc-sh.c (parse_at): Install the correct version of
5371 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5372 assume fixP->fx_subsy is non-NULL.
5374 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5376 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5377 A_DISP_PC_ABS, and adjust it by -4.
5378 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5380 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5381 the operand type is not A_DISP_PC_ABS.
5383 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5385 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5386 common and weak symbols. Handle common and weak symbols as
5387 undefined symbols with regards to GREG handling and merging.
5388 (mmix_frob_file): Ditto.
5390 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5392 * configure.in (hppa-*-netbsd*): New target.
5393 * configure: Regenerate.
5394 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5396 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5398 * config/tc-v850.c: Add missing prototypes amd use old-style
5399 function definitions.
5400 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5401 (sdata_section tdata_section, zdata_section, sbss_section,
5402 tbss_section, zbss_section, rosdata_section, rozdata_section,
5403 scommon_section, tcommon_section, zcommon_section,
5404 call_table_data_section, call_table_text_section): Delete.
5405 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5406 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5407 v850_call_table_data, v850_call_table_text): Delete.
5408 (struct v850_seg_entry): New.
5409 (v850_seg_table): New.
5410 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5411 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5412 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5413 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5416 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5417 recording of alignment.
5418 (md_pseudo_table): Use v850_seg.
5419 (md_begin): Don't init .call_table_data and .call_table_text here.
5420 Set v850_seg_table bss entry.
5422 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5424 Support on-demand global register allocation by passing on
5425 base-plus-offset relocs to the linker.
5426 * config/tc-mmix.c: Tweak and fix typos in comments.
5427 (allocate_undefined_gregs_in_linker): New variable.
5428 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5429 (md_longopts): Add --linker-allocated-gregs.
5430 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5431 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5432 (md_show_usage): Update text for -x. Add text for
5433 --linker-allocated-gregs.
5434 (tc_gen_reloc): Derive default value for addend from val and
5435 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5436 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5437 GREG if allocate_undefined_gregs_in_linker.
5438 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5439 --linker-allocated-gregs.
5440 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5441 --linker-allocated-gregs. Mention that it's implied by -x.
5442 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5443 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5445 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5447 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5449 * Makefile.am: Run "make dep-am"
5450 * Makefile.in: Regenerate.
5452 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5454 * config/tc-or32.c: New file.
5455 * config/tc-or32.h: New file.
5456 * configure.in: Add support for or32 targets.
5457 * configure: Regenerate.
5458 * config/obj-coff.c: Add support for or32 targets.
5459 * config/obj-coff.h: Add support for or32 targets.
5460 * Makefile.am: Add support for or32 targets.
5461 * Makefile.in: Regenerate.
5462 * NEWS: Mention support for OpenRISC.
5463 * doc/Makefile.in: Regenerate.
5464 * po/POTFILES.in: Regenerate.
5465 * po/gas.pot: Regenerate.
5467 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5469 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5472 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5474 * config/tc-mips.c (tc_gen_reloc): Arrange for
5475 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5476 their LO16 parts, even for ELF.
5478 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5480 * config/tc-i386.c: Protect definitions of true and false
5483 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5485 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5486 made because of .weak, if they are neither defined nor used in any
5489 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5491 * configure: Regenerated.
5493 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5495 * doc/Makefile.am (install): Depend on install-info.
5496 * doc/Makefile.in: Regenerate.
5498 2002-01-26 Nick Clifton <nick@redhat.com>
5500 * po/fr.po: Updated version
5502 2002-01-24 Kazu Hirata <kazu@hxi.com>
5504 * config/tc-h8300.c (check_operand): Don't print a warning
5505 when a valid 24-bit address is given to a 16-bit address
5508 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5510 * config/tc-sh.c (sh_elf_suffix): Removed.
5511 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5512 sh_end_of_match, sh_parse_name): New functions.
5513 (sh_elf_cons): Simplify.
5514 (parse_exp): Reject misplaced PIC operands.
5515 (md_undefined_symbol): Simplify.
5516 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5517 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5518 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5519 Complain if subsy remains at the end.
5520 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5521 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5523 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5525 * config/tc-mn10300.c (xr_registers): Move `pc'...
5526 (other_registers): ... here.
5528 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5530 * Makefile.am: Run "make dep-am".
5531 * Makefile.in: Regenerate.
5532 * gas/po/POTFILES.in: Regenerate.
5534 2002-01-21 DJ Delorie <dj@redhat.com>
5536 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5537 stabstr_name allocation permanent, as it will be referenced from
5540 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5542 * configure.in (ia64-*-netbsd*): New target.
5543 * configure: Regenerate.
5545 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5547 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5549 <Detailed description, ARM options>: Ditto.
5550 * doc/c-arm.texi (ARM Options): Ditto.
5552 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5554 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5555 do_mia, do_mar and do_mra respectively.
5556 (do_mav_*): Renamed from do_c_*.
5557 (mav_reg_required_here, mav_parse_offset): Renamed from
5558 cirrus_reg_required_here and cirrus_parse_offset respectively.
5559 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5561 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5562 Keith Walker <keith.walker@arm.com>
5564 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5565 (insns): Add pattern for bxj instruction.
5566 (do_bxj): New function.
5567 (arm_cpus): Add arm926ej.
5568 (arm_archs): Add armv5tej.
5570 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5572 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5574 2002-01-19 Keith Walker <keith.walker@arm.com>
5576 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5578 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5580 * NEWS: Mention new ARM command-line options and VFP support.
5582 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5584 (ARM_CEXT_MAVERICK): Similarly.
5585 (ARM_ANY): Now means any core instruction.
5586 (CPU_DEFAULT): Default to ARM_ANY.
5587 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5588 (pic_code): Declare for all object types. Make type int.
5589 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5590 (march_fpu_opt, mfpu_opt): Declare.
5591 (md_longopts): Tidy up conditional definitions.
5592 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5593 (arm_long_opts): New tables.
5594 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5595 (arm_parse_extension): New function.
5596 (md_parse_option): Rewrite using new table-driven system.
5597 (md_show_usage): Use new table-driven system.
5598 (md_begin): Calculate cpu_variant from command line option data.
5599 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5600 command-line options.
5601 * doc/c-arm.texi: Likewise.
5603 2002-01-18 Andreas Jaeger <aj@suse.de>
5605 * as.c (parse_args): Update year.
5607 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5609 * config/tc-tic54x.c (encode_address): Add a more informative
5610 warning about incorrect syntax.
5612 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5614 * po/gas.pot: Regenerate.
5616 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5618 * macro.c (get_any_string): Add no-c-format comment to prevent
5619 confusion when translating string.
5620 * gasp.c (get_any_string): Add no-c-format comment to prevent
5621 confusion when translating string.
5623 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5624 Johannes Stezenbach <js@convergence.de>
5625 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5626 matched before the shorter ones.
5627 (my_getSmallParser): Fix handling of nested parentheses in
5628 percent_op's. Code cleanup.
5629 (my_getPercentOp): New function, code from my_getSmallParser.
5630 (my_getSmallExpression): Fix handling of closing parentheses.
5631 Code cleanup. Better comments.
5633 2002-01-16 Nick Clifton <nickc@redhat.com>
5635 po/tr.po: New file: Turkish translation.
5636 configure.in (LINGUAS): Add "tr".
5637 configure: Regenerate.
5639 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5641 Support for VFP instructions
5642 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5643 (cp_address_required_here): New argument wb_ok. When false, do not
5644 accept write-back forms of addressing. Change all callers.
5645 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5646 (FPU_VFP_EXT_V2): Define.
5647 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5648 Define in terms of above.
5649 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5650 (vfp_reg): New struct.
5651 (vfp_regs): New array of registers.
5652 (insns): Add VFP instructions.
5653 (sn_table): New array of VFP single-precision register names.
5654 (dn_table): New array of VFP double-precision register names.
5655 (all_reg_maps): Add the new register tables.
5656 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5657 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5658 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5659 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5660 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5661 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5662 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5663 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5664 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5665 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5666 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5667 (do_vfp_sp_dp_cvt): New functions.
5668 (md_begin): Set soft-float flag for appropriate VFP work.
5669 (md_atof): Handle VFP-format doubles.
5670 (md_parse_option): Handle VFP command-line options.
5671 (md_show_usage): Display VFP command-line options.
5673 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5675 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5676 various command line options.
5678 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5680 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5682 (xstormy16_md_apply_fix3): Do not return a value.
5684 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5686 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5687 the -EL/-EB option that matches the target's endianness.
5688 (md_parse_option): Likewise.
5690 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5692 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5693 is not dependent on ARM_BI_ENDIAN.
5695 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5697 * tc-arm.c (all error messages): Normalize capitalization of messages.
5699 * tc-arm.h (md_operand): Delete define.
5700 * tc-arm.c (in_my_get_expression): New static variable.
5701 (my_get_expression): Set and clear it.
5702 (md_operand): New function. If called from my_get_expression
5703 put the error in inst.error.
5704 (output_inst): Now takes argument of instruction being assembled.
5705 Print it out with any error message.
5706 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5708 (end_of_line): Don't update inst.error if it is already set.
5710 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5712 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5713 op that can be translated into a mvn instruction.
5715 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5717 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5718 setting default md.flags.
5719 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5720 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5721 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5722 for 32 bit unwind info blocks.
5723 (generate_unwind_image): Add support for different types
5724 of unwind images (32 bits and/or big-endian).
5725 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5726 (ia64_target_format): Add support for hpux target formats.
5727 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5728 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5729 SHT_FINI_ARRAY elf section types.
5731 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5733 * tc-arm.c (struct reg_entry): Move before prototypes.
5734 (int_register, cp_register, fp_register): Delete.
5735 (reg_table): Delete. Replaced with ...
5736 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5737 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5738 (mav_dspsc_table): ... one table per register set.
5739 (arm_reg_hsh): Delete.
5740 (struct reg_map): New structure.
5741 (all_reg_maps): New array.
5742 (enum arm_reg_type): New enums.
5743 (build_reg_hsh): New function.
5744 (insert_reg_alias): Use hash table passed by caller. Adjust all
5746 (create_register_alias): New function, split out from ...
5747 (md_assemble): ... here.
5748 (md_begin): Build new register hash tables.
5749 (arm_reg_parse): New argument for the hash table to search. Adjust all
5751 (arm_reg_parse_any): New function.
5752 (co_proc_number): Look up the processor number in the processor hash
5754 (cirrus_regtype): Delete.
5755 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5756 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5757 (ARM_EXT_MAVERICKsc_register): Delete.
5758 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5759 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5761 (do_c_triple_4, do_c_triple_5): Delete.
5762 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5763 (do_c_quad_6): Delete.
5764 (do_c_quad_6[ab]): New functions.
5765 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5766 arguments to use new register parsing methods.
5767 (cirrus_reg_required_here): Likewise.
5768 (insns): Reclassify cirrus maverick worker functions.
5769 (cirrus_valid_reg): Delete.
5771 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5773 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5774 (sh*-*-netbsdelf*): New target.
5775 * configure: Regenerate.
5776 * tc-sh.h: Update copyright years.
5777 (TARGET_FORMAT): Add version for TE_NetBSD.
5779 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5781 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5784 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5786 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5787 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5789 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5791 * tc-mips.c (mips_cprestore_valid): New flag.
5792 (mips_frame_reg_valid): New flag.
5793 (macro) [M_JAL_2]: Check both flags.
5794 [M_JAL_A]: Likewise.
5795 (s_cprestore): Set mips_cprestore_valid.
5796 (tc_get_register): If setting mips_frame_reg, set
5797 mips_frame_reg_valid and clear mips_cprestore_valid.
5798 (s_mips_ent): Clear both flags.
5799 (s_mips_end): Clear both flags.
5801 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5803 * write.c (write_object_file): Make use of bfd_section_list_remove.
5804 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5805 * config/tc-mmix.c (mmix_frob_file): Likewise.
5807 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5809 * configure.in (i386-*-netbsdelf*): Collapse target into...
5810 (i386-*-netbsd*): ...this. Add support for x86-64.
5811 * configure: Regenerated.
5813 2002-01-03 matthew green <mrg@redhat.com>
5815 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5817 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5819 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5822 For older changes see ChangeLog-0001
5828 version-control: never