1 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
3 * config/tc-h8300.c (h8300sxnmode): New.
4 (md_pseudo_table): Add .h8300sxn entry.
6 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
8 * NEWS: Updated for the new -n option for the i386 assembler.
10 * config/tc-i386.c (optimize_align_code): New.
11 (md_shortopts): Add 'n'.
12 (md_parse_option): Handle 'n'.
13 (md_show_usage): Add '-n'.
15 * config/tc-i386.h (optimize_align_code): Declared.
16 (md_do_align): Optimize code alignment only if optimize_align_code
19 * doc/as.texinfo: Add the new -n option.
21 * doc/c-i386.texi: Document the new -n option.
23 2003-06-07 Richard Henderson <rth@redhat.com>
25 * doc/as.texinfo: Document .cfi_rel_offset.
27 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
28 (cfi_add_CFA_offset): Detect invalid offsets.
29 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
30 (cfi_add_CFA_restore_state): Restore it.
31 (CFI_rel_offset): New.
32 (cfi_pseudo_table): Add it.
35 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
37 * app.c (do_scrub_chars): Add states 14 and 15 to handle
40 2003-06-05 Michael Snyder <msnyder@redhat.com>
42 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
45 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
47 * config/tc-h8sx.c (DMODE): Remove.
48 (colonmod24): Don't choose a default if the operand is a 16-bit
50 (fix_operand_size): New function.
51 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
52 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
54 2003-06-05 Michal Ludvig <mludvig@suse.cz>
56 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
57 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
58 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
59 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
60 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
61 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
62 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
63 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
64 (cfi_pseudo_table): New directives .cfi_return_column,
65 .cfi_restore, .cfi_undefined, .cfi_same_value,
66 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
67 (dot_cfi, output_cfi_insn): Handle new directives.
68 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
69 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
70 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
72 2003-06-04 Richard Henderson <rth@redhat.com>
74 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
76 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
78 2003-06-04 Richard Henderson <rth@redhat.com>
80 * config/tc-alpha.c (s_alpha_usepv): New.
81 (md_pseudo_table): Add it.
82 (alpha_cfi_frame_initial_instructions): New.
83 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
84 (tc_cfi_frame_initial_instructions): New.
85 * doc/c-alpha.texi: Document .usepv.
87 2003-06-04 Jakub Jelinek <jakub@redhat.com>
89 * as.c (show_usage): Document --execstack and --noexecstack.
90 (parse_args): Add --execstack and --noexecstack.
91 (main): Create .note.GNU-stack section if --execstack or
92 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
93 * as.h (flag_execstack, flag_noexecstack): New.
95 2003-06-03 Chris Demetriou <cgd@broadcom.com>
97 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
98 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
99 (OPTION_MISC_BASE): New defines.
100 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
101 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
102 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
103 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
104 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
105 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
106 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
107 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
108 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
109 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
110 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
111 (OPTION_TRAP): Redefine in terms of new defines.
112 (md_longopts): Reorder entries.
114 2003-05-14 Michael Snyder <msnyder@redhat.com>
115 From Bernd Schmidt <bernds@redhat.com>
116 and Michael Snyder <msnyder@redhat.com>
117 and Alexandre Oliva <aoliva@redhat.com>
118 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
119 * config/tc-h8300.h: Ditto.
121 2003-06-03 Nick Clifton <nickc@redhat.com>
123 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
124 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
125 before calling bfd_reloc_type_lookup.
127 2003-06-02 Alan Modra <amodra@bigpond.net.au>
129 * read.c (emit_expr): Set dot_value.
130 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
132 2003-06-02 Alan Modra <amodra@bigpond.net.au>
134 * macro.c (sub_actual): Don't lose string if it turns out that
135 &string wasn't an arg.
137 2003-05-31 Richard Henderson <rth@redhat.com>
139 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
140 (cfi_finish): Set flag_traditional_format around .eh_frame data.
142 2003-05-29 Richard Henderson <rth@redhat.com>
144 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
145 (all_frame_data, plast_frame_data, cur_frame_data): New.
146 (s_alpha_ent): Record data for dwarf2 cfi.
147 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
148 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
149 * config/tc-alpha.h (md_end): New.
150 (DWARF2_DEFAULT_RETURN_COLUMN): New.
151 (DWARF2_CIE_DATA_ALIGNMENT): New.
153 2003-05-29 Nick Clifton <nickc@redhat.com>
155 * configure.in: Add i386-*-freebsd* entry.
156 * configure: Regenerate.
158 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
160 * config/tc-m32r.c: Amend comment to refer to Renesas
162 2003-05-27 Richard Henderson <rth@redhat.com>
164 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
166 (current_location): Use symbol_temp_new_now.
167 * stabs.c (s_stab_generic): Use symbol_temp_new.
168 * symbols.c (temp_label_name): Remove.
169 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
171 2003-05-27 Richard Henderson <rth@redhat.com>
173 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
174 * as.c (main): Always call cfi_finish.
175 * config/tc-i386.c (x86_dwarf2_return_column): New.
176 (x86_cie_data_alignment): New.
177 (md_begin): Set them.
178 (tc_x86_cfi_init): Remove.
179 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
180 return int, not unsigned long; don't as_bad here.
181 (tc_x86_frame_initial_instructions): Streamline; use
183 * config/tc-i386.h (tc_cfi_init): Remove.
184 (DWARF2_DEFAULT_RETURN_COLUMN): New.
185 (DWARF2_CIE_DATA_ALIGNMENT): New.
187 2003-05-27 Richard Henderson <rth@redhat.com>
189 * symbols.c (temp_label_name): New.
190 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
191 (symbol_set_value_now): New.
192 * symbols.h: Prototype them.
193 * dwarf2dbg.c: Use them.
194 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
196 2003-05-23 Jason Eckhardt <jle@rice.edu>
198 * config/tc-i860.c (target_xp): Declare variable.
199 (OPTION_XP): Declare macro.
200 (md_longopts): Add option -mxp.
201 (md_parse_option): Set target_xp.
202 (md_show_usage): Add -mxp usage.
203 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
204 (md_assemble): Don't try expansions if XP_ONLY is set.
205 * doc/c-i860.texi: Document -mxp option and i860XP support.
207 2003-05-23 Eric Christopher <echristo@redhat.com>
209 * config/tc-mips.c (macro_build_jalr): Warning patrol.
211 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
213 * config/tc-mips.c (append_insn): Use actual relocation size for new
214 fixp's. Don't relax overflow checking for partial_inplace relocations.
215 Use the actual relocation type in combined relocs, not just the type
217 (macro_build_jalr): Use actual relocation size for new fix.
218 (s_cpsetup, s_gpdword): Likewise.
220 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
222 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
224 2003-05-22 Nick Clifton <nickc@redhat.com>
226 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
227 section relative offsets for relocs that will not be based on the
229 (xstormy16_md_apply_fix3): Remove previous patch to this
232 2003-05-07 Eric Christopher <echristo@redhat.com>
234 * config/tc-mips.c (mips_abicalls): New variable.
235 (md_parse_option): Use.
238 (mips_elf_final_processing): Set EF_MIPS_PIC and
239 EF_MIPS_CPIC dependent on above.
241 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
243 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
245 2003-05-21 Nick Clifton <nickc@redhat.com>
247 * config/obj-elf.c: Include dwarf2dbg.h.
248 (elf_pseudo_tab): Add .file and .loc.
249 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
250 * config/tc-arm.c: Likewise.
251 * config/tc-h8300.c: Likewise.
252 * config/tc-hppa.c: Likewise.
253 * config/tc-ia64.c: Likewise.
254 * config/tc-m68hc11.c: Likewise.
255 * config/tc-m68k.c: Likewise.
256 * config/tc-mmix.c: Likewise.
257 * config/tc-mn10300.c: Likewise.
258 * config/tc-ppc.c: Likewise.
259 * config/tc-sh.c: Likewise.
260 * config/tc-sparc.c: Likewise.
261 * config/tc-v850.c: Likewise.
262 * config/tc-frv.c: Likewise, and remove redundant inclusion of
264 * config/tc-ip2k.c: Likewise.
265 * config/tc-iq2000.c: Likewise.
266 * config/tc-xstormy16.c: Likewise.
267 * config/tc-xtensa.c: Likewise.
268 * Makefile.am: Regenerate dependencies.
269 * Makefile.in: Regenerate.
270 * aclocal.m4: Regenerate.
271 * config.in: Regenerate.
272 * configure: Regenerate.
273 * po/POTFILES.in: Regenerate.
274 * po/gas.pot: Regenerate.
276 2003-05-21 Nick Clifton <nickc@redhat.com>
278 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
279 BFD_ASSEMBLER targets.
280 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
281 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
282 defining BFD_ASSEMBLER.
284 2003-05-20 Michal Ludvig <mludvig@suse.cz>
286 * as.c (main): Remove tc_cfi_init().
287 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
289 (cfi_pseudo_table): Add "cfi_register" entry.
290 (cfi_make_insn): Handle CFA_register.
291 (cfi_output_insn): Ditto.
293 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
294 (dot_cfi_endproc): Reuse already emitted CIEs.
295 * testsuite/gas/cfi/cfi-i386.d: New pattern.
296 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
298 2003-05-20 Nick Clifton <nickc@redhat.com>
300 * config/tc-xstormy16.c: Include dwarf2dbg.h.
301 (md_pseudo_table): Add entries for .loc and .line.
303 2003-05-20 Alan Modra <amodra@bigpond.net.au>
305 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
307 (dot_cfi_endproc): Avoid C99 construct.
309 2003-05-20 Michal Ludvig <mludvig@suse.cz>
311 * dw2gencfi.c, dw2gencfi.h: New files.
312 * config/tc-i386.c (tc_x86_cfi_init): New function.
313 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
314 * as.c (parse_args): Set verbose flag on --verbose.
315 (main): Call tc_cfi_init()/cfi_finish().
316 * as.h (verbose): New external variable.
317 * read.c (pobegin): Insert CFI pops to the list.
318 * symbols.c (local_symbol_make): Make symbol external.
319 * symbols.h (local_symbol_make): New prototype.
320 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
321 * Makefile.in: Regenerate.
322 * doc/as.texinfo: Added node "CFI directives" with description of
323 all implemented .cfi_* directives.
324 * doc/Makefile.in: Regenerate.
325 * po/POTFILES.in: Regenerate.
327 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
329 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
331 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
333 2003-05-18 Jason Eckhardt <jle@rice.edu>
335 * config/tc-i860.c (i860_process_insn): Initialize fc after
336 each opcode mismatch.
338 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
340 * configure.in: Accept i[3-7]86 variants.
341 * configure: Regenerate.
343 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
345 * config/tc-mips.h: Fix comment formatting.
347 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
349 * read.c (old_buffer, old_input, old_limit): Remove variables.
350 (read_a_source_file): Delete label contin.
351 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
352 input as with macros, instead of in separate old_* variables.
353 Zero-terminate string being scrubbed.
355 2003-05-12 Nick Clifton <nickc@redhat.com>
357 * config/tc-xstormy16.c (skipping_fptr): New local variable.
358 (md_assemble): Reset skipping_fptr.
359 (md_operand): If @fptr() is followed by a minus sign, set
360 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
361 @fptr is detected, ignore it and reset skipping_fptr.
363 2003-05-11 Jason Eckhardt <jle@rice.edu>
365 * config/tc-i860.c (MAX_FIXUPS): Define.
366 (struct i860_fi fi[]): New struct.
367 (struct i860_it the_insn): Add above as member and move fields
368 exp, reloc, pcrel and fup into i860_fi.
369 (md_assemble): Replace all instances of exp, reloc, pcrel
370 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
371 Add a loop to possibly emit multiple fix-ups for each insn.
372 (i860_process_insn): Likewise.
373 (i860_get_expression): Likewise.
374 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
376 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
378 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
380 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
382 * config/tc-ia64.c (alias_hash): New.
383 (alias_name_hash): New.
384 (secalias_hash): New.
385 (secalias_name_hash): New.
386 (md_pseudo_table): Add "secalias".
387 (md_begin): Initialize alias_hash, alias_name_hash,
388 secalias_hash and secalias_name_hash.
390 (dot_alias): Implement .alias and .secalias directives.
392 (ia64_adjust_symtab): New.
394 (ia64_frob_file): New.
396 * config/tc-ia64.h (ia64_adjust_symtab): New.
397 (tc_adjust_symtab): Defined.
398 (ia64_frob_file): New.
399 (tc_frob_file): Defined.
401 2003-05-07 Dmitry Diky <diwil@mail.ru>
403 * tc-msp430.c: Add missing lines to known cpus list.
405 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
407 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
408 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
409 * config.in, configure: Rebuilt.
411 2003-05-05 H.J. Lu <hjl@gnu.org>
413 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
414 howto->partial_inplace is false.
416 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
418 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
419 symbol_used_in_reloc_p check.
420 (md_apply_fix3): Remove check for howto->pcrel_offset.
422 2003-05-03 H.J. Lu <hjl@gnu.org>
424 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
425 fatal error for unknown section attribute.
427 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
428 unknown section attribute.
429 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
430 * config/tc-ppc.c (ppc_section_letter): Likewise.
432 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
433 (ia64_elf_section_type): Accept "unwind".
435 2003-05-02 H.J. Lu <hjl@gnu.org>
437 * read.h (demand_copy_string): New.
439 * config/tc-alpha.c (demand_copy_string): Removed.
441 2003-05-02 Michael Snyder <msnyder@redhat.com>
443 * write.h (FAKE_LABEL_NAME): Allow override
444 (for targets that like eg. a leading dot in a local label).
446 2003-05-02 Nick Clifton <nickc@redhat.com>
448 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
449 addend with the symbol's value for pc-relative relocations against
450 a defined symbol - this will be done automatically.
452 2003-05-01 H.J. Lu <hjl@gnu.org>
454 * config/obj-elf.c (obj_elf_type): Accept "notype" and
457 2003-05-01 H.J. Lu <hjl@gnu.org>
459 * config/tc-ia64.h (tc_canonicalize_section_name): New.
461 * config/obj-elf.c (obj_elf_section_name): Call
462 tc_canonicalize_section_name if it is defined.
464 2003-05-01 H.J. Lu <hjl@gnu.org>
466 * config/tc-ia64.c (ia64_check_label): New.
467 * config/tc-ia64.h (tc_check_label): New.
469 * read.c (read_a_source_file): Call tc_check_label after
470 creating a user-defined label if defined.
472 2003-05-02 Alan Modra <amodra@bigpond.net.au>
474 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
475 -be and split strings to below 509 bytes in length.
477 2003-05-01 Christian Groessler <chris@groessler.org>
479 * expr.h: Fix comments in operatorT typedef.
480 * config/tc-z8k.c: Add 2003 to copyright message.
481 Fold s_segm() and s_unseg() into one function s_segm(parm) which
482 decides by the parameter.
483 (md_begin): Don't set linkrelax. Only set Z8002 default if no
484 command line argument was given to select the intended
486 (get_interrupt_operand): Warn if NOP type code is emitted.
487 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
488 (apply_fix): Call newfix with additional 'size' parameter.
489 (build_bytes): Remove unused variable 'nib'. Detect overflow in
490 4 bit immediate arguments.
491 (md_longopts): Add 'linkrelax' option.
492 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
493 variable when 'linkrelax' command line option is specified.
494 (md_show_usage): Display 'linkrelax' option.
495 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
497 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
499 2003-04-30 H.J. Lu <hjl@gnu.org>
501 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
502 (ia64_float_to_chars): Likewise.
503 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
504 and ia64_float_to_chars by tc_segment_info_data.endian from
505 the current segment if byteorder == -1.
506 (md_begin): Call dot_byteorder to set target_big_endian.
507 (md_atof): Call ia64_float_to_chars to convert floating point.
508 (ia64_float_to_chars_bigendian): New function.
509 (ia64_float_to_chars_littleendian): Likewise.
510 (ia64_elf_section_change_hook): Likewise.
512 * config/tc-ia64.h (ia64_number_to_chars): New.
513 (md_number_to_chars): Changed to (*ia64_number_to_chars)
514 (ia64_elf_section_change_hook): New.
515 (md_elf_section_change_hook): Defined.
516 (ia64_segment_info_type): New struct.
517 (TC_SEGMENT_INFO_TYPE): Defined.
519 2003-04-30 H.J. Lu <hjl@gnu.org>
521 * config/tc-ia64.c (md_section_align): Deleted.
523 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
524 (md_section_align): New.
526 2003-04-30 H.J. Lu <hjl@gnu.org>
528 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
530 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
532 (md_atof): Add 6 byte padding of zero for real16.
534 2003-04-29 Nick Clifton <nickc@redhat.com>
536 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
537 start of a version name.
539 2003-04-28 Chris Demetriou <cgd@broadcom.com>
541 * configure.in (mips-*-*n*bsd*): Replace with...
542 (mips-*-netbsd*, mips-*-openbsd*): These.
543 * configure: Regenerate.
545 2003-04-28 H.J. Lu <hjl@gnu.org>
547 * config/tc-hppa.c (hppa_symbol_chars): New.
548 * config/tc-hppa.h (tc_symbol_chars): Likewise.
550 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
552 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
554 2003-04-25 Chris Demetriou <cgd@broadcom.com>
556 * NEWS: Belatedly mention support for MIPS32 Release 2.
558 2003-04-24 Eric Christopher <echristo@redhat.com>
560 * config/tc-mips.c (nopic_need_relax): Revert previous
563 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
565 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
566 * config/tc-h8300.c (dwarf2dbg.h): Include
567 (md_pseudo_table): Handle .loc and .file
568 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
569 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
570 * Makefile.in: Regenerate.
572 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
574 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
575 (md_pseudo_table): Add h8300hn, h8300sn.
576 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
577 * doc/c-h8300.texi : Add documentation for new machine directives.
579 2003-04-24 Nick Clifton <nickc@redhat.com>
581 * config/tc-ppc.c (ppc_symbol_chars): Define.
582 * config/tc-ppc.h (tc_symbol_chars): Define.
584 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
586 * config/tc-sh.c: Amend comment to refer to SuperH.
587 * config/tc-sh.h: Likewise.
588 (LISTING_HEADER): Amend to refer to SuperH.
589 * config/tc-sh64.c: Change comment to refer to SuperH.
590 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
591 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
592 * doc/c-sh.texi: Amend to refer to SuperH.
593 Add SuperH architecture documentation references.
594 * doc/c-sh64.texi: Change to refer to SuperH.
596 2003-04-23 H.J. Lu <hjl@gnu.org>
598 * app.c (do_scrub_chars): More checks for valid labels.
600 2003-04-22 H.J. Lu <hjl@gnu.org>
602 * app.c (do_scrub_chars): Check for valid label.
604 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
606 * doc/as.texinfo: Replace references to Mitsubishi M32R with
607 references to Renesas M32R.
608 * doc/c-m32r.texi: Likewise.
610 2003-04-21 Richard Henderson <rth@redhat.com>
612 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
613 (out_file_list): Assign non-null filename after generating error.
615 2003-04-18 Jakub Jelinek <jakub@redhat.com>
617 * ehopt.c (check_eh_frame): For aug_size == 0
618 in state_seeing_aug_size state skip the state_skipping_aug
621 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
623 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
625 * doc/c-h8500.texi: Likewise.
626 * doc/c-sh.texi: Likewise.
627 * doc/c-sh64.texi: Likewise.
628 * doc/h8.texi: Likewise.
629 * config/tc-h8300.c: Likewise.
630 * config/tc-h8300.h: Likewise.
631 * config/tc-h8500.c: Likewise.
632 * config/tc-h8500.h: Likewise.
633 * config/tc-sh.c: Likewise.
634 * config/tc-sh.h: Likewise.
635 * config/tc-sh64.c: Likewise.
636 * config/tc-sh64.h: Likewise.
638 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
640 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
641 * config/tc-mips.c: Use signed add for n32 address arithmetic.
642 (append_insn): When filling delay slots with instructions
643 that have fixups that tc_gen_reloc might consider modifyable
644 in variant frags, start a new frag.
645 (load_address): Generate GOT_DISP with of without offset
646 depending on whether symbol is local. For -xgot, use
647 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
648 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
649 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
650 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
651 <ld_st>: In NewABI with small got, always use
652 GOT_PAGE/GOT_OFST, with the latter in the load/store
653 instruction. With big got, use GOT_HI16/GOT_LO16 or
655 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
656 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
657 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
658 (md_convert_frag): Use memmove for safe copying of overlapping
661 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
663 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
664 -mlong, -mshort-double and -mlong-double options; use table @code.
665 (M68HC11-Syntax): Update to document 68HC12 operands.
666 (M68HC11-Modifiers): New section for operand modifiers.
667 (M68HC11-Directives): New section for specific assembler directives.
668 (M68HC11-Branch): Fix Overfull hbox error.
670 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
672 * config/tc-mips.c (macro): Add comments explaining the rationale
675 2003-04-09 Chris Demetriou <cgd@broadcom.com>
677 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
678 constant address that Alexandre took out by accident. Reject
679 64-bit addresses that are not sign extensions of 32 bits only if
680 we don't support 64-bit address constants.
682 2003-04-09 Alan Modra <amodra@bigpond.net.au>
684 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
686 2003-04-08 Nick Clifton <nickc@redhat.com>
688 * as.c (perform_an_assembly_pass): If using cgen, call
690 * cgen.c (gas_cgen_begin): New function. If
691 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
692 otherwise call cgen_clear_signed_overflow_ok.
693 * cgen.h: Prototype gas_cgen_begin.
695 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
697 * write.c (write_relocs): Remove unused variable.
699 2003-04-06 Chris Demetriou <cgd@broadcom.com>
701 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
702 (macro): Use new macro to decide whether to emit constant address
703 as 32 or 64 bits if addresses are 32-bit wide but registers are
706 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
708 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
709 (M6811_OP_PAGE_ADDR): New internal define.
710 (get_operand): New modifier %page and %addr to obtain page and
711 address part of a far-function.
712 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
713 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
715 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
716 (find_opcode): Add comment.
717 (md_estimate_size_before_relax): Force relocation of
718 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
719 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
720 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
721 on the symbol itself so that DWARF2 strings are merged correctly.
723 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
725 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
726 default tic4x target format to 'coff2-tic4x'.
727 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
729 * config/tc-tic4x.h: Ditto
731 2003-04-03 Nick Clifton <nickc@redhat.com>
733 * NEWS: Mention support for Xtensa architecture.
735 2003-04-02 Philip Blundell <philb@gnu.org>
737 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
739 2003-04-02 Chris Demetriou <cgd@broadcom.com>
741 * config/tc-mips.c (macro2): Adjust implementation of
742 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
743 in the case where the source and destination registers
746 2003-04-01 Bob Wilson <bob.wilson@acm.org>
748 * Makefile.am (CPU_TYPES): Add xtensa.
749 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
750 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
751 (xtensa-relax.o): New target.
753 * Makefile.in: Regenerate.
754 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
755 extra_objects for xtensa targets.
756 * configure: Regenerate.
757 * write.c (write_object_file): Add new md_post_relax_hook.
758 * config/tc-xtensa.c: New file.
759 * config/tc-xtensa.h: Likewise.
760 * config/xtensa-istack.h: Likewise.
761 * config/xtensa-relax.c: Likewise.
762 * config/xtensa-relax.h: Likewise.
763 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
764 * doc/Makefile.in: Regenerate.
765 * doc/all.texi: Set new XTENSA variable.
766 * doc/as.texinfo: Set new Xtensa variable. Describe
767 Xtensa-specific options. Define line comment character for
768 Xtensa. Add Xtensa processors to list of ELF targets where
769 alignment is specified in bytes. Add new Xtensa-Dependent node.
770 Add acknowledgements for those contributing to the Xtensa port.
771 * doc/internals.texi: Describe new md_post_relax_hook.
772 * doc/c-xtensa.texi: New file.
774 2003-04-01 Nick Clifton <nickc@redhat.com>
775 Richard Earnshaw <rearnsha@arm.com>
777 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
778 (ARM_ARCH_IWMMXT): Simplify.
779 (insns): Place iwmmx instructions in correct place in table.
780 (arm_add_note): New function: Add a note entry to a .note section.
781 (md_begin): Make the default architecture be unknown.
782 Suppress the creation of an arm note section.
784 2003-03-26 Eric Christopher <echristo@redhat.com>
786 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
788 2003-03-25 Stan Cox <scox@redhat.com>
789 Nick Clifton <nickc@redhat.com>
791 Contribute support for Intel's iWMMXt chip - an ARM variant:
793 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
794 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
795 (enum wreg_type, enum iwmmxt_insn_type): New types.
796 (wr_register, wc_register, wcg_register): New macros.
797 (iwmmxt_table): New variable.
798 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
799 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
800 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
801 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
802 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
803 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
804 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
805 cp_byte_address_offset, cp_byte_address_required_here,
806 check_iwmmxt_insn): New functions.
807 (asm_opcode_insns): Add iWMMXt instructions.
808 (md_begin): Set the mach value for iWMMXt targets. Create a note
809 section to identify iwmmxt binaries.
810 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
811 * doc/c-arm.texi: Document the support for the iWMMXt.
812 * NEWS: Mention new support.
814 2003-03-24 Daniel Néri <dne@mayonnaise.net>
816 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
817 * doc/all.texi: Likewise.
818 * doc/c-tic54x.texi: Likewise.
820 2003-03-21 Andreas Schwab <schwab@suse.de>
822 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
823 avoid aliasing issue.
825 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
827 * config/tc-s390.c (s390_arch_size): Initialize to zero.
828 (current_arch_mask): Rename to current_mode_mask.
829 (current_arch_requested): Remove variable.
830 (current_cpu): New variable.
831 (init_default_arch): Set defaults values for s390_arch_size,
832 current_mode_mask and current_cpu.
833 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
834 (md_begin): Replace current_arch_mask by current_cpu.
835 (md_assemble): Adapt check and error message to current_mode_mask and
838 2003-03-09 James E Wilson <wilson@tuliptree.org>
840 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
841 * read.c (get_line_sb): Return end of line character or '\n' if
842 it is zero or non-existent.
844 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
846 * config/tc-mips.c (mips_validate_fix): New function.
847 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
848 (mips_validate_fix): Declare.
850 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
852 * Reverted 2003-03-02's patch.
854 2003-03-11 Steve Ellcey <sje@cup.hp.com>
856 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
857 (TC_DWARF2_EMIT_OFFSET): Provide default.
858 (out_debug_aranges, out_debug_info): Use it.
859 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
860 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
861 (ia64_gen_real_reloc_type): ... here.
862 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
864 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
866 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
867 (s_mips_ent): Likewise.
869 2003-03-04 Dmitry Diky <diwil@mail.ru>
871 * config/tc-msp430.c (mcu_types): Add recently announced x1122
872 and x1123 devices, add missed x437.
873 (md_show_usage): Sort device list.
875 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
877 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
878 (md_begin): Use preset_target_arch.
879 (md_longopts): Make isa option unconditional.
880 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
881 set preset_target_arch.
882 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
883 by -S_GET_VALUE (fixP->fx_subsy).
884 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
886 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
887 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
889 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
891 * config/tc-mips.c (append_insn): Add handling of
892 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
893 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
894 misaligned address and reange overflow.
895 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
896 earlier warnings about misaligned address and reange overflow.
897 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
898 (md_apply_fix): Likewise. Fix warning output.
899 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
900 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
901 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
903 2003-02-21 Nick Clifton <nickc@redhat.com>
905 * NEWS: Mention availability of test generator program.
907 2003-02-21 Miles Bader <miles@gnu.org>
909 * config/tc-v850.c (system_registers): Add v850e debug registers.
910 (system_register_name): Accept up to 27 (the last v850e sys register).
912 2003-02-21 Bob Wilson <bob.wilson@acm.org>
914 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
915 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
916 Capitalize section headings consistently. Format index entries more
917 consistently. Unconditionalize text about whether text and data
918 sections are alterable. Use @ifnottex for alternatives to @tex output
919 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
920 .size and .type directives. Be more polite about bad bug reports.
921 Move FDL into a separate file.
922 * doc/fdl.texi: New file.
924 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
926 * config/tc-mips.c (prev_reloc_op_frag): New variable.
927 (macro): Check it to decide whether a new frag is needed.
928 (my_getSmallExpression): Set it.
930 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
932 * cgen.c: Fix typo: intial -> initial.
934 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
936 * app.c (do_scrub_chars): Handle '||' in two states.
938 2003-02-13 Alan Modra <amodra@bigpond.net.au>
940 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
941 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
943 2003-02-11 Uwe Stieber <uwe@wwws.de>
945 * configure.in: Add support for kaOS as cross build target system.
946 * configure: Regenerated.
948 2003-02-10 Nick Clifton <nickc@redhat.com>
950 * config/tc-arm.c (md_begin): If the Maverick co-processor is
951 selected, set the EF_ARM_MAVERICK_FLOAT flag and
952 bfd_mach_arm_ep9312 machine number.
954 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
956 * config/tc-mips.c (reloc_needs_lo_p): New function.
957 (fixup_has_matching_lo_p): New function.
958 (append_insn): Use reloc_needs_lo_p to check whether a relocation
959 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
960 if that fixup already has a matching %lo(). Don't call frag_wane here.
961 (macro): Call frag_wane here if the last unmatched hi was in the
963 (pic_need_relax): New function, split out from...
964 (md_estimate_size_before_relax): ...here.
965 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
966 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
968 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
970 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
972 2003-02-06 Alan Modra <amodra@bigpond.net.au>
974 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
977 2003-02-05 Alan Modra <amodra@bigpond.net.au>
979 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
980 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
981 accept x@got+off etc.
982 (md_assemble): Handle TLS relocs.
983 (ppc_force_relocation): Force for all TLS relocs.
984 (ppc_fix_adjustable): Likewise.
985 (md_apply_fix3): Handle TLS relocs.
987 2003-02-04 Alan Modra <amodra@bigpond.net.au>
989 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
990 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
992 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
994 * config/tc-mips.c (enum small_ex_type): Remove.
995 (imm_unmatched_hi): Remove.
996 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
997 argument from calls to append_insn.
998 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
1000 (macro_build): Update append_insn calls.
1001 (mips16_macro_build, macro_build_lui): Likewise.
1002 (mips_ip): Rework handling of small expressions. Move explicit
1003 relocation handling into my_getSmallExpression. Assume that the
1004 value of 'o' operands is zero if there is only one bracketed
1006 (percent_op): Make constant. Record the BFD relocation code
1007 associated with each operator.
1008 (my_getSmallParser, my_getPercentOp): Remove.
1009 (parse_relocation): New function.
1010 (my_getSamllExpression): Rework. Fill in relocations here
1011 rather than in mips_ip.
1013 2003-01-29 Nick Clifton <nickc@redhat.com>
1015 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
1016 assembler's handling of # <linenum> "<filename>" directives work.
1018 2003-01-28 Jakub Jelinek <jakub@redhat.com>
1020 * dwarf2dbg.c: Include filenames.h.
1021 (struct file_entry): Make filename const char *.
1022 (dirs, dirs_in_use, dirs_allocated): New variables.
1023 (get_filenum): Add NUM argument. Build directory table.
1024 (dwarf2_where): Adjust caller.
1025 (dwarf2_directive_file): Use get_filenum to allocate
1026 slot in file and directory tables.
1027 (dwarf2_directive_loc): Recreate full filename from
1028 directory and filename part if needed for listing.
1029 (out_file_list): Output directory table.
1030 Output main source file dirname before its filename.
1032 2003-01-28 Dmitry Diky <diwil@mail.ru>
1034 * config/tc-msp430.c: Replace occurences of 'tolower' with
1037 2003-01-27 David Mosberger <davidm@hpl.hp.com>
1039 * config/tc-ia64.c (dot_vframesp): Correct error message.
1040 (dot_vframepsp): Ditto.
1042 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
1044 * configure.in (em): Set to irix on all Irix systems.
1045 * configure: Rebuilt.
1046 * config/te-irix.h: New file.
1047 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
1048 whether to use Irix-specific 64-bit format.
1050 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
1052 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
1054 2003-01-25 Jakub Jelinek <jakub@redhat.com>
1056 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
1057 (tc_gen_reloc): Handle TLS relocs.
1058 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
1059 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
1061 * config/obj-elf.c (obj_elf_section_word): Handle tls.
1062 (obj_elf_type): Handle tls_object.
1064 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
1066 * config/tc-s390.c (s390_tls_suffix): New function.
1067 (elf_suffix_type): Add suffix enums for TLS relocations.
1068 (s390_elf_suffix): Add suffix strings for TLS relocations.
1069 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
1071 (md_gather_operands): Map new instruction operand/elf suffix
1072 combinations for TLS to bfd relocations.
1073 (tc_s390_fix_adjustable): Add new TLS relocations.
1074 (tc_s390_force_relocation): Likewise.
1075 (md_apply_fix3): Likewise.
1077 2003-01-24 Alan Modra <amodra@bigpond.net.au>
1079 * as.h: Update copyright date.
1080 * symbols.c: Likewise.
1081 * config/tc-d10v.h: Likewise.
1082 * config/tc-fr30.h: Likewise.
1083 * config/tc-i960.h: Likewise.
1084 * config/tc-mips.h: Likewise.
1086 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
1087 (MD_APPLY_SYM_VALUE): Move.
1089 2003-01-23 Nick Clifton <nickc@redhat.com>
1091 * NEWS: Announce sh2e support.
1094 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
1095 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
1096 (sh_elf_final_processing): Handle arch_sh2e.
1098 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1100 * symbols.c (S_FORCE_RELOC): Add "strict" param.
1101 * symbols.h (S_FORCE_RELOC): Likewise.
1102 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
1103 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
1104 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
1105 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
1106 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
1107 * write.c (generic_force_reloc): New function.
1108 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
1109 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1110 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
1111 * as.h (generic_force_reloc): Declare.
1112 * doc/internals.texi (S_FORCE_RELOC): Update.
1113 (TC_FORCE_RELOCATION_SUB_SAME): Update.
1115 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
1116 generic_force_reloc.
1117 (alpha_fix_adjustable): Likewise.
1118 * config/tc-arm.c (arm_force_relocation): Likewise.
1119 * config/tc-cris.c (md_cris_force_relocation): Likewise.
1120 * config/tc-frv.c (frv_force_relocation): Likewise.
1121 * config/tc-i386.c (md_apply_fix3): Likewise.
1122 * config/tc-ia64.c (ia64_force_relocation): Likewise.
1123 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
1124 * config/tc-m32r.c (m32r_force_relocation): Likewise.
1125 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1126 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1127 * config/tc-mips.c (mips_force_relocation): Likewise.
1128 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1129 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1130 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1131 * config/tc-sh.c (sh_force_relocation): Likewise.
1132 (md_pcrel_from_section): Likewise.
1133 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1134 * config/tc-v850.c (v850_force_relocation): Likewise.
1135 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1136 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1137 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1138 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1140 * config/tc-d10v.c (d10v_force_relocation): Delete.
1141 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1142 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1143 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1144 * config/tc-fr30.c (fr30_force_relocation): Delete.
1145 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1146 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1147 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1148 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1149 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1150 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1151 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1152 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1153 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1154 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1155 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1156 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1157 * config/tc-i386.c (i386_force_relocation): Delete.
1158 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1160 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1161 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1162 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1163 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1165 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1166 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1168 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1170 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1171 sh64_elf_section_data.
1172 * config/tc-sh64.h: Include elf32-sh64.h.
1173 * config/tc-m68hc11.c: Don't include stdio.h.
1174 (md_show_usage): Fix missing continuation.
1175 * Makefile.am: Run "make dep-am".
1176 * Makefile.in: Regenerate.
1178 2003-01-22 Nick Clifton <nickc@redhat.com>
1180 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1182 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1184 * configure.in: Handle *-*-aros*.
1185 * configure: Regenerated from configure.in.
1187 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1189 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1190 gotplt and pltoff relocations.
1191 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1192 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1193 gotplt and pltoff to bfd relocations.
1194 (md_gather_operands): Map new instruction operand/elf suffix
1195 combinations to bfd relocations.
1196 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1197 to the list of unadjustable relocations.
1198 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1199 and pltoff relocations.
1200 (md_apply_fix3): Add the new relocations.
1202 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1204 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1205 with a subsy symbol.
1207 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1209 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1210 of relocs for memory bank addressing.
1212 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1214 * config/tc-m68hc11.c (md_show_usage): Update usage.
1215 (md_parse_option): Recognize -m68hcs12.
1216 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1218 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1220 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1222 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1224 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1226 * Makefile.am: Run "make dep-am".
1227 * Makefile.in: Regenerate.
1228 * po/POTFILES.in: Regenerate.
1230 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1232 * read.c (get_absolute_expr): New, split out from..
1233 (get_absolute_expression): ..here.
1234 * read.h (get_absolute_expr): Declare.
1235 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1236 Trim size to arch bits_per_address, and test for negative input
1237 via get_absolute_expr.
1239 2003-01-07 DJ Delorie <dj@redhat.com>
1241 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1243 (xstormy16_md_apply_fix3): Use adjustment.
1245 2003-01-02 Ben Elliston <bje@redhat.com>
1247 * configure.in: Add iq2000-elf target.
1248 * configure: Regenerate.
1249 * config/tc-iq2000.c: New file.
1250 * config/tc-iq2000.h: Likewise.
1251 * po/gas.pot: Regenerate.
1253 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1255 * config/tc-mips.c: Update copyright years to include 2003.
1256 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1257 Additionally, clean up their code slightly and clean up their
1260 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1262 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1264 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1266 * doc/Makefile.in: Regenerate.
1268 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1270 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1271 of .init and .fini sections for array initializers and finalizers.
1273 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1275 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1276 the "+D" operand, which will be used only by the disassembler.
1278 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1280 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1282 * configure: Regenerate.
1283 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1284 (macro_build): Handle "K" operand.
1285 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1286 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1287 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1288 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1289 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1290 (validate_mips_insn): Implement "+" as a way to extend the
1291 allowed operands, and implement "K", "+A", "+B", and "+C"
1293 (OPTION_MIPS32R2): New define.
1294 (md_longopts): Add entry for OPTION_MIPS32R2.
1295 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1296 (md_parse_option): Handle OPTION_MIPS32R2.
1297 (s_mipsset): Reimplement handling of ".set mipsN" options
1298 and add support for ".set mips32r2".
1299 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1300 (md_show_usage): Document "-mips32r2" option.
1301 * doc/as.texinfo: Document "-mips32r2" option.
1302 * doc/c-mips.texi: Likewise.
1304 2002-12-30 Dmitry Diky <diwil@mail.ru>
1306 * configure.in: Add msp430 target.
1307 * configure: Regenerate.
1308 * Makefile.am: Add msp430 target.
1309 * Makefile.in: Regenerate.
1310 * config/tc-msp430.c: New file: msp430 assembler.
1311 * config/tc-msp430.h: New file: target macros for msp430.
1312 * doc/Makefile.am: Add msp430 target.
1313 * doc/Makefile.in: Regenerate.
1314 * doc/as.texinfo: Include msp430 documenation.
1315 * doc/all.texi: Enable msp430 documentation.
1316 * doc/c-msp430.texi: New file: document msp430 specific features
1319 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1321 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1322 (dwarf2_finish): Use it.
1323 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1324 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1326 2002-12-20 DJ Delorie <dj@redhat.com>
1328 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1329 BFD_RELOC_XSTORMY16_12.
1331 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1333 * doc/as.texinfo (Invoking): Typo fix.
1334 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1336 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1338 * doc/c-alpha.texi: Fix typos.
1339 * doc/c-arm.texi: Likewise.
1340 * doc/c-d10v.texi: Likewise.
1341 * doc/c-i370.texi: Likewise.
1342 * doc/c-i960.texi: Likewise.
1343 * doc/c-ia64.texi: Likewise.
1344 * doc/c-mmix.texi: Likewise.
1345 * doc/c-ns32k.texi: Likewise.
1346 * doc/c-pdp11.texi: Likewise.
1347 * doc/c-pj.texi: Likewise.
1348 * doc/c-sh64.texi: Likewise.
1349 * doc/c-sparc.texi: Likewise.
1350 * doc/c-tic54x.texi: Likewise.
1351 * doc/c-v850.texi: Likewise.
1352 * doc/c-vax.texi: Likewise.
1353 * doc/internals.texi: Likewise.
1355 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1357 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1358 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1359 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1360 arrange not to issue warnings about use of AT when AT is not
1363 2002-12-17 Nick Clifton <nickc@redhat.com>
1365 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1366 prevent it being confused with -k.
1368 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1370 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1371 has already been set up, use it.
1373 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1375 * ChangeLog-9295: Fix a typo.
1377 * config/tc-d10v.c: Fix a comment typo.
1378 * config/tc-dlx.c: Likewise.
1379 * config/tc-h8300.h: Likewise.
1380 * config/tc-h8500.h: Likewise.
1381 * config/tc-mips.c: Likewise.
1382 * config/tc-s390.c: Likewise.
1383 * config/tc-sh.h: Likewise.
1384 * config/tc-tic80.h: Likewise.
1385 * config/tc-w65.h: Likewise.
1386 * config/tc-z8k.c: Likewise.
1387 * config/tc-z8k.h: Likewise.
1388 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1390 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1392 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1393 Simplify sign extension. Remove redundant unsigned < 0 test.
1394 * config/tc-i960.c (md_ri_to_chars): Prototype.
1395 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1396 (dump_literals): Init brarsym, and test later instead of isforce.
1398 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1399 (parse): Constify line and lineptr.
1400 (md_begin): Calculate endop here.
1402 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1404 * config/obj-vms.c: Formatting. Include fnctl.h.
1405 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1406 (Object_Record_Offset): Make it a size_t.
1407 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1408 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1409 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1410 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1411 (vms_fixup_data_section <data_size>): Add here instead.
1412 * config/e-criself.c: Fix typo in last change.
1414 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1416 * write.c (write_object_file): Fix signed/unsigned warning.
1417 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1418 * config/e-criself.c (criself_bfd_name): Prototype.
1419 * config/obj-aout.c (s_sect): Remove unused function.
1420 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1421 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1422 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1423 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1424 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1425 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1426 (vms_fixup_text_section <text_siz>): Likewise.
1427 (synthesize_data_segment <data_size>): Likewise.
1428 (vms_fixup_xtors_section <sect_no>): Likewise.
1429 (structure_count): Don't use implicit int type.
1430 * config/tc-a29k.c (insert_sreg): Prototype.
1431 (define_some_regs): Prototype, make static.
1432 (parse_operand): Likewise.
1433 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1434 (md_show_usage <stream>): Likewise.
1435 (md_section_align <segment>): Likewise.
1436 (md_convert_frag <all args>): Likewise.
1437 (md_estimate_size_before_relax <all args>): Likewise.
1438 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1439 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1440 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1441 (md_undefined_symbol <name>): Likewise.
1442 (md_convert_frag <all args>): Likewise.
1443 (write_long <opcode>): Likewise.
1444 (tc_gen_reloc <seg>): Likewise.
1445 (md_estimate_size_before_relax <all args>): Likewise.
1446 (md_apply_fix3 <seg>): Likewise.
1447 (s_d30v_align <ignore>): Likewise.
1448 (build_insn): Correct format string.
1449 (md_apply_fix3): Likewise.
1450 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1451 (md_undefined_symbol <name>): Likewise.
1452 (md_convert_frag <all args>): Likewise.
1453 (md_cgen_lookup_reloc <insn>): Likewise.
1454 (md_begin): Delete unused vars.
1455 (md_assemble): Likewise.
1456 (md_estimate_size_before_relax): Likewise.
1457 (fr30_relax_frag): #if 0 out, seems unused.
1458 (md_atof): Remove declaration of atof_ieee.
1459 (restore_colon): Prototype.
1460 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1461 (frv_find_in_vliw): Likewise.
1462 (frv_debug_tomcat): Likewise.
1463 (frv_adjust_vliw_count): Likewise.
1464 (frv_tomcat_shuffle): Likewise.
1465 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1466 frv_find_in_vliw call.
1467 (md_atof): Remove declaration of atof_ieee.
1468 * config/tc-h8500.c (cons): Delete declaration.
1469 (md_begin <opcode>): Constify.
1470 (displacement_size, immediate_size, absolute_size): Remove.
1471 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1472 (tc_crawl_symbol_chain <headers>): Likewise.
1473 (md_undefined_symbol <name>): Likewise.
1474 (tc_headers_hook <headers>): Likewise.
1475 (md_parse_option <c,arg>): Likewise.
1476 (md_show_usage <stream>): Likewise.
1477 (md_convert_frag <headers, seg>): Likewise.
1478 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1479 (md_atof): Remove declaration of atof_ieee.
1480 (tc_aout_fix_to_chars): Remove unused function.
1481 (parse_reg): Prototype.
1482 (parse_exp): Prototype.
1483 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1484 (parse_reglist): Prototype.
1485 (get_operand): Prototype.
1486 (get_operands): Prototype.
1487 (get_specific): Prototype. Make "this_index" signed.
1488 (check): Prototype, make static.
1490 (build_relaxable_instruction): Prototype, make static.
1491 (build_bytes): Prototype.
1492 (wordify_scb): Prototype.
1493 * config/tc-h8500.h (start_label): Declare.
1494 (tc_coff_sizemachdep): Declare.
1495 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1496 (i370_rmode <unused>): Likewise.
1497 (i370_csect <unused>): Likewise.
1498 (i370_dc <unused>): Likewise.
1499 (i370_ds <unused>): Likewise.
1500 (i370_elf_lcomm <unused>): Likewise.
1501 (i370_ltorg <ignore>): Likewise.
1502 (i370_using <ignore>): Likewise.
1503 (i370_drop <ignore>): Likewise.
1504 (i370_byte <ignore>): Likewise.
1505 (i370_tc <ignore>): Likewise.
1506 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1507 (md_convert_frag <all args>): Likewise.
1508 (md_undefined_symbol <name>): Likewise.
1509 (md_pcrel_from_section <sec>): Likewise.
1510 (tc_gen_reloc <seg>): Likewise.
1511 (i370_section_letter): #if 0 unused functions.
1512 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1513 (symbol_locate): Prototype.
1514 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1515 (md_number_to_disp, md_number_to_field): Remove.
1516 (md_apply_fix3): Correct format string and cast "fup".
1517 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1518 (s_endian <ignore>): Likewise.
1519 (md_undefined_symbol <name>): Likewise.
1520 (tc_crawl_symbol_chain <headers>): Likewise.
1521 (tc_set_bal_of_call): Likewise.
1522 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1523 (i960_handle_align <fragp>): Likewise.
1524 (i960_validate_fix <this_segment_type>): Likewise
1525 (tc_gen_reloc <section>): Likewise.
1526 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1527 (struct memS, struct regop): Forward declare.
1528 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1529 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1530 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1531 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1532 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1533 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1534 (md_number_to_field): Likewise.
1535 (md_number_to_disp): Remove unused function.
1536 (md_atof): Remove declaration of atof_ieee.
1537 (md_apply_fix3): Correct md_number_to_imm call.
1538 * config/tc-ip2k.c (md_assemble): Warning fix.
1539 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1540 (fill_insn <ignore>): Likewise.
1541 (debug_sym <ignore>): Likewise.
1542 (md_undefined_symbol <name>): Likewise.
1543 (m32r_scomm <ignore>): Likewise.
1544 (md_convert_frag <abfd>): Likewise.
1545 (md_cgen_lookup_reloc <insn>): Likewise.
1546 (m32r_record_hi16 <seg>): Likewise.
1547 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1548 (allow_m32rx): Prototype.
1549 (first_writes_to_seconds_operands): Prototype.
1550 (writes_to_pc): Prototype.
1551 (can_make_parallel): Prototype.
1552 (make_parallel): Prototype.
1553 (target_make_parallel): Prototype.
1554 (assemble_two_insns): Prototype.
1555 (m32r_record_hi16): Prototype.
1556 (md_atof): Remove declaration of atof_ieee.
1557 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1558 (m32r_force_relocation): Prototype.
1559 (m32r_elf_section_change_hook): Prototype.
1560 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1561 (md_show_usage): Fix signed/unsigned warning.
1562 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1563 (calcop): Ditto for reg_prefix var.
1564 (hexval): Add cast to fix signed/unsigned warning.
1565 (md_number_to_disp): Delete unused function.
1566 (md_number_to_field): Likewise.
1567 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1568 (match_name): Prototype.
1569 (get_bf2): Prototype.
1570 (get_bf_offset_expression): Prototype.
1571 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1572 (md_undefined_symbol <ignore>): Likewise.
1573 (md_create_short_jump <all args>): Likewise.
1574 (md_create_long_jump <all args>): Likewise.
1575 (md_convert_frag <abfd, sec>): Likewise.
1576 (md_apply_fix3 <segment>): Likewise.
1577 (md_section_align <segment>): Likewise.
1578 (md_pcrel_from_section <sec>): Likewise.
1579 (tc_gen_reloc <section>): Likewise.
1580 (reg_m, reg_n, immediate): Delete unused vars.
1581 (dump_literals): Fix signed/unsigned warning.
1582 (enter_literal): Likewise.
1583 (parse_imm): Likewise. Also fix format string.
1584 (parse_mem): Remove unused var.
1585 (md_assemble <LS>): Abort on unexpected inst.
1586 (md_atof): Remove declaration of atof_ieee.
1587 (md_parse_option): Remove unused vars.
1588 (md_apply_fix3): Fix format strings, cast args.
1589 (tc_gen_reloc): Delete unused var.
1590 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1591 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1592 (md_undefined_symbol <name>): Likewise.
1593 (md_convert_frag <abfd>): Likewise.
1594 (tc_gen_reloc <seg>): Likewise.
1595 (check_operand <insn>): Likewise.
1596 (md_convert_frag): Fix format strings.
1597 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1598 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1599 (md_atof): Remove declaration of atof_ieee.
1600 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1601 (md_apply_fix3): Fix bogus >>='s.
1602 (md_undefined_symbol): Delete unused var.
1603 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1604 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1605 (fake_opcode): Adjust for pj_opc_int_t change.
1606 (md_begin): Likewise.
1607 (md_assemble): Likewise.
1608 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1609 instead of non-existent third arg of parse_exp_save_ilp.
1610 (md_parse_option): Correct "little" and "big" calls.
1611 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1612 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1613 (tc_gen_reloc <section>): Likewise.
1614 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1615 (debug): Rewrite using VA_* macros.
1616 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1617 (md_convert_frag): Likewise.
1618 (md_parse_option): Likewise.
1619 (md_show_usage): Likewise.
1620 (md_undefined_symbol): Likewise.
1621 (tc_gen_reloc): Likewise.
1622 (md_operand): Likewise.
1623 (tc_aout_pre_write_hook): Delete.
1624 (struct tic30_insn): Make "operands" unsigned.
1625 (struct tic30_par_insn): Likewise.
1626 (md_assemble): Likewise for "count", "i" and "numops".
1627 (tic30_parallel_insn): Likewise for vars here.
1628 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1629 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1630 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1631 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1632 (md_undefined_symbol): Likewise.
1633 (md_parse_option): Likewise.
1634 (md_convert_frag): Likewise.
1635 (tc_coff_symbol_emit_hook): Likewise.
1636 (md_atof): Remove declaration of atof_ieee.
1637 (const_overflow): Warning fixes, tidy.
1638 (get_operands): Delete unused vars.
1639 (internal_error_a): Adjust format string to expect a long for arg.
1640 (find_opcode): Warning fixes, simplify.
1641 (build_insn): Cast internal_error_a arg.
1642 (md_begin): Likewise.
1643 (md_apply_fix3): Likewise.
1644 (md_assemble): Delete unused var.
1645 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1646 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1647 (whatreg, parse_reg, parse_exp): Make static, prototype.
1648 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1649 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1650 (get_operand, get_operands, get_specific, newfix): Likewise.
1651 (apply_fix, build_bytes): Likewise.
1652 (md_atof): Remove declaration of atof_ieee.
1653 (tc_aout_fix_to_chars): Delete.
1654 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1656 (md_parse_option): Fix s_segm and s_unseg calls.
1658 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1660 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1662 (RELAX_BRANCH_RELOC_S2): Delete.
1663 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1664 Do not handle BFD_RELOC_16_PCREL.
1665 (macro_build, mips_ip): Likewise.
1666 (md_pcrel_from): Return 4 for undefined symbols regardless of
1668 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1669 Don't dereference howto if no such relocation is available.
1670 Do not apply hack for in-place zero addend in NEWABI.
1671 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1673 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1674 Alan Modra <amodra@bigpond.net.au>
1676 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1677 (TC_LINKRELAX_FIXUP): Add comments.
1679 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1681 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1683 (r_register_name, xr_register_name): Add prototype declarations.
1685 2002-12-08 H.J. Lu <hjl@gnu.org>
1687 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1688 copied from tc-i386.c.
1690 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1692 Fix Bug savannah/1825:
1693 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1694 (md_relax_table): Define specific relax for PC-rel offsets.
1695 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1696 (m68hc11_relax_frag): Handle the new relax code.
1697 (md_convert_frag): Likewise.
1698 (md_estimate_size_before_relax): Likewise.
1700 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1702 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1704 2002-12-05 Richard Henderson <rth@redhat.com>
1706 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1707 (ia64_gen_real_reloc_type): Handle it.
1708 (pseudo_func): Add @ltoffx.
1709 (md_begin): Build .<ltoffx>.
1710 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1712 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1714 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1715 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1716 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1717 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1718 COFF to call arm_force_relocation.
1720 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1722 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1724 (emit_one_bundle): Handle "hint" instruction.
1725 (operand_match): Match IA64_OPND_AR_CSD.
1727 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1729 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1732 2002-12-03 Nick Clifton <nickc@redhat.com>
1734 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1735 .PPC.EMB.apuinfo sections.
1737 2002-12-03 Richard Henderson <rth@redhat.com>
1739 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1741 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1743 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1744 (cons, s_align_bytes): Delete declaration.
1746 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1748 (dot): Delete unused function.
1749 (w65_expression): Remove unused arg.
1750 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1752 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1754 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1756 (check): Remove unused function.
1757 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1758 on unhandled switch case.
1759 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1761 (tc_crawl_symbol_chain): Delete unused function.
1762 (tc_headers_hook): Likewise.
1763 (tc_Nout_fix_to_chars): Likewise.
1764 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1765 (md_parse_option): Likewise.
1766 (md_convert_frag): Likewise.
1767 (tc_coff_symbol_emit_hook): Likewise.
1768 (md_show_usage): Likewise.
1769 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1770 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1771 (w65_expression): Declare.
1773 * po/POTFILES.in: Regenerate.
1775 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1776 and ARM_ADRL_IMMEDIATE.
1778 2002-12-02 Nick Clifton <nickc@redhat.com>
1780 * gasp.c: Delete. It has been deprecated.
1781 * NEWS: Mention that gasp has been removed.
1782 * Makefile.am: Remove references to gasp.
1783 * makefile.vms: Likewise.
1784 * mpw-make.sed: Likewise.
1785 * Makeile.in: Regenerate.
1786 * doc/gasp.texi: Delete.
1787 * doc/Makefile.am: Remove references to gasp.texi.
1788 * doc/Makefile.in: Regenerate.
1789 * macro.c: Delete references to gasp.
1790 Remove use of comment_char function parameter as it is no longer
1792 * macro.h: Update prototypes to remove comment_char parameter.
1794 * read.c (read_a_source_file, s_irp): Remove comment_char
1795 parameter from invocation of functions in macro.c
1797 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1799 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1801 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1803 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1804 (tc_gen_reloc): Mark section param as not used.
1806 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1808 Fix Bug savannah/1825:
1809 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1810 that are not pc-relative.
1811 (m68hc11_relax_frag): Declare.
1813 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1814 the offsetable indexed addressing modes (n,r).
1815 (build_insn): Cleanup some locals.
1816 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1817 relaxation of difference between two symbols of same section.
1818 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1819 only when this is a PC-relative operand and the offset is not absolute.
1820 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1821 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1822 be handled by m68hc11_relax_frag.
1824 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1826 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1827 (32-bit int, 64-bit double).
1828 (md_longopts): New options -mshort, -mlong, -mshort-double and
1829 -mlong-double to control the ABI.
1830 (md_show_usage): Update.
1831 (md_parse_option): Handle new options.
1832 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1834 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1836 * symbols.c (report_op_error): New function, broken out of ...
1837 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1840 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1842 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1843 for BFD_RELOC_32_PLT_PCREL.
1845 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1847 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1848 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1849 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1850 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1851 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1852 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1853 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1854 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1855 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1856 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1857 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1858 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1859 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1860 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1861 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1862 TRUE/FALSE. Formatting.
1864 2002-11-29 Nick Clifton <nickc@redhat.com>
1866 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1867 assume a value of zero.
1868 (do_bkpt): Likewise.
1870 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1872 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1873 for TLS relocations.
1875 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1877 * config/tc-ia64.c (md_apply_fix3): Add default case.
1879 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1881 * symbols.c (S_SET_THREAD_LOCAL): New function.
1882 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1883 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1884 for TLS relocations.
1885 * config/tc-ia64.c (md_apply_fix3): Likewise.
1886 * config/tc-alpha.c (md_apply_fix3): Likewise.
1888 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1890 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1893 2002-11-26 DJ Delorie <dj@redhat.com.
1895 * dwarf2dbg.c (scale_addr_delta): New.
1896 (size_inc_line_addr): Use it.
1897 (emit_inc_line_addr): Use it.
1899 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1901 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1902 (md_assemble): Don't pass on branches to constants as relaxable.
1905 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1907 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1909 2002-11-21 Randolph Chung <randolph@tausq.org>
1911 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1912 only if they have default visibility.
1914 2002-11-21 Richard Henderson <rth@redhat.com>
1916 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1919 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1921 * config/tc-mcore.c (mcore_pool_count): New function.
1922 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1924 2002-11-20 Klee Dienes <kdienes@apple.com>
1926 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1927 coalesce the name fields to use the same pointer.
1929 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1930 the name fields to use the same pointer.
1931 (get_specific): Check for opcodes with the same name using strcmp
1932 as well as comparing the pointer.
1934 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1936 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1939 2002-11-19 Richard Henderson <rth@redhat.com>
1941 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1942 visibility portion of st_other.
1944 2002-11-19 Klee Dienes <kdienes@apple.com>
1946 * config/tc-h8300.c (struct h8_instruction): New type, used to
1947 wrap h8_opcodes with length, noperands, idx, and size fields
1948 (computed at run-time).
1949 (h8_instructions): New variable.
1950 (md_begin): Allocate the storage for h8_instructions. Fill
1951 h8_instructions with pointers to the appropriate opcode and the
1952 correct value for the additional fields.
1953 (clever_message): Update to use h8_instructions instead of
1955 (build_bytes): Ditto.
1956 (get_specific): Ditto.
1957 (md_assemble): Ditto.
1959 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1961 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1962 adjustments to symbols in merge sections.
1964 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1966 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1968 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1970 * dwarf2dbg.h (dwarf2_format): New enum.
1971 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1972 (out_debug_line, out_debug_info): Add code for handling 64-bit
1974 * config/tc-mips.h (mips_dwarf2_format): Declare.
1975 * config/tc-mips.c (mips_dwarf2_format): New function.
1976 * doc/internals.texi (DWARF2_FORMAT): Document.
1978 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1980 * config/tc-mips.c (s_change_section): Make sure input buffer
1981 is not accessed past the end. Don't hand
1982 obj_elf_change_section a pointer into the input buffer.
1984 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1986 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1989 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1991 * config/tc-tic4x.c: Fixed proper commandline
1992 parameters. Added support for new opcode-list format. General
1993 error message fixups.
1994 (c4x_inst_add): Reject insn not for our CPU
1995 (md_begin): Added matrix for setting the proper opcode-level &
1996 device-flags according to cpu type and revision. Rewrite the
1998 (c4x_operand_parse): Fix opcode bug
1999 (c4x_operands_match): New function argument. Added dry-run
2000 mechanism, that is optional error generation. Added constraint 'i'
2002 (c4x_insn_check): Added new function for post-verification of the
2004 (md_assemble): Check all opcodes before croaking because of an
2005 argument mismatch. Need this to be able to fully support
2006 ortogonally arguments.
2007 (md_parse_options): Revised commandprompt swicthes and added new
2009 (md_show_usage): Complete rewrite of printout.
2011 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
2013 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
2014 (c4x_operands_match): Added check for 8-bits LDF insn. Give
2015 warning when using constant direct bigger than 2^16. Add the new
2018 2002-11-11 Christopher Faylor <cgf@redhat.com>
2020 * configure.in: Use .gdbinit under Cygwin.
2021 * configure: Regenerate.
2023 2002-11-11 Christopher Faylor <cgf@redhat.com>
2025 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
2028 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
2030 * config/tc-tic4x.c: Declare as many functions as possible as
2031 static. Maintenance on the general indenting. Removed unnecessary
2032 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
2033 function. Add support for new DSP, TMS320VC33. Fix bug for
2034 converting flonum constants.
2035 (c4x_do_align): Add proper align handling. Setup align to insert
2037 (c4x_gen_to_words): Support for extended TI type floats.
2038 (md_atof): Proper dumping of multiple-word littlenums.
2039 (c4x_atof): Added support for extended TI type floats.
2040 (c4x_stringer): Added new function to handle compact strings.
2041 (c4x_emit_char): Added new function argument to handle custom
2042 length inserts, like single-byte strings.
2043 * config/tc-tic4x.h: Add proper align handling with NOP's.
2044 * Makefile.am: Added tic4x dependecy
2045 * Makefile.in: Regenerate
2047 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
2049 * macro.c (get_any_string): Correct logic for not going beyond end
2052 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
2054 * config/tc-mmix.c (get_putget_operands): Mark both possible
2055 operands as invalid at beginning.
2057 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
2058 Initialize target of fixup to zero.
2060 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
2062 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
2063 NEWABI, but we should still emit HI16_S for non-PIC n32.
2065 2002-11-06 Richard Henderson <rth@redhat.com>
2067 * config/tc-alpha.c (alpha_validate_fix): Move code ...
2068 (alpha_fix_adjustable): ... here.
2069 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2071 2002-11-07 Eric Kohl <ekohl@rz-online.de>
2073 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
2076 2002-11-05 H.J. Lu <hjl@gnu.org>
2078 * config/tc-mips.c (support_64bit_objects): Check *l before it
2081 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
2083 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
2084 SEC_LOAD flags for sections marked as 's'.
2086 2002-11-01 Alan Modra <amodra@bigpond.net.au>
2088 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
2089 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
2090 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
2093 * dep-in.sed: Fix typo.
2095 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
2097 * configure.in: Update ARM CPU patterns.
2098 * configure: Regenerated.
2100 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
2102 * itbl-lex.l: Use #include <> for generated headers.
2103 * itbl-ops.c: Likewise.
2105 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
2107 * doc/gasp.texi: Fix typo in deprecation note.
2109 2002-10-23 Nick Clifton <nickc@redhat.com>
2111 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
2112 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
2114 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
2116 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
2117 (tc_frob_file_before_adjust): Don't define.
2118 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
2120 (mmix_frob_file_before_adjust): Remove ineffective function.
2122 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
2124 * config/tc-cris.c (SIMPLE_EXPR): New macro.
2125 (cris_relax_frag): New function.
2126 (md_estimate_size_before_relax) <case ENCODE_RELAX
2127 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2128 expressions that will become absolute expressions to relaxation.
2129 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2130 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2131 value, not distance to symbol.
2132 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2133 Ditto. Correct placement of fixup.
2134 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2136 * config/tc-cris.h (cris_relax_frag): Declare.
2137 (md_relax_frag): Define.
2139 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2141 * config/obj-elf.c (special_sections): Use correct types for init
2143 (obj_elf_change_section): Don't mess with init array section type.
2145 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2147 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2148 for relocs against symbols in a merged section.
2150 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2152 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2153 table as register names.
2155 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2157 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2160 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2162 * expr.c (operand): Add support for n.nn flonums.
2164 2002-10-17 Johannes Stezenbach <js@convergence.de>
2166 * itbl-parse.y (entry): Provide empty action.
2168 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2170 * configure.in (BFDVER_H): Set and subst.
2171 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2172 * Makefile.am: Run "make dep-am".
2174 * configure: Regenerate.
2175 * Makefile.in: Regenerate.
2176 * doc/Makefile.in: Regenerate.
2178 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2180 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2181 (MD_APPLY_SYM_VALUE): Define for PE too.
2183 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2185 * Makefile.am: Run "make dep-am".
2186 (CPU_OBJ_VALID): sh64 coff is invalid.
2187 * as.c: #include "bfdver.h".
2188 * Makefile.in: Regenerate.
2189 * config.in: Regenerate.
2191 2002-10-14 Momchil Velikov <velco@fadata.bg>
2193 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2195 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2197 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2198 * configure: Regenerate.
2200 2002-10-13 Eric Christopher <echristo@redhat.com>
2201 Alexandre Oliva <aoliva@redhat.com>
2203 * config/tc-mips.c (s_gpdword): New function.
2204 (mips_pseudo_table): Add .gpdword.
2205 (mips_need_elf_addend_fixup): never for NEWABI.
2206 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2208 (s_cpadd): Generate .cpadd on NEWABI.
2210 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2212 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2214 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2216 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2217 (md_relax_frag): Adjust macro.
2218 * config/tc-mips.c (mips_relax_branch): New variable.
2219 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2220 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2221 (RELAX_MIPS16_P): Adjust.
2222 (append_insn): Emit branch to non-constant in a frag_var if
2223 branch-relaxation is desirable and possible.
2224 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2225 (OPTION_ELF_BASE): Adjust.
2226 (md_parse_option): Handle new options.
2227 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2229 (relaxed_branch_length): New function.
2230 (md_estimate_size_before_relax): Handle branch frags.
2231 (mips_relax_frag): Likewise.
2232 (md_convert_frag): Handle branch frags. Warn if branch is
2235 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2237 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2239 (md_apply_fix3): Add TLS relocs.
2240 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2243 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2244 Alan Modra <amodra@bigpond.net.au>
2246 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2247 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2249 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2251 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2254 2002-10-09 Richard Shann <richard.shann@superh.com>
2255 Stephen Clarke <stephen.clarke@superh.com>
2257 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2260 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2262 * contig/tc-sh.c (sh_local_pcrel): New.
2263 (sh_force_relocation): Use sh_local_pcrel.
2264 (md_pcrel_from_section): Check the relocation type whether it
2265 should be resolved locally. Use S_FORCE_RELOC.
2267 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2269 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2270 (TC_FORCE_RELOCATION): Tidy arg.
2272 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2273 Ken Raeburn <raeburn@cygnus.com>
2274 Aldy Hernandez <aldyh@redhat.com>
2275 DJ Delorie <dj@redhat.com>
2276 Michael Meissner <meissner@redhat.com>
2277 Eric Christopher <echristo@redhat.com>
2278 Richard Sandiford <rsandifo@redhat.com>
2280 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2281 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2282 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2283 (hilo_interlocks): True for CPU_VR5500.
2284 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2285 (mips_fix_vr4122_bugs): New.
2286 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2287 (mips_emit_delays): Likewise.
2288 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2289 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2290 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2291 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2292 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2293 (OPTION_ELF_BASE): Bump.
2294 (md_parse_option): Handle the new options.
2295 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2298 2002-09-29 H.J. Lu <hjl@gnu.org>
2300 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2301 twice if howto->pcrel_offset is true.
2303 2002-09-28 Matt Thomas <matt@3am-software.com>
2304 Jason Thorpe <thorpej@wasabisystems.com>
2306 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2307 convert undefined references to GOT32/PLT32 if PIC code is
2308 requested. Fix comment.
2310 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2312 * config/tc-sh.c (sh_force_relocation): Return 0 for
2313 some PC relative relocations when not relaxing.
2315 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2317 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2318 Define them if not BFD_ASSEMBLER.
2319 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2321 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2322 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2323 (tc_gen_reloc): Handle x86-64 TLS relocs.
2325 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2327 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2328 fixups to current or absolute section.
2330 2002-09-26 Jim Wilson <wilson@redhat.com>
2332 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2335 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2337 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2338 capable configuration.
2339 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2341 (mips_ip): Likewise.
2343 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2345 * config/tc-mips.c (append_insn): Fix jump overflow check.
2347 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2349 * config/tc-i386.c (process_operands): Warn about "lea" segment
2352 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2354 * write.c: Delete set_segment_vma and prototype. Update all callers.
2356 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2358 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2359 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2360 Rename "fseg" to "sym_seg".
2361 * Makefile.am: Run "make dep-am".
2362 * Makefile.in: Regenerate.
2363 * doc/Makefile.in: Regenerate.
2365 2002-09-20 Nick Clifton <nickc@redhat.com>
2367 * symbols.c (colon): Do not allow symbols to be created in the
2368 absolute section if WORKING_DOT_WORD is not defined and
2369 new_broken_words would require a new frag to be created.
2371 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2373 * expr.c (expr): Simplify foo-foo here.
2374 (clean_up_expression): Remove O_subtract code.
2376 * write.h (struct fix): Add fx_dot_value.
2377 (dot_value): Declare.
2378 * write.c (dot_value): New var.
2379 (fix_new_internal): Save dot_value as fx_dot_value.
2380 (fixup_segment): Adjust fx_offset using fx_dot_value.
2381 * expr.c (expr): Update dot_value.
2383 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2385 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2386 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2387 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2389 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2390 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2391 BFD_RELOC_386_TLS_GOTIE.
2393 2002-09-19 Richard Henderson <rth@redhat.com>
2395 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2397 (alpha_force_relocation): Don't special-case branch type relocs.
2399 2002-09-19 Nick Clifton <nickc@redhat.com>
2401 * config/tc-m68k.c (select_control_regs): Handle situation where
2402 architecture has not yet been selected.
2404 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2406 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2407 (IS_SEXT_16BIT_NUM): New macro.
2408 (macro_build_ldst_constoffset): New function, to build a set of
2409 instructions to do a load or store from a constant offset relative
2410 to a given register.
2411 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2412 .cprestore pseudo-op.
2414 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2416 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2418 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2420 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2422 2002-09-17 Stan Cox <scox@redhat.com>
2424 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2425 (macro): Likewise for la. Likewise for ld.
2426 (mips_after_parse_args): Make -xgot optional, not the default.
2427 (md_apply_fix3): Allow composite relocation to set up gp.
2428 (tc_gen_reloc): Allow relaxing for newabi.
2429 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2430 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2432 2002-09-17 Nick Clifton <nickc@redhat.com>
2434 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2435 BFD_RELOC_ARM_IMMEDIATE has been done.
2436 (tc_gen_reloc): Do not issue reloc number of unimplemented
2437 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2438 their name is already in the error message - plus remove them
2439 from the default case.
2441 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2442 behavior of instructions.
2444 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2446 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2447 Convert functions to K&R format.
2449 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2451 * config/tc-mips.c (pdr_seg): Define only for ELF.
2452 (s_change_section): Remove unused variable. Don't use for nonELF.
2454 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2456 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2458 * config/obj-elf.h (obj_elf_change_section): Likewise.
2460 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2462 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2463 (out_debug_info): Likewise.
2465 2002-09-16 Bruno Haible <bruno@clisp.org>
2467 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2468 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2469 * config/tc-i386.c (i386_target_format): Likewise.
2470 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2471 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2473 2002-09-13 Nick Clifton <nickc@redhat.com>
2475 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2476 when deciding if any operands have been skipped.
2478 2002-09-11 Nick Clifton <nickc@redhat.com>
2480 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2482 * po/tr.po: Updated Turkish translation.
2484 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2486 * config/tc-i386.c (md_apply_fix3): Allow addend for
2487 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2488 BFD_RELOC_386_TLS_LE_32.
2490 2002-09-05 Jeff Law <law@redhat.com>
2492 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2493 marker relocations such as ENTRY/EXIT.
2494 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2495 to both OBJ_ELF and OBJ_SOM.
2497 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2499 * doc/internals.texi (md_apply_fix3): Expand.
2500 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2501 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2502 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2503 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2504 EXTERN_FORCE_RELOC): Document.
2505 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2506 * as.h: Don't include struc-symbol.h for arc.
2508 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2509 subtract absolute symbol.
2510 * obj.h (struct format_ops): Add frob_file_before_fix.
2511 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2512 * symbols.c (S_FORCE_RELOC): New function.
2513 * symbols.h (S_FORCE_RELOC): Declare.
2514 * write.c (TC_FORCE_RELOCATION): Change default.
2515 (TC_FORCE_RELOCATION_ABS): Define.
2516 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2517 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2518 (TC_FORCE_RELOCATION_SECTION): Don't define.
2519 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2520 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2521 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2522 (TC_VALIDATE_FIX_SUB): Define.
2523 (TC_FIX_ADJUSTABLE): Don't define.
2524 (MD_APPLY_SYM_VALUE): Define this instead.
2525 (abs_section_sym): New variable.
2526 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2527 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2528 Don't put the absolute section sym on fixups here.
2529 (fix_segment): New function.
2530 (write_relocs): Don't call fixup_segment from here.
2531 (write_object_file): Instead call tc_frob_file_before_fix,
2532 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2533 Don't output the absolute section symbol.
2534 (fixup_segment): Rewrite.
2535 * write.h (abs_section_sym): Declare.
2536 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2538 (aout_format_ops): Adjust to suit.
2539 * config/obj-aout.h (obj_frob_file): Don't define.
2540 (obj_frob_file_before_fix): Define.
2541 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2542 (S_FORCE_RELOC): Define.
2543 * config/obj-bout.h (S_FORCE_RELOC): Define.
2544 * config/obj-coff.c (coff_format_ops): Init new field.
2545 * config/obj-coff.h: Formatting fixes.
2546 (obj_sec_sym_ok_for_reloc): Define.
2547 (S_FORCE_RELOC): Define.
2548 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2549 (ecoff_frob_file): .. from here.
2550 (ecoff_format_ops): Add new function.
2551 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2552 (obj_frob_file_before_fix): Define.
2553 * config/obj-elf.c (elf_format_ops): Init new field.
2554 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2555 * config/obj-ieee.h: Formatting fixes.
2556 (S_FORCE_RELOC): Define.
2557 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2558 * config/obj-vms.h (S_FORCE_RELOC): Define.
2559 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2560 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2561 for BFD_RELOC_32 and BFD_RELOC_64.
2562 (alpha_fix_adjustable): Remove extern and weak tests.
2563 (alpha_before_fix): Rename from alpha_adjust_symtab.
2564 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2565 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2566 (TC_VALIDATE_FIX): Tweak param name.
2567 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2568 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2569 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2570 (MD_APPLY_SYM_VALUE): Define.
2571 (tc_adjust_symtab): Don't define.
2572 (alpha_adjust_symtab): Don't declare.
2573 (tc_frob_file_before_fix): Define.
2574 (alpha_before_fix): Declare.
2575 (TC_INIT_FIX_DATA): Tweak param names.
2576 * config/tc-arc.c: Include "struc-symbol.h".
2577 (md_pcrel_from): Remove undefined sym fudge.
2578 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2579 Don't set fx_addnumber.
2580 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2581 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2582 (EXTERN_FORCE_RELOC): Define.
2583 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2584 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2585 (arm_validate_fix): Return void.
2586 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2587 Add plt and got reloc tests.
2588 (arm_force_relocation): Call S_FORCE_RELOC.
2589 * config/tc-arm.h (struct fix): Forward declare.
2590 (TC_VALIDATE_FIX): No longer set add_symbolP.
2591 (arm_validate_fix): Adjust declaration.
2592 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2593 (TC_FORCE_RELOCATION): Tweak param name.
2594 (TC_INIT_FIX_DATA): Likewise.
2595 (obj_fix_adjustable): Don't define.
2596 (tc_fix_adjustable): Call arm_fix_adjustable.
2597 (TC_FIX_ADJUSTABLE): Don't define.
2598 (MD_APPLY_SYM_VALUE): Define.
2599 (EXTERN_FORCE_RELOC): Define.
2600 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2601 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2602 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2603 Remove *valP fudges and code to subtract abs sym. Don't set
2605 * config/tc-avr.h: Formatting.
2606 (EXTERN_FORCE_RELOC): Define.
2607 (MD_APPLY_SYM_VALUE): Define.
2608 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2609 (md_apply_fix3): Remove code to subtract abs sym.
2610 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2611 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2612 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2613 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2614 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2615 (tc_fix_adjustable): Remove extern, weak tests.
2616 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2617 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2618 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2619 and code to subtract abs sym.
2620 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2621 (d10v_force_relocation): Call S_FORCE_RELOC.
2622 * config/tc-d10v.h: Don't include write.h.
2623 (struct fix): Instead, forward declare.
2624 (MD_PCREL_FROM_SECTION): Tweak param names.
2625 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2626 (d10v_fix_adjustable): Likewise.
2627 (obj_fix_adjustable): Don't define.
2628 (tc_fix_adjustable): Define.
2629 (TC_FORCE_RELOCATION): Tweak param name.
2630 (MD_APPLY_SYM_VALUE): Define.
2631 (EXTERN_FORCE_RELOC): Define.
2632 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2633 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2634 and code to subtract abs sym.
2635 * config/tc-d30v.h: Don't include write.h.
2636 (struct fix): Instead, forward declare.
2637 (MD_PCREL_FROM_SECTION): Tweak param names.
2638 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2639 (MD_APPLY_SYM_VALUE): Define.
2640 (EXTERN_FORCE_RELOC): Define.
2641 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2642 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2643 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2644 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2645 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2646 Don't use fx_addnumber.
2647 * config/tc-dlx.h: Don't include write.h.
2648 (md_convert_frag): We're not alpha twice over.
2649 (EXTERN_FORCE_RELOC): Define.
2650 (obj_fix_adjustable): Don't define.
2651 (tc_fix_adjustable): Define.
2652 (TC_FIX_ADJUSTABLE): Don't define.
2653 (MD_APPLY_SYM_VALUE): Define.
2654 (LOCAL_LABELS_DOLLAR): Undef always.
2655 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2656 (fr30_fix_adjustable): Remove extern, weak tests.
2657 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2658 (obj_fix_adjustable): Don't define.
2659 (tc_fix_adjustable): Define.
2660 (struct fix): Forward declare.
2661 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2662 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2663 (frv_fix_adjustable): Don't do extern, weak tests.
2664 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2665 (TC_FIX_ADJUSTABLE): Don't define.
2666 (obj_fix_adjustable): Don't define.
2667 (tc_fix_adjustable): Define.
2668 (struct fix): Forward declare.
2669 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2670 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2671 * config/tc-h8300.h (struct fix): Forward declare.
2672 (EXTERN_FORCE_RELOC): Define.
2673 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2674 (hppa_fix_adjustable): Don't test extern or weak. Don't
2675 symbol_mark_used_in_reloc.
2676 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2678 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2679 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2680 (TC_FORCE_RELOCATION_SECTION): Don't define.
2681 (MD_APPLY_SYM_VALUE): Define.
2682 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2683 to subtract abs sym.
2684 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2685 (MD_APPLY_SYM_VALUE): Define.
2686 (MD_PCREL_FROM_SECTION): Tweak param name.
2687 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2688 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2689 (i386_force_relocation): New function.
2690 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2691 (TC_VALIDATE_FIX): Likewise.
2692 (TC_FIX_ADJUSTABLE): Don't define.
2693 (MD_APPLY_SYM_VALUE): Define.
2694 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2695 (i386_force_relocation): Declare.
2696 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2697 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2698 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2699 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2700 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2701 (EXTERN_FORCE_RELOC): Define.
2702 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2703 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2704 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2705 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2706 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2707 Remove #if 0 code. Invert return boolean.
2708 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2709 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2710 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2711 (tc_coff_sizemachdep): Prototype.
2712 (i960_handle_align): Likewise.
2713 (i960_validate_fix): Adjust declaration.
2714 (reloc_callj): Likewise.
2715 (EXTERN_FORCE_RELOC): Define.
2716 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2717 (TC_FORCE_RELOCATION_ABS): Define.
2718 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2719 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2720 (TC_FIX_ADJUSTABLE): Don't define.
2721 (MD_APPLY_SYM_VALUE): Define.
2722 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2723 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2724 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2725 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2726 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2727 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2728 (MD_APPLY_SYM_VALUE): Define.
2729 (EXTERN_FORCE_RELOC): Define.
2730 (TC_FORCE_RELOCATION): Tweak param name.
2731 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2732 (m32r_fix_adjustable): Don't test extern, weak.
2733 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2734 (MD_APPLY_SYM_VALUE): Define.
2735 (obj_fix_adjustable): Don't define.
2736 (tc_fix_adjustable): Define.
2737 (tc_frob_file): Don't define.
2738 (tc_frob_file_before_fix): Define.
2739 (EXTERN_FORCE_RELOC): Define.
2740 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2741 BFD_RELOC_VTABLE_ENTRY address.
2742 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2743 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2744 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2745 Remove duplicated fx_done code.
2746 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2747 (EXTERN_FORCE_RELOC): Define.
2748 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2750 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2751 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2752 (TC_FIX_ADJUSTABLE): Don't define.
2753 (EXTERN_FORCE_RELOC): Define.
2754 (MD_APPLY_SYM_VALUE): Define.
2755 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2756 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2757 Remove fx_addsy tests.
2758 (mcore_force_relocation): Call S_FORCE_RELOC.
2759 (mcore_fix_adjustable): Don't test fx_addsy.
2760 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2761 (EXTERN_FORCE_RELOC): Define.
2762 (obj_fix_adjustable): Don't define.
2763 (tc_fix_adjustable): Define.
2764 (MD_APPLY_SYM_VALUE): Define.
2765 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2766 (mips_pic): No longer static.
2767 (mips_force_relocation): Call S_FORCE_RELOC.
2768 (mips_fix_adjustable): Remove extern, weak tests.
2769 * config/tc-mips.h (enum mips_pic_level): Declare.
2770 (mips_pic): Declare.
2771 (tc_frob_file): Don't define.
2772 (tc_frob_file_before_fix): Define this instead.
2773 (EXTERN_FORCE_RELOC): Define.
2774 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2775 with reg_section tests. Set fx_done instead of calling
2776 symbol_clear_used_in_reloc on bad relocs.
2777 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2778 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2779 (mmix_adjust_symtab): Simplify list handling. Abort on any
2781 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2782 BFD_RELOC_MMIX_LOCAL.
2783 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2784 (EXTERN_FORCE_RELOC): Define.
2785 (MD_PCREL_FROM_SECTION): Tweak param name.
2786 (tc_frob_file): Don't define.
2787 (tc_frob_file_before_fix): Define this instead.
2788 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2789 Remove SEC_CODE checks.
2790 (mn10300_fix_adjustable): Remove extern and weak tests.
2791 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2792 (TC_FORCE_RELOCATION): Tweak param name.
2793 (obj_fix_adjustable): Don't define.
2794 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2795 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2796 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2797 (openrisc_fix_adjustable): Don't test fx_addsy.
2798 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2799 (obj_fix_adjustable): Don't define.
2800 (tc_fix_adjustable): Define this instead.
2801 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2802 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2803 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2804 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2805 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2806 (MD_APPLY_SYM_VALUE): Define.
2807 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2808 Don't subtract symbol value.
2809 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2810 (EXTERN_FORCE_RELOC): Define.
2811 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2812 (MD_APPLY_SYM_VALUE): Define.
2813 (obj_fix_adjustable): Don't define.
2814 (tc_fix_adjustable): Define this instead.
2815 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2817 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2818 (ppc_force_relocation <elf version>): New.
2819 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2820 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2821 comments. Don't subtract fx_subsy as that is already done.
2822 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2823 (MD_PCREL_FROM_SECTION): Likewise.
2824 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2825 ppc_force_relocation.
2826 (TC_FORCE_RELOCATION_SECTION): Delete.
2827 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2828 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2829 (MD_APPLY_SYM_VALUE): Define.
2830 * config/tc-s390.c: #include "dwarf2dbg.h".
2831 (s390_insn): Remove excess parens.
2832 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2833 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2834 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2835 non-NULL. Don't subtract off fx_addsy value.
2836 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2837 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2838 (TC_FIX_ADJUSTABLE): Don't define.
2839 (MD_APPLY_SYM_VALUE): Define.
2840 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2841 (SWITCH_TABLE): Likewise.
2842 (sh_force_relocation): Call S_FORCE_RELOC.
2843 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2844 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2845 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2846 fx_addnumber is zero on entry. Save val in fx_addnumber.
2847 (tc_gen_reloc): Don't subtract fx_subsy.
2848 * config/tc-sh.h (struct fix): Move.
2849 (obj_fix_adjustable): Don't define.
2850 (tc_fix_adjustable): Define this instead.
2851 (TC_FIX_ADJUSTABLE): Don't define.
2852 (MD_APPLY_SYM_VALUE): Define.
2853 (SWITCH_TABLE_CONS): Define.
2854 (SWITCH_TABLE): Define.
2855 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2856 (TC_VALIDATE_FIX_SUB): Define.
2857 (MD_PCREL_FROM_SECTION): Tweak param name.
2858 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2859 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2860 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2861 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2862 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2863 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2864 (TC_VALIDATE_FIX_SUB): Define.
2865 (MD_PCREL_FROM_SECTION): Tweak param name.
2866 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2867 (tc_gen_reloc): Use S_FORCE_RELOC.
2868 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2869 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2870 (TC_FORCE_RELOCATION_ABS): Define this instead.
2871 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2872 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2873 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2874 (MD_APPLY_SYM_VALUE): Define.
2875 (TC_FIX_DATA_PRINT): Tweak param name.
2876 * config/tc-tic30.c (USE_STDOUT): Don't define.
2877 (md_parse_option): Remove stupid debug code.
2878 (tc_gen_reloc): Don't use fx_addnumber.
2879 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2880 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2881 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2882 (tc_fix_adjustable): Define this instead.
2883 (TC_FIX_ADJUSTABLE): Don't define.
2884 (MD_APPLY_SYM_VALUE): Define this instead.
2885 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2886 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2887 (TC_FIX_ADJUSTABLE): Don't define.
2888 (MD_APPLY_SYM_VALUE): Define this instead.
2889 (tc_fix_adjustable): Remove extern and weak tests.
2890 * config/tc-w65.h (struct fix): Forward declare.
2891 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2893 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2894 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2895 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2897 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2898 (MD_APPLY_SYM_VALUE): Define.
2899 (obj_fix_adjustable): Don't define.
2900 (tc_fix_adjustable): Define this instead.
2901 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2903 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2905 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2906 (ppc_fix_adjustable <coff version>): Cleanup.
2908 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2909 (md_parse_option): No -a64 without BFD64.
2910 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2911 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2913 2002-09-04 Nick Clifton <nickc@redhat.com>
2915 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2916 instructions into the hash table if the target cpu is the BookE32.
2918 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2920 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2923 2000-08-28 Catherine Moore <clm@redhat.com>
2925 * tc-v850.c (v850_relax): Declare.
2926 (v850_longcode): New routine.
2927 (v850_handle_align): New routine.
2928 (md_pseudo_table): Add longcall and longjump.
2929 (md_parse_option): Check for relax option.
2930 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2931 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2932 (md_apply_fix3): Likewise.
2933 (v850_force_relocation): Likewise.
2934 (v850_comm): Change the current section.
2935 (md_assemble): Ensure that the correct value is put in the
2937 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2938 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2939 Remove redundant v850ea support.
2940 * tc-v850.h (HANDLE_ALIGN): Define.
2941 (v850_handle_align): Declare.
2942 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2944 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2946 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2947 * configure: Regenerate.
2948 * NEWS: Mention new port.
2950 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2952 * config/obj-coff.c: Add sdef definition.
2953 * config/obj-coff.h: Add tic4x include file and set
2955 * config/tc-tic4x.c: New file.
2956 * config/tc-tic4x.h: New file.
2958 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2960 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2961 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2962 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2963 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2964 (RELOC_ENUM): Define.
2965 (fix_new_internal): Use RELOC_ENUM.
2966 (fix_new, fix_new_exp): Likewise.
2967 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2968 Replace gotos with continue.
2969 (write_relocs): Formatting. Avoid symbol loops in
2970 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2971 errors, and error number in other cases.
2972 (fixup_segment): Remove param names from prototype. Rename
2973 "this_segment_type" to "this_segment". Update linkrelax comment.
2974 Remove "size, "place" and "where" local vars. Formatting. Update
2975 "no symbol" comment. Remove #if 0 and #if 1.
2977 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2979 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2981 * dwarf2dbg.c: Always include dwarf2dbg.h.
2982 (dwarf2_directive_file): Adjust dummy version args.
2983 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2984 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2985 when symbol values differ.
2986 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2987 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2988 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2990 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2992 * config/tc-w65.c (md_section_align): Fix typo.
2993 (md_parse_option): Return 0, not 1.
2995 2002-08-22 Nick Clifton <nickc@redhat.com>
2997 * doc/as.texinfo (Section): Note that if '@' is a comment
2998 character then another symbol is used to prefix the section's
3001 2002-08-22 Christian Groessler <chris@groessler.org>
3003 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
3006 2002-08-12 Graeme Peterson <gp@qnx.com>
3008 * configure.in: Add support for sh-**-nto* target.
3009 * configure: Regenerate.
3011 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
3013 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
3015 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3017 * config/tc-ppc.c (ppc_cleanup): Do something only if format
3019 (ppc_apuinfo_section_add): Define only if format is ELF.
3020 (md_assemble): Emit APUinfo section only if format is ELF.
3023 2002-08-21 Alan Modra <amodra@bigpond.net.au>
3025 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
3026 * config/tc-frv.c: Likewise.
3027 * config/tc-hppa.c: Likewise.
3028 * config/tc-ia64.c: Likewise.
3029 * config/tc-ip2k.c: Likewise.
3030 * config/tc-m68hc11.c: Likewise.
3031 * config/tc-m68k.c: Likewise.
3032 * config/tc-mmix.c: Likewise.
3033 * config/tc-mn10300.c: Likewise.
3034 * config/tc-sh.c: Likewise.
3035 * config/tc-sparc.c: Likewise.
3036 * config/tc-v850.c: Likewise.
3038 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
3040 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
3043 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3045 From matthew green <mrg@redhat.com>
3047 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
3048 PPC_OPCODE_PPC is, except for BookE architectures.
3049 (md_parse_option): Add support for -mspe.
3050 (md_show_usage): Add -mspe.
3051 (md_parse_option): Add support for -me500 and
3052 -me500x2 to generate code for Motorola e500 core complex.
3053 (md_show_usage): Add -me500 and -me500x2.
3055 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
3056 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
3057 PPC_APUINFO_BRLOCK): New macros.
3059 (ppc_cleanup): New function.
3060 (ppc_apuinfo_section_add): New function.
3062 (md_assemble): Collect info and write the APUinfo section.
3064 * config/tc-ppc.h (md_cleanup): Define.
3065 (ppc_cleanup): Export.
3066 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
3068 2002-08-17 Stan Cox <scox@redhat.com>
3070 * config/obj-elf.c (obj_elf_change_section): Make non-static.
3071 config/tc-mips.c (s_change_section): New function to support
3072 IRIX .section pseudo-op.
3074 2002-08-16 Nick Clifton <nickc@redhat.com>
3076 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
3078 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3080 * config/tc-mips.c (macro_build_jalr): Make sure we generate
3081 the fix-up against on the right frag.
3082 (s_cpsetup): Likewise. Parse third argument as expression, to
3083 handle global symbols and forward/backward labels correctly.
3085 2002-08-14 Nick Clifton <nickc@redhat.com>
3087 * read.c (stringer): Catch attempts to create strings in the abs
3090 * config/tc-alpha.c: Fix compiling for COFF targets.
3091 Some minor formatting tidyups.
3093 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3095 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
3096 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
3097 according to the reloc.
3098 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
3099 (TC_FORCE_RELOCATION): Define.
3100 (tc_m68hc11_force_relocation): Declare.
3102 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
3103 (s_m68hc11_relax): New function for relax group.
3104 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
3105 beginning of jump instruction.
3106 (md_pcrel_from): Rename from md_pcrel_from_section and fix
3107 address computation.
3108 (tc-gen_reloc): Update.
3109 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
3111 (tc_m68hc11_force_relocation): New function, handle new relocs.
3112 (tc_m68hc11_fix_adjustable): New to make sure there are enough
3113 reloc for the linker relax pass.
3114 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
3117 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3119 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
3120 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
3121 (s_m68hc11_mode): New function for .mode pseudo op.
3122 (s_m68hc11_mark_symbol): New function for .far and .interrupt
3124 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
3125 (m68hc11_elf_final_processing): Declare.
3127 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3129 * config/tc-m68hc11.c (md_begin): Take into account additional
3130 page operand for call instruction.
3131 (print_opcode_format): Likewise.
3132 (check_range): Likewise for page range checking.
3133 (get_operand): Don't skip a possible comma in operands.
3134 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3135 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3136 (fixup24): New to handle call reloc.
3137 (build_insn): Handle missing page operand for call instruction.
3139 (md_apply_fix3): Take into account new relocs.
3140 (get_operand): Fix the mode for indexed indirect addressing.
3141 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3143 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3145 * config/tc-mips.c (mips_ip): Don't work out the value of
3146 constant %hi()s here.
3148 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3150 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3151 for ELF, and don't bother checking ELF relocs when non-ELF.
3152 (i386_immediate): Allow absolute_section expressions for aout.
3153 (i386_displacement): Likewise. Also test bfd_is_com_section.
3154 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3155 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3156 not when fx_addsy. Remove dead code.
3158 2002-08-09 Graeme Peterson <gp@qnx.com>
3160 * configure.in: Add support for ppc-*-nto* target.
3161 * configure: Regenerate.
3163 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3165 * config/tc-i386.h: Reorganize.
3167 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3169 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3170 immediate offset in "dla" and "la" expansions.
3172 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3174 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3175 Remove "bfd_gas=yes" from target table when covered later.
3176 Consolidate some entries.
3177 * configure: Regenerate
3179 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3181 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3182 at start of insn, pass it to output_disp and output_imm.
3183 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3184 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3186 (output_imm): Added arguments. Compute properly addend for
3188 (md_apply_fix3): Remove R_386_GOTPC handling.
3190 2002-08-06 George France <france@handhelds.org>
3192 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3193 and m21264b processor names and cpu types.
3194 * doc/c-alpha.texi: Documented new types.
3196 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3198 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3200 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3202 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3203 handling to BFD_RELOC_MIPS16_GPREL.
3205 2002-08-01 Nick Clifton <nickc@redhat.com>
3207 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3208 pool is computed using signed arithmetic so that proper sign
3209 extension is performed if X_add_number is a 64-bit integer.
3211 2002-08-01 H.J. Lu <hjl@gnu.org>
3212 Daniel Jacobowitz <drow@mvista.com>
3214 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3215 .debug_line section unless it has line information.
3217 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3219 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3220 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3221 Allow default displacement size to be an option "--disp-size-default".
3222 (md_number_to_disp): Make error messages include value. Use %d to
3223 print integers, not %s.
3224 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3225 get duplicate messages sometimes.
3226 (convert_iif): Grow frag to max possible instruction size. Avoid
3227 creating unnecessary fixes.
3228 (md_number_to_field) Add prototype.
3229 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3230 prototypes and make static.
3231 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3232 (evaluate_expr): Use resultP argument instead of exprP global.
3233 (get_addr_mode): Quiten compiler warnings.
3234 (encode_operand): eliminate unused variables. Quiten compiler
3235 warnings. Eliminate nul character in format strings.
3236 (parse): argc is unsigned.
3237 (reloc): Type cast index to quieten compiler.
3238 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3239 (md_convert_frag): Note unused parameters. Remove unused
3241 (md_create_long_jump, md_create_short_jump,
3242 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3245 2002-07-31 Nick Clifton <nickc@redhat.com>
3247 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3248 of the PDP-11 and 2.11BSD a.out support.
3250 2002-07-31 Momchil Velikov <velco@fadata.bg>
3252 * config/tc-v850.c (md_assemble): Fix range check for immediate
3255 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3257 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3258 to Broadcom SB-1 core support.
3260 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3262 * config/tc-mips.c (mips_target_format): Fix formatting.
3263 Add recognition of n32 ABI formats.
3265 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3267 * tc-mips.c (load_address): Don't clobber $at when loading a
3268 64-bit address in non-PIC code if noat is in effect.
3271 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3273 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3274 used in division/multiply macro expansions similarly to how they
3275 are used in the variants with break instructions.
3278 2002-07-30 Graeme Peterson <gp@qnx.com>
3280 * configure.in: Add support for arm-*-nto target.
3281 * configure: Regenerate.
3283 2002-07-30 Nick Clifton <nickc@redhat.com>
3285 * config/tc-arm.c (struct literal_pool): Add fields to allow
3286 multiple literal pools to be maintained.
3287 (find_literal_pool): New function.
3288 (find_or_make_literal_pool): New function.
3289 (add_to_literal_pool): Use find_or_make_literal_pool.
3290 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3292 (s_ltorg): Use find_literal_pool.
3293 (arm_cleanup): Dump all literal pools.
3294 * doc/c-arm.texi: Document new behaviour of only dumping literal
3297 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3299 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3300 rather than PPC_OPCODE_32 for powerpc64*.
3302 2002-07-25 Nick Clifton <nickc@redhat.com>
3304 * po/es.po: Updated Spanish translation.
3305 * po/fr.po: Updated French translation.
3307 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3309 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3310 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3311 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3312 * configure, config.in: Regenerate.
3313 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3314 (mips_set_options): Remove "abi" field.
3315 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3318 (mips_arch_string, mips_arch_info): New vars.
3319 (mips_tune_string, mips_tune_info): New vars.
3320 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3321 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3322 (mips_isa_to_str, mips_cpu_to_str): Remove.
3323 (mips_ip): If the selected architecture is a generic ISA rather
3324 than a processor, only mention the ISA level in error messages.
3325 (OPTION_MCPU): Remove.
3327 (md_longopts): Add -mfp64, remove -mcpu.
3328 (mips_set_option_string): New fn.
3329 (md_parse_option): Make -mipsN update file_mips_isa rather than
3330 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3331 Don't let -mgp32 and -mfp32 change the ABI.
3332 (show): Move to end of file. Constify string argument.
3333 (md_show_usage): Move to the end of the file. Read available
3334 architectures from mips_cpu_info_table.
3335 (mips_set_architecture): New fn.
3336 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3337 is an alias for -march=mipsN. Don't change the ABI based on other
3338 flags. Infer the register size from the ABI as well as the
3339 architecture. Complain about more conflicting arguments.
3340 Unify logic with GCC.
3341 (s_mipsset): Don't change the ABI.
3342 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3343 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3344 "mipsN"-type entries. Remove entries that vary only in the
3345 manufacturer's prefix, or that have "000" replaced by "k".
3346 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3347 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3348 (mips_parse_cpu): New fn.
3349 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3350 (mips_cpu_info_from_isa): Minor formatting tweak.
3352 2002-07-24 Nick Clifton <nickc@redhat.com>
3354 * po/sv.po: Updated Swedish translation.
3355 * po/es.po: Updated Spanish translation.
3357 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3359 * Makefile.am: Run "make dep-am".
3360 * Makefile.in: Regenerate.
3361 * doc/Makefile.in: Regenerate.
3362 * config.in: Regenerate.
3363 * po/POTFILES.in: Regenerate.
3365 2002-07-23 Nick Clifton <nickc@redhat.com>
3367 * po/fr.po: Updated French translation.
3369 2002-07-23 Nick Clifton <nickc@redhat.com>
3371 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3374 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3376 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3377 instead of S_IS_EXTERN.
3378 (md_estimate_size_before_relax): Likewise.
3379 (mips_fix_adjustable): Likewise.
3381 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3383 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3385 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3386 Nick Clifton <nickc@redhat.com>
3388 * cond.c (s_ifdef): Treat a referenced but not yet defined
3389 symbol as if it were undefined, in exactly the same way as
3392 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3393 consider referenced bug not yet defined symbols to be
3396 2002-07-18 Denis Chertykov <denisc@overta.ru>
3397 Frank Ch. Eigler <fche@redhat.com>
3398 Alan Lehotsky <alehotsky@cygnus.com>
3399 John Healy <jhealy@redhat.com>
3400 Jeff Johnston <jjohnstn@redhat.com>
3402 * configure.in: Add ip2k configuraton.
3403 * configure: Regenerate.
3404 * Makefile.am: Add ip2k configuraton.
3405 * Makefile.in: Regenerate.
3406 * configure: Regenerate.
3407 * Makefile.in: Regenerate.
3408 * config/tc-ip2k.c: New file.
3409 * config/tc-ip2k.h: New files.
3410 * NEWS: Mention new support.
3411 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3412 * doc/Makefile.in: Regenerate.
3413 * doc/all.texi: Set IP2K
3414 * doc/as.texinfo: Add IP2K description.
3415 * doc/c-ip2k.texi: New file.
3417 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3419 * NEWS: Reformat to match style of other NEWS files.
3421 2002-07-17 Jan Hubicka <jh@suse.cz>
3423 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3425 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3427 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3429 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3431 * NEWS: Add 'Changes in 2.13'.
3433 2002-07-15 Matt Fredette <fredette@netbsd.org>
3435 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3437 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3439 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3440 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3443 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3445 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3446 (ppc_frob_file_before_adjust): New function.
3447 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3448 (ppc_elf_frob_symbol): Don't declare.
3449 (tc_frob_file_before_adjust): Define.
3450 (ppc_frob_file_before_adjust): Declare.
3452 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3453 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3456 (ppc_xcoff64): Rename to ppc_obj64.
3457 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3458 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3459 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3461 (ppc_target_format): Use ppc_obj64 to select format.
3462 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3463 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3464 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3465 (tc_frob_symbol): Likewise.
3466 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3467 BFD_DEFAULT_TARGET_SIZE.
3469 (ppc_is_toc_sym): Likewise.
3470 (md_apply_fix3): Likewise.
3471 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3472 BFD_DEFAULT_TARGET_SIZE.
3473 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3474 (tc_frob_symbol): Likewise.
3476 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3478 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3479 (mips_ip): Likewise.
3481 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3483 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3484 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3485 (md_apply_fix3): Formatting. Remove redundant test.
3486 (tc_gen_reloc): Remove redundant code.
3487 (tc_i386_force_relocation): Delete. Movy body of function to..
3488 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3490 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3492 * configure.in: Add hppa-*-openbsd* target, change
3493 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3495 * configure: Regenerate.
3497 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3499 * config/tc-mips.c (macro): Shift the 32-bit address range
3500 accessible with a lone "lui" down by 32768.
3502 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3504 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3505 instead of "dadd" in address calculations.
3508 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3510 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3512 (md_assemble): Instead, zap the suffix here.
3514 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3516 * NEWS: Remove next release number until the release is actually
3519 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3521 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3523 * Makefile.in: Regenerate.
3525 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3527 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3528 to symbols in merge sections, even non pc-relative ones.
3530 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3532 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3534 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3536 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3537 .softregs and .eeprom.
3539 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3541 * NEWS: Note the next release is 2.13.
3543 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3545 * po/tr.po: New translation imported.
3547 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3549 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3550 (ecoff_directive_def): Likewise.
3551 (ecoff_directive_tag): Likewise.
3552 * listing.c (file_info): Likewise.
3553 * hash.c (what): Likewise.
3555 2002-06-25 H.J. Lu <hjl@gnu.org>
3557 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3558 * Makefile.in: Regenerated.
3560 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3562 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3563 (assemble_ppi): Generate warning if the same register is used
3564 twice as destination in the same padd / pmuls instruction.
3566 2002-06-18 Dave Brolley <brolley@redhat.com>
3568 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3569 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3570 * configure.in: Support frv-*-*.
3571 * Makefile.am (CPU_TYPES): Add frv.
3572 (TARGET_CPU_CFILES): Add tc-frv.c.
3573 (TARGET_CPU_HFILES): Add tc-frv.h.
3574 (DEPTC_frv_coff): New variable.
3575 (DEPTC_frv_elf): New variable.
3576 (DEPOBJ_frv_coff): New variable.
3577 (DEPOBJ_frv_elf): New variable.
3578 (DEP_frv_coff): New variable.
3579 (DEP_frv_elf): New variable.
3580 * tc-frv.c: New file.
3581 * tc-frv.h: New file.
3583 2002-06-17 Catherine Moore <clm@redhat.com>
3585 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3587 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3589 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3591 2002-06-17 Tom Rix <trix@redhat.com>
3593 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3595 2002-06-14 H.J. Lu <hjl@gnu.org>
3596 Daniel Jacobowitz <drow@mvista.com>
3598 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3599 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3600 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3601 and new_logical_line for the first .file directive.
3602 * read.c (s_app_file_string): New function.
3603 (s_app_file): Call it.
3604 * read.h (s_app_file_string): Add declaration.
3606 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3608 * configure.in: Remove MIPS_STABS_ELF.
3609 * configure: Regenerated.
3610 * config.in: Regenerated.
3611 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3613 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3615 (pdr_seg): Declare unconditionally.
3616 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3617 (s_mips_end): Likewise. Generate stabs function markers.
3618 (s_mips_ent): Generate stabs function markers.
3619 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3621 (s_mips_mask): Likewise.
3622 (mips_flag_mdebug): New.
3623 (md_longopts): Add "mdebug" and "no-mdebug".
3624 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3625 (mips_after_parse_args): Set mips_flag_mdebug.
3626 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3628 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3630 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3631 value twice for RELA relocations.
3633 2002-06-12 Ben Elliston <bje@redhat.com>
3635 * symbols.c (resolve_symbol_value): Initialise final_val.
3637 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3639 2002-06-11 Tom Rix <trix@redhat.com>
3641 * config/tc-ppc.c (ppc_subseg_align): Delete.
3642 (ppc_change_csect): Default csect align is 2.
3643 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3645 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3647 * config/tc-avr.c (mcu_types): Update.
3649 2002-06-08 Matt Thomas <matt@3am-software.com>
3651 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3652 (vax-*-netbsd*): New targets.
3653 * configure: Regenerate.
3654 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3655 * config/tc-vax.c: Add support for ELF and PIC.
3656 (flag_want_pic): New flag.
3657 (float_cons): Fix prototype.
3658 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3659 (md_assemble): Introduce a new is_absolute local, and use it
3660 rather than repeating the test. Make fatal errors actually
3661 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3662 Add support for ELF. Add support for PIC.
3663 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3664 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3666 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3667 optional for a.out, and not allowed for VMS. Adjust all callers.
3668 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3669 (md_create_long_jump): Likewise.
3670 (md_undefined_symbol): Likewise.
3671 (md_section_align): Likewise.
3672 (md_shortopts): Allow -k and -K for ELF.
3673 (md_parse_option): Set flag_want_pic if -k or -K.
3674 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3675 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3676 * config/tc-vax.h (tc_headers_hook): Remove.
3677 (TARGET_FORMAT): Set according to object format and target
3679 (BFD_ARCH, TARGET_ARCH): Define.
3680 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3681 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3682 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3683 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3685 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3687 * Makefile.am: Run "make dep-am".
3688 * Makefile.in: Regenerate.
3690 * as.c: Replace CONST with const.
3691 * write.c: Likewise.
3692 * config/obj-coff.c: Likewise.
3693 * config/tc-a29k.c: Likewise.
3694 * config/tc-arm.c: Likewise.
3695 * config/tc-dlx.c: Likewise.
3696 * config/tc-h8300.c: Likewise.
3697 * config/tc-h8500.c: Likewise.
3698 * config/tc-i370.c: Likewise.
3699 * config/tc-i860.c: Likewise.
3700 * config/tc-i960.c: Likewise.
3701 * config/tc-m68hc11.c: Likewise.
3702 * config/tc-m68k.c: Likewise.
3703 * config/tc-m88k.c: Likewise.
3704 * config/tc-mcore.c: Likewise.
3705 * config/tc-mips.c: Likewise.
3706 * config/tc-ns32k.c: Likewise.
3707 * config/tc-pdp11.c: Likewise.
3708 * config/tc-pj.c: Likewise.
3709 * config/tc-s390.c: Likewise.
3710 * config/tc-sh.c: Likewise.
3711 * config/tc-sparc.c: Likewise.
3712 * config/tc-tahoe.c: Likewise.
3713 * config/tc-tic80.c: Likewise.
3714 * config/tc-v850.c: Likewise.
3715 * config/tc-vax.c: Likewise.
3716 * config/tc-w65.c: Likewise.
3717 * config/tc-z8k.c: Likewise.
3719 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3721 Based on patch from Matt Green:
3722 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3723 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3724 (s_mips_loc): New function.
3725 (mips_nonecoff_pseudo_table): Call them.
3726 (append_insn): Call dwarf2_emit_insn.
3728 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3730 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3732 (file_ase_mips16): New veriable.
3733 (mips_eabi64): Remove.
3734 (CPU_HAS_MIPS16): New define.
3735 (CPU_HAS_MDMX): Fix data type.
3736 (md_begin): Code cleanup. Use file_ase_mips16.
3737 (mips_elf_final_processing): Handle mips16 header flag.
3738 Handle EABI flag without intermediate variable.
3740 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3742 * doc/as.texinfo: Update MIPS documentation.
3744 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3746 * config/tc-mips.c: Add define for $zero register.
3747 (md_begin): Add $zero as alias name for $0.
3748 (insn_uses_reg): Use ZERO define.
3749 (mips_ip): Add $zero as alias name for $0.
3750 (mips16_ip): Likewise.
3751 (s_cplocal): Demand empty rest of input line.
3752 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3753 names. Use ZERO define. Fix input_line_pointer progress.
3755 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3757 * symbols.c: Replace CONST by const throughout.
3758 (symbol_find_exact): Split out from..
3759 (symbol_find_base): ..here.
3760 * symbols.h: Replace CONST by const throughout.
3761 (symbol_find_exact): Declare.
3762 * config/obj-elf.c: #include "struc-symbol.h".
3763 (elf_frob_file): If group name matches an exported symbol, use that
3764 symbol for the signature and ".group" as the section name.
3766 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3768 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3771 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3773 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3774 and mips_opts.ase_mdmx if they are uninitialized.
3776 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3778 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3779 (hppa_force_relocation): Check if a stub just before the start symbol
3780 of the last call_info is reachable before forcing relocation. Fix
3783 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3785 * config/tc-mips.c (mips_after_parse_args): New function.
3786 (md_begin): Move processing of defaults to mips_after_parse_args.
3787 config/tc-mips.h (md_after_parse_args): Define.
3789 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3791 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3792 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3793 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3794 * configure: Regenerate.
3795 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3798 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3800 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3802 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3804 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3805 linkonce flag. Print all warnings.
3806 (obj_elf_section): Parse ",comdat" for groups.
3807 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3808 consistency of comdat flag.
3810 2002-06-02 Richard Henderson <rth@redhat.com>
3812 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3813 with LITERALs without sequence numbers.
3815 2002-06-01 Richard Henderson <rth@redhat.com>
3817 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3818 Rename them LITUSE_ALPHA_*.
3820 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3822 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3823 accept parentheses enclosed register lists.
3825 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3827 * Makefile.am: Run "make dep-am".
3828 * Makefile.in: Regenerate.
3829 * po/POTFILES.in: Regenerate.
3831 2002-05-31 Graeme Peterson <gp@qnx.com>
3833 * configure.in: Add i386-*-nto-qnx*.
3834 * configure: Regenerate.
3836 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3838 * config/tc-mips.c (mips_ip): Use unsigned long values for
3841 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3843 * config/tc-mips.c (s_cpsetup): Fix initialization of
3844 mips_cpreturn_register and mips_cpreturn_offset.
3846 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3848 * config/tc-mips.c (s_cpsetup): Fix comment.
3850 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3852 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3853 (mips_ip): Likewise.
3854 (mips16_ip): Likewise.
3855 (tc_get_register): Likewise.
3857 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3858 Ed Satterthwaite <ehs@broadcom.com>
3860 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3861 (mips_opts): Initialize "ase_mdmx" member.
3862 (file_ase_mdmx): New variable.
3863 (CPU_HAS_MDMX): New macro.
3864 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3865 based on command line options and configuration defaults.
3866 (macro_build): Note in comment that use of MDMX in macros is
3867 not currently allowed.
3868 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3869 "Z" MDMX operand types.
3870 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3871 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3873 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3874 Add support for "-mdmx" and "-no-mdmx" options.
3875 (OPTION_ELF_BASE): Move to accomodate new options.
3876 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3877 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3878 file_ase_mdmx was set.
3879 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3880 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3883 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3885 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3886 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3887 command line switch conforming to gcc conventions.
3888 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3890 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3892 * config/tc-mips.c (macro_build_jalr): New Function.
3893 (md_begin): NewABI uses big GOTs.
3894 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3895 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3896 (load_address): Add some NewABI PIC support.
3898 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3899 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3901 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3903 * config/tc-mips.c (load_address): Use mips_gp_register instead
3904 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3906 (macro): Use mips_gp_register instead of hardcoded value.
3908 2002-05-30 Richard Henderson <rth@redhat.com>
3910 * expr.h (operatorT): Add O_md17..O_md32.
3911 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3912 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3913 O_tprelhi, O_tprello, O_tprel): New.
3914 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3915 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3916 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3917 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3918 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3919 (md_apply_fix3): Handle TLS relocations.
3920 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3921 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3922 associated TLS reloc. Check lituse_tls relocs match up.
3923 (emit_insn): Handle TLS relocations.
3926 * doc/c-alpha.texi: Add docs for tls relocations.
3928 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3930 * config/tc-mips.c (mips_gprel_offset): New variable.
3931 (s_gpvalue): Use it.
3933 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3935 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3936 write-write conflicts.
3937 (md_assemble): Reformat introductory comment.
3938 (parallel_ok): Prevent packing only if the first
3939 instruction cannot be packed.
3941 2002-05-30 Jason Eckhardt <jle@redhat.com>
3942 Tom Rix <trix@redhat.com>
3944 * config/tc-d10v.c (build_insn): Check for immediates.
3946 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3948 * config/tc-mips.c: Replace GP in comments by $gp.
3949 (mips_big_got): Initialize.
3950 (mips_trap): Initialize.
3951 (load_address): Use mips_gp_register instead of hardcoded value.
3952 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3953 (macro): Use mips_gp_register instead of hardcoded value.
3954 (macro2): Change load_address calls.
3955 (md_pcrel_from): Comment formatting.
3956 (s_cpload): Use mips_gp_register instead of hardcoded value.
3957 (s_cprestore): Likewise. Comment formatting.
3958 (s_gpword): Fix data type.
3959 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3960 (nopic_need_relax): Replace GP in comments by $gp.
3961 (mips_elf_final_processing): Better comment.
3963 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3965 * configure.in: Add DLX configuraton
3966 * Makefile.am: Add DLX configuraton
3967 * configure: Regenerate.
3968 * Makefile.in: Regenerate.
3969 * config/tc-dlx.c: New file.
3970 * config/tc-dlx.h: New files.
3971 * NEWS: Mention new support.
3973 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3975 * config/obj-coff.c (write_object_file): Add missing semicolon.
3977 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3979 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3980 by the define. Remove superfluous check of mips_opts.mips16.
3981 (append_insn): Likewise. Canonicalize variable increments.
3982 (macro_build): Canonicalize variable increments.
3983 (macro_build_lui): Likewise.
3984 (load_register): Likewise.
3985 (load_address): Move pointer initialization.
3986 (macro): Move pointer to a more local scope. Canonicalize variable
3987 increments. Better comments. Replace magic constant for RA by the
3989 (macro2): Replace magic constant for RA by the define. Canonicalize
3990 variable increments.
3991 (mips_ip): Canonicalize variable increments.
3992 (mips16_ip): Replace magic constant for RA by the define.
3993 (my_getSmallParser): Canonicalize variable increments/decrements.
3994 (my_getPercentOp): Likewise.
3995 (my_getSmallExpression): Likewise.
3996 (s_align): Likewise.
3997 (s_mipsset): Likewise.
3998 (s_cpsetup): Likewise.
3999 (s_insn): Remove superfluous check of mips_opts.mips16.
4000 (s_mips_stab): Likewise.
4001 (mips_handle_align): Canonicalize variable increments.
4002 (s_mips_ent): Likewise.
4003 (s_mips_end): Add comment.
4005 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
4007 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
4008 * configure: Regenerate.
4010 2002-05-25 Alan Modra <amodra@bigpond.net.au>
4012 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
4013 * Makefile.in: Regenerate.
4014 * dep-in.sed: Reorder to match OBJS in Makefile.am.
4015 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
4016 * configure: Regenerate.
4017 * as.h: Use #include "" instead of <> for local header files.
4018 * flonum-konst.c: Likewise.
4019 * flonum-mult.c: Likewise.
4021 * listing.c: Likewise.
4022 * config/tc-ia64.h: Likewise.
4023 * config/tc-v850.h: Likewise.
4025 2002-05-24 TAMURA Kent <kent@netbsd.org>
4027 * configure.in: Add a target for i386-netbsdpe.
4028 * configure: Regenerate.
4030 2002-05-23 Jakub Jelinek <jakub@redhat.com>
4032 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
4033 (obj_elf_common): Call elf_common.
4034 (obj_elf_tls_common): New function.
4035 (elf_pseudo_tab): Support .tls_common.
4036 (special_sections): Add .tdata and .tbss.
4037 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
4039 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
4040 (obj_elf_parse_section_letters): Include T in error message.
4041 * config/tc-ppc.c (ppc_section_letter): Likewise.
4042 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
4043 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
4045 * config/tc-sparc.c (md_apply_fix3): Likewise.
4046 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
4047 Define them if not BFD_ASSEMBLER.
4048 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
4050 (md_apply_fix3): Add TLS relocs.
4051 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
4052 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
4053 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
4054 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
4055 (ia64_elf_section_letter): Include T in error message.
4056 (md_begin): Support TLS operators.
4057 (md_operand): Likewise.
4058 (ia64_gen_real_reloc_type): Support TLS relocs.
4059 * write.c (adjust_reloc_syms): Don't change symbols in
4060 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
4062 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4064 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
4065 round the relocation up rather than down.
4067 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
4069 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
4071 * doc/as.texinfo: Document that the COFF version of .section
4072 ignores the 'a' flag.
4074 2002-05-23 Alan Modra <amodra@bigpond.net.au>
4076 * config/tc-alpha.c (assemble_tokens): Protect use of
4077 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
4079 * write.c (size_seg): Check adjustment to last frag.
4080 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
4082 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
4083 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
4084 (write_object_file): Invoke md_do_align if available, and use
4085 frag_align_code on text sections.
4086 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
4087 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
4088 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
4089 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
4090 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
4093 2002-05-22 H.J. Lu <hjl@gnu.org>
4095 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
4098 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
4100 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
4103 2002-05-22 H.J. Lu <hjl@gnu.org>
4105 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
4106 for one .loc for compiler.
4108 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4110 * config/tc-mips.c (macro): Relax warning, it's toot strict for
4113 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4115 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
4116 Optimize the rotate by zero case.
4118 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
4120 * configure.in: Remove accidental enabling of bfd_gas=yes for
4122 * configure: Regenerate.
4124 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4126 * app.c: Fix formatting.
4128 * ehopt.c: Likewise.
4130 * input-file.c: Likewise.
4131 * listing.c: Likewise.
4132 * macro.h: Likewise.
4133 * stabs.c: Likewise.
4134 * symbols.c: Likewise.
4136 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4138 * config/obj-generic.c: Delete file.
4139 * config/obj-generic.h: Likewise.
4141 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4143 * config/tc-avr.c (mcu_types): Update for new devices.
4145 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4147 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4149 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4151 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4152 worked sometimes by accident. Fix copy&paste comment.
4154 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4156 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4157 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4158 (mips_elf_final_processing): Let n32 use .reginfo.
4160 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4162 * config/tc-mips.c (append_insn): Fix too small range of variable.
4164 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4166 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4167 listing_prev_line().
4169 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4171 * config/tc-arm.c (md_assemble): Remove redundant call to
4174 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4177 * stabs.c (s_stab_generic): Fix grammatical error in warning
4180 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4182 * write.c (subsegs_finish): Don't specially align last subseg.
4184 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4186 * stabs.c (s_stab_generic): Warn about a description field that is
4189 * config/obj-coff.c: Fix compile time warnings when compiling
4190 without BFD_ASSEMBLER defined.
4193 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4195 (md_pcrel_from_section): Use md_pcrel_from().
4197 2002-05-11 Bruno Haible <bruno@clisp.org>
4199 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4200 by dwarf2_directive_loc, instead of calling dwarf2_where.
4202 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4204 * config/obj-coff.h: Fix formatting.
4205 * config/tc-mcore.c: Likewise.
4206 * config/tc-mn10300.c: Likewise.
4207 * config/tc-openrisc.c: Likewise.
4208 * config/tc-or32.c: Likewise.
4209 * config/tc-pdp11.c: Likewise.
4210 * config/tc-ppc.c: Likewise.
4211 * config/tc-ppc.h: Likewise.
4212 * config/tc-sh64.c: Likewise.
4213 * config/tc-sh.c: Likewise.
4214 * config/tc-tic54x.c: Likewise.
4215 * config/tc-xstormy16.c: Likewise.
4216 * config/tc-xstormy16.h: Likewise.
4218 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4220 * config/obj-coff.c: Fix formatting.
4221 * config/obj-elf.c: Likewise.
4222 * config/tc-alpha.c: Likewise.
4223 * config/tc-arm.c: Likewise.
4224 * config/tc-d10v.c: Likewise.
4225 * config/tc-d30v.c: Likewise.
4226 * config/tc-h8300.c: Likewise.
4227 * config/tc-hppa.c: Likewise.
4229 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4231 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4232 reloc when no_cond_jump_promotion.
4234 2002-05-08 Jim Wilson <wilson@redhat.com>
4236 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4237 current variable part of frag.
4239 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4241 * config/tc-mmix.c: Fix formatting.
4242 * config/tc-mmix.h: Likewise.
4244 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4246 * configure: Regenerate.
4248 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4250 * config/tc-m68k.c: Fix formatting.
4252 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4254 * Makefile.am: Honour DESTDIR.
4255 * Makefile.in: Regenerate.
4257 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4259 * config/tc-ia64.c: Fix formatting.
4260 * config/tc-ia64.h: Likewise.
4262 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4264 * config/tc-mips.c: Fix formatting.
4265 * config/tc-s390.c: Likewise.
4266 * config/tc-s390.h: Likewise.
4268 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4270 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4271 information for instructions.
4273 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4275 * as.h: Fix formatting.
4278 * dwarf2dbg.c: Likewise.
4279 * frags.h: Likewise.
4281 * macro.c: Likewise.
4283 * stabs.c: Likewise.
4284 * symbols.c: Likewise.
4286 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4288 * app.c (mri_pseudo): Only declare for TC_M68K.
4290 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4291 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4292 BFD_RELOC_16_BASEREL.
4293 (md_assemble): Likewise.
4294 (md_apply_fix3): Likewise.
4296 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4298 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4299 zero into an add of zero - it is not the same.
4301 2002-05-01 Arati Dikey <aratid@kpit.com>
4303 * tc-sh.c (get_specific): Generate warning if the same
4304 destination register is used in parallel instructions.
4306 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4308 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4310 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4312 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4313 backwards to prevent cascading errors.
4315 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4317 * configure.in: Add support for powerpc-*-windiss.
4318 * configure: Regenerated.
4320 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4322 * config/tc-s390.c (md_parse_option): Formatting.
4324 * config/tc-i386.c: Formatting fixes, add missing space in error
4327 2002-04-24 Christian Groessler <chris@groessler.org>
4329 * config/tc-z8k.c (build_bytes): Add support for new cases:
4330 CLASS_IGNORE and ARG_NIM4.
4331 (md_assemble): Prevent destruction of input_line_pointer if
4332 get_operands returns failure.
4334 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4336 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4337 instructions to be generated by macros.
4339 2002-04-24 Andreas Schwab <schwab@suse.de>
4341 * config/tc-i386.c (output_jump, output_disp)
4342 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4344 (md_apply_fix3): Remember addend value for rela relocations.
4345 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4347 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4349 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4350 from previous change.
4352 2002-04-22 Eric Christopher <echristo@redhat.com>
4354 * config/tc-mips.c (macro_build): Add warning if macro instructions
4355 are expanded into a branch delay slot.
4357 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4359 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4360 numbers, gdb relies on them to detect the start of the prologue.
4362 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4364 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4365 symbols in merge sections.
4367 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4369 * as.c (main): Don't reference _bfd_chunksize.
4371 2002-04-15 Tom Rix <trix@redhat.com>
4373 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4374 symbols in merge sections.
4376 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4378 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4379 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4380 argument for the precision.
4381 (gen_to_words): Update accordingly.
4383 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4385 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4386 BFD_VERSION_STRING unavailable.
4387 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4389 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4391 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4392 symbol_used_in_reloc_p is true.
4394 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4397 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4399 * dep-in.sed: Cope with absolute paths.
4400 * Makefile.am (dep.sed): Subst TOPDIR.
4402 * Makefile.in: Regenerate.
4404 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4406 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4407 (mips_ip): Remove unused variable.
4408 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4409 unsigned char with bfd_byte.
4410 (s_file): Remove unused variable.
4411 (s_mips_ent): Likewise.
4413 2002-04-03 Tom Rix <trix@redhat.com>
4415 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4417 (find_opcode): Fix warning in as_warn.
4418 * config/tc-d10v.h: Update Copyright.
4420 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4421 Tom Rix <trix@redhat.com>
4423 From Jeff Knaggs <jknaggs@redhat.com>
4424 * config/tc-d10v.c (check_resource_conflict): New function to
4425 check for resource conflicts.
4427 From Jason Eckhardt <jle@redhat.com>
4428 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4430 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4431 reserved control registers is used.
4432 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4435 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4436 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4437 instruction cannot be packed.
4439 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4440 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4441 write-write conflicts.
4442 (md_assemble): Reformat introductory comment.
4443 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4446 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4448 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4449 O_logical_not>): Derive final_seg from add_symbol.
4450 <O_multiply..O_logical_or>: More final_seg twiddles.
4452 2002-04-01 Jessica Han <jessica@cup.hp.com>
4454 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4457 2002-03-27 Andreas Schwab <schwab@suse.de>
4459 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4460 field for pc-relative fixups.
4461 (output_disp): Likewise.
4462 (md_estimate_size_before_relax): Likewise.
4463 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4464 pc-relative fixups in 64bit mode.
4466 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4468 * config/te-aix5.h: Typo fix.
4470 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4472 * Makefile.am: Run "make dep-am".
4473 * Makefile.in: Regenerate.
4474 * doc/Makefile.in: Regenerate.
4476 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4478 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4479 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4481 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4483 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4484 the EXTENDED bit here; report the estimate according to the
4487 2002-03-18 Tom Rix <trix@redhat.com>
4489 * configure.in: Add AIX 5 support.
4490 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4491 * config/te-aix5.h: New file. AIX 5 support.
4492 * configure: Regenerate.
4494 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4496 * po/fr.po: Updated version.
4498 2002-03-16 Andreas Jaeger <aj@suse.de>
4500 * doc/c-mips.texi (Machine Dependencies): Add new node.
4502 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4504 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4505 (mips_opts): Initialize "ase_mips3d" member.
4506 (file_ase_mips3d): New variable.
4507 (CPU_HAS_MIPS3D): New macro.
4508 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4509 based on command line options and configuration defaults.
4510 (macro_build, mips_ip): Accept MIPS-3D instructions if
4511 mips_opts.ase_mips3d is set.
4512 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4513 Add support for "-mips3d" and "-no-mips3d" options.
4514 (OPTION_ELF_BASE): Move to accomodate new options.
4515 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4516 (mips_elf_final_processing): Add a comment indicating that a
4517 MIPS-3D ASE ELF header flag should be set, when one exists.
4518 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4519 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4520 nomips3d" directives.
4522 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4524 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4525 a weak symbol in same section to be within reach.
4527 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4529 * po/fr.po: Updated version.
4531 2002-03-12 Andreas Schwab <schwab@suse.de>
4533 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4534 body record so that an error is given for misplaced .save
4537 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4539 * config/tc-i386.h (REX_OPCODE): Define.
4540 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4541 (rex_byte): typedef to int.
4542 * config/tc-i386.c: Group prototypes and vars together.
4543 Formatting fixes. Remove occurrences of "register" keyword.
4546 (mode_from_disp_size): Add INLINE keyword to prototype.
4547 (fits_in_signed_byte): Likewise.
4548 (fits_in_unsigned_byte): Likewise.
4549 (fits_in_unsigned_word): Likewise.
4550 (fits_in_signed_word): Likewise.
4551 (fits_in_unsigned_long): Likewise.
4552 (fits_in_signed_long): Likewise.
4553 (type_names): Constify.
4554 (intel_float_operand): Constify param.
4555 (add_prefix): Use REX_OPCODE.
4556 (md_assemble): Likewise. Modify for changed rex_byte.
4557 (parse_insn): Split out of md_assemble.
4558 (parse_operands): Likewise.
4559 (swap_operands): Likewise.
4560 (optimize_imm): Likewise.
4561 (optimize_disp): Likewise.
4562 (match_template): Likewise.
4563 (check_string): Likewise.
4564 (process_suffix): Likewise.
4565 (check_byte_reg): Likewise.
4566 (check_long_reg): Likewise.
4567 (check_qword_reg): Likewise.
4568 (check_word_reg): Likewise.
4569 (finalize_imm): Likewise.
4570 (process_operands): Likewise.
4571 (build_modrm_byte): Likewise.
4572 (output_insn): Likewise.
4573 (output_branch): Likewise.
4574 (output_jump): Likewise.
4575 (output_interseg_jump): Likewise.
4576 (output_disp): Likewise.
4577 (output_imm): Likewise.
4579 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4581 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4583 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4585 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4586 relocs except when BFD64.
4588 * write.c (number_to_chars_bigendian): Don't abort when N is
4589 larger than sizeof (VAL).
4590 (number_to_chars_littleendian): Likewise.
4592 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4594 * config/tc-hppa.c (md_apply_fix3): Add cast.
4595 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4598 2002-03-05 Paul Koning <pkoning@equallogic.com>
4600 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4601 (parse_ac5): New function for parsing float regs in float operand.
4602 (parse_expression): Remove attempt to make literals be octal.
4603 (parse_op_no_deferred): Support float literals.
4604 (parse_op): Reject attempts to refer to float regs.
4605 (parse_fop): New function, like parse_op but for float operand.
4606 (md_assemble): Add cases to parse float operands. Also fix
4607 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4609 2002-03-04 H.J. Lu <hjl@gnu.org>
4611 * config/obj-elf.c (special_section): Add .init_array,
4612 .fini_array and .preinit_array.
4614 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4615 .init_array and .fini_array.
4617 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4619 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4621 (obj_frob_symbol): Copy visibility.
4623 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4625 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4627 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4629 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4631 * po/es.po: Updated.
4633 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4635 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4636 only, undo the changes made on 2001-06-08, with the
4637 effect being that common or extern symbols are
4638 adjusted for embedded-PIC, but weak symbols are not.
4639 (md_estimate_size_before_relax: Likewise, with the effect
4640 that extern symbols are treated the same as weak symbols
4641 only if not embedded-PIC.
4642 (mips_fix_adjustable) Likewise, with the effect that
4643 weak or extern symbols are not adjusted for embedded-PIC.
4644 (md_apply_fix3): Tweak so that the case where value is zero
4645 is handled more correctly for embedded-PIC code.
4647 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4649 * doc/as.texinfo (Overview): Add missing @ifset IA64
4651 * configure.in (LINGUAS): Add es.po.
4652 * configure: Regenerate.
4653 * po/es.po: New file.
4655 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4657 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4658 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4659 and NO_PIC cases. Code cleanup.
4660 (macro2): Fix handling of 64bit register loads.
4662 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4664 * doc/as.texinfo: Add entry for IA64.
4665 * doc/c-ia64.texi: New file.
4667 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4669 * config/tc-hppa.c: Update copyright date.
4671 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4672 Remove references to chip manufacturers.
4673 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4675 (md_show_usage): Remove references to chip manufacturers. Mention
4677 (md_begin): Test power4 opcode flag bits.
4679 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4681 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4682 count exceeds prologue count.
4683 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4684 (unwind.label_prologue_count): New member.
4686 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4688 (get_saved_prologue_count): New function.
4689 (save_prologue_count): New function.
4690 (free_saved_prologue_count): New function.
4691 (dot_label_state): Record state label by calling save_prologue_count().
4692 (dot_copy_state): Restore prologue count by calling
4693 get_saved_prologue_count().
4694 (generate_unwind_image): Free up list of saved prologue
4695 counts by calling free_saved_prologue_counts().
4697 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4699 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4700 function declarations.
4702 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4704 * NEWS: Note that GASP is now deprecated.
4705 * Makefile.am: Do not build gasp-new by default.
4706 * Makefile.in: Regenerate.
4707 * doc/Makefile.am: Do not install gasp.info.
4708 * doc/Makefile.in: Regenerate.
4709 * gas/gasp.texi: Note that gasp is now deprecated.
4711 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4713 * NEWS: Mark 2.12 branch.
4715 2002-02-19 Tom Tromey <tromey@redhat.com>
4717 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4719 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4721 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4724 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4726 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4727 Make bit size independent of architecture switch.
4728 (md_begin): Add warning for -m64 with -Aesa.
4729 (s390_md_end): Use renamed architecture defines.
4731 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4733 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4735 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4737 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4740 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4742 * config/tc-mips.c (md_estimate_size_before_relax): Really
4743 make sure we treat weak like extern only for ELF. (Fixes
4744 patch from 2001-07-25.)
4746 2002-02-15 Ben Elliston <bje@redhat.com>
4748 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4751 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4753 * NEWS: Mention support for MMIX.
4755 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4757 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4758 a sequence of indpendent 'if' statements for easier debugging
4759 and future modification.
4761 2002-02-13 Matt Fredette <fredette@netbsd.org>
4763 * config/tc-m68k.c (md_show_usage): No longer display a
4764 hard-coded "68020" for the default CPU, instead display the
4765 canonical name of the true, configured default CPU.
4766 (m68k_elf_final_processing): Mark objects for sub-68020
4767 CPUs with the new EF_M68000 flag.
4769 2002-02-13 Andreas Schwab <schwab@suse.de>
4771 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4772 pc-relative relocations to merge sections in 64-bit mode.
4774 2002-02-13 Ben Elliston <bje@redhat.com>
4776 * NEWS: Document floating point number handling in gasp.
4777 * gasp.c: Include <assert.h> and "xregex.h".
4778 (is_flonum): New function.
4779 (chew_flownum): Likewise.
4780 (change_base): Consume flonums from the input, where possible.
4781 * doc/gasp.texi (Constants): Document floating point numbers.
4783 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4785 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4786 that implicitly use LR and RR selectors.
4788 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4790 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4791 and `epsw' as available on AM33 and above only.
4792 (other_register_name): Add logic to handle machine type encoded in
4795 2002-02-11 Tom Rix <trix@redhat.com>
4797 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4800 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4802 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4805 2002-02-11 Jan Hubicka <jh@suse.cz>
4807 * i386.c (md_assemble): Support 32bit address prefix.
4808 (i386_displacement): Likewise.
4809 (i386_index_check): Accept 32bit addressing in 64bit mode.
4811 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4813 * config/tc-sh.c (dot): Removed unused function.
4815 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4817 * Makefile.am: "make dep-am".
4818 * Makefile.in: Regenerate.
4819 * aclocal.m4: Regenerate.
4820 * config.in: Regenerate.
4821 * configure: Regenerate.
4822 * doc/Makefile.in: Regenerate.
4824 2002-02-10 Richard Henderson <rth@redhat.com>
4826 * doc/c-alpha.texi: New file.
4827 * doc/Makefile.am (CPU_DOCS): Add it.
4828 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4830 2002-02-09 Richard Henderson <rth@redhat.com>
4832 * config/tc-alpha.c (O_samegp): New.
4833 (USER_RELOC_P): Include it.
4834 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4835 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4836 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4837 (alpha_validate_fix): New.
4838 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4840 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4842 * doc/c-cris.texi: New.
4843 * doc/all.texi: @set CRIS.
4844 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4845 Include c-cris.texi.
4846 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4847 * doc/Makefile.in: Regenerate.
4849 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4851 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4852 determine if a number is a sign-extended 32-bit number.
4853 (load_register): Use IS_SEXT_32BIT_NUM.
4854 (macro): Check if load/store macro handling is using a
4855 constant 32-bit address on 64-bit address systems, and if
4856 so optimize the generation of that address.
4858 2002-02-08 Richard Henderson <rth@redhat.com>
4860 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4861 we've eliminated all foreign relocation types yet.
4862 (alpha_fix_adjustable): Likewise.
4864 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4866 Contribute sh64-elf.
4867 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4868 Stephen Clarke <Stephen.Clarke@st.com>
4869 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4870 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4871 * config/tc-sh.c (md_relax_table): Added default sizes for
4872 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4873 MOVI_16, MOVI_32 and MOVI_48.
4874 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4875 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4877 (shmedia_md_estimate_size_before_relax): Remove redundant
4878 blocks. Set fragP->fr_var even if relaxation type unchanged.
4879 Retain UNDEF_MOVI until expression decays to number.
4880 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4881 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4882 relocation types. Take fixP->fx_addnumber into account too.
4883 (shmedia_md_apply_fix): Likewise.
4884 (shmedia_md_convert_frag): Likewise.
4885 (shmedia_build_Mytes): Likewise.
4886 (sh64_consume_datalabel): Complain about nested datalabel.
4887 Support PIC relocs. Call sh_parse_name.
4888 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4889 in tc-sh.h to SHmedia reloc types.
4890 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4891 MOVI_GOTPC): New relaxation constants.
4892 (md_relax_table): Introduce relaxation directives for PIC-related
4894 (sh_PIC_related_p): Handle datalabel.
4895 (sh_check_fixup): Choose SH5 PIC relocations.
4896 (sh_cons_fix_new): Added BDF_RELOC_64.
4897 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4898 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4899 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4900 current ISA is SHmedia, get 7 bytes.
4901 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4902 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4904 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4905 shmedia_apply_fix3 and make void.
4906 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4907 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4909 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4910 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4911 2001-03-14 DJ Delorie <dj@redhat.com>
4912 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4913 * doc/Makefile.in(CPU_DOCS): Ditto.
4914 * doc/c-sh64.texi: New file.
4915 * doc/as.texinfo: Add SH64 support.
4916 2001-03-13 DJ Delorie <dj@redhat.com>
4917 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4918 A_REUSE_PREV so that its purpose is more obvious.
4919 (shmedia_build_Mytes): Ditto.
4920 2001-03-07 DJ Delorie <dj@redhat.com>
4921 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4923 (sh64_vtable_inherit): Ditto.
4924 (strip_datalabels): New, strip "datalabel" from given line.
4925 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4927 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4928 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4930 (shmedia_build_Mytes): ... to here.
4931 2001-03-06 DJ Delorie <dj@redhat.com>
4932 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4934 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4935 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4936 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4937 address by one in call to dwarf2_emit_insn.
4938 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4939 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4940 alignment handling broken by imported changes.
4941 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4942 (sh64_handle_align): Declare.
4943 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4944 (sh64_max_mem_for_rs_align_code): Declare.
4945 (enum sh64_isa_values): Moved here from tc-sh64.c.
4946 (md_do_align): Define.
4947 (sh64_do_align): Declare.
4948 (struct sh64_tc_frag_data): New.
4949 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4951 (TC_FRAG_INIT): Change to set new datatype.
4952 (struct sh64_segment_info_type): Rename member
4953 last_flushed_location to last_contents_mark. All users changed.
4954 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4955 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4956 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4957 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4958 of unsetting seen_insn.
4959 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4960 call sh64_update_contents_mark.
4961 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4962 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4963 enum sh64_isa_values.
4964 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4965 (emitting_crange): Boolean guard moved to file scope from function
4966 scope in sh64_set_contents_type.
4968 (sh64_update_contents_mark): New; most split out from
4969 sh64_flush_pending_output.
4970 (shmedia_md_end): Call sh64_update_contents_mark. Set
4971 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4972 (sh64_do_align): New function.
4973 (sh64_max_mem_for_rs_align_code): New function.
4974 (sh64_handle_align): Rename from shmedia_do_align. Make
4975 non-static. Add head comment. Emit zero bytes for n bytes modulo
4976 four. Change return-type to void.
4977 (shmedia_elf_new_section): Remove.
4978 (shmedia_md_assemble): Call sh64_update_contents_mark.
4979 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4980 new frag. Call sh64_update_contents_mark after making the new
4982 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4983 and sh_flush_pending_output.
4984 (sh64_flag_output): Also call md_flush_pending_output, but add
4985 condition on not emitting_crange.
4986 (sh64_tc_cons_fix_new): Remove.
4987 2001-01-12 Nick Clifton <nickc@redhat.com>
4988 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4989 alignment handling scheme imported from sourceware.
4990 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4991 * config/tc-sh64.h (TARGET_FORMAT): Define.
4992 (sh64_target_format): Prototype.
4993 * config/tc-sh64.c (sh64_target_mach): New function.
4994 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4995 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4996 zero_address_frag instead of copying the frag of the symbol.
4997 (shmedia_frob_file_before_adjust): Ditto.
4998 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4999 to valueT to remove signedness.
5000 (shmedia_md_convert_frag): Add parameter final. Rename parameter
5001 headers to output_bfd. Do not evaluate symbols if final is false;
5003 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
5004 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
5005 to the current frag, call shmedia_md_convert_frag to emit fixups
5006 and make frag_wane neutralize the frag. Update comments.
5007 * config/tc-sh.c (md_convert_frag): Change caller of
5008 shmedia_md_convert_frag.
5009 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
5010 * config/tc-sh64.h: Tweak comments and correct formatting.
5011 * config/tc-sh64.c: Ditto.
5012 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
5013 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
5014 for the no-relocation case.
5015 (shmedia_check_limits): Fix range check being off-by-one for PTA.
5016 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
5018 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
5020 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
5021 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
5023 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
5025 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
5026 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
5027 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
5028 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
5029 al>: Set lowest bit of field to relocate to 1 and rest to empty,
5030 if reloc is emitted.
5031 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5032 New options plus bugfixes.
5033 * config/tc-sh.c (md_longopts): New options "-no-expand" and
5035 (md_parse_option): Handle new options.
5036 (md_show_usage): Add blurb for new options.
5037 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
5038 (sh64_expand, sh64_pt32): New variables.
5039 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
5040 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
5041 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
5042 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
5043 <resolved previously-pc-relative relocs>: Handle
5044 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
5045 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
5046 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
5047 points to SHcompact code.
5048 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
5049 SH64PCREL16)>: Check that ISA of what operand points at and
5050 PTA/PTB matches, or emit error.
5051 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
5052 SHMEDIA_BFD_RELOC_PT.
5053 (shmedia_immediate_op): If pcrel, emit fixup also for constant
5055 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
5056 condition for MOVI expansion.
5057 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
5058 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
5060 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
5062 (sh64_target_format): Error-check setting of sh64_pt32 and
5063 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
5064 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
5065 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
5066 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
5067 * config/tc-sh64.c: Improve comments.
5068 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
5069 not say the linker will check correctness of PTA/PTB expansion.
5070 (shmedia_md_end): Make non-static.
5071 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
5073 * config/tc-sh.c (sh_finalize): Remove.
5074 * config/tc-sh.h (md_end): Do not define.
5075 Remove prototype for sh_finalize.
5076 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
5077 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
5078 sh64_section_data container when storing section type in tdata
5079 field in elf_section_data.
5080 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
5082 * Makefile.am: Update dependencies.
5083 * Makefile.in: Regenerate.
5084 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
5085 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
5086 dwarf2_emit_insn call with test on debug_type.
5087 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
5088 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
5089 CRT_SH5_ISA32 sticky for 64-bit.
5090 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
5091 Generate .crange sections when switching ISA mode or emitting
5092 constants in same section as code.
5093 * config/tc-sh64.c: Reformat structure definitions.
5094 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
5096 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
5097 to emit a .cranges descriptor when contents type changes. Only
5098 emit error if changing contents type and -no-mix is in effect.
5099 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
5100 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
5101 (shmedia_md_end): Set sh64_end_of_assembly. Pass
5102 sh64_flush_last_crange over sections.
5103 When checking main symbol of datalabel symbol, check for
5104 STO_SH5_ISA32, not ISA type of section in definition.
5105 (shmedia_frob_file_before_adjust): Check main symbol for
5106 STO_SH5_ISA32; don't check ISA type of section in definition.
5107 (shmedia_frob_section_type): Adjust for .cranges; set section flag
5108 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
5109 .cranges entries have been output.
5110 (shmedia_elf_new_section): Just call md_flush_pending_output.
5111 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
5112 fix. Do not set tc_segment_info_data.in_code for section. Call
5113 sh64_set_contents_type for SHmedia code.
5114 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
5115 false. Call md_flush_pending_output.
5116 (sh64_target_format): Check that -no-mix and
5117 -shcompact-const-crange are used in sane combination with other
5119 (shmedia_md_pcrel_from_section): Check type of fix for how to
5121 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
5122 not ISA type of section in definition.
5123 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
5124 hold contents-type state.
5125 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5126 (sh64_flush_pending_output): Declare.
5127 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5128 (sh64_tc_cons_fix_new): Declare.
5129 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5130 call sh64_flag_output.
5131 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5132 call sh64_set_contents_type to mark SHcompact code and set
5134 (md_longopts): New options "-no-mix" and
5135 "-shcompact-const-crange".
5136 (md_parse_option): Handle new options.
5137 (md_show_usage): Add blurb for new options.
5138 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5139 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5140 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5141 (sh64_last_insn_frag): New.
5142 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5143 to get frag for insn opcode for generating fixups; do not assume it
5145 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5147 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5149 (TC_FRAG_TYPE): Define as fragS *.
5150 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5151 (sh64_last_insn_frag): Declare.
5152 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5153 not == NULL before dereferencing.
5154 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5155 Get rid of BFD section flag and EF_SH64_ABI64.
5156 * config/tc-sh64.c (shmedia_frob_section_type): Use
5157 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5158 communicate the section as containing SHmedia code. Describe why.
5159 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5160 EF_SH64 regardless of ABI.
5161 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5162 in error message. Handle resolved expressions for
5163 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5164 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5165 (shmedia_check_limits): Handle BFD_RELOC_64.
5166 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5167 a STO_SH5_ISA32 symbol, only the BFD value.
5168 2000-12-11 Ben Elliston <bje@redhat.com>
5169 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5170 dwarf2_generate_asm_lineno.
5171 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5172 Handle PC-relative MOVI expansions with assembler relaxation.
5173 Generate PC-relative relocs from 16-bit PC-relative expressions.
5174 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5175 (shmedia_md_pcrel_from_section): ...here.
5176 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5177 turned completely resolved. Adjust relocation type for 16-bit
5178 immediate operands that has turned PC-relative. Adjust back for
5179 MD_PCREL_FROM_SECTION being applied twice.
5180 (shmedia_md_convert_frag): Always emit reloc for expression with
5181 global or weak symbol. Handle relaxation result for PC-relative
5183 (shmedia_md_estimate_size_before_relax): An expression with a weak
5184 or global symbol can not be relaxed. Break out tests for
5185 relaxable symbol into variable sym_relaxable.
5186 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5187 UNDEF_MOVI)>: Break out any PC-relative expression and change
5189 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5191 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5192 MOVI expansion. If X_op_symbol of the immediate expression is
5193 set, make an expression symbol for the argument to frag_var.
5194 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5196 (END): Adjust for new relaxations.
5197 (md_relax_table): Add entries for new relaxations.
5198 2000-12-07 Ben Elliston <bje@redhat.com>
5199 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5200 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5201 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5202 SHORI operand offsets in PT/PTA/PTB expansions.
5203 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5204 Implement DataLabel semantics.
5205 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5206 shmedia_frob_file_before_adjust.
5207 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5208 (DATALABEL_SUFFIX): Define.
5209 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5210 symbol list to update "datalabel" symbols to their main symbol
5212 (shmedia_frob_file_before_adjust): New.
5213 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5214 undefined and set STT_DATALABEL.
5215 (sh64_frob_label): Initialize TC symbol field.
5216 (sh64_consume_datalabel): Actually implement semantics. New
5217 parameter operandf, call it instead of expression.
5218 (sh64_exclude_symbol): New.
5219 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5220 to sh64_consume_datalabel.
5221 (tc_symbol_new_hook): Define to tc_frob_symbol.
5222 (TC_SYMFIELD_TYPE): Define to symbolS *.
5223 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5224 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5225 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5227 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5228 generating dwarf2 debug information.
5229 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5230 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5231 elf64-sh64 for the 64-bit ABI.
5232 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5234 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5235 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5237 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5238 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5239 (enum sh64_abi_values): New type.
5240 (enum sh64_isa_values): New type.
5241 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5242 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5243 (sh64_abi): Replace shmedia_64.
5244 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5245 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5246 (s_sh64_mode): Check validity for this target.
5247 (sh64_target_format): Initialize defaults for ISA and ABI.
5248 Fallback to old object format if no SH64 ISA or ABI has been
5250 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5251 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5252 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5253 * config/tc-sh64.h: Fix typo in comment.
5254 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5255 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5256 <PT fixups for absolute values>: Size will be longest, not
5258 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5259 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5260 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5261 and l1 to hold lowercase of two first characters. Change all
5262 remaining TO_LOWER to tolower.
5263 * config/tc-sh64.c (TO_LOWER): Delete.
5264 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5265 (md_parse_name): Define.
5266 (sh64_consume_datalabel): Declare.
5267 (DOLLAR_DOT): Define.
5268 * config/tc-sh64.c (shmedia_parse_exp): New.
5269 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5270 (shmedia_parse_reg): Remove const from src
5272 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5273 (shmedia_md_assemble): Ditto for op_end variable.
5274 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5275 Use shmedia_parse_exp, not parse_exp.
5276 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5277 parameter. All callers changed.
5278 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5280 (shmedia_parse_reg): Put first two character in local variables.
5281 Use tolower, not TO_LOWER. If no register is found and argtype
5282 indicates a control register, scan shmedia_creg_table
5284 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5285 * Makefile.am (CPU_TYPES): Add sh64.
5286 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5287 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5288 Regenerate dependencies.
5289 * Makefile.in: Regenerate.
5290 * configure.in: Add support for sh64-*-elf*.
5291 * configure: Regenerate.
5292 * config/tc-sh64.h: New.
5293 * config/tc-sh64.c: New.
5294 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5295 .mode, .isa and .uaquad.
5296 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5297 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5298 [HAVE_SH64] (END): Define as 10.
5299 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5300 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5302 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5303 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5304 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5305 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5307 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5308 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5309 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5310 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5311 SHmedia instructions. Handle state-change after switching to
5313 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5314 (md_parse_option) [HAVE_SH64]: Parse new options.
5315 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5316 (md_convert_frag) [HAVE_SH64] <default>: Call
5317 shmedia_md_convert_frag instead of abort.
5318 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5319 BFD_RELOC_SH_SHMEDIA_CODE.
5320 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5321 SHcompact or SHmedia code.
5322 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5323 shmedia_md_apply_fix instead of abort.
5324 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5325 result from calling shmedia_md_estimate_size_before_relax instead
5327 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5329 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5330 shmedia_init_reloc and do nothing more if it returns non-zero.
5331 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5332 * po/POTFILES.in: Regenerate.
5333 * po/gas.pot: Regenerate.
5335 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5337 * config/tc-sh.c (parse_at): Install the correct version of
5340 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5341 assume fixP->fx_subsy is non-NULL.
5343 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5345 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5346 A_DISP_PC_ABS, and adjust it by -4.
5347 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5349 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5350 the operand type is not A_DISP_PC_ABS.
5352 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5354 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5355 common and weak symbols. Handle common and weak symbols as
5356 undefined symbols with regards to GREG handling and merging.
5357 (mmix_frob_file): Ditto.
5359 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5361 * configure.in (hppa-*-netbsd*): New target.
5362 * configure: Regenerate.
5363 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5365 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5367 * config/tc-v850.c: Add missing prototypes amd use old-style
5368 function definitions.
5369 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5370 (sdata_section tdata_section, zdata_section, sbss_section,
5371 tbss_section, zbss_section, rosdata_section, rozdata_section,
5372 scommon_section, tcommon_section, zcommon_section,
5373 call_table_data_section, call_table_text_section): Delete.
5374 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5375 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5376 v850_call_table_data, v850_call_table_text): Delete.
5377 (struct v850_seg_entry): New.
5378 (v850_seg_table): New.
5379 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5380 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5381 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5382 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5385 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5386 recording of alignment.
5387 (md_pseudo_table): Use v850_seg.
5388 (md_begin): Don't init .call_table_data and .call_table_text here.
5389 Set v850_seg_table bss entry.
5391 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5393 Support on-demand global register allocation by passing on
5394 base-plus-offset relocs to the linker.
5395 * config/tc-mmix.c: Tweak and fix typos in comments.
5396 (allocate_undefined_gregs_in_linker): New variable.
5397 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5398 (md_longopts): Add --linker-allocated-gregs.
5399 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5400 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5401 (md_show_usage): Update text for -x. Add text for
5402 --linker-allocated-gregs.
5403 (tc_gen_reloc): Derive default value for addend from val and
5404 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5405 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5406 GREG if allocate_undefined_gregs_in_linker.
5407 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5408 --linker-allocated-gregs.
5409 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5410 --linker-allocated-gregs. Mention that it's implied by -x.
5411 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5412 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5414 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5416 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5418 * Makefile.am: Run "make dep-am"
5419 * Makefile.in: Regenerate.
5421 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5423 * config/tc-or32.c: New file.
5424 * config/tc-or32.h: New file.
5425 * configure.in: Add support for or32 targets.
5426 * configure: Regenerate.
5427 * config/obj-coff.c: Add support for or32 targets.
5428 * config/obj-coff.h: Add support for or32 targets.
5429 * Makefile.am: Add support for or32 targets.
5430 * Makefile.in: Regenerate.
5431 * NEWS: Mention support for OpenRISC.
5432 * doc/Makefile.in: Regenerate.
5433 * po/POTFILES.in: Regenerate.
5434 * po/gas.pot: Regenerate.
5436 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5438 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5441 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5443 * config/tc-mips.c (tc_gen_reloc): Arrange for
5444 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5445 their LO16 parts, even for ELF.
5447 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5449 * config/tc-i386.c: Protect definitions of true and false
5452 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5454 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5455 made because of .weak, if they are neither defined nor used in any
5458 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5460 * configure: Regenerated.
5462 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5464 * doc/Makefile.am (install): Depend on install-info.
5465 * doc/Makefile.in: Regenerate.
5467 2002-01-26 Nick Clifton <nick@redhat.com>
5469 * po/fr.po: Updated version
5471 2002-01-24 Kazu Hirata <kazu@hxi.com>
5473 * config/tc-h8300.c (check_operand): Don't print a warning
5474 when a valid 24-bit address is given to a 16-bit address
5477 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5479 * config/tc-sh.c (sh_elf_suffix): Removed.
5480 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5481 sh_end_of_match, sh_parse_name): New functions.
5482 (sh_elf_cons): Simplify.
5483 (parse_exp): Reject misplaced PIC operands.
5484 (md_undefined_symbol): Simplify.
5485 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5486 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5487 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5488 Complain if subsy remains at the end.
5489 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5490 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5492 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5494 * config/tc-mn10300.c (xr_registers): Move `pc'...
5495 (other_registers): ... here.
5497 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5499 * Makefile.am: Run "make dep-am".
5500 * Makefile.in: Regenerate.
5501 * gas/po/POTFILES.in: Regenerate.
5503 2002-01-21 DJ Delorie <dj@redhat.com>
5505 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5506 stabstr_name allocation permanent, as it will be referenced from
5509 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5511 * configure.in (ia64-*-netbsd*): New target.
5512 * configure: Regenerate.
5514 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5516 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5518 <Detailed description, ARM options>: Ditto.
5519 * doc/c-arm.texi (ARM Options): Ditto.
5521 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5523 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5524 do_mia, do_mar and do_mra respectively.
5525 (do_mav_*): Renamed from do_c_*.
5526 (mav_reg_required_here, mav_parse_offset): Renamed from
5527 cirrus_reg_required_here and cirrus_parse_offset respectively.
5528 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5530 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5531 Keith Walker <keith.walker@arm.com>
5533 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5534 (insns): Add pattern for bxj instruction.
5535 (do_bxj): New function.
5536 (arm_cpus): Add arm926ej.
5537 (arm_archs): Add armv5tej.
5539 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5541 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5543 2002-01-19 Keith Walker <keith.walker@arm.com>
5545 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5547 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5549 * NEWS: Mention new ARM command-line options and VFP support.
5551 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5553 (ARM_CEXT_MAVERICK): Similarly.
5554 (ARM_ANY): Now means any core instruction.
5555 (CPU_DEFAULT): Default to ARM_ANY.
5556 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5557 (pic_code): Declare for all object types. Make type int.
5558 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5559 (march_fpu_opt, mfpu_opt): Declare.
5560 (md_longopts): Tidy up conditional definitions.
5561 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5562 (arm_long_opts): New tables.
5563 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5564 (arm_parse_extension): New function.
5565 (md_parse_option): Rewrite using new table-driven system.
5566 (md_show_usage): Use new table-driven system.
5567 (md_begin): Calculate cpu_variant from command line option data.
5568 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5569 command-line options.
5570 * doc/c-arm.texi: Likewise.
5572 2002-01-18 Andreas Jaeger <aj@suse.de>
5574 * as.c (parse_args): Update year.
5576 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5578 * config/tc-tic54x.c (encode_address): Add a more informative
5579 warning about incorrect syntax.
5581 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5583 * po/gas.pot: Regenerate.
5585 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5587 * macro.c (get_any_string): Add no-c-format comment to prevent
5588 confusion when translating string.
5589 * gasp.c (get_any_string): Add no-c-format comment to prevent
5590 confusion when translating string.
5592 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5593 Johannes Stezenbach <js@convergence.de>
5594 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5595 matched before the shorter ones.
5596 (my_getSmallParser): Fix handling of nested parentheses in
5597 percent_op's. Code cleanup.
5598 (my_getPercentOp): New function, code from my_getSmallParser.
5599 (my_getSmallExpression): Fix handling of closing parentheses.
5600 Code cleanup. Better comments.
5602 2002-01-16 Nick Clifton <nickc@redhat.com>
5604 po/tr.po: New file: Turkish translation.
5605 configure.in (LINGUAS): Add "tr".
5606 configure: Regenerate.
5608 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5610 Support for VFP instructions
5611 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5612 (cp_address_required_here): New argument wb_ok. When false, do not
5613 accept write-back forms of addressing. Change all callers.
5614 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5615 (FPU_VFP_EXT_V2): Define.
5616 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5617 Define in terms of above.
5618 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5619 (vfp_reg): New struct.
5620 (vfp_regs): New array of registers.
5621 (insns): Add VFP instructions.
5622 (sn_table): New array of VFP single-precision register names.
5623 (dn_table): New array of VFP double-precision register names.
5624 (all_reg_maps): Add the new register tables.
5625 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5626 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5627 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5628 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5629 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5630 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5631 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5632 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5633 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5634 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5635 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5636 (do_vfp_sp_dp_cvt): New functions.
5637 (md_begin): Set soft-float flag for appropriate VFP work.
5638 (md_atof): Handle VFP-format doubles.
5639 (md_parse_option): Handle VFP command-line options.
5640 (md_show_usage): Display VFP command-line options.
5642 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5644 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5645 various command line options.
5647 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5649 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5651 (xstormy16_md_apply_fix3): Do not return a value.
5653 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5655 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5656 the -EL/-EB option that matches the target's endianness.
5657 (md_parse_option): Likewise.
5659 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5661 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5662 is not dependent on ARM_BI_ENDIAN.
5664 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5666 * tc-arm.c (all error messages): Normalize capitalization of messages.
5668 * tc-arm.h (md_operand): Delete define.
5669 * tc-arm.c (in_my_get_expression): New static variable.
5670 (my_get_expression): Set and clear it.
5671 (md_operand): New function. If called from my_get_expression
5672 put the error in inst.error.
5673 (output_inst): Now takes argument of instruction being assembled.
5674 Print it out with any error message.
5675 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5677 (end_of_line): Don't update inst.error if it is already set.
5679 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5681 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5682 op that can be translated into a mvn instruction.
5684 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5686 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5687 setting default md.flags.
5688 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5689 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5690 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5691 for 32 bit unwind info blocks.
5692 (generate_unwind_image): Add support for different types
5693 of unwind images (32 bits and/or big-endian).
5694 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5695 (ia64_target_format): Add support for hpux target formats.
5696 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5697 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5698 SHT_FINI_ARRAY elf section types.
5700 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5702 * tc-arm.c (struct reg_entry): Move before prototypes.
5703 (int_register, cp_register, fp_register): Delete.
5704 (reg_table): Delete. Replaced with ...
5705 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5706 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5707 (mav_dspsc_table): ... one table per register set.
5708 (arm_reg_hsh): Delete.
5709 (struct reg_map): New structure.
5710 (all_reg_maps): New array.
5711 (enum arm_reg_type): New enums.
5712 (build_reg_hsh): New function.
5713 (insert_reg_alias): Use hash table passed by caller. Adjust all
5715 (create_register_alias): New function, split out from ...
5716 (md_assemble): ... here.
5717 (md_begin): Build new register hash tables.
5718 (arm_reg_parse): New argument for the hash table to search. Adjust all
5720 (arm_reg_parse_any): New function.
5721 (co_proc_number): Look up the processor number in the processor hash
5723 (cirrus_regtype): Delete.
5724 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5725 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5726 (ARM_EXT_MAVERICKsc_register): Delete.
5727 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5728 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5730 (do_c_triple_4, do_c_triple_5): Delete.
5731 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5732 (do_c_quad_6): Delete.
5733 (do_c_quad_6[ab]): New functions.
5734 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5735 arguments to use new register parsing methods.
5736 (cirrus_reg_required_here): Likewise.
5737 (insns): Reclassify cirrus maverick worker functions.
5738 (cirrus_valid_reg): Delete.
5740 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5742 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5743 (sh*-*-netbsdelf*): New target.
5744 * configure: Regenerate.
5745 * tc-sh.h: Update copyright years.
5746 (TARGET_FORMAT): Add version for TE_NetBSD.
5748 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5750 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5753 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5755 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5756 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5758 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5760 * tc-mips.c (mips_cprestore_valid): New flag.
5761 (mips_frame_reg_valid): New flag.
5762 (macro) [M_JAL_2]: Check both flags.
5763 [M_JAL_A]: Likewise.
5764 (s_cprestore): Set mips_cprestore_valid.
5765 (tc_get_register): If setting mips_frame_reg, set
5766 mips_frame_reg_valid and clear mips_cprestore_valid.
5767 (s_mips_ent): Clear both flags.
5768 (s_mips_end): Clear both flags.
5770 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5772 * write.c (write_object_file): Make use of bfd_section_list_remove.
5773 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5774 * config/tc-mmix.c (mmix_frob_file): Likewise.
5776 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5778 * configure.in (i386-*-netbsdelf*): Collapse target into...
5779 (i386-*-netbsd*): ...this. Add support for x86-64.
5780 * configure: Regenerated.
5782 2002-01-03 matthew green <mrg@redhat.com>
5784 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5786 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5788 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5791 For older changes see ChangeLog-0001
5797 version-control: never