1 2003-06-02 Alan Modra <amodra@bigpond.net.au>
3 * read.c (emit_expr): Set dot_value.
4 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
6 2003-06-02 Alan Modra <amodra@bigpond.net.au>
8 * macro.c (sub_actual): Don't lose string if it turns out that
11 2003-05-31 Richard Henderson <rth@redhat.com>
13 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
14 (cfi_finish): Set flag_traditional_format around .eh_frame data.
16 2003-05-29 Richard Henderson <rth@redhat.com>
18 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
19 (all_frame_data, plast_frame_data, cur_frame_data): New.
20 (s_alpha_ent): Record data for dwarf2 cfi.
21 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
22 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
23 * config/tc-alpha.h (md_end): New.
24 (DWARF2_DEFAULT_RETURN_COLUMN): New.
25 (DWARF2_CIE_DATA_ALIGNMENT): New.
27 2003-05-29 Nick Clifton <nickc@redhat.com>
29 * configure.in: Add i386-*-freebsd* entry.
30 * configure: Regenerate.
32 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
34 * config/tc-m32r.c: Amend comment to refer to Renesas
36 2003-05-27 Richard Henderson <rth@redhat.com>
38 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
40 (current_location): Use symbol_temp_new_now.
41 * stabs.c (s_stab_generic): Use symbol_temp_new.
42 * symbols.c (temp_label_name): Remove.
43 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
45 2003-05-27 Richard Henderson <rth@redhat.com>
47 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
48 * as.c (main): Always call cfi_finish.
49 * config/tc-i386.c (x86_dwarf2_return_column): New.
50 (x86_cie_data_alignment): New.
52 (tc_x86_cfi_init): Remove.
53 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
54 return int, not unsigned long; don't as_bad here.
55 (tc_x86_frame_initial_instructions): Streamline; use
57 * config/tc-i386.h (tc_cfi_init): Remove.
58 (DWARF2_DEFAULT_RETURN_COLUMN): New.
59 (DWARF2_CIE_DATA_ALIGNMENT): New.
61 2003-05-27 Richard Henderson <rth@redhat.com>
63 * symbols.c (temp_label_name): New.
64 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
65 (symbol_set_value_now): New.
66 * symbols.h: Prototype them.
67 * dwarf2dbg.c: Use them.
68 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
70 2003-05-23 Jason Eckhardt <jle@rice.edu>
72 * config/tc-i860.c (target_xp): Declare variable.
73 (OPTION_XP): Declare macro.
74 (md_longopts): Add option -mxp.
75 (md_parse_option): Set target_xp.
76 (md_show_usage): Add -mxp usage.
77 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
78 (md_assemble): Don't try expansions if XP_ONLY is set.
79 * doc/c-i860.texi: Document -mxp option and i860XP support.
81 2003-05-23 Eric Christopher <echristo@redhat.com>
83 * config/tc-mips.c (macro_build_jalr): Warning patrol.
85 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
87 * config/tc-mips.c (append_insn): Use actual relocation size for new
88 fixp's. Don't relax overflow checking for partial_inplace relocations.
89 Use the actual relocation type in combined relocs, not just the type
91 (macro_build_jalr): Use actual relocation size for new fix.
92 (s_cpsetup, s_gpdword): Likewise.
94 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
96 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
98 2003-05-22 Nick Clifton <nickc@redhat.com>
100 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
101 section relative offsets for relocs that will not be based on the
103 (xstormy16_md_apply_fix3): Remove previous patch to this
106 2003-05-07 Eric Christopher <echristo@redhat.com>
108 * config/tc-mips.c (mips_abicalls): New variable.
109 (md_parse_option): Use.
112 (mips_elf_final_processing): Set EF_MIPS_PIC and
113 EF_MIPS_CPIC dependent on above.
115 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
117 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
119 2003-05-21 Nick Clifton <nickc@redhat.com>
121 * config/obj-elf.c: Include dwarf2dbg.h.
122 (elf_pseudo_tab): Add .file and .loc.
123 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
124 * config/tc-arm.c: Likewise.
125 * config/tc-h8300.c: Likewise.
126 * config/tc-hppa.c: Likewise.
127 * config/tc-ia64.c: Likewise.
128 * config/tc-m68hc11.c: Likewise.
129 * config/tc-m68k.c: Likewise.
130 * config/tc-mmix.c: Likewise.
131 * config/tc-mn10300.c: Likewise.
132 * config/tc-ppc.c: Likewise.
133 * config/tc-sh.c: Likewise.
134 * config/tc-sparc.c: Likewise.
135 * config/tc-v850.c: Likewise.
136 * config/tc-frv.c: Likewise, and remove redundant inclusion of
138 * config/tc-ip2k.c: Likewise.
139 * config/tc-iq2000.c: Likewise.
140 * config/tc-xstormy16.c: Likewise.
141 * config/tc-xtensa.c: Likewise.
142 * Makefile.am: Regenerate dependencies.
143 * Makefile.in: Regenerate.
144 * aclocal.m4: Regenerate.
145 * config.in: Regenerate.
146 * configure: Regenerate.
147 * po/POTFILES.in: Regenerate.
148 * po/gas.pot: Regenerate.
150 2003-05-21 Nick Clifton <nickc@redhat.com>
152 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
153 BFD_ASSEMBLER targets.
154 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
155 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
156 defining BFD_ASSEMBLER.
158 2003-05-20 Michal Ludvig <mludvig@suse.cz>
160 * as.c (main): Remove tc_cfi_init().
161 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
163 (cfi_pseudo_table): Add "cfi_register" entry.
164 (cfi_make_insn): Handle CFA_register.
165 (cfi_output_insn): Ditto.
167 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
168 (dot_cfi_endproc): Reuse already emitted CIEs.
169 * testsuite/gas/cfi/cfi-i386.d: New pattern.
170 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
172 2003-05-20 Nick Clifton <nickc@redhat.com>
174 * config/tc-xstormy16.c: Include dwarf2dbg.h.
175 (md_pseudo_table): Add entries for .loc and .line.
177 2003-05-20 Alan Modra <amodra@bigpond.net.au>
179 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
181 (dot_cfi_endproc): Avoid C99 construct.
183 2003-05-20 Michal Ludvig <mludvig@suse.cz>
185 * dw2gencfi.c, dw2gencfi.h: New files.
186 * config/tc-i386.c (tc_x86_cfi_init): New function.
187 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
188 * as.c (parse_args): Set verbose flag on --verbose.
189 (main): Call tc_cfi_init()/cfi_finish().
190 * as.h (verbose): New external variable.
191 * read.c (pobegin): Insert CFI pops to the list.
192 * symbols.c (local_symbol_make): Make symbol external.
193 * symbols.h (local_symbol_make): New prototype.
194 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
195 * Makefile.in: Regenerate.
196 * doc/as.texinfo: Added node "CFI directives" with description of
197 all implemented .cfi_* directives.
198 * doc/Makefile.in: Regenerate.
199 * po/POTFILES.in: Regenerate.
201 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
203 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
205 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
207 2003-05-18 Jason Eckhardt <jle@rice.edu>
209 * config/tc-i860.c (i860_process_insn): Initialize fc after
210 each opcode mismatch.
212 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
214 * configure.in: Accept i[3-7]86 variants.
215 * configure: Regenerate.
217 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
219 * config/tc-mips.h: Fix comment formatting.
221 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
223 * read.c (old_buffer, old_input, old_limit): Remove variables.
224 (read_a_source_file): Delete label contin.
225 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
226 input as with macros, instead of in separate old_* variables.
227 Zero-terminate string being scrubbed.
229 2003-05-12 Nick Clifton <nickc@redhat.com>
231 * config/tc-xstormy16.c (skipping_fptr): New local variable.
232 (md_assemble): Reset skipping_fptr.
233 (md_operand): If @fptr() is followed by a minus sign, set
234 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
235 @fptr is detected, ignore it and reset skipping_fptr.
237 2003-05-11 Jason Eckhardt <jle@rice.edu>
239 * config/tc-i860.c (MAX_FIXUPS): Define.
240 (struct i860_fi fi[]): New struct.
241 (struct i860_it the_insn): Add above as member and move fields
242 exp, reloc, pcrel and fup into i860_fi.
243 (md_assemble): Replace all instances of exp, reloc, pcrel
244 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
245 Add a loop to possibly emit multiple fix-ups for each insn.
246 (i860_process_insn): Likewise.
247 (i860_get_expression): Likewise.
248 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
250 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
252 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
254 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
256 * config/tc-ia64.c (alias_hash): New.
257 (alias_name_hash): New.
258 (secalias_hash): New.
259 (secalias_name_hash): New.
260 (md_pseudo_table): Add "secalias".
261 (md_begin): Initialize alias_hash, alias_name_hash,
262 secalias_hash and secalias_name_hash.
264 (dot_alias): Implement .alias and .secalias directives.
266 (ia64_adjust_symtab): New.
268 (ia64_frob_file): New.
270 * config/tc-ia64.h (ia64_adjust_symtab): New.
271 (tc_adjust_symtab): Defined.
272 (ia64_frob_file): New.
273 (tc_frob_file): Defined.
275 2003-05-07 Dmitry Diky <diwil@mail.ru>
277 * tc-msp430.c: Add missing lines to known cpus list.
279 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
281 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
282 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
283 * config.in, configure: Rebuilt.
285 2003-05-05 H.J. Lu <hjl@gnu.org>
287 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
288 howto->partial_inplace is false.
290 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
292 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
293 symbol_used_in_reloc_p check.
294 (md_apply_fix3): Remove check for howto->pcrel_offset.
296 2003-05-03 H.J. Lu <hjl@gnu.org>
298 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
299 fatal error for unknown section attribute.
301 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
302 unknown section attribute.
303 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
304 * config/tc-ppc.c (ppc_section_letter): Likewise.
306 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
307 (ia64_elf_section_type): Accept "unwind".
309 2003-05-02 H.J. Lu <hjl@gnu.org>
311 * read.h (demand_copy_string): New.
313 * config/tc-alpha.c (demand_copy_string): Removed.
315 2003-05-02 Michael Snyder <msnyder@redhat.com>
317 * write.h (FAKE_LABEL_NAME): Allow override
318 (for targets that like eg. a leading dot in a local label).
320 2003-05-02 Nick Clifton <nickc@redhat.com>
322 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
323 addend with the symbol's value for pc-relative relocations against
324 a defined symbol - this will be done automatically.
326 2003-05-01 H.J. Lu <hjl@gnu.org>
328 * config/obj-elf.c (obj_elf_type): Accept "notype" and
331 2003-05-01 H.J. Lu <hjl@gnu.org>
333 * config/tc-ia64.h (tc_canonicalize_section_name): New.
335 * config/obj-elf.c (obj_elf_section_name): Call
336 tc_canonicalize_section_name if it is defined.
338 2003-05-01 H.J. Lu <hjl@gnu.org>
340 * config/tc-ia64.c (ia64_check_label): New.
341 * config/tc-ia64.h (tc_check_label): New.
343 * read.c (read_a_source_file): Call tc_check_label after
344 creating a user-defined label if defined.
346 2003-05-02 Alan Modra <amodra@bigpond.net.au>
348 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
349 -be and split strings to below 509 bytes in length.
351 2003-05-01 Christian Groessler <chris@groessler.org>
353 * expr.h: Fix comments in operatorT typedef.
354 * config/tc-z8k.c: Add 2003 to copyright message.
355 Fold s_segm() and s_unseg() into one function s_segm(parm) which
356 decides by the parameter.
357 (md_begin): Don't set linkrelax. Only set Z8002 default if no
358 command line argument was given to select the intended
360 (get_interrupt_operand): Warn if NOP type code is emitted.
361 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
362 (apply_fix): Call newfix with additional 'size' parameter.
363 (build_bytes): Remove unused variable 'nib'. Detect overflow in
364 4 bit immediate arguments.
365 (md_longopts): Add 'linkrelax' option.
366 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
367 variable when 'linkrelax' command line option is specified.
368 (md_show_usage): Display 'linkrelax' option.
369 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
371 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
373 2003-04-30 H.J. Lu <hjl@gnu.org>
375 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
376 (ia64_float_to_chars): Likewise.
377 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
378 and ia64_float_to_chars by tc_segment_info_data.endian from
379 the current segment if byteorder == -1.
380 (md_begin): Call dot_byteorder to set target_big_endian.
381 (md_atof): Call ia64_float_to_chars to convert floating point.
382 (ia64_float_to_chars_bigendian): New function.
383 (ia64_float_to_chars_littleendian): Likewise.
384 (ia64_elf_section_change_hook): Likewise.
386 * config/tc-ia64.h (ia64_number_to_chars): New.
387 (md_number_to_chars): Changed to (*ia64_number_to_chars)
388 (ia64_elf_section_change_hook): New.
389 (md_elf_section_change_hook): Defined.
390 (ia64_segment_info_type): New struct.
391 (TC_SEGMENT_INFO_TYPE): Defined.
393 2003-04-30 H.J. Lu <hjl@gnu.org>
395 * config/tc-ia64.c (md_section_align): Deleted.
397 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
398 (md_section_align): New.
400 2003-04-30 H.J. Lu <hjl@gnu.org>
402 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
404 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
406 (md_atof): Add 6 byte padding of zero for real16.
408 2003-04-29 Nick Clifton <nickc@redhat.com>
410 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
411 start of a version name.
413 2003-04-28 Chris Demetriou <cgd@broadcom.com>
415 * configure.in (mips-*-*n*bsd*): Replace with...
416 (mips-*-netbsd*, mips-*-openbsd*): These.
417 * configure: Regenerate.
419 2003-04-28 H.J. Lu <hjl@gnu.org>
421 * config/tc-hppa.c (hppa_symbol_chars): New.
422 * config/tc-hppa.h (tc_symbol_chars): Likewise.
424 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
426 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
428 2003-04-25 Chris Demetriou <cgd@broadcom.com>
430 * NEWS: Belatedly mention support for MIPS32 Release 2.
432 2003-04-24 Eric Christopher <echristo@redhat.com>
434 * config/tc-mips.c (nopic_need_relax): Revert previous
437 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
439 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
440 * config/tc-h8300.c (dwarf2dbg.h): Include
441 (md_pseudo_table): Handle .loc and .file
442 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
443 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
444 * Makefile.in: Regenerate.
446 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
448 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
449 (md_pseudo_table): Add h8300hn, h8300sn.
450 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
451 * doc/c-h8300.texi : Add documentation for new machine directives.
453 2003-04-24 Nick Clifton <nickc@redhat.com>
455 * config/tc-ppc.c (ppc_symbol_chars): Define.
456 * config/tc-ppc.h (tc_symbol_chars): Define.
458 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
460 * config/tc-sh.c: Amend comment to refer to SuperH.
461 * config/tc-sh.h: Likewise.
462 (LISTING_HEADER): Amend to refer to SuperH.
463 * config/tc-sh64.c: Change comment to refer to SuperH.
464 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
465 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
466 * doc/c-sh.texi: Amend to refer to SuperH.
467 Add SuperH architecture documentation references.
468 * doc/c-sh64.texi: Change to refer to SuperH.
470 2003-04-23 H.J. Lu <hjl@gnu.org>
472 * app.c (do_scrub_chars): More checks for valid labels.
474 2003-04-22 H.J. Lu <hjl@gnu.org>
476 * app.c (do_scrub_chars): Check for valid label.
478 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
480 * doc/as.texinfo: Replace references to Mitsubishi M32R with
481 references to Renesas M32R.
482 * doc/c-m32r.texi: Likewise.
484 2003-04-21 Richard Henderson <rth@redhat.com>
486 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
487 (out_file_list): Assign non-null filename after generating error.
489 2003-04-18 Jakub Jelinek <jakub@redhat.com>
491 * ehopt.c (check_eh_frame): For aug_size == 0
492 in state_seeing_aug_size state skip the state_skipping_aug
495 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
497 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
499 * doc/c-h8500.texi: Likewise.
500 * doc/c-sh.texi: Likewise.
501 * doc/c-sh64.texi: Likewise.
502 * doc/h8.texi: Likewise.
503 * config/tc-h8300.c: Likewise.
504 * config/tc-h8300.h: Likewise.
505 * config/tc-h8500.c: Likewise.
506 * config/tc-h8500.h: Likewise.
507 * config/tc-sh.c: Likewise.
508 * config/tc-sh.h: Likewise.
509 * config/tc-sh64.c: Likewise.
510 * config/tc-sh64.h: Likewise.
512 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
514 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
515 * config/tc-mips.c: Use signed add for n32 address arithmetic.
516 (append_insn): When filling delay slots with instructions
517 that have fixups that tc_gen_reloc might consider modifyable
518 in variant frags, start a new frag.
519 (load_address): Generate GOT_DISP with of without offset
520 depending on whether symbol is local. For -xgot, use
521 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
522 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
523 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
524 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
525 <ld_st>: In NewABI with small got, always use
526 GOT_PAGE/GOT_OFST, with the latter in the load/store
527 instruction. With big got, use GOT_HI16/GOT_LO16 or
529 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
530 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
531 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
532 (md_convert_frag): Use memmove for safe copying of overlapping
535 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
537 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
538 -mlong, -mshort-double and -mlong-double options; use table @code.
539 (M68HC11-Syntax): Update to document 68HC12 operands.
540 (M68HC11-Modifiers): New section for operand modifiers.
541 (M68HC11-Directives): New section for specific assembler directives.
542 (M68HC11-Branch): Fix Overfull hbox error.
544 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
546 * config/tc-mips.c (macro): Add comments explaining the rationale
549 2003-04-09 Chris Demetriou <cgd@broadcom.com>
551 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
552 constant address that Alexandre took out by accident. Reject
553 64-bit addresses that are not sign extensions of 32 bits only if
554 we don't support 64-bit address constants.
556 2003-04-09 Alan Modra <amodra@bigpond.net.au>
558 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
560 2003-04-08 Nick Clifton <nickc@redhat.com>
562 * as.c (perform_an_assembly_pass): If using cgen, call
564 * cgen.c (gas_cgen_begin): New function. If
565 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
566 otherwise call cgen_clear_signed_overflow_ok.
567 * cgen.h: Prototype gas_cgen_begin.
569 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
571 * write.c (write_relocs): Remove unused variable.
573 2003-04-06 Chris Demetriou <cgd@broadcom.com>
575 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
576 (macro): Use new macro to decide whether to emit constant address
577 as 32 or 64 bits if addresses are 32-bit wide but registers are
580 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
582 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
583 (M6811_OP_PAGE_ADDR): New internal define.
584 (get_operand): New modifier %page and %addr to obtain page and
585 address part of a far-function.
586 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
587 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
589 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
590 (find_opcode): Add comment.
591 (md_estimate_size_before_relax): Force relocation of
592 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
593 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
594 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
595 on the symbol itself so that DWARF2 strings are merged correctly.
597 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
599 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
600 default tic4x target format to 'coff2-tic4x'.
601 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
603 * config/tc-tic4x.h: Ditto
605 2003-04-03 Nick Clifton <nickc@redhat.com>
607 * NEWS: Mention support for Xtensa architecture.
609 2003-04-02 Philip Blundell <philb@gnu.org>
611 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
613 2003-04-02 Chris Demetriou <cgd@broadcom.com>
615 * config/tc-mips.c (macro2): Adjust implementation of
616 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
617 in the case where the source and destination registers
620 2003-04-01 Bob Wilson <bob.wilson@acm.org>
622 * Makefile.am (CPU_TYPES): Add xtensa.
623 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
624 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
625 (xtensa-relax.o): New target.
627 * Makefile.in: Regenerate.
628 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
629 extra_objects for xtensa targets.
630 * configure: Regenerate.
631 * write.c (write_object_file): Add new md_post_relax_hook.
632 * config/tc-xtensa.c: New file.
633 * config/tc-xtensa.h: Likewise.
634 * config/xtensa-istack.h: Likewise.
635 * config/xtensa-relax.c: Likewise.
636 * config/xtensa-relax.h: Likewise.
637 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
638 * doc/Makefile.in: Regenerate.
639 * doc/all.texi: Set new XTENSA variable.
640 * doc/as.texinfo: Set new Xtensa variable. Describe
641 Xtensa-specific options. Define line comment character for
642 Xtensa. Add Xtensa processors to list of ELF targets where
643 alignment is specified in bytes. Add new Xtensa-Dependent node.
644 Add acknowledgements for those contributing to the Xtensa port.
645 * doc/internals.texi: Describe new md_post_relax_hook.
646 * doc/c-xtensa.texi: New file.
648 2003-04-01 Nick Clifton <nickc@redhat.com>
649 Richard Earnshaw <rearnsha@arm.com>
651 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
652 (ARM_ARCH_IWMMXT): Simplify.
653 (insns): Place iwmmx instructions in correct place in table.
654 (arm_add_note): New function: Add a note entry to a .note section.
655 (md_begin): Make the default architecture be unknown.
656 Suppress the creation of an arm note section.
658 2003-03-26 Eric Christopher <echristo@redhat.com>
660 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
662 2003-03-25 Stan Cox <scox@redhat.com>
663 Nick Clifton <nickc@redhat.com>
665 Contribute support for Intel's iWMMXt chip - an ARM variant:
667 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
668 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
669 (enum wreg_type, enum iwmmxt_insn_type): New types.
670 (wr_register, wc_register, wcg_register): New macros.
671 (iwmmxt_table): New variable.
672 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
673 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
674 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
675 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
676 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
677 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
678 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
679 cp_byte_address_offset, cp_byte_address_required_here,
680 check_iwmmxt_insn): New functions.
681 (asm_opcode_insns): Add iWMMXt instructions.
682 (md_begin): Set the mach value for iWMMXt targets. Create a note
683 section to identify iwmmxt binaries.
684 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
685 * doc/c-arm.texi: Document the support for the iWMMXt.
686 * NEWS: Mention new support.
688 2003-03-24 Daniel Néri <dne@mayonnaise.net>
690 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
691 * doc/all.texi: Likewise.
692 * doc/c-tic54x.texi: Likewise.
694 2003-03-21 Andreas Schwab <schwab@suse.de>
696 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
697 avoid aliasing issue.
699 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
701 * config/tc-s390.c (s390_arch_size): Initialize to zero.
702 (current_arch_mask): Rename to current_mode_mask.
703 (current_arch_requested): Remove variable.
704 (current_cpu): New variable.
705 (init_default_arch): Set defaults values for s390_arch_size,
706 current_mode_mask and current_cpu.
707 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
708 (md_begin): Replace current_arch_mask by current_cpu.
709 (md_assemble): Adapt check and error message to current_mode_mask and
712 2003-03-09 James E Wilson <wilson@tuliptree.org>
714 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
715 * read.c (get_line_sb): Return end of line character or '\n' if
716 it is zero or non-existent.
718 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
720 * config/tc-mips.c (mips_validate_fix): New function.
721 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
722 (mips_validate_fix): Declare.
724 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
726 * Reverted 2003-03-02's patch.
728 2003-03-11 Steve Ellcey <sje@cup.hp.com>
730 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
731 (TC_DWARF2_EMIT_OFFSET): Provide default.
732 (out_debug_aranges, out_debug_info): Use it.
733 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
734 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
735 (ia64_gen_real_reloc_type): ... here.
736 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
738 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
740 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
741 (s_mips_ent): Likewise.
743 2003-03-04 Dmitry Diky <diwil@mail.ru>
745 * config/tc-msp430.c (mcu_types): Add recently announced x1122
746 and x1123 devices, add missed x437.
747 (md_show_usage): Sort device list.
749 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
751 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
752 (md_begin): Use preset_target_arch.
753 (md_longopts): Make isa option unconditional.
754 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
755 set preset_target_arch.
756 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
757 by -S_GET_VALUE (fixP->fx_subsy).
758 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
760 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
761 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
763 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
765 * config/tc-mips.c (append_insn): Add handling of
766 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
767 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
768 misaligned address and reange overflow.
769 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
770 earlier warnings about misaligned address and reange overflow.
771 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
772 (md_apply_fix): Likewise. Fix warning output.
773 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
774 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
775 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
777 2003-02-21 Nick Clifton <nickc@redhat.com>
779 * NEWS: Mention availability of test generator program.
781 2003-02-21 Miles Bader <miles@gnu.org>
783 * config/tc-v850.c (system_registers): Add v850e debug registers.
784 (system_register_name): Accept up to 27 (the last v850e sys register).
786 2003-02-21 Bob Wilson <bob.wilson@acm.org>
788 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
789 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
790 Capitalize section headings consistently. Format index entries more
791 consistently. Unconditionalize text about whether text and data
792 sections are alterable. Use @ifnottex for alternatives to @tex output
793 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
794 .size and .type directives. Be more polite about bad bug reports.
795 Move FDL into a separate file.
796 * doc/fdl.texi: New file.
798 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
800 * config/tc-mips.c (prev_reloc_op_frag): New variable.
801 (macro): Check it to decide whether a new frag is needed.
802 (my_getSmallExpression): Set it.
804 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
806 * cgen.c: Fix typo: intial -> initial.
808 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
810 * app.c (do_scrub_chars): Handle '||' in two states.
812 2003-02-13 Alan Modra <amodra@bigpond.net.au>
814 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
815 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
817 2003-02-11 Uwe Stieber <uwe@wwws.de>
819 * configure.in: Add support for kaOS as cross build target system.
820 * configure: Regenerated.
822 2003-02-10 Nick Clifton <nickc@redhat.com>
824 * config/tc-arm.c (md_begin): If the Maverick co-processor is
825 selected, set the EF_ARM_MAVERICK_FLOAT flag and
826 bfd_mach_arm_ep9312 machine number.
828 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
830 * config/tc-mips.c (reloc_needs_lo_p): New function.
831 (fixup_has_matching_lo_p): New function.
832 (append_insn): Use reloc_needs_lo_p to check whether a relocation
833 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
834 if that fixup already has a matching %lo(). Don't call frag_wane here.
835 (macro): Call frag_wane here if the last unmatched hi was in the
837 (pic_need_relax): New function, split out from...
838 (md_estimate_size_before_relax): ...here.
839 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
840 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
842 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
844 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
846 2003-02-06 Alan Modra <amodra@bigpond.net.au>
848 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
851 2003-02-05 Alan Modra <amodra@bigpond.net.au>
853 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
854 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
855 accept x@got+off etc.
856 (md_assemble): Handle TLS relocs.
857 (ppc_force_relocation): Force for all TLS relocs.
858 (ppc_fix_adjustable): Likewise.
859 (md_apply_fix3): Handle TLS relocs.
861 2003-02-04 Alan Modra <amodra@bigpond.net.au>
863 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
864 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
866 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
868 * config/tc-mips.c (enum small_ex_type): Remove.
869 (imm_unmatched_hi): Remove.
870 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
871 argument from calls to append_insn.
872 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
874 (macro_build): Update append_insn calls.
875 (mips16_macro_build, macro_build_lui): Likewise.
876 (mips_ip): Rework handling of small expressions. Move explicit
877 relocation handling into my_getSmallExpression. Assume that the
878 value of 'o' operands is zero if there is only one bracketed
880 (percent_op): Make constant. Record the BFD relocation code
881 associated with each operator.
882 (my_getSmallParser, my_getPercentOp): Remove.
883 (parse_relocation): New function.
884 (my_getSamllExpression): Rework. Fill in relocations here
885 rather than in mips_ip.
887 2003-01-29 Nick Clifton <nickc@redhat.com>
889 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
890 assembler's handling of # <linenum> "<filename>" directives work.
892 2003-01-28 Jakub Jelinek <jakub@redhat.com>
894 * dwarf2dbg.c: Include filenames.h.
895 (struct file_entry): Make filename const char *.
896 (dirs, dirs_in_use, dirs_allocated): New variables.
897 (get_filenum): Add NUM argument. Build directory table.
898 (dwarf2_where): Adjust caller.
899 (dwarf2_directive_file): Use get_filenum to allocate
900 slot in file and directory tables.
901 (dwarf2_directive_loc): Recreate full filename from
902 directory and filename part if needed for listing.
903 (out_file_list): Output directory table.
904 Output main source file dirname before its filename.
906 2003-01-28 Dmitry Diky <diwil@mail.ru>
908 * config/tc-msp430.c: Replace occurences of 'tolower' with
911 2003-01-27 David Mosberger <davidm@hpl.hp.com>
913 * config/tc-ia64.c (dot_vframesp): Correct error message.
914 (dot_vframepsp): Ditto.
916 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
918 * configure.in (em): Set to irix on all Irix systems.
919 * configure: Rebuilt.
920 * config/te-irix.h: New file.
921 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
922 whether to use Irix-specific 64-bit format.
924 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
926 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
928 2003-01-25 Jakub Jelinek <jakub@redhat.com>
930 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
931 (tc_gen_reloc): Handle TLS relocs.
932 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
933 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
935 * config/obj-elf.c (obj_elf_section_word): Handle tls.
936 (obj_elf_type): Handle tls_object.
938 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
940 * config/tc-s390.c (s390_tls_suffix): New function.
941 (elf_suffix_type): Add suffix enums for TLS relocations.
942 (s390_elf_suffix): Add suffix strings for TLS relocations.
943 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
945 (md_gather_operands): Map new instruction operand/elf suffix
946 combinations for TLS to bfd relocations.
947 (tc_s390_fix_adjustable): Add new TLS relocations.
948 (tc_s390_force_relocation): Likewise.
949 (md_apply_fix3): Likewise.
951 2003-01-24 Alan Modra <amodra@bigpond.net.au>
953 * as.h: Update copyright date.
954 * symbols.c: Likewise.
955 * config/tc-d10v.h: Likewise.
956 * config/tc-fr30.h: Likewise.
957 * config/tc-i960.h: Likewise.
958 * config/tc-mips.h: Likewise.
960 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
961 (MD_APPLY_SYM_VALUE): Move.
963 2003-01-23 Nick Clifton <nickc@redhat.com>
965 * NEWS: Announce sh2e support.
968 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
969 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
970 (sh_elf_final_processing): Handle arch_sh2e.
972 2003-01-23 Alan Modra <amodra@bigpond.net.au>
974 * symbols.c (S_FORCE_RELOC): Add "strict" param.
975 * symbols.h (S_FORCE_RELOC): Likewise.
976 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
977 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
978 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
979 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
980 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
981 * write.c (generic_force_reloc): New function.
982 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
983 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
984 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
985 * as.h (generic_force_reloc): Declare.
986 * doc/internals.texi (S_FORCE_RELOC): Update.
987 (TC_FORCE_RELOCATION_SUB_SAME): Update.
989 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
991 (alpha_fix_adjustable): Likewise.
992 * config/tc-arm.c (arm_force_relocation): Likewise.
993 * config/tc-cris.c (md_cris_force_relocation): Likewise.
994 * config/tc-frv.c (frv_force_relocation): Likewise.
995 * config/tc-i386.c (md_apply_fix3): Likewise.
996 * config/tc-ia64.c (ia64_force_relocation): Likewise.
997 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
998 * config/tc-m32r.c (m32r_force_relocation): Likewise.
999 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
1000 * config/tc-mcore.c (mcore_force_relocation): Likewise.
1001 * config/tc-mips.c (mips_force_relocation): Likewise.
1002 * config/tc-mmix.c (mmix_force_relocation): Likewise.
1003 * config/tc-ppc.c (ppc_force_relocation): Likewise.
1004 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
1005 * config/tc-sh.c (sh_force_relocation): Likewise.
1006 (md_pcrel_from_section): Likewise.
1007 * config/tc-sparc.c (tc_gen_reloc): Likewise.
1008 * config/tc-v850.c (v850_force_relocation): Likewise.
1009 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
1010 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
1011 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
1012 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
1014 * config/tc-d10v.c (d10v_force_relocation): Delete.
1015 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
1016 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
1017 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
1018 * config/tc-fr30.c (fr30_force_relocation): Delete.
1019 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
1020 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
1021 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
1022 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1023 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1024 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
1025 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
1026 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
1027 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
1028 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
1029 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
1030 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
1031 * config/tc-i386.c (i386_force_relocation): Delete.
1032 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
1034 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
1035 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
1036 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
1037 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
1039 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
1040 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
1042 2003-01-23 Alan Modra <amodra@bigpond.net.au>
1044 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
1045 sh64_elf_section_data.
1046 * config/tc-sh64.h: Include elf32-sh64.h.
1047 * config/tc-m68hc11.c: Don't include stdio.h.
1048 (md_show_usage): Fix missing continuation.
1049 * Makefile.am: Run "make dep-am".
1050 * Makefile.in: Regenerate.
1052 2003-01-22 Nick Clifton <nickc@redhat.com>
1054 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
1056 2003-01-21 Fabio Alemagna <falemagn@aros.org>
1058 * configure.in: Handle *-*-aros*.
1059 * configure: Regenerated from configure.in.
1061 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1063 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
1064 gotplt and pltoff relocations.
1065 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
1066 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
1067 gotplt and pltoff to bfd relocations.
1068 (md_gather_operands): Map new instruction operand/elf suffix
1069 combinations to bfd relocations.
1070 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
1071 to the list of unadjustable relocations.
1072 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
1073 and pltoff relocations.
1074 (md_apply_fix3): Add the new relocations.
1076 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
1078 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
1079 with a subsy symbol.
1081 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1083 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
1084 of relocs for memory bank addressing.
1086 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
1088 * config/tc-m68hc11.c (md_show_usage): Update usage.
1089 (md_parse_option): Recognize -m68hcs12.
1090 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
1092 * doc/as.texinfo (Overview): Document new option -m68hcs12.
1094 2003-01-16 Jakub Jelinek <jakub@redhat.com>
1096 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
1098 2003-01-16 Alan Modra <amodra@bigpond.net.au>
1100 * Makefile.am: Run "make dep-am".
1101 * Makefile.in: Regenerate.
1102 * po/POTFILES.in: Regenerate.
1104 2003-01-11 Alan Modra <amodra@bigpond.net.au>
1106 * read.c (get_absolute_expr): New, split out from..
1107 (get_absolute_expression): ..here.
1108 * read.h (get_absolute_expr): Declare.
1109 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
1110 Trim size to arch bits_per_address, and test for negative input
1111 via get_absolute_expr.
1113 2003-01-07 DJ Delorie <dj@redhat.com>
1115 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
1117 (xstormy16_md_apply_fix3): Use adjustment.
1119 2003-01-02 Ben Elliston <bje@redhat.com>
1121 * configure.in: Add iq2000-elf target.
1122 * configure: Regenerate.
1123 * config/tc-iq2000.c: New file.
1124 * config/tc-iq2000.h: Likewise.
1125 * po/gas.pot: Regenerate.
1127 2003-01-02 Chris Demetriou <cgd@broadcom.com>
1129 * config/tc-mips.c: Update copyright years to include 2003.
1130 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
1131 Additionally, clean up their code slightly and clean up their
1134 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
1136 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
1138 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
1140 * doc/Makefile.in: Regenerate.
1142 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
1144 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
1145 of .init and .fini sections for array initializers and finalizers.
1147 2002-12-31 Chris Demetriou <cgd@broadcom.com>
1149 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
1150 the "+D" operand, which will be used only by the disassembler.
1152 2002-12-30 Chris Demetriou <cgd@broadcom.com>
1154 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
1156 * configure: Regenerate.
1157 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
1158 (macro_build): Handle "K" operand.
1159 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
1160 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
1161 (mips_ip): New variable "lastpos", and implement "+A", "+B",
1162 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
1163 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
1164 (validate_mips_insn): Implement "+" as a way to extend the
1165 allowed operands, and implement "K", "+A", "+B", and "+C"
1167 (OPTION_MIPS32R2): New define.
1168 (md_longopts): Add entry for OPTION_MIPS32R2.
1169 (OPTION_ELF_BASE): Adjust to accomodate OPTIONS_MIPS32R2.
1170 (md_parse_option): Handle OPTION_MIPS32R2.
1171 (s_mipsset): Reimplement handling of ".set mipsN" options
1172 and add support for ".set mips32r2".
1173 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
1174 (md_show_usage): Document "-mips32r2" option.
1175 * doc/as.texinfo: Document "-mips32r2" option.
1176 * doc/c-mips.texi: Likewise.
1178 2002-12-30 Dmitry Diky <diwil@mail.ru>
1180 * configure.in: Add msp430 target.
1181 * configure: Regenerate.
1182 * Makefile.am: Add msp430 target.
1183 * Makefile.in: Regenerate.
1184 * config/tc-msp430.c: New file: msp430 assembler.
1185 * config/tc-msp430.h: New file: target macros for msp430.
1186 * doc/Makefile.am: Add msp430 target.
1187 * doc/Makefile.in: Regenerate.
1188 * doc/as.texinfo: Include msp430 documenation.
1189 * doc/all.texi: Enable msp430 documentation.
1190 * doc/c-msp430.texi: New file: document msp430 specific features
1193 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
1195 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
1196 (dwarf2_finish): Use it.
1197 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
1198 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
1200 2002-12-20 DJ Delorie <dj@redhat.com>
1202 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
1203 BFD_RELOC_XSTORMY16_12.
1205 2002-12-19 Alan Modra <amodra@bigpond.net.au>
1207 * doc/as.texinfo (Invoking): Typo fix.
1208 * config/tc-tic54x.c (encode_operand): Comment typo fix.
1210 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
1212 * doc/c-alpha.texi: Fix typos.
1213 * doc/c-arm.texi: Likewise.
1214 * doc/c-d10v.texi: Likewise.
1215 * doc/c-i370.texi: Likewise.
1216 * doc/c-i960.texi: Likewise.
1217 * doc/c-ia64.texi: Likewise.
1218 * doc/c-mmix.texi: Likewise.
1219 * doc/c-ns32k.texi: Likewise.
1220 * doc/c-pdp11.texi: Likewise.
1221 * doc/c-pj.texi: Likewise.
1222 * doc/c-sh64.texi: Likewise.
1223 * doc/c-sparc.texi: Likewise.
1224 * doc/c-tic54x.texi: Likewise.
1225 * doc/c-v850.texi: Likewise.
1226 * doc/c-vax.texi: Likewise.
1227 * doc/internals.texi: Likewise.
1229 2002-12-18 Chris Demetriou <cgd@broadcom.com>
1231 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
1232 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
1233 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
1234 arrange not to issue warnings about use of AT when AT is not
1237 2002-12-17 Nick Clifton <nickc@redhat.com>
1239 * as.c (std_longopts): Duplicate --keep-locals entry in order to
1240 prevent it being confused with -k.
1242 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
1244 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
1245 has already been set up, use it.
1247 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
1249 * ChangeLog-9295: Fix a typo.
1251 * config/tc-d10v.c: Fix a comment typo.
1252 * config/tc-dlx.c: Likewise.
1253 * config/tc-h8300.h: Likewise.
1254 * config/tc-h8500.h: Likewise.
1255 * config/tc-mips.c: Likewise.
1256 * config/tc-s390.c: Likewise.
1257 * config/tc-sh.h: Likewise.
1258 * config/tc-tic80.h: Likewise.
1259 * config/tc-w65.h: Likewise.
1260 * config/tc-z8k.c: Likewise.
1261 * config/tc-z8k.h: Likewise.
1262 * testsuite/gas/h8300/cmpsi2.s: Likewise.
1264 2002-12-16 Alan Modra <amodra@bigpond.net.au>
1266 * config/tc-d30v.c (check_range): Warning fixes, formatting.
1267 Simplify sign extension. Remove redundant unsigned < 0 test.
1268 * config/tc-i960.c (md_ri_to_chars): Prototype.
1269 * config/tc-mcore.c (md_pseudo_table): Fix typo.
1270 (dump_literals): Init brarsym, and test later instead of isforce.
1272 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
1273 (parse): Constify line and lineptr.
1274 (md_begin): Calculate endop here.
1276 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1278 * config/obj-vms.c: Formatting. Include fnctl.h.
1279 (Create_VMS_Object_File): Fix creat call for sane unix systems.
1280 (Object_Record_Offset): Make it a size_t.
1281 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
1282 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
1283 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
1284 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
1285 (vms_fixup_data_section <data_size>): Add here instead.
1286 * config/e-criself.c: Fix typo in last change.
1288 2002-12-13 Alan Modra <amodra@bigpond.net.au>
1290 * write.c (write_object_file): Fix signed/unsigned warning.
1291 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
1292 * config/e-criself.c (criself_bfd_name): Prototype.
1293 * config/obj-aout.c (s_sect): Remove unused function.
1294 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
1295 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
1296 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
1297 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
1298 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
1299 (VMS_RSYM_Parse <Current_Routine>): Likewise.
1300 (vms_fixup_text_section <text_siz>): Likewise.
1301 (synthesize_data_segment <data_size>): Likewise.
1302 (vms_fixup_xtors_section <sect_no>): Likewise.
1303 (structure_count): Don't use implicit int type.
1304 * config/tc-a29k.c (insert_sreg): Prototype.
1305 (define_some_regs): Prototype, make static.
1306 (parse_operand): Likewise.
1307 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1308 (md_show_usage <stream>): Likewise.
1309 (md_section_align <segment>): Likewise.
1310 (md_convert_frag <all args>): Likewise.
1311 (md_estimate_size_before_relax <all args>): Likewise.
1312 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
1313 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
1314 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1315 (md_undefined_symbol <name>): Likewise.
1316 (md_convert_frag <all args>): Likewise.
1317 (write_long <opcode>): Likewise.
1318 (tc_gen_reloc <seg>): Likewise.
1319 (md_estimate_size_before_relax <all args>): Likewise.
1320 (md_apply_fix3 <seg>): Likewise.
1321 (s_d30v_align <ignore>): Likewise.
1322 (build_insn): Correct format string.
1323 (md_apply_fix3): Likewise.
1324 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
1325 (md_undefined_symbol <name>): Likewise.
1326 (md_convert_frag <all args>): Likewise.
1327 (md_cgen_lookup_reloc <insn>): Likewise.
1328 (md_begin): Delete unused vars.
1329 (md_assemble): Likewise.
1330 (md_estimate_size_before_relax): Likewise.
1331 (fr30_relax_frag): #if 0 out, seems unused.
1332 (md_atof): Remove declaration of atof_ieee.
1333 (restore_colon): Prototype.
1334 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
1335 (frv_find_in_vliw): Likewise.
1336 (frv_debug_tomcat): Likewise.
1337 (frv_adjust_vliw_count): Likewise.
1338 (frv_tomcat_shuffle): Likewise.
1339 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
1340 frv_find_in_vliw call.
1341 (md_atof): Remove declaration of atof_ieee.
1342 * config/tc-h8500.c (cons): Delete declaration.
1343 (md_begin <opcode>): Constify.
1344 (displacement_size, immediate_size, absolute_size): Remove.
1345 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
1346 (tc_crawl_symbol_chain <headers>): Likewise.
1347 (md_undefined_symbol <name>): Likewise.
1348 (tc_headers_hook <headers>): Likewise.
1349 (md_parse_option <c,arg>): Likewise.
1350 (md_show_usage <stream>): Likewise.
1351 (md_convert_frag <headers, seg>): Likewise.
1352 (tc_coff_symbol_emit_hook <ignore>): Likewise.
1353 (md_atof): Remove declaration of atof_ieee.
1354 (tc_aout_fix_to_chars): Remove unused function.
1355 (parse_reg): Prototype.
1356 (parse_exp): Prototype.
1357 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
1358 (parse_reglist): Prototype.
1359 (get_operand): Prototype.
1360 (get_operands): Prototype.
1361 (get_specific): Prototype. Make "this_index" signed.
1362 (check): Prototype, make static.
1364 (build_relaxable_instruction): Prototype, make static.
1365 (build_bytes): Prototype.
1366 (wordify_scb): Prototype.
1367 * config/tc-h8500.h (start_label): Declare.
1368 (tc_coff_sizemachdep): Declare.
1369 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
1370 (i370_rmode <unused>): Likewise.
1371 (i370_csect <unused>): Likewise.
1372 (i370_dc <unused>): Likewise.
1373 (i370_ds <unused>): Likewise.
1374 (i370_elf_lcomm <unused>): Likewise.
1375 (i370_ltorg <ignore>): Likewise.
1376 (i370_using <ignore>): Likewise.
1377 (i370_drop <ignore>): Likewise.
1378 (i370_byte <ignore>): Likewise.
1379 (i370_tc <ignore>): Likewise.
1380 (md_estimate_size_before_relax <fragp, seg>): Likewise.
1381 (md_convert_frag <all args>): Likewise.
1382 (md_undefined_symbol <name>): Likewise.
1383 (md_pcrel_from_section <sec>): Likewise.
1384 (tc_gen_reloc <seg>): Likewise.
1385 (i370_section_letter): #if 0 unused functions.
1386 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
1387 (symbol_locate): Prototype.
1388 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
1389 (md_number_to_disp, md_number_to_field): Remove.
1390 (md_apply_fix3): Correct format string and cast "fup".
1391 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
1392 (s_endian <ignore>): Likewise.
1393 (md_undefined_symbol <name>): Likewise.
1394 (tc_crawl_symbol_chain <headers>): Likewise.
1395 (tc_set_bal_of_call): Likewise.
1396 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
1397 (i960_handle_align <fragp>): Likewise.
1398 (i960_validate_fix <this_segment_type>): Likewise
1399 (tc_gen_reloc <section>): Likewise.
1400 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
1401 (struct memS, struct regop): Forward declare.
1402 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
1403 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
1404 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
1405 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
1406 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
1407 (md_chars_to_number, md_number_to_imm): Make static, prototype.
1408 (md_number_to_field): Likewise.
1409 (md_number_to_disp): Remove unused function.
1410 (md_atof): Remove declaration of atof_ieee.
1411 (md_apply_fix3): Correct md_number_to_imm call.
1412 * config/tc-ip2k.c (md_assemble): Warning fix.
1413 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
1414 (fill_insn <ignore>): Likewise.
1415 (debug_sym <ignore>): Likewise.
1416 (md_undefined_symbol <name>): Likewise.
1417 (m32r_scomm <ignore>): Likewise.
1418 (md_convert_frag <abfd>): Likewise.
1419 (md_cgen_lookup_reloc <insn>): Likewise.
1420 (m32r_record_hi16 <seg>): Likewise.
1421 (md_estimate_size_before_relax): #if 0 old_fr_fix.
1422 (allow_m32rx): Prototype.
1423 (first_writes_to_seconds_operands): Prototype.
1424 (writes_to_pc): Prototype.
1425 (can_make_parallel): Prototype.
1426 (make_parallel): Prototype.
1427 (target_make_parallel): Prototype.
1428 (assemble_two_insns): Prototype.
1429 (m32r_record_hi16): Prototype.
1430 (md_atof): Remove declaration of atof_ieee.
1431 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
1432 (m32r_force_relocation): Prototype.
1433 (m32r_elf_section_change_hook): Prototype.
1434 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
1435 (md_show_usage): Fix signed/unsigned warning.
1436 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
1437 (calcop): Ditto for reg_prefix var.
1438 (hexval): Add cast to fix signed/unsigned warning.
1439 (md_number_to_disp): Delete unused function.
1440 (md_number_to_field): Likewise.
1441 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
1442 (match_name): Prototype.
1443 (get_bf2): Prototype.
1444 (get_bf_offset_expression): Prototype.
1445 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
1446 (md_undefined_symbol <ignore>): Likewise.
1447 (md_create_short_jump <all args>): Likewise.
1448 (md_create_long_jump <all args>): Likewise.
1449 (md_convert_frag <abfd, sec>): Likewise.
1450 (md_apply_fix3 <segment>): Likewise.
1451 (md_section_align <segment>): Likewise.
1452 (md_pcrel_from_section <sec>): Likewise.
1453 (tc_gen_reloc <section>): Likewise.
1454 (reg_m, reg_n, immediate): Delete unused vars.
1455 (dump_literals): Fix signed/unsigned warning.
1456 (enter_literal): Likewise.
1457 (parse_imm): Likewise. Also fix format string.
1458 (parse_mem): Remove unused var.
1459 (md_assemble <LS>): Abort on unexpected inst.
1460 (md_atof): Remove declaration of atof_ieee.
1461 (md_parse_option): Remove unused vars.
1462 (md_apply_fix3): Fix format strings, cast args.
1463 (tc_gen_reloc): Delete unused var.
1464 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
1465 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
1466 (md_undefined_symbol <name>): Likewise.
1467 (md_convert_frag <abfd>): Likewise.
1468 (tc_gen_reloc <seg>): Likewise.
1469 (check_operand <insn>): Likewise.
1470 (md_convert_frag): Fix format strings.
1471 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
1472 * config/tc-openrisc.c (ignore_pseudo): Prototype.
1473 (md_atof): Remove declaration of atof_ieee.
1474 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
1475 (md_apply_fix3): Fix bogus >>='s.
1476 (md_undefined_symbol): Delete unused var.
1477 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
1478 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
1479 (fake_opcode): Adjust for pj_opc_int_t change.
1480 (md_begin): Likewise.
1481 (md_assemble): Likewise.
1482 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
1483 instead of non-existent third arg of parse_exp_save_ilp.
1484 (md_parse_option): Correct "little" and "big" calls.
1485 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
1486 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
1487 (tc_gen_reloc <section>): Likewise.
1488 * config/tc-tic30.c: #include stdarg.h or varargs.h.
1489 (debug): Rewrite using VA_* macros.
1490 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
1491 (md_convert_frag): Likewise.
1492 (md_parse_option): Likewise.
1493 (md_show_usage): Likewise.
1494 (md_undefined_symbol): Likewise.
1495 (tc_gen_reloc): Likewise.
1496 (md_operand): Likewise.
1497 (tc_aout_pre_write_hook): Delete.
1498 (struct tic30_insn): Make "operands" unsigned.
1499 (struct tic30_par_insn): Likewise.
1500 (md_assemble): Likewise for "count", "i" and "numops".
1501 (tic30_parallel_insn): Likewise for vars here.
1502 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
1503 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
1504 * config/tc-tic80.c (obj_coff_section): Delete declaration.
1505 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
1506 (md_undefined_symbol): Likewise.
1507 (md_parse_option): Likewise.
1508 (md_convert_frag): Likewise.
1509 (tc_coff_symbol_emit_hook): Likewise.
1510 (md_atof): Remove declaration of atof_ieee.
1511 (const_overflow): Warning fixes, tidy.
1512 (get_operands): Delete unused vars.
1513 (internal_error_a): Adjust format string to expect a long for arg.
1514 (find_opcode): Warning fixes, simplify.
1515 (build_insn): Cast internal_error_a arg.
1516 (md_begin): Likewise.
1517 (md_apply_fix3): Likewise.
1518 (md_assemble): Delete unused var.
1519 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
1520 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
1521 (whatreg, parse_reg, parse_exp): Make static, prototype.
1522 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
1523 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
1524 (get_operand, get_operands, get_specific, newfix): Likewise.
1525 (apply_fix, build_bytes): Likewise.
1526 (md_atof): Remove declaration of atof_ieee.
1527 (tc_aout_fix_to_chars): Delete.
1528 (md_begin): Constify "opcode". Don't try to init opcode->idx.
1530 (md_parse_option): Fix s_segm and s_unseg calls.
1532 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1534 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
1536 (RELAX_BRANCH_RELOC_S2): Delete.
1537 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
1538 Do not handle BFD_RELOC_16_PCREL.
1539 (macro_build, mips_ip): Likewise.
1540 (md_pcrel_from): Return 4 for undefined symbols regardless of
1542 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
1543 Don't dereference howto if no such relocation is available.
1544 Do not apply hack for in-place zero addend in NEWABI.
1545 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
1547 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
1548 Alan Modra <amodra@bigpond.net.au>
1550 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
1551 (TC_LINKRELAX_FIXUP): Add comments.
1553 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1555 * config/tc-mn10300.c (set_arch_mach): Change argument type to
1557 (r_register_name, xr_register_name): Add prototype declarations.
1559 2002-12-08 H.J. Lu <hjl@gnu.org>
1561 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
1562 copied from tc-i386.c.
1564 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
1566 Fix Bug savannah/1825:
1567 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
1568 (md_relax_table): Define specific relax for PC-rel offsets.
1569 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
1570 (m68hc11_relax_frag): Handle the new relax code.
1571 (md_convert_frag): Likewise.
1572 (md_estimate_size_before_relax): Likewise.
1574 2002-12-08 Alan Modra <amodra@bigpond.net.au>
1576 * subsegs.c (section_symbol): Use the symbol, not the section, name.
1578 2002-12-05 Richard Henderson <rth@redhat.com>
1580 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
1581 (ia64_gen_real_reloc_type): Handle it.
1582 (pseudo_func): Add @ltoffx.
1583 (md_begin): Build .<ltoffx>.
1584 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
1586 2002-12-05 Alan Modra <amodra@bigpond.net.au>
1588 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
1589 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
1590 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
1591 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
1592 COFF to call arm_force_relocation.
1594 2002-12-04 David Mosberger <davidm@hpl.hp.com>
1596 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
1598 (emit_one_bundle): Handle "hint" instruction.
1599 (operand_match): Match IA64_OPND_AR_CSD.
1601 2002-12-04 Alan Modra <amodra@bigpond.net.au>
1603 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
1606 2002-12-03 Nick Clifton <nickc@redhat.com>
1608 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
1609 .PPC.EMB.apuinfo sections.
1611 2002-12-03 Richard Henderson <rth@redhat.com>
1613 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
1615 2002-12-03 Alan Modra <amodra@bigpond.net.au>
1617 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
1618 (cons, s_align_bytes): Delete declaration.
1620 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
1622 (dot): Delete unused function.
1623 (w65_expression): Remove unused arg.
1624 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
1626 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
1628 (get_specific): Prototype. Constify "struct opinfo *" arg and return
1630 (check): Remove unused function.
1631 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
1632 on unhandled switch case.
1633 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
1635 (tc_crawl_symbol_chain): Delete unused function.
1636 (tc_headers_hook): Likewise.
1637 (tc_Nout_fix_to_chars): Likewise.
1638 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
1639 (md_parse_option): Likewise.
1640 (md_convert_frag): Likewise.
1641 (tc_coff_symbol_emit_hook): Likewise.
1642 (md_show_usage): Likewise.
1643 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
1644 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
1645 (w65_expression): Declare.
1647 * po/POTFILES.in: Regenerate.
1649 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
1650 and ARM_ADRL_IMMEDIATE.
1652 2002-12-02 Nick Clifton <nickc@redhat.com>
1654 * gasp.c: Delete. It has been deprecated.
1655 * NEWS: Mention that gasp has been removed.
1656 * Makefile.am: Remove references to gasp.
1657 * makefile.vms: Likewise.
1658 * mpw-make.sed: Likewise.
1659 * Makeile.in: Regenerate.
1660 * doc/gasp.texi: Delete.
1661 * doc/Makefile.am: Remove references to gasp.texi.
1662 * doc/Makefile.in: Regenerate.
1663 * macro.c: Delete references to gasp.
1664 Remove use of comment_char function parameter as it is no longer
1666 * macro.h: Update prototypes to remove comment_char parameter.
1668 * read.c (read_a_source_file, s_irp): Remove comment_char
1669 parameter from invocation of functions in macro.c
1671 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
1673 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
1675 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1677 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
1678 (tc_gen_reloc): Mark section param as not used.
1680 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1682 Fix Bug savannah/1825:
1683 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
1684 that are not pc-relative.
1685 (m68hc11_relax_frag): Declare.
1687 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
1688 the offsetable indexed addressing modes (n,r).
1689 (build_insn): Cleanup some locals.
1690 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
1691 relaxation of difference between two symbols of same section.
1692 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
1693 only when this is a PC-relative operand and the offset is not absolute.
1694 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
1695 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
1696 be handled by m68hc11_relax_frag.
1698 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
1700 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
1701 (32-bit int, 64-bit double).
1702 (md_longopts): New options -mshort, -mlong, -mshort-double and
1703 -mlong-double to control the ABI.
1704 (md_show_usage): Update.
1705 (md_parse_option): Handle new options.
1706 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
1708 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
1710 * symbols.c (report_op_error): New function, broken out of ...
1711 (resolve_symbol_value): ... here. Use for both monadic and dyadic
1714 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1716 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
1717 for BFD_RELOC_32_PLT_PCREL.
1719 2002-11-30 Alan Modra <amodra@bigpond.net.au>
1721 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
1722 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
1723 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
1724 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
1725 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
1726 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
1727 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
1728 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
1729 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
1730 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
1731 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
1732 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
1733 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
1734 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
1735 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
1736 TRUE/FALSE. Formatting.
1738 2002-11-29 Nick Clifton <nickc@redhat.com>
1740 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
1741 assume a value of zero.
1742 (do_bkpt): Likewise.
1744 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1746 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1747 for TLS relocations.
1749 2002-11-29 Jakub Jelinek <jakub@redhat.com>
1751 * config/tc-ia64.c (md_apply_fix3): Add default case.
1753 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1755 * symbols.c (S_SET_THREAD_LOCAL): New function.
1756 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
1757 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
1758 for TLS relocations.
1759 * config/tc-ia64.c (md_apply_fix3): Likewise.
1760 * config/tc-alpha.c (md_apply_fix3): Likewise.
1762 2002-11-28 Jakub Jelinek <jakub@redhat.com>
1764 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
1767 2002-11-26 DJ Delorie <dj@redhat.com.
1769 * dwarf2dbg.c (scale_addr_delta): New.
1770 (size_inc_line_addr): Use it.
1771 (emit_inc_line_addr): Use it.
1773 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
1775 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
1776 (md_assemble): Don't pass on branches to constants as relaxable.
1779 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
1781 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
1783 2002-11-21 Randolph Chung <randolph@tausq.org>
1785 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
1786 only if they have default visibility.
1788 2002-11-21 Richard Henderson <rth@redhat.com>
1790 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
1793 2002-11-21 Alan Modra <amodra@bigpond.net.au>
1795 * config/tc-mcore.c (mcore_pool_count): New function.
1796 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
1798 2002-11-20 Klee Dienes <kdienes@apple.com>
1800 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
1801 coalesce the name fields to use the same pointer.
1803 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
1804 the name fields to use the same pointer.
1805 (get_specific): Check for opcodes with the same name using strcmp
1806 as well as comparing the pointer.
1808 2002-11-20 Alan Modra <amodra@bigpond.net.au>
1810 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
1813 2002-11-19 Richard Henderson <rth@redhat.com>
1815 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
1816 visibility portion of st_other.
1818 2002-11-19 Klee Dienes <kdienes@apple.com>
1820 * config/tc-h8300.c (struct h8_instruction): New type, used to
1821 wrap h8_opcodes with length, noperands, idx, and size fields
1822 (computed at run-time).
1823 (h8_instructions): New variable.
1824 (md_begin): Allocate the storage for h8_instructions. Fill
1825 h8_instructions with pointers to the appropriate opcode and the
1826 correct value for the additional fields.
1827 (clever_message): Update to use h8_instructions instead of
1829 (build_bytes): Ditto.
1830 (get_specific): Ditto.
1831 (md_assemble): Ditto.
1833 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1835 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
1836 adjustments to symbols in merge sections.
1838 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
1840 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
1842 2002-11-18 Kevin Buettner <kevinb@redhat.com>
1844 * dwarf2dbg.h (dwarf2_format): New enum.
1845 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
1846 (out_debug_line, out_debug_info): Add code for handling 64-bit
1848 * config/tc-mips.h (mips_dwarf2_format): Declare.
1849 * config/tc-mips.c (mips_dwarf2_format): New function.
1850 * doc/internals.texi (DWARF2_FORMAT): Document.
1852 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
1854 * config/tc-mips.c (s_change_section): Make sure input buffer
1855 is not accessed past the end. Don't hand
1856 obj_elf_change_section a pointer into the input buffer.
1858 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
1860 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
1863 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1865 * config/tc-tic4x.c: Fixed proper commandline
1866 parameters. Added support for new opcode-list format. General
1867 error message fixups.
1868 (c4x_inst_add): Reject insn not for our CPU
1869 (md_begin): Added matrix for setting the proper opcode-level &
1870 device-flags according to cpu type and revision. Rewrite the
1872 (c4x_operand_parse): Fix opcode bug
1873 (c4x_operands_match): New function argument. Added dry-run
1874 mechanism, that is optional error generation. Added constraint 'i'
1876 (c4x_insn_check): Added new function for post-verification of the
1878 (md_assemble): Check all opcodes before croaking because of an
1879 argument mismatch. Need this to be able to fully support
1880 ortogonally arguments.
1881 (md_parse_options): Revised commandprompt swicthes and added new
1883 (md_show_usage): Complete rewrite of printout.
1885 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
1887 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
1888 (c4x_operands_match): Added check for 8-bits LDF insn. Give
1889 warning when using constant direct bigger than 2^16. Add the new
1892 2002-11-11 Christopher Faylor <cgf@redhat.com>
1894 * configure.in: Use .gdbinit under Cygwin.
1895 * configure: Regenerate.
1897 2002-11-11 Christopher Faylor <cgf@redhat.com>
1899 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
1902 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
1904 * config/tc-tic4x.c: Declare as many functions as possible as
1905 static. Maintenance on the general indenting. Removed unnecessary
1906 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
1907 function. Add support for new DSP, TMS320VC33. Fix bug for
1908 converting flonum constants.
1909 (c4x_do_align): Add proper align handling. Setup align to insert
1911 (c4x_gen_to_words): Support for extended TI type floats.
1912 (md_atof): Proper dumping of multiple-word littlenums.
1913 (c4x_atof): Added support for extended TI type floats.
1914 (c4x_stringer): Added new function to handle compact strings.
1915 (c4x_emit_char): Added new function argument to handle custom
1916 length inserts, like single-byte strings.
1917 * config/tc-tic4x.h: Add proper align handling with NOP's.
1918 * Makefile.am: Added tic4x dependecy
1919 * Makefile.in: Regenerate
1921 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
1923 * macro.c (get_any_string): Correct logic for not going beyond end
1926 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
1928 * config/tc-mmix.c (get_putget_operands): Mark both possible
1929 operands as invalid at beginning.
1931 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
1932 Initialize target of fixup to zero.
1934 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
1936 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
1937 NEWABI, but we should still emit HI16_S for non-PIC n32.
1939 2002-11-06 Richard Henderson <rth@redhat.com>
1941 * config/tc-alpha.c (alpha_validate_fix): Move code ...
1942 (alpha_fix_adjustable): ... here.
1943 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
1945 2002-11-07 Eric Kohl <ekohl@rz-online.de>
1947 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
1950 2002-11-05 H.J. Lu <hjl@gnu.org>
1952 * config/tc-mips.c (support_64bit_objects): Check *l before it
1955 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
1957 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
1958 SEC_LOAD flags for sections marked as 's'.
1960 2002-11-01 Alan Modra <amodra@bigpond.net.au>
1962 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
1963 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
1964 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
1967 * dep-in.sed: Fix typo.
1969 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
1971 * configure.in: Update ARM CPU patterns.
1972 * configure: Regenerated.
1974 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1976 * itbl-lex.l: Use #include <> for generated headers.
1977 * itbl-ops.c: Likewise.
1979 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
1981 * doc/gasp.texi: Fix typo in deprecation note.
1983 2002-10-23 Nick Clifton <nickc@redhat.com>
1985 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
1986 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
1988 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
1990 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
1991 (tc_frob_file_before_adjust): Don't define.
1992 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
1994 (mmix_frob_file_before_adjust): Remove ineffective function.
1996 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
1998 * config/tc-cris.c (SIMPLE_EXPR): New macro.
1999 (cris_relax_frag): New function.
2000 (md_estimate_size_before_relax) <case ENCODE_RELAX
2001 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
2002 expressions that will become absolute expressions to relaxation.
2003 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
2004 STATE_WORD)>: Expect only absolute expressions. Use the symbol
2005 value, not distance to symbol.
2006 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
2007 Ditto. Correct placement of fixup.
2008 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
2010 * config/tc-cris.h (cris_relax_frag): Declare.
2011 (md_relax_frag): Define.
2013 2002-10-22 Alan Modra <amodra@bigpond.net.au>
2015 * config/obj-elf.c (special_sections): Use correct types for init
2017 (obj_elf_change_section): Don't mess with init array section type.
2019 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
2021 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
2022 for relocs against symbols in a merged section.
2024 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
2026 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
2027 table as register names.
2029 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
2031 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
2034 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
2036 * expr.c (operand): Add support for n.nn flonums.
2038 2002-10-17 Johannes Stezenbach <js@convergence.de>
2040 * itbl-parse.y (entry): Provide empty action.
2042 2002-10-16 Alan Modra <amodra@bigpond.net.au>
2044 * configure.in (BFDVER_H): Set and subst.
2045 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
2046 * Makefile.am: Run "make dep-am".
2048 * configure: Regenerate.
2049 * Makefile.in: Regenerate.
2050 * doc/Makefile.in: Regenerate.
2052 2002-10-15 Alan Modra <amodra@bigpond.net.au>
2054 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
2055 (MD_APPLY_SYM_VALUE): Define for PE too.
2057 2002-10-14 Alan Modra <amodra@bigpond.net.au>
2059 * Makefile.am: Run "make dep-am".
2060 (CPU_OBJ_VALID): sh64 coff is invalid.
2061 * as.c: #include "bfdver.h".
2062 * Makefile.in: Regenerate.
2063 * config.in: Regenerate.
2065 2002-10-14 Momchil Velikov <velco@fadata.bg>
2067 * config/tc-v850.c (CHECK_): Remove token pasting operator.
2069 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
2071 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
2072 * configure: Regenerate.
2074 2002-10-13 Eric Christopher <echristo@redhat.com>
2075 Alexandre Oliva <aoliva@redhat.com>
2077 * config/tc-mips.c (s_gpdword): New function.
2078 (mips_pseudo_table): Add .gpdword.
2079 (mips_need_elf_addend_fixup): never for NEWABI.
2080 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
2082 (s_cpadd): Generate .cpadd on NEWABI.
2084 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
2086 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2088 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
2090 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
2091 (md_relax_frag): Adjust macro.
2092 * config/tc-mips.c (mips_relax_branch): New variable.
2093 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
2094 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
2095 (RELAX_MIPS16_P): Adjust.
2096 (append_insn): Emit branch to non-constant in a frag_var if
2097 branch-relaxation is desirable and possible.
2098 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
2099 (OPTION_ELF_BASE): Adjust.
2100 (md_parse_option): Handle new options.
2101 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
2103 (relaxed_branch_length): New function.
2104 (md_estimate_size_before_relax): Handle branch frags.
2105 (mips_relax_frag): Likewise.
2106 (md_convert_frag): Handle branch frags. Warn if branch is
2109 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2111 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
2113 (md_apply_fix3): Add TLS relocs.
2114 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
2117 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
2118 Alan Modra <amodra@bigpond.net.au>
2120 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
2121 (md_estimate_size_before_relax): Likewise for 8 bit branches.
2123 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
2125 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
2128 2002-10-09 Richard Shann <richard.shann@superh.com>
2129 Stephen Clarke <stephen.clarke@superh.com>
2131 * config/tc-sh64.c (sh64_target_format): Add support for sh64
2134 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2136 * contig/tc-sh.c (sh_local_pcrel): New.
2137 (sh_force_relocation): Use sh_local_pcrel.
2138 (md_pcrel_from_section): Check the relocation type whether it
2139 should be resolved locally. Use S_FORCE_RELOC.
2141 2002-10-01 Alan Modra <amodra@bigpond.net.au>
2143 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2144 (TC_FORCE_RELOCATION): Tidy arg.
2146 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
2147 Ken Raeburn <raeburn@cygnus.com>
2148 Aldy Hernandez <aldyh@redhat.com>
2149 DJ Delorie <dj@redhat.com>
2150 Michael Meissner <meissner@redhat.com>
2151 Eric Christopher <echristo@redhat.com>
2152 Richard Sandiford <rsandifo@redhat.com>
2154 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
2155 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
2156 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
2157 (hilo_interlocks): True for CPU_VR5500.
2158 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
2159 (mips_fix_vr4122_bugs): New.
2160 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
2161 (mips_emit_delays): Likewise.
2162 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
2163 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
2164 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
2165 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
2166 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
2167 (OPTION_ELF_BASE): Bump.
2168 (md_parse_option): Handle the new options.
2169 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
2172 2002-09-29 H.J. Lu <hjl@gnu.org>
2174 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
2175 twice if howto->pcrel_offset is true.
2177 2002-09-28 Matt Thomas <matt@3am-software.com>
2178 Jason Thorpe <thorpej@wasabisystems.com>
2180 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
2181 convert undefined references to GOT32/PLT32 if PIC code is
2182 requested. Fix comment.
2184 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
2186 * config/tc-sh.c (sh_force_relocation): Return 0 for
2187 some PC relative relocations when not relaxing.
2189 2002-09-26 Jakub Jelinek <jakub@redhat.com>
2191 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
2192 Define them if not BFD_ASSEMBLER.
2193 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
2195 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
2196 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
2197 (tc_gen_reloc): Handle x86-64 TLS relocs.
2199 2002-09-27 Alan Modra <amodra@bigpond.net.au>
2201 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
2202 fixups to current or absolute section.
2204 2002-09-26 Jim Wilson <wilson@redhat.com>
2206 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
2209 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2211 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
2212 capable configuration.
2213 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
2215 (mips_ip): Likewise.
2217 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2219 * config/tc-mips.c (append_insn): Fix jump overflow check.
2221 2002-09-24 Alan Modra <amodra@bigpond.net.au>
2223 * config/tc-i386.c (process_operands): Warn about "lea" segment
2226 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
2228 * write.c: Delete set_segment_vma and prototype. Update all callers.
2230 2002-09-21 Alan Modra <amodra@bigpond.net.au>
2232 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
2233 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
2234 Rename "fseg" to "sym_seg".
2235 * Makefile.am: Run "make dep-am".
2236 * Makefile.in: Regenerate.
2237 * doc/Makefile.in: Regenerate.
2239 2002-09-20 Nick Clifton <nickc@redhat.com>
2241 * symbols.c (colon): Do not allow symbols to be created in the
2242 absolute section if WORKING_DOT_WORD is not defined and
2243 new_broken_words would require a new frag to be created.
2245 2002-09-20 Alan Modra <amodra@bigpond.net.au>
2247 * expr.c (expr): Simplify foo-foo here.
2248 (clean_up_expression): Remove O_subtract code.
2250 * write.h (struct fix): Add fx_dot_value.
2251 (dot_value): Declare.
2252 * write.c (dot_value): New var.
2253 (fix_new_internal): Save dot_value as fx_dot_value.
2254 (fixup_segment): Adjust fx_offset using fx_dot_value.
2255 * expr.c (expr): Update dot_value.
2257 2002-09-19 Jakub Jelinek <jakub@redhat.com>
2259 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
2260 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
2261 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
2263 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
2264 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
2265 BFD_RELOC_386_TLS_GOTIE.
2267 2002-09-19 Richard Henderson <rth@redhat.com>
2269 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
2271 (alpha_force_relocation): Don't special-case branch type relocs.
2273 2002-09-19 Nick Clifton <nickc@redhat.com>
2275 * config/tc-m68k.c (select_control_regs): Handle situation where
2276 architecture has not yet been selected.
2278 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2280 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
2281 (IS_SEXT_16BIT_NUM): New macro.
2282 (macro_build_ldst_constoffset): New function, to build a set of
2283 instructions to do a load or store from a constant offset relative
2284 to a given register.
2285 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
2286 .cprestore pseudo-op.
2288 2002-09-18 Chris Demetriou <cgd@broadcom.com>
2290 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
2292 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2294 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
2296 2002-09-17 Stan Cox <scox@redhat.com>
2298 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
2299 (macro): Likewise for la. Likewise for ld.
2300 (mips_after_parse_args): Make -xgot optional, not the default.
2301 (md_apply_fix3): Allow composite relocation to set up gp.
2302 (tc_gen_reloc): Allow relaxing for newabi.
2303 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
2304 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
2306 2002-09-17 Nick Clifton <nickc@redhat.com>
2308 * config/tc-arm.c (md_apply_fix3): Note that an implemented
2309 BFD_RELOC_ARM_IMMEDIATE has been done.
2310 (tc_gen_reloc): Do not issue reloc number of unimplemented
2311 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
2312 their name is already in the error message - plus remove them
2313 from the default case.
2315 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
2316 behavior of instructions.
2318 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
2320 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
2321 Convert functions to K&R format.
2323 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2325 * config/tc-mips.c (pdr_seg): Define only for ELF.
2326 (s_change_section): Remove unused variable. Don't use for nonELF.
2328 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2330 * config/obj-elf.c (obj_elf_change_section): Move prototype to
2332 * config/obj-elf.h (obj_elf_change_section): Likewise.
2334 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
2336 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
2337 (out_debug_info): Likewise.
2339 2002-09-16 Bruno Haible <bruno@clisp.org>
2341 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
2342 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
2343 * config/tc-i386.c (i386_target_format): Likewise.
2344 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
2345 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
2347 2002-09-13 Nick Clifton <nickc@redhat.com>
2349 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
2350 when deciding if any operands have been skipped.
2352 2002-09-11 Nick Clifton <nickc@redhat.com>
2354 * NEWS: New TI port supports both C4x and C3x series of DSPs.
2356 * po/tr.po: Updated Turkish translation.
2358 2002-09-11 Jakub Jelinek <jakub@redhat.com>
2360 * config/tc-i386.c (md_apply_fix3): Allow addend for
2361 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
2362 BFD_RELOC_386_TLS_LE_32.
2364 2002-09-05 Jeff Law <law@redhat.com>
2366 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
2367 marker relocations such as ENTRY/EXIT.
2368 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
2369 to both OBJ_ELF and OBJ_SOM.
2371 2002-09-05 Alan Modra <amodra@bigpond.net.au>
2373 * doc/internals.texi (md_apply_fix3): Expand.
2374 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
2375 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
2376 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
2377 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
2378 EXTERN_FORCE_RELOC): Document.
2379 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
2380 * as.h: Don't include struc-symbol.h for arc.
2382 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
2383 subtract absolute symbol.
2384 * obj.h (struct format_ops): Add frob_file_before_fix.
2385 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
2386 * symbols.c (S_FORCE_RELOC): New function.
2387 * symbols.h (S_FORCE_RELOC): Declare.
2388 * write.c (TC_FORCE_RELOCATION): Change default.
2389 (TC_FORCE_RELOCATION_ABS): Define.
2390 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2391 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2392 (TC_FORCE_RELOCATION_SECTION): Don't define.
2393 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
2394 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2395 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2396 (TC_VALIDATE_FIX_SUB): Define.
2397 (TC_FIX_ADJUSTABLE): Don't define.
2398 (MD_APPLY_SYM_VALUE): Define this instead.
2399 (abs_section_sym): New variable.
2400 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
2401 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
2402 Don't put the absolute section sym on fixups here.
2403 (fix_segment): New function.
2404 (write_relocs): Don't call fixup_segment from here.
2405 (write_object_file): Instead call tc_frob_file_before_fix,
2406 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
2407 Don't output the absolute section symbol.
2408 (fixup_segment): Rewrite.
2409 * write.h (abs_section_sym): Declare.
2410 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
2412 (aout_format_ops): Adjust to suit.
2413 * config/obj-aout.h (obj_frob_file): Don't define.
2414 (obj_frob_file_before_fix): Define.
2415 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
2416 (S_FORCE_RELOC): Define.
2417 * config/obj-bout.h (S_FORCE_RELOC): Define.
2418 * config/obj-coff.c (coff_format_ops): Init new field.
2419 * config/obj-coff.h: Formatting fixes.
2420 (obj_sec_sym_ok_for_reloc): Define.
2421 (S_FORCE_RELOC): Define.
2422 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
2423 (ecoff_frob_file): .. from here.
2424 (ecoff_format_ops): Add new function.
2425 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
2426 (obj_frob_file_before_fix): Define.
2427 * config/obj-elf.c (elf_format_ops): Init new field.
2428 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
2429 * config/obj-ieee.h: Formatting fixes.
2430 (S_FORCE_RELOC): Define.
2431 * config/obj-multi.h (obj_frob_file_before_fix): Define.
2432 * config/obj-vms.h (S_FORCE_RELOC): Define.
2433 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
2434 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
2435 for BFD_RELOC_32 and BFD_RELOC_64.
2436 (alpha_fix_adjustable): Remove extern and weak tests.
2437 (alpha_before_fix): Rename from alpha_adjust_symtab.
2438 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
2439 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
2440 (TC_VALIDATE_FIX): Tweak param name.
2441 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
2442 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2443 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2444 (MD_APPLY_SYM_VALUE): Define.
2445 (tc_adjust_symtab): Don't define.
2446 (alpha_adjust_symtab): Don't declare.
2447 (tc_frob_file_before_fix): Define.
2448 (alpha_before_fix): Declare.
2449 (TC_INIT_FIX_DATA): Tweak param names.
2450 * config/tc-arc.c: Include "struc-symbol.h".
2451 (md_pcrel_from): Remove undefined sym fudge.
2452 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2453 Don't set fx_addnumber.
2454 (tc_gen_reloc): Remove spurious fx_addnumber comment.
2455 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
2456 (EXTERN_FORCE_RELOC): Define.
2457 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
2458 (tc_gen_reloc): Fudge ARM_GOTPC addend.
2459 (arm_validate_fix): Return void.
2460 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
2461 Add plt and got reloc tests.
2462 (arm_force_relocation): Call S_FORCE_RELOC.
2463 * config/tc-arm.h (struct fix): Forward declare.
2464 (TC_VALIDATE_FIX): No longer set add_symbolP.
2465 (arm_validate_fix): Adjust declaration.
2466 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
2467 (TC_FORCE_RELOCATION): Tweak param name.
2468 (TC_INIT_FIX_DATA): Likewise.
2469 (obj_fix_adjustable): Don't define.
2470 (tc_fix_adjustable): Call arm_fix_adjustable.
2471 (TC_FIX_ADJUSTABLE): Don't define.
2472 (MD_APPLY_SYM_VALUE): Define.
2473 (EXTERN_FORCE_RELOC): Define.
2474 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2475 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2476 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
2477 Remove *valP fudges and code to subtract abs sym. Don't set
2479 * config/tc-avr.h: Formatting.
2480 (EXTERN_FORCE_RELOC): Define.
2481 (MD_APPLY_SYM_VALUE): Define.
2482 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
2483 (md_apply_fix3): Remove code to subtract abs sym.
2484 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
2485 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
2486 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
2487 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2488 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2489 (tc_fix_adjustable): Remove extern, weak tests.
2490 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
2491 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
2492 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2493 and code to subtract abs sym.
2494 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2495 (d10v_force_relocation): Call S_FORCE_RELOC.
2496 * config/tc-d10v.h: Don't include write.h.
2497 (struct fix): Instead, forward declare.
2498 (MD_PCREL_FROM_SECTION): Tweak param names.
2499 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2500 (d10v_fix_adjustable): Likewise.
2501 (obj_fix_adjustable): Don't define.
2502 (tc_fix_adjustable): Define.
2503 (TC_FORCE_RELOCATION): Tweak param name.
2504 (MD_APPLY_SYM_VALUE): Define.
2505 (EXTERN_FORCE_RELOC): Define.
2506 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
2507 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
2508 and code to subtract abs sym.
2509 * config/tc-d30v.h: Don't include write.h.
2510 (struct fix): Instead, forward declare.
2511 (MD_PCREL_FROM_SECTION): Tweak param names.
2512 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
2513 (MD_APPLY_SYM_VALUE): Define.
2514 (EXTERN_FORCE_RELOC): Define.
2515 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
2516 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
2517 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
2518 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2519 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2520 Don't use fx_addnumber.
2521 * config/tc-dlx.h: Don't include write.h.
2522 (md_convert_frag): We're not alpha twice over.
2523 (EXTERN_FORCE_RELOC): Define.
2524 (obj_fix_adjustable): Don't define.
2525 (tc_fix_adjustable): Define.
2526 (TC_FIX_ADJUSTABLE): Don't define.
2527 (MD_APPLY_SYM_VALUE): Define.
2528 (LOCAL_LABELS_DOLLAR): Undef always.
2529 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
2530 (fr30_fix_adjustable): Remove extern, weak tests.
2531 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
2532 (obj_fix_adjustable): Don't define.
2533 (tc_fix_adjustable): Define.
2534 (struct fix): Forward declare.
2535 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
2536 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
2537 (frv_fix_adjustable): Don't do extern, weak tests.
2538 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
2539 (TC_FIX_ADJUSTABLE): Don't define.
2540 (obj_fix_adjustable): Don't define.
2541 (tc_fix_adjustable): Define.
2542 (struct fix): Forward declare.
2543 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
2544 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
2545 * config/tc-h8300.h (struct fix): Forward declare.
2546 (EXTERN_FORCE_RELOC): Define.
2547 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
2548 (hppa_fix_adjustable): Don't test extern or weak. Don't
2549 symbol_mark_used_in_reloc.
2550 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
2552 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
2553 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
2554 (TC_FORCE_RELOCATION_SECTION): Don't define.
2555 (MD_APPLY_SYM_VALUE): Define.
2556 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
2557 to subtract abs sym.
2558 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
2559 (MD_APPLY_SYM_VALUE): Define.
2560 (MD_PCREL_FROM_SECTION): Tweak param name.
2561 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
2562 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
2563 (i386_force_relocation): New function.
2564 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
2565 (TC_VALIDATE_FIX): Likewise.
2566 (TC_FIX_ADJUSTABLE): Don't define.
2567 (MD_APPLY_SYM_VALUE): Define.
2568 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
2569 (i386_force_relocation): Declare.
2570 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2571 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2572 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
2573 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
2574 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
2575 (EXTERN_FORCE_RELOC): Define.
2576 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
2577 (md_apply_fix3): Don't cast valP pointer type. Move code here from
2578 old fixup_segment. No need to test fx_pcrel before setting fx_done.
2579 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
2580 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
2581 Remove #if 0 code. Invert return boolean.
2582 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
2583 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
2584 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
2585 (tc_coff_sizemachdep): Prototype.
2586 (i960_handle_align): Likewise.
2587 (i960_validate_fix): Adjust declaration.
2588 (reloc_callj): Likewise.
2589 (EXTERN_FORCE_RELOC): Define.
2590 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2591 (TC_FORCE_RELOCATION_ABS): Define.
2592 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2593 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2594 (TC_FIX_ADJUSTABLE): Don't define.
2595 (MD_APPLY_SYM_VALUE): Define.
2596 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
2597 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
2598 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2599 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2600 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
2601 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
2602 (MD_APPLY_SYM_VALUE): Define.
2603 (EXTERN_FORCE_RELOC): Define.
2604 (TC_FORCE_RELOCATION): Tweak param name.
2605 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
2606 (m32r_fix_adjustable): Don't test extern, weak.
2607 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
2608 (MD_APPLY_SYM_VALUE): Define.
2609 (obj_fix_adjustable): Don't define.
2610 (tc_fix_adjustable): Define.
2611 (tc_frob_file): Don't define.
2612 (tc_frob_file_before_fix): Define.
2613 (EXTERN_FORCE_RELOC): Define.
2614 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
2615 BFD_RELOC_VTABLE_ENTRY address.
2616 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
2617 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
2618 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
2619 Remove duplicated fx_done code.
2620 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
2621 (EXTERN_FORCE_RELOC): Define.
2622 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
2624 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
2625 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2626 (TC_FIX_ADJUSTABLE): Don't define.
2627 (EXTERN_FORCE_RELOC): Define.
2628 (MD_APPLY_SYM_VALUE): Define.
2629 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2630 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
2631 Remove fx_addsy tests.
2632 (mcore_force_relocation): Call S_FORCE_RELOC.
2633 (mcore_fix_adjustable): Don't test fx_addsy.
2634 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
2635 (EXTERN_FORCE_RELOC): Define.
2636 (obj_fix_adjustable): Don't define.
2637 (tc_fix_adjustable): Define.
2638 (MD_APPLY_SYM_VALUE): Define.
2639 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
2640 (mips_pic): No longer static.
2641 (mips_force_relocation): Call S_FORCE_RELOC.
2642 (mips_fix_adjustable): Remove extern, weak tests.
2643 * config/tc-mips.h (enum mips_pic_level): Declare.
2644 (mips_pic): Declare.
2645 (tc_frob_file): Don't define.
2646 (tc_frob_file_before_fix): Define this instead.
2647 (EXTERN_FORCE_RELOC): Define.
2648 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
2649 with reg_section tests. Set fx_done instead of calling
2650 symbol_clear_used_in_reloc on bad relocs.
2651 (tc_gen_reloc): Zero fx_addsy on bad relocs.
2652 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
2653 (mmix_adjust_symtab): Simplify list handling. Abort on any
2655 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
2656 BFD_RELOC_MMIX_LOCAL.
2657 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
2658 (EXTERN_FORCE_RELOC): Define.
2659 (MD_PCREL_FROM_SECTION): Tweak param name.
2660 (tc_frob_file): Don't define.
2661 (tc_frob_file_before_fix): Define this instead.
2662 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
2663 Remove SEC_CODE checks.
2664 (mn10300_fix_adjustable): Remove extern and weak tests.
2665 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
2666 (TC_FORCE_RELOCATION): Tweak param name.
2667 (obj_fix_adjustable): Don't define.
2668 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
2669 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
2670 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
2671 (openrisc_fix_adjustable): Don't test fx_addsy.
2672 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
2673 (obj_fix_adjustable): Don't define.
2674 (tc_fix_adjustable): Define this instead.
2675 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2676 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
2677 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
2678 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
2679 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
2680 (MD_APPLY_SYM_VALUE): Define.
2681 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
2682 Don't subtract symbol value.
2683 * config/tc-pj.h (md_pcrel_from): Tweak param name.
2684 (EXTERN_FORCE_RELOC): Define.
2685 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
2686 (MD_APPLY_SYM_VALUE): Define.
2687 (obj_fix_adjustable): Don't define.
2688 (tc_fix_adjustable): Define this instead.
2689 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
2691 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
2692 (ppc_force_relocation <elf version>): New.
2693 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
2694 (md_apply_fix3): Don't subtract symbol values for ELF. Update
2695 comments. Don't subtract fx_subsy as that is already done.
2696 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
2697 (MD_PCREL_FROM_SECTION): Likewise.
2698 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
2699 ppc_force_relocation.
2700 (TC_FORCE_RELOCATION_SECTION): Delete.
2701 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2702 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2703 (MD_APPLY_SYM_VALUE): Define.
2704 * config/tc-s390.c: #include "dwarf2dbg.h".
2705 (s390_insn): Remove excess parens.
2706 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
2707 (tc_s390_force_relocation): Call S_FORCE_RELOC.
2708 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
2709 non-NULL. Don't subtract off fx_addsy value.
2710 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2711 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2712 (TC_FIX_ADJUSTABLE): Don't define.
2713 (MD_APPLY_SYM_VALUE): Define.
2714 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
2715 (SWITCH_TABLE): Likewise.
2716 (sh_force_relocation): Call S_FORCE_RELOC.
2717 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
2718 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
2719 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
2720 fx_addnumber is zero on entry. Save val in fx_addnumber.
2721 (tc_gen_reloc): Don't subtract fx_subsy.
2722 * config/tc-sh.h (struct fix): Move.
2723 (obj_fix_adjustable): Don't define.
2724 (tc_fix_adjustable): Define this instead.
2725 (TC_FIX_ADJUSTABLE): Don't define.
2726 (MD_APPLY_SYM_VALUE): Define.
2727 (SWITCH_TABLE_CONS): Define.
2728 (SWITCH_TABLE): Define.
2729 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2730 (TC_VALIDATE_FIX_SUB): Define.
2731 (MD_PCREL_FROM_SECTION): Tweak param name.
2732 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2733 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2734 (TC_FORCE_RELOCATION_SUB_ABS): Define.
2735 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2736 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2737 (TC_FORCE_RELOCATION_SUB_SAME): Define.
2738 (TC_VALIDATE_FIX_SUB): Define.
2739 (MD_PCREL_FROM_SECTION): Tweak param name.
2740 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
2741 (tc_gen_reloc): Use S_FORCE_RELOC.
2742 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
2743 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
2744 (TC_FORCE_RELOCATION_ABS): Define this instead.
2745 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2746 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
2747 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
2748 (MD_APPLY_SYM_VALUE): Define.
2749 (TC_FIX_DATA_PRINT): Tweak param name.
2750 * config/tc-tic30.c (USE_STDOUT): Don't define.
2751 (md_parse_option): Remove stupid debug code.
2752 (tc_gen_reloc): Don't use fx_addnumber.
2753 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
2754 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
2755 * config/tc-v850.h (obj_fix_adjustable): Don't define.
2756 (tc_fix_adjustable): Define this instead.
2757 (TC_FIX_ADJUSTABLE): Don't define.
2758 (MD_APPLY_SYM_VALUE): Define this instead.
2759 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
2760 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
2761 (TC_FIX_ADJUSTABLE): Don't define.
2762 (MD_APPLY_SYM_VALUE): Define this instead.
2763 (tc_fix_adjustable): Remove extern and weak tests.
2764 * config/tc-w65.h (struct fix): Forward declare.
2765 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
2767 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
2768 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
2769 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
2771 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
2772 (MD_APPLY_SYM_VALUE): Define.
2773 (obj_fix_adjustable): Don't define.
2774 (tc_fix_adjustable): Define this instead.
2775 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
2777 2002-09-04 Alan Modra <amodra@bigpond.net.au>
2779 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
2780 (ppc_fix_adjustable <coff version>): Cleanup.
2782 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
2783 (md_parse_option): No -a64 without BFD64.
2784 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
2785 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
2787 2002-09-04 Nick Clifton <nickc@redhat.com>
2789 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
2790 instructions into the hash table if the target cpu is the BookE32.
2792 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
2794 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
2797 2000-08-28 Catherine Moore <clm@redhat.com>
2799 * tc-v850.c (v850_relax): Declare.
2800 (v850_longcode): New routine.
2801 (v850_handle_align): New routine.
2802 (md_pseudo_table): Add longcall and longjump.
2803 (md_parse_option): Check for relax option.
2804 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
2805 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
2806 (md_apply_fix3): Likewise.
2807 (v850_force_relocation): Likewise.
2808 (v850_comm): Change the current section.
2809 (md_assemble): Ensure that the correct value is put in the
2811 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
2812 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
2813 Remove redundant v850ea support.
2814 * tc-v850.h (HANDLE_ALIGN): Define.
2815 (v850_handle_align): Declare.
2816 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
2818 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
2820 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
2821 * configure: Regenerate.
2822 * NEWS: Mention new port.
2824 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
2826 * config/obj-coff.c: Add sdef definition.
2827 * config/obj-coff.h: Add tic4x include file and set
2829 * config/tc-tic4x.c: New file.
2830 * config/tc-tic4x.h: New file.
2832 2002-08-28 Alan Modra <amodra@bigpond.net.au>
2834 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
2835 (TC_ADJUST_RELOC_COUNT): Tweak param name.
2836 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
2837 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
2838 (RELOC_ENUM): Define.
2839 (fix_new_internal): Use RELOC_ENUM.
2840 (fix_new, fix_new_exp): Likewise.
2841 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
2842 Replace gotos with continue.
2843 (write_relocs): Formatting. Avoid symbol loops in
2844 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
2845 errors, and error number in other cases.
2846 (fixup_segment): Remove param names from prototype. Rename
2847 "this_segment_type" to "this_segment". Update linkrelax comment.
2848 Remove "size, "place" and "where" local vars. Formatting. Update
2849 "no symbol" comment. Remove #if 0 and #if 1.
2851 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
2853 2002-08-27 Alan Modra <amodra@bigpond.net.au>
2855 * dwarf2dbg.c: Always include dwarf2dbg.h.
2856 (dwarf2_directive_file): Adjust dummy version args.
2857 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
2858 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
2859 when symbol values differ.
2860 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
2861 (pseudo_set <O_subtract>): Remove unnecessary segment test.
2862 * config/obj-bout.c (obj_pseudo_table): Warning fix.
2864 2002-08-26 Alan Modra <amodra@bigpond.net.au>
2866 * config/tc-w65.c (md_section_align): Fix typo.
2867 (md_parse_option): Return 0, not 1.
2869 2002-08-22 Nick Clifton <nickc@redhat.com>
2871 * doc/as.texinfo (Section): Note that if '@' is a comment
2872 character then another symbol is used to prefix the section's
2875 2002-08-22 Christian Groessler <chris@groessler.org>
2877 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
2880 2002-08-12 Graeme Peterson <gp@qnx.com>
2882 * configure.in: Add support for sh-**-nto* target.
2883 * configure: Regenerate.
2885 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
2887 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
2889 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
2891 * config/tc-ppc.c (ppc_cleanup): Do something only if format
2893 (ppc_apuinfo_section_add): Define only if format is ELF.
2894 (md_assemble): Emit APUinfo section only if format is ELF.
2897 2002-08-21 Alan Modra <amodra@bigpond.net.au>
2899 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
2900 * config/tc-frv.c: Likewise.
2901 * config/tc-hppa.c: Likewise.
2902 * config/tc-ia64.c: Likewise.
2903 * config/tc-ip2k.c: Likewise.
2904 * config/tc-m68hc11.c: Likewise.
2905 * config/tc-m68k.c: Likewise.
2906 * config/tc-mmix.c: Likewise.
2907 * config/tc-mn10300.c: Likewise.
2908 * config/tc-sh.c: Likewise.
2909 * config/tc-sparc.c: Likewise.
2910 * config/tc-v850.c: Likewise.
2912 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
2914 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
2917 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
2919 From matthew green <mrg@redhat.com>
2921 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
2922 PPC_OPCODE_PPC is, except for BookE architectures.
2923 (md_parse_option): Add support for -mspe.
2924 (md_show_usage): Add -mspe.
2925 (md_parse_option): Add support for -me500 and
2926 -me500x2 to generate code for Motorola e500 core complex.
2927 (md_show_usage): Add -me500 and -me500x2.
2929 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
2930 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
2931 PPC_APUINFO_BRLOCK): New macros.
2933 (ppc_cleanup): New function.
2934 (ppc_apuinfo_section_add): New function.
2936 (md_assemble): Collect info and write the APUinfo section.
2938 * config/tc-ppc.h (md_cleanup): Define.
2939 (ppc_cleanup): Export.
2940 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
2942 2002-08-17 Stan Cox <scox@redhat.com>
2944 * config/obj-elf.c (obj_elf_change_section): Make non-static.
2945 config/tc-mips.c (s_change_section): New function to support
2946 IRIX .section pseudo-op.
2948 2002-08-16 Nick Clifton <nickc@redhat.com>
2950 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
2952 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2954 * config/tc-mips.c (macro_build_jalr): Make sure we generate
2955 the fix-up against on the right frag.
2956 (s_cpsetup): Likewise. Parse third argument as expression, to
2957 handle global symbols and forward/backward labels correctly.
2959 2002-08-14 Nick Clifton <nickc@redhat.com>
2961 * read.c (stringer): Catch attempts to create strings in the abs
2964 * config/tc-alpha.c: Fix compiling for COFF targets.
2965 Some minor formatting tidyups.
2967 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2969 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
2970 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
2971 according to the reloc.
2972 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
2973 (TC_FORCE_RELOCATION): Define.
2974 (tc_m68hc11_force_relocation): Declare.
2976 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
2977 (s_m68hc11_relax): New function for relax group.
2978 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
2979 beginning of jump instruction.
2980 (md_pcrel_from): Rename from md_pcrel_from_section and fix
2981 address computation.
2982 (tc-gen_reloc): Update.
2983 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
2985 (tc_m68hc11_force_relocation): New function, handle new relocs.
2986 (tc_m68hc11_fix_adjustable): New to make sure there are enough
2987 reloc for the linker relax pass.
2988 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
2991 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
2993 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
2994 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
2995 (s_m68hc11_mode): New function for .mode pseudo op.
2996 (s_m68hc11_mark_symbol): New function for .far and .interrupt
2998 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
2999 (m68hc11_elf_final_processing): Declare.
3001 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
3003 * config/tc-m68hc11.c (md_begin): Take into account additional
3004 page operand for call instruction.
3005 (print_opcode_format): Likewise.
3006 (check_range): Likewise for page range checking.
3007 (get_operand): Don't skip a possible comma in operands.
3008 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
3009 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
3010 (fixup24): New to handle call reloc.
3011 (build_insn): Handle missing page operand for call instruction.
3013 (md_apply_fix3): Take into account new relocs.
3014 (get_operand): Fix the mode for indexed indirect addressing.
3015 (build_indexed_byte): Fix post index byte for indexed indirect mode.
3017 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
3019 * config/tc-mips.c (mips_ip): Don't work out the value of
3020 constant %hi()s here.
3022 2002-08-10 Alan Modra <amodra@bigpond.net.au>
3024 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
3025 for ELF, and don't bother checking ELF relocs when non-ELF.
3026 (i386_immediate): Allow absolute_section expressions for aout.
3027 (i386_displacement): Likewise. Also test bfd_is_com_section.
3028 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
3029 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
3030 not when fx_addsy. Remove dead code.
3032 2002-08-09 Graeme Peterson <gp@qnx.com>
3034 * configure.in: Add support for ppc-*-nto* target.
3035 * configure: Regenerate.
3037 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3039 * config/tc-i386.h: Reorganize.
3041 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3043 * config/tc-mips.c (macro): Handle a register plus a 16-bit
3044 immediate offset in "dla" and "la" expansions.
3046 2002-08-09 Alan Modra <amodra@bigpond.net.au>
3048 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
3049 Remove "bfd_gas=yes" from target table when covered later.
3050 Consolidate some entries.
3051 * configure: Regenerate
3053 2002-08-09 Jakub Jelinek <jakub@redhat.com>
3055 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
3056 at start of insn, pass it to output_disp and output_imm.
3057 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
3058 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
3060 (output_imm): Added arguments. Compute properly addend for
3062 (md_apply_fix3): Remove R_386_GOTPC handling.
3064 2002-08-06 George France <france@handhelds.org>
3066 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
3067 and m21264b processor names and cpu types.
3068 * doc/c-alpha.texi: Documented new types.
3070 2002-08-06 Alan Modra <amodra@bigpond.net.au>
3072 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
3074 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
3076 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
3077 handling to BFD_RELOC_MIPS16_GPREL.
3079 2002-08-01 Nick Clifton <nickc@redhat.com>
3081 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
3082 pool is computed using signed arithmetic so that proper sign
3083 extension is performed if X_add_number is a 64-bit integer.
3085 2002-08-01 H.J. Lu <hjl@gnu.org>
3086 Daniel Jacobowitz <drow@mvista.com>
3088 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
3089 .debug_line section unless it has line information.
3091 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
3093 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
3094 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
3095 Allow default displacement size to be an option "--disp-size-default".
3096 (md_number_to_disp): Make error messages include value. Use %d to
3097 print integers, not %s.
3098 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
3099 get duplicate messages sometimes.
3100 (convert_iif): Grow frag to max possible instruction size. Avoid
3101 creating unnecessary fixes.
3102 (md_number_to_field) Add prototype.
3103 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
3104 prototypes and make static.
3105 (struct addr_mode): Make mode and scaled_mode explicitly signed.
3106 (evaluate_expr): Use resultP argument instead of exprP global.
3107 (get_addr_mode): Quiten compiler warnings.
3108 (encode_operand): eliminate unused variables. Quiten compiler
3109 warnings. Eliminate nul character in format strings.
3110 (parse): argc is unsigned.
3111 (reloc): Type cast index to quieten compiler.
3112 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
3113 (md_convert_frag): Note unused parameters. Remove unused
3115 (md_create_long_jump, md_create_short_jump,
3116 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
3119 2002-07-31 Nick Clifton <nickc@redhat.com>
3121 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
3122 of the PDP-11 and 2.11BSD a.out support.
3124 2002-07-31 Momchil Velikov <velco@fadata.bg>
3126 * config/tc-v850.c (md_assemble): Fix range check for immediate
3129 2002-07-30 Chris Demetriou <cgd@broadcom.com>
3131 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
3132 to Broadcom SB-1 core support.
3134 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3136 * config/tc-mips.c (mips_target_format): Fix formatting.
3137 Add recognition of n32 ABI formats.
3139 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3141 * tc-mips.c (load_address): Don't clobber $at when loading a
3142 64-bit address in non-PIC code if noat is in effect.
3145 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3147 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
3148 used in division/multiply macro expansions similarly to how they
3149 are used in the variants with break instructions.
3152 2002-07-30 Graeme Peterson <gp@qnx.com>
3154 * configure.in: Add support for arm-*-nto target.
3155 * configure: Regenerate.
3157 2002-07-30 Nick Clifton <nickc@redhat.com>
3159 * config/tc-arm.c (struct literal_pool): Add fields to allow
3160 multiple literal pools to be maintained.
3161 (find_literal_pool): New function.
3162 (find_or_make_literal_pool): New function.
3163 (add_to_literal_pool): Use find_or_make_literal_pool.
3164 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
3166 (s_ltorg): Use find_literal_pool.
3167 (arm_cleanup): Dump all literal pools.
3168 * doc/c-arm.texi: Document new behaviour of only dumping literal
3171 2002-07-26 Alan Modra <amodra@bigpond.net.au>
3173 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
3174 rather than PPC_OPCODE_32 for powerpc64*.
3176 2002-07-25 Nick Clifton <nickc@redhat.com>
3178 * po/es.po: Updated Spanish translation.
3179 * po/fr.po: Updated French translation.
3181 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
3183 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
3184 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
3185 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
3186 * configure, config.in: Regenerate.
3187 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
3188 (mips_set_options): Remove "abi" field.
3189 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
3192 (mips_arch_string, mips_arch_info): New vars.
3193 (mips_tune_string, mips_tune_info): New vars.
3194 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
3195 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
3196 (mips_isa_to_str, mips_cpu_to_str): Remove.
3197 (mips_ip): If the selected architecture is a generic ISA rather
3198 than a processor, only mention the ISA level in error messages.
3199 (OPTION_MCPU): Remove.
3201 (md_longopts): Add -mfp64, remove -mcpu.
3202 (mips_set_option_string): New fn.
3203 (md_parse_option): Make -mipsN update file_mips_isa rather than
3204 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
3205 Don't let -mgp32 and -mfp32 change the ABI.
3206 (show): Move to end of file. Constify string argument.
3207 (md_show_usage): Move to the end of the file. Read available
3208 architectures from mips_cpu_info_table.
3209 (mips_set_architecture): New fn.
3210 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
3211 is an alias for -march=mipsN. Don't change the ABI based on other
3212 flags. Infer the register size from the ABI as well as the
3213 architecture. Complain about more conflicting arguments.
3214 Unify logic with GCC.
3215 (s_mipsset): Don't change the ABI.
3216 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
3217 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
3218 "mipsN"-type entries. Remove entries that vary only in the
3219 manufacturer's prefix, or that have "000" replaced by "k".
3220 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
3221 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
3222 (mips_parse_cpu): New fn.
3223 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
3224 (mips_cpu_info_from_isa): Minor formatting tweak.
3226 2002-07-24 Nick Clifton <nickc@redhat.com>
3228 * po/sv.po: Updated Swedish translation.
3229 * po/es.po: Updated Spanish translation.
3231 2002-07-23 Alan Modra <amodra@bigpond.net.au>
3233 * Makefile.am: Run "make dep-am".
3234 * Makefile.in: Regenerate.
3235 * doc/Makefile.in: Regenerate.
3236 * config.in: Regenerate.
3237 * po/POTFILES.in: Regenerate.
3239 2002-07-23 Nick Clifton <nickc@redhat.com>
3241 * po/fr.po: Updated French translation.
3243 2002-07-23 Nick Clifton <nickc@redhat.com>
3245 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
3248 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3250 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
3251 instead of S_IS_EXTERN.
3252 (md_estimate_size_before_relax): Likewise.
3253 (mips_fix_adjustable): Likewise.
3255 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3257 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
3259 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
3260 Nick Clifton <nickc@redhat.com>
3262 * cond.c (s_ifdef): Treat a referenced but not yet defined
3263 symbol as if it were undefined, in exactly the same way as
3266 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
3267 consider referenced bug not yet defined symbols to be
3270 2002-07-18 Denis Chertykov <denisc@overta.ru>
3271 Frank Ch. Eigler <fche@redhat.com>
3272 Alan Lehotsky <alehotsky@cygnus.com>
3273 John Healy <jhealy@redhat.com>
3274 Jeff Johnston <jjohnstn@redhat.com>
3276 * configure.in: Add ip2k configuraton.
3277 * configure: Regenerate.
3278 * Makefile.am: Add ip2k configuraton.
3279 * Makefile.in: Regenerate.
3280 * configure: Regenerate.
3281 * Makefile.in: Regenerate.
3282 * config/tc-ip2k.c: New file.
3283 * config/tc-ip2k.h: New files.
3284 * NEWS: Mention new support.
3285 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
3286 * doc/Makefile.in: Regenerate.
3287 * doc/all.texi: Set IP2K
3288 * doc/as.texinfo: Add IP2K description.
3289 * doc/c-ip2k.texi: New file.
3291 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3293 * NEWS: Reformat to match style of other NEWS files.
3295 2002-07-17 Jan Hubicka <jh@suse.cz>
3297 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
3299 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
3301 * config/tc-z8k.c (build_bytes): Correct order of memset args.
3303 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3305 * NEWS: Add 'Changes in 2.13'.
3307 2002-07-15 Matt Fredette <fredette@netbsd.org>
3309 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
3311 2002-07-12 Alan Modra <amodra@bigpond.net.au>
3313 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
3314 case with non CODE_64BIT case. Don't warn on "qword ptr" if
3317 2002-07-11 Alan Modra <amodra@bigpond.net.au>
3319 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
3320 (ppc_frob_file_before_adjust): New function.
3321 * config/tc-ppc.h (tc_frob_symbol): Don't define.
3322 (ppc_elf_frob_symbol): Don't declare.
3323 (tc_frob_file_before_adjust): Define.
3324 (ppc_frob_file_before_adjust): Declare.
3326 * config/tc-ppc.c (md_pseudo_table): Warning fix.
3327 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
3330 (ppc_xcoff64): Rename to ppc_obj64.
3331 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
3332 (ppc_set_cpu): Set PPC_OPCODE_32 too.
3333 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
3335 (ppc_target_format): Use ppc_obj64 to select format.
3336 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
3337 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
3338 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
3339 (tc_frob_symbol): Likewise.
3340 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
3341 BFD_DEFAULT_TARGET_SIZE.
3343 (ppc_is_toc_sym): Likewise.
3344 (md_apply_fix3): Likewise.
3345 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
3346 BFD_DEFAULT_TARGET_SIZE.
3347 (ELF_TC_SPECIAL_SECTIONS): Likewise.
3348 (tc_frob_symbol): Likewise.
3350 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3352 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
3353 (mips_ip): Likewise.
3355 2002-07-09 Alan Modra <amodra@bigpond.net.au>
3357 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
3358 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
3359 (md_apply_fix3): Formatting. Remove redundant test.
3360 (tc_gen_reloc): Remove redundant code.
3361 (tc_i386_force_relocation): Delete. Movy body of function to..
3362 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
3364 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
3366 * configure.in: Add hppa-*-openbsd* target, change
3367 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
3369 * configure: Regenerate.
3371 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3373 * config/tc-mips.c (macro): Shift the 32-bit address range
3374 accessible with a lone "lui" down by 32768.
3376 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3378 * config/tc-mips.c (load_address): Use non-trapping "daddu"
3379 instead of "dadd" in address calculations.
3382 2002-07-08 Alan Modra <amodra@bigpond.net.au>
3384 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
3386 (md_assemble): Instead, zap the suffix here.
3388 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
3390 * NEWS: Remove next release number until the release is actually
3393 2002-07-03 Alan Modra <amodra@bigpond.net.au>
3395 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
3397 * Makefile.in: Regenerate.
3399 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
3401 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
3402 to symbols in merge sections, even non pc-relative ones.
3404 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3406 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
3408 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
3410 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
3411 .softregs and .eeprom.
3413 2002-06-28 David O'Brien <obrien@FreeBSD.org>
3415 * NEWS: Note the next release is 2.13.
3417 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
3419 * po/tr.po: New translation imported.
3421 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
3423 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
3424 (ecoff_directive_def): Likewise.
3425 (ecoff_directive_tag): Likewise.
3426 * listing.c (file_info): Likewise.
3427 * hash.c (what): Likewise.
3429 2002-06-25 H.J. Lu <hjl@gnu.org>
3431 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
3432 * Makefile.in: Regenerated.
3434 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
3436 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
3437 (assemble_ppi): Generate warning if the same register is used
3438 twice as destination in the same padd / pmuls instruction.
3440 2002-06-18 Dave Brolley <brolley@redhat.com>
3442 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
3443 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
3444 * configure.in: Support frv-*-*.
3445 * Makefile.am (CPU_TYPES): Add frv.
3446 (TARGET_CPU_CFILES): Add tc-frv.c.
3447 (TARGET_CPU_HFILES): Add tc-frv.h.
3448 (DEPTC_frv_coff): New variable.
3449 (DEPTC_frv_elf): New variable.
3450 (DEPOBJ_frv_coff): New variable.
3451 (DEPOBJ_frv_elf): New variable.
3452 (DEP_frv_coff): New variable.
3453 (DEP_frv_elf): New variable.
3454 * tc-frv.c: New file.
3455 * tc-frv.h: New file.
3457 2002-06-17 Catherine Moore <clm@redhat.com>
3459 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
3461 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3463 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
3465 2002-06-17 Tom Rix <trix@redhat.com>
3467 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
3469 2002-06-14 H.J. Lu <hjl@gnu.org>
3470 Daniel Jacobowitz <drow@mvista.com>
3472 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
3473 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
3474 * config/tc-mips.c (s_mips_file): Call s_app_file_string
3475 and new_logical_line for the first .file directive.
3476 * read.c (s_app_file_string): New function.
3477 (s_app_file): Call it.
3478 * read.h (s_app_file_string): Add declaration.
3480 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
3482 * configure.in: Remove MIPS_STABS_ELF.
3483 * configure: Regenerated.
3484 * config.in: Regenerated.
3485 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
3487 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
3489 (pdr_seg): Declare unconditionally.
3490 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
3491 (s_mips_end): Likewise. Generate stabs function markers.
3492 (s_mips_ent): Generate stabs function markers.
3493 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
3495 (s_mips_mask): Likewise.
3496 (mips_flag_mdebug): New.
3497 (md_longopts): Add "mdebug" and "no-mdebug".
3498 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
3499 (mips_after_parse_args): Set mips_flag_mdebug.
3500 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
3502 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3504 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
3505 value twice for RELA relocations.
3507 2002-06-12 Ben Elliston <bje@redhat.com>
3509 * symbols.c (resolve_symbol_value): Initialise final_val.
3511 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
3513 2002-06-11 Tom Rix <trix@redhat.com>
3515 * config/tc-ppc.c (ppc_subseg_align): Delete.
3516 (ppc_change_csect): Default csect align is 2.
3517 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
3519 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
3521 * config/tc-avr.c (mcu_types): Update.
3523 2002-06-08 Matt Thomas <matt@3am-software.com>
3525 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
3526 (vax-*-netbsd*): New targets.
3527 * configure: Regenerate.
3528 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
3529 * config/tc-vax.c: Add support for ELF and PIC.
3530 (flag_want_pic): New flag.
3531 (float_cons): Fix prototype.
3532 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
3533 (md_assemble): Introduce a new is_absolute local, and use it
3534 rather than repeating the test. Make fatal errors actually
3535 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
3536 Add support for ELF. Add support for PIC.
3537 (md_convert_frag): Adjust for BFD_ASSEMBLER.
3538 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
3540 (vax_reg_parse): Make the % register prefix mandatory for ELF,
3541 optional for a.out, and not allowed for VMS. Adjust all callers.
3542 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
3543 (md_create_long_jump): Likewise.
3544 (md_undefined_symbol): Likewise.
3545 (md_section_align): Likewise.
3546 (md_shortopts): Allow -k and -K for ELF.
3547 (md_parse_option): Set flag_want_pic if -k or -K.
3548 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
3549 (tc_gen_reloc): New function if BFD_ASSEMBLER.
3550 * config/tc-vax.h (tc_headers_hook): Remove.
3551 (TARGET_FORMAT): Set according to object format and target
3553 (BFD_ARCH, TARGET_ARCH): Define.
3554 (NO_RELOC): Adjust for BFD_ASSEMBLER.
3555 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
3556 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
3557 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
3559 2002-06-08 Alan Modra <amodra@bigpond.net.au>
3561 * Makefile.am: Run "make dep-am".
3562 * Makefile.in: Regenerate.
3564 * as.c: Replace CONST with const.
3565 * write.c: Likewise.
3566 * config/obj-coff.c: Likewise.
3567 * config/tc-a29k.c: Likewise.
3568 * config/tc-arm.c: Likewise.
3569 * config/tc-dlx.c: Likewise.
3570 * config/tc-h8300.c: Likewise.
3571 * config/tc-h8500.c: Likewise.
3572 * config/tc-i370.c: Likewise.
3573 * config/tc-i860.c: Likewise.
3574 * config/tc-i960.c: Likewise.
3575 * config/tc-m68hc11.c: Likewise.
3576 * config/tc-m68k.c: Likewise.
3577 * config/tc-m88k.c: Likewise.
3578 * config/tc-mcore.c: Likewise.
3579 * config/tc-mips.c: Likewise.
3580 * config/tc-ns32k.c: Likewise.
3581 * config/tc-pdp11.c: Likewise.
3582 * config/tc-pj.c: Likewise.
3583 * config/tc-s390.c: Likewise.
3584 * config/tc-sh.c: Likewise.
3585 * config/tc-sparc.c: Likewise.
3586 * config/tc-tahoe.c: Likewise.
3587 * config/tc-tic80.c: Likewise.
3588 * config/tc-v850.c: Likewise.
3589 * config/tc-vax.c: Likewise.
3590 * config/tc-w65.c: Likewise.
3591 * config/tc-z8k.c: Likewise.
3593 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
3595 Based on patch from Matt Green:
3596 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
3597 * config/tc-mips.c (s_mips_file): Renamed from s_file.
3598 (s_mips_loc): New function.
3599 (mips_nonecoff_pseudo_table): Call them.
3600 (append_insn): Call dwarf2_emit_insn.
3602 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3604 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
3606 (file_ase_mips16): New veriable.
3607 (mips_eabi64): Remove.
3608 (CPU_HAS_MIPS16): New define.
3609 (CPU_HAS_MDMX): Fix data type.
3610 (md_begin): Code cleanup. Use file_ase_mips16.
3611 (mips_elf_final_processing): Handle mips16 header flag.
3612 Handle EABI flag without intermediate variable.
3614 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3616 * doc/as.texinfo: Update MIPS documentation.
3618 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3620 * config/tc-mips.c: Add define for $zero register.
3621 (md_begin): Add $zero as alias name for $0.
3622 (insn_uses_reg): Use ZERO define.
3623 (mips_ip): Add $zero as alias name for $0.
3624 (mips16_ip): Likewise.
3625 (s_cplocal): Demand empty rest of input line.
3626 (tc_get_register): Likewise. Add support for $kt0, kt1 register
3627 names. Use ZERO define. Fix input_line_pointer progress.
3629 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3631 * symbols.c: Replace CONST by const throughout.
3632 (symbol_find_exact): Split out from..
3633 (symbol_find_base): ..here.
3634 * symbols.h: Replace CONST by const throughout.
3635 (symbol_find_exact): Declare.
3636 * config/obj-elf.c: #include "struc-symbol.h".
3637 (elf_frob_file): If group name matches an exported symbol, use that
3638 symbol for the signature and ".group" as the section name.
3640 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
3642 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
3645 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
3647 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
3648 and mips_opts.ase_mdmx if they are uninitialized.
3650 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
3652 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
3653 (hppa_force_relocation): Check if a stub just before the start symbol
3654 of the last call_info is reachable before forcing relocation. Fix
3657 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3659 * config/tc-mips.c (mips_after_parse_args): New function.
3660 (md_begin): Move processing of defaults to mips_after_parse_args.
3661 config/tc-mips.h (md_after_parse_args): Define.
3663 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3665 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
3666 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
3667 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
3668 * configure: Regenerate.
3669 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
3672 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
3674 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
3676 2002-06-04 Alan Modra <amodra@bigpond.net.au>
3678 * config/obj-elf.c (obj_elf_change_section): Set and check elf
3679 linkonce flag. Print all warnings.
3680 (obj_elf_section): Parse ",comdat" for groups.
3681 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
3682 consistency of comdat flag.
3684 2002-06-02 Richard Henderson <rth@redhat.com>
3686 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
3687 with LITERALs without sequence numbers.
3689 2002-06-01 Richard Henderson <rth@redhat.com>
3691 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
3692 Rename them LITUSE_ALPHA_*.
3694 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
3696 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
3697 accept parentheses enclosed register lists.
3699 2002-05-31 Alan Modra <amodra@bigpond.net.au>
3701 * Makefile.am: Run "make dep-am".
3702 * Makefile.in: Regenerate.
3703 * po/POTFILES.in: Regenerate.
3705 2002-05-31 Graeme Peterson <gp@qnx.com>
3707 * configure.in: Add i386-*-nto-qnx*.
3708 * configure: Regenerate.
3710 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3712 * config/tc-mips.c (mips_ip): Use unsigned long values for
3715 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3717 * config/tc-mips.c (s_cpsetup): Fix initialization of
3718 mips_cpreturn_register and mips_cpreturn_offset.
3720 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3722 * config/tc-mips.c (s_cpsetup): Fix comment.
3724 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3726 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
3727 (mips_ip): Likewise.
3728 (mips16_ip): Likewise.
3729 (tc_get_register): Likewise.
3731 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
3732 Ed Satterthwaite <ehs@broadcom.com>
3734 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
3735 (mips_opts): Initialize "ase_mdmx" member.
3736 (file_ase_mdmx): New variable.
3737 (CPU_HAS_MDMX): New macro.
3738 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
3739 based on command line options and configuration defaults.
3740 (macro_build): Note in comment that use of MDMX in macros is
3741 not currently allowed.
3742 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
3743 "Z" MDMX operand types.
3744 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
3745 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
3747 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
3748 Add support for "-mdmx" and "-no-mdmx" options.
3749 (OPTION_ELF_BASE): Move to accomodate new options.
3750 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
3751 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
3752 file_ase_mdmx was set.
3753 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
3754 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
3757 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3759 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
3760 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
3761 command line switch conforming to gcc conventions.
3762 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
3764 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3766 * config/tc-mips.c (macro_build_jalr): New Function.
3767 (md_begin): NewABI uses big GOTs.
3768 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
3769 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
3770 (load_address): Add some NewABI PIC support.
3772 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
3773 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
3775 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3777 * config/tc-mips.c (load_address): Use mips_gp_register instead
3778 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
3780 (macro): Use mips_gp_register instead of hardcoded value.
3782 2002-05-30 Richard Henderson <rth@redhat.com>
3784 * expr.h (operatorT): Add O_md17..O_md32.
3785 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
3786 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
3787 O_tprelhi, O_tprello, O_tprel): New.
3788 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
3789 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
3790 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
3791 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
3792 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
3793 (md_apply_fix3): Handle TLS relocations.
3794 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
3795 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
3796 associated TLS reloc. Check lituse_tls relocs match up.
3797 (emit_insn): Handle TLS relocations.
3800 * doc/c-alpha.texi: Add docs for tls relocations.
3802 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3804 * config/tc-mips.c (mips_gprel_offset): New variable.
3805 (s_gpvalue): Use it.
3807 2002-05-30 Diego Novillo <dnovillo@redhat.com>
3809 * gas/config/tc-d10v.c (check_resource_conflict): Only check
3810 write-write conflicts.
3811 (md_assemble): Reformat introductory comment.
3812 (parallel_ok): Prevent packing only if the first
3813 instruction cannot be packed.
3815 2002-05-30 Jason Eckhardt <jle@redhat.com>
3816 Tom Rix <trix@redhat.com>
3818 * config/tc-d10v.c (build_insn): Check for immediates.
3820 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3822 * config/tc-mips.c: Replace GP in comments by $gp.
3823 (mips_big_got): Initialize.
3824 (mips_trap): Initialize.
3825 (load_address): Use mips_gp_register instead of hardcoded value.
3826 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
3827 (macro): Use mips_gp_register instead of hardcoded value.
3828 (macro2): Change load_address calls.
3829 (md_pcrel_from): Comment formatting.
3830 (s_cpload): Use mips_gp_register instead of hardcoded value.
3831 (s_cprestore): Likewise. Comment formatting.
3832 (s_gpword): Fix data type.
3833 (s_cpadd): Use mips_gp_register instead of hardcoded value.
3834 (nopic_need_relax): Replace GP in comments by $gp.
3835 (mips_elf_final_processing): Better comment.
3837 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3839 * configure.in: Add DLX configuraton
3840 * Makefile.am: Add DLX configuraton
3841 * configure: Regenerate.
3842 * Makefile.in: Regenerate.
3843 * config/tc-dlx.c: New file.
3844 * config/tc-dlx.h: New files.
3845 * NEWS: Mention new support.
3847 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
3849 * config/obj-coff.c (write_object_file): Add missing semicolon.
3851 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3853 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
3854 by the define. Remove superfluous check of mips_opts.mips16.
3855 (append_insn): Likewise. Canonicalize variable increments.
3856 (macro_build): Canonicalize variable increments.
3857 (macro_build_lui): Likewise.
3858 (load_register): Likewise.
3859 (load_address): Move pointer initialization.
3860 (macro): Move pointer to a more local scope. Canonicalize variable
3861 increments. Better comments. Replace magic constant for RA by the
3863 (macro2): Replace magic constant for RA by the define. Canonicalize
3864 variable increments.
3865 (mips_ip): Canonicalize variable increments.
3866 (mips16_ip): Replace magic constant for RA by the define.
3867 (my_getSmallParser): Canonicalize variable increments/decrements.
3868 (my_getPercentOp): Likewise.
3869 (my_getSmallExpression): Likewise.
3870 (s_align): Likewise.
3871 (s_mipsset): Likewise.
3872 (s_cpsetup): Likewise.
3873 (s_insn): Remove superfluous check of mips_opts.mips16.
3874 (s_mips_stab): Likewise.
3875 (mips_handle_align): Canonicalize variable increments.
3876 (s_mips_ent): Likewise.
3877 (s_mips_end): Add comment.
3879 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
3881 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
3882 * configure: Regenerate.
3884 2002-05-25 Alan Modra <amodra@bigpond.net.au>
3886 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
3887 * Makefile.in: Regenerate.
3888 * dep-in.sed: Reorder to match OBJS in Makefile.am.
3889 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
3890 * configure: Regenerate.
3891 * as.h: Use #include "" instead of <> for local header files.
3892 * flonum-konst.c: Likewise.
3893 * flonum-mult.c: Likewise.
3895 * listing.c: Likewise.
3896 * config/tc-ia64.h: Likewise.
3897 * config/tc-v850.h: Likewise.
3899 2002-05-24 TAMURA Kent <kent@netbsd.org>
3901 * configure.in: Add a target for i386-netbsdpe.
3902 * configure: Regenerate.
3904 2002-05-23 Jakub Jelinek <jakub@redhat.com>
3906 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
3907 (obj_elf_common): Call elf_common.
3908 (obj_elf_tls_common): New function.
3909 (elf_pseudo_tab): Support .tls_common.
3910 (special_sections): Add .tdata and .tbss.
3911 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
3913 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
3914 (obj_elf_parse_section_letters): Include T in error message.
3915 * config/tc-ppc.c (ppc_section_letter): Likewise.
3916 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
3917 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
3919 * config/tc-sparc.c (md_apply_fix3): Likewise.
3920 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
3921 Define them if not BFD_ASSEMBLER.
3922 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
3924 (md_apply_fix3): Add TLS relocs.
3925 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
3926 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
3927 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
3928 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
3929 (ia64_elf_section_letter): Include T in error message.
3930 (md_begin): Support TLS operators.
3931 (md_operand): Likewise.
3932 (ia64_gen_real_reloc_type): Support TLS relocs.
3933 * write.c (adjust_reloc_syms): Don't change symbols in
3934 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
3936 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3938 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
3939 round the relocation up rather than down.
3941 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
3943 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
3945 * doc/as.texinfo: Document that the COFF version of .section
3946 ignores the 'a' flag.
3948 2002-05-23 Alan Modra <amodra@bigpond.net.au>
3950 * config/tc-alpha.c (assemble_tokens): Protect use of
3951 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
3953 * write.c (size_seg): Check adjustment to last frag.
3954 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
3956 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
3957 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
3958 (write_object_file): Invoke md_do_align if available, and use
3959 frag_align_code on text sections.
3960 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
3961 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
3962 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
3963 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
3964 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
3967 2002-05-22 H.J. Lu <hjl@gnu.org>
3969 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
3972 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
3974 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
3977 2002-05-22 H.J. Lu <hjl@gnu.org>
3979 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
3980 for one .loc for compiler.
3982 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3984 * config/tc-mips.c (macro): Relax warning, it's toot strict for
3987 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3989 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
3990 Optimize the rotate by zero case.
3992 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
3994 * configure.in: Remove accidental enabling of bfd_gas=yes for
3996 * configure: Regenerate.
3998 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
4000 * app.c: Fix formatting.
4002 * ehopt.c: Likewise.
4004 * input-file.c: Likewise.
4005 * listing.c: Likewise.
4006 * macro.h: Likewise.
4007 * stabs.c: Likewise.
4008 * symbols.c: Likewise.
4010 2002-05-17 Alan Modra <amodra@bigpond.net.au>
4012 * config/obj-generic.c: Delete file.
4013 * config/obj-generic.h: Likewise.
4015 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
4017 * config/tc-avr.c (mcu_types): Update for new devices.
4019 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4021 * config/tc-mips.c (macro): Warn about wrong la/dla use.
4023 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4025 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
4026 worked sometimes by accident. Fix copy&paste comment.
4028 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4030 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
4031 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
4032 (mips_elf_final_processing): Let n32 use .reginfo.
4034 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4036 * config/tc-mips.c (append_insn): Fix too small range of variable.
4038 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
4040 * config/tc-arm.c (arm_cleanup): Remove redundant call to
4041 listing_prev_line().
4043 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
4045 * config/tc-arm.c (md_assemble): Remove redundant call to
4048 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
4051 * stabs.c (s_stab_generic): Fix grammatical error in warning
4054 2002-05-13 Alan Modra <amodra@bigpond.net.au>
4056 * write.c (subsegs_finish): Don't specially align last subseg.
4058 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
4060 * stabs.c (s_stab_generic): Warn about a description field that is
4063 * config/obj-coff.c: Fix compile time warnings when compiling
4064 without BFD_ASSEMBLER defined.
4067 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
4069 (md_pcrel_from_section): Use md_pcrel_from().
4071 2002-05-11 Bruno Haible <bruno@clisp.org>
4073 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
4074 by dwarf2_directive_loc, instead of calling dwarf2_where.
4076 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
4078 * config/obj-coff.h: Fix formatting.
4079 * config/tc-mcore.c: Likewise.
4080 * config/tc-mn10300.c: Likewise.
4081 * config/tc-openrisc.c: Likewise.
4082 * config/tc-or32.c: Likewise.
4083 * config/tc-pdp11.c: Likewise.
4084 * config/tc-ppc.c: Likewise.
4085 * config/tc-ppc.h: Likewise.
4086 * config/tc-sh64.c: Likewise.
4087 * config/tc-sh.c: Likewise.
4088 * config/tc-tic54x.c: Likewise.
4089 * config/tc-xstormy16.c: Likewise.
4090 * config/tc-xstormy16.h: Likewise.
4092 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
4094 * config/obj-coff.c: Fix formatting.
4095 * config/obj-elf.c: Likewise.
4096 * config/tc-alpha.c: Likewise.
4097 * config/tc-arm.c: Likewise.
4098 * config/tc-d10v.c: Likewise.
4099 * config/tc-d30v.c: Likewise.
4100 * config/tc-h8300.c: Likewise.
4101 * config/tc-hppa.c: Likewise.
4103 2002-05-09 Alan Modra <amodra@bigpond.net.au>
4105 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
4106 reloc when no_cond_jump_promotion.
4108 2002-05-08 Jim Wilson <wilson@redhat.com>
4110 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
4111 current variable part of frag.
4113 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
4115 * config/tc-mmix.c: Fix formatting.
4116 * config/tc-mmix.h: Likewise.
4118 2002-05-08 Alan Modra <amodra@bigpond.net.au>
4120 * configure: Regenerate.
4122 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
4124 * config/tc-m68k.c: Fix formatting.
4126 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
4128 * Makefile.am: Honour DESTDIR.
4129 * Makefile.in: Regenerate.
4131 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
4133 * config/tc-ia64.c: Fix formatting.
4134 * config/tc-ia64.h: Likewise.
4136 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
4138 * config/tc-mips.c: Fix formatting.
4139 * config/tc-s390.c: Likewise.
4140 * config/tc-s390.h: Likewise.
4142 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
4144 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
4145 information for instructions.
4147 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
4149 * as.h: Fix formatting.
4152 * dwarf2dbg.c: Likewise.
4153 * frags.h: Likewise.
4155 * macro.c: Likewise.
4157 * stabs.c: Likewise.
4158 * symbols.c: Likewise.
4160 2002-05-02 Alan Modra <amodra@bigpond.net.au>
4162 * app.c (mri_pseudo): Only declare for TC_M68K.
4164 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
4165 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
4166 BFD_RELOC_16_BASEREL.
4167 (md_assemble): Likewise.
4168 (md_apply_fix3): Likewise.
4170 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
4172 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
4173 zero into an add of zero - it is not the same.
4175 2002-05-01 Arati Dikey <aratid@kpit.com>
4177 * tc-sh.c (get_specific): Generate warning if the same
4178 destination register is used in parallel instructions.
4180 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
4182 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
4184 2002-05-01 Alan Modra <amodra@bigpond.net.au>
4186 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
4187 backwards to prevent cascading errors.
4189 2002-04-30 Mark Mitchell <mark@codesourcery.com>
4191 * configure.in: Add support for powerpc-*-windiss.
4192 * configure: Regenerated.
4194 2002-04-28 Alan Modra <amodra@bigpond.net.au>
4196 * config/tc-s390.c (md_parse_option): Formatting.
4198 * config/tc-i386.c: Formatting fixes, add missing space in error
4201 2002-04-24 Christian Groessler <chris@groessler.org>
4203 * config/tc-z8k.c (build_bytes): Add support for new cases:
4204 CLASS_IGNORE and ARG_NIM4.
4205 (md_assemble): Prevent destruction of input_line_pointer if
4206 get_operands returns failure.
4208 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
4210 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
4211 instructions to be generated by macros.
4213 2002-04-24 Andreas Schwab <schwab@suse.de>
4215 * config/tc-i386.c (output_jump, output_disp)
4216 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
4218 (md_apply_fix3): Remember addend value for rela relocations.
4219 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
4221 2002-04-22 Chris Demetriou <cgd@broadcom.com>
4223 * config/tc-mips.c (macro_build): Add close-parenthesis missing
4224 from previous change.
4226 2002-04-22 Eric Christopher <echristo@redhat.com>
4228 * config/tc-mips.c (macro_build): Add warning if macro instructions
4229 are expanded into a branch delay slot.
4231 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
4233 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
4234 numbers, gdb relies on them to detect the start of the prologue.
4236 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
4238 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
4239 symbols in merge sections.
4241 2002-04-16 Alan Modra <amodra@bigpond.net.au>
4243 * as.c (main): Don't reference _bfd_chunksize.
4245 2002-04-15 Tom Rix <trix@redhat.com>
4247 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
4248 symbols in merge sections.
4250 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
4252 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
4253 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
4254 argument for the precision.
4255 (gen_to_words): Update accordingly.
4257 2002-04-10 Alan Modra <amodra@bigpond.net.au>
4259 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
4260 BFD_VERSION_STRING unavailable.
4261 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
4263 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
4265 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
4266 symbol_used_in_reloc_p is true.
4268 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
4271 2002-04-04 Alan Modra <amodra@bigpond.net.au>
4273 * dep-in.sed: Cope with absolute paths.
4274 * Makefile.am (dep.sed): Subst TOPDIR.
4276 * Makefile.in: Regenerate.
4278 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4280 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
4281 (mips_ip): Remove unused variable.
4282 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
4283 unsigned char with bfd_byte.
4284 (s_file): Remove unused variable.
4285 (s_mips_ent): Likewise.
4287 2002-04-03 Tom Rix <trix@redhat.com>
4289 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
4291 (find_opcode): Fix warning in as_warn.
4292 * config/tc-d10v.h: Update Copyright.
4294 2002-04-03 Alan Matsuoka <alanm@redhat.com>
4295 Tom Rix <trix@redhat.com>
4297 From Jeff Knaggs <jknaggs@redhat.com>
4298 * config/tc-d10v.c (check_resource_conflict): New function to
4299 check for resource conflicts.
4301 From Jason Eckhardt <jle@redhat.com>
4302 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4304 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
4305 reserved control registers is used.
4306 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
4309 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
4310 * tc-d10v.c (parallel_ok): Prevent packing only if the first
4311 instruction cannot be packed.
4313 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
4314 * gas/config/tc-d10v.c (check_resource_conflict): Only check
4315 write-write conflicts.
4316 (md_assemble): Reformat introductory comment.
4317 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
4320 2002-04-03 Alan Modra <amodra@bigpond.net.au>
4322 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
4323 O_logical_not>): Derive final_seg from add_symbol.
4324 <O_multiply..O_logical_or>: More final_seg twiddles.
4326 2002-04-01 Jessica Han <jessica@cup.hp.com>
4328 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
4331 2002-03-27 Andreas Schwab <schwab@suse.de>
4333 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
4334 field for pc-relative fixups.
4335 (output_disp): Likewise.
4336 (md_estimate_size_before_relax): Likewise.
4337 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
4338 pc-relative fixups in 64bit mode.
4340 2002-03-22 Alan Modra <amodra@bigpond.net.au>
4342 * config/te-aix5.h: Typo fix.
4344 2002-03-21 Alan Modra <amodra@bigpond.net.au>
4346 * Makefile.am: Run "make dep-am".
4347 * Makefile.in: Regenerate.
4348 * doc/Makefile.in: Regenerate.
4350 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
4352 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
4353 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
4355 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
4357 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
4358 the EXTENDED bit here; report the estimate according to the
4361 2002-03-18 Tom Rix <trix@redhat.com>
4363 * configure.in: Add AIX 5 support.
4364 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
4365 * config/te-aix5.h: New file. AIX 5 support.
4366 * configure: Regenerate.
4368 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
4370 * po/fr.po: Updated version.
4372 2002-03-16 Andreas Jaeger <aj@suse.de>
4374 * doc/c-mips.texi (Machine Dependencies): Add new node.
4376 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
4378 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
4379 (mips_opts): Initialize "ase_mips3d" member.
4380 (file_ase_mips3d): New variable.
4381 (CPU_HAS_MIPS3D): New macro.
4382 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
4383 based on command line options and configuration defaults.
4384 (macro_build, mips_ip): Accept MIPS-3D instructions if
4385 mips_opts.ase_mips3d is set.
4386 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
4387 Add support for "-mips3d" and "-no-mips3d" options.
4388 (OPTION_ELF_BASE): Move to accomodate new options.
4389 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
4390 (mips_elf_final_processing): Add a comment indicating that a
4391 MIPS-3D ASE ELF header flag should be set, when one exists.
4392 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
4393 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
4394 nomips3d" directives.
4396 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
4398 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
4399 a weak symbol in same section to be within reach.
4401 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
4403 * po/fr.po: Updated version.
4405 2002-03-12 Andreas Schwab <schwab@suse.de>
4407 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
4408 body record so that an error is given for misplaced .save
4411 2002-03-09 Alan Modra <amodra@bigpond.net.au>
4413 * config/tc-i386.h (REX_OPCODE): Define.
4414 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
4415 (rex_byte): typedef to int.
4416 * config/tc-i386.c: Group prototypes and vars together.
4417 Formatting fixes. Remove occurrences of "register" keyword.
4420 (mode_from_disp_size): Add INLINE keyword to prototype.
4421 (fits_in_signed_byte): Likewise.
4422 (fits_in_unsigned_byte): Likewise.
4423 (fits_in_unsigned_word): Likewise.
4424 (fits_in_signed_word): Likewise.
4425 (fits_in_unsigned_long): Likewise.
4426 (fits_in_signed_long): Likewise.
4427 (type_names): Constify.
4428 (intel_float_operand): Constify param.
4429 (add_prefix): Use REX_OPCODE.
4430 (md_assemble): Likewise. Modify for changed rex_byte.
4431 (parse_insn): Split out of md_assemble.
4432 (parse_operands): Likewise.
4433 (swap_operands): Likewise.
4434 (optimize_imm): Likewise.
4435 (optimize_disp): Likewise.
4436 (match_template): Likewise.
4437 (check_string): Likewise.
4438 (process_suffix): Likewise.
4439 (check_byte_reg): Likewise.
4440 (check_long_reg): Likewise.
4441 (check_qword_reg): Likewise.
4442 (check_word_reg): Likewise.
4443 (finalize_imm): Likewise.
4444 (process_operands): Likewise.
4445 (build_modrm_byte): Likewise.
4446 (output_insn): Likewise.
4447 (output_branch): Likewise.
4448 (output_jump): Likewise.
4449 (output_interseg_jump): Likewise.
4450 (output_disp): Likewise.
4451 (output_imm): Likewise.
4453 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
4455 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
4457 2002-03-06 Alan Modra <amodra@bigpond.net.au>
4459 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
4460 relocs except when BFD64.
4462 * write.c (number_to_chars_bigendian): Don't abort when N is
4463 larger than sizeof (VAL).
4464 (number_to_chars_littleendian): Likewise.
4466 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
4468 * config/tc-hppa.c (md_apply_fix3): Add cast.
4469 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
4472 2002-03-05 Paul Koning <pkoning@equallogic.com>
4474 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
4475 (parse_ac5): New function for parsing float regs in float operand.
4476 (parse_expression): Remove attempt to make literals be octal.
4477 (parse_op_no_deferred): Support float literals.
4478 (parse_op): Reject attempts to refer to float regs.
4479 (parse_fop): New function, like parse_op but for float operand.
4480 (md_assemble): Add cases to parse float operands. Also fix
4481 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
4483 2002-03-04 H.J. Lu <hjl@gnu.org>
4485 * config/obj-elf.c (special_section): Add .init_array,
4486 .fini_array and .preinit_array.
4488 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
4489 .init_array and .fini_array.
4491 2002-03-01 Jakub Jelinek <jakub@redhat.com>
4493 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
4495 (obj_frob_symbol): Copy visibility.
4497 2002-02-28 Jakub Jelinek <jakub@redhat.com>
4499 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
4501 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
4503 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
4505 * po/es.po: Updated.
4507 2002-02-26 Chris Demetriou <cgd@broadcom.com>
4509 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
4510 only, undo the changes made on 2001-06-08, with the
4511 effect being that common or extern symbols are
4512 adjusted for embedded-PIC, but weak symbols are not.
4513 (md_estimate_size_before_relax: Likewise, with the effect
4514 that extern symbols are treated the same as weak symbols
4515 only if not embedded-PIC.
4516 (mips_fix_adjustable) Likewise, with the effect that
4517 weak or extern symbols are not adjusted for embedded-PIC.
4518 (md_apply_fix3): Tweak so that the case where value is zero
4519 is handled more correctly for embedded-PIC code.
4521 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
4523 * doc/as.texinfo (Overview): Add missing @ifset IA64
4525 * configure.in (LINGUAS): Add es.po.
4526 * configure: Regenerate.
4527 * po/es.po: New file.
4529 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4531 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
4532 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
4533 and NO_PIC cases. Code cleanup.
4534 (macro2): Fix handling of 64bit register loads.
4536 2002-02-25 David Mosberger <davidm@hpl.hp.com>
4538 * doc/as.texinfo: Add entry for IA64.
4539 * doc/c-ia64.texi: New file.
4541 2002-02-25 Alan Modra <amodra@bigpond.net.au>
4543 * config/tc-hppa.c: Update copyright date.
4545 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
4546 Remove references to chip manufacturers.
4547 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
4549 (md_show_usage): Remove references to chip manufacturers. Mention
4551 (md_begin): Test power4 opcode flag bits.
4553 2002-02-22 David Mosberger <davidm@hpl.hp.com>
4555 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
4556 count exceeds prologue count.
4557 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
4558 (unwind.label_prologue_count): New member.
4560 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
4562 (get_saved_prologue_count): New function.
4563 (save_prologue_count): New function.
4564 (free_saved_prologue_count): New function.
4565 (dot_label_state): Record state label by calling save_prologue_count().
4566 (dot_copy_state): Restore prologue count by calling
4567 get_saved_prologue_count().
4568 (generate_unwind_image): Free up list of saved prologue
4569 counts by calling free_saved_prologue_counts().
4571 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
4573 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
4574 function declarations.
4576 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
4578 * NEWS: Note that GASP is now deprecated.
4579 * Makefile.am: Do not build gasp-new by default.
4580 * Makefile.in: Regenerate.
4581 * doc/Makefile.am: Do not install gasp.info.
4582 * doc/Makefile.in: Regenerate.
4583 * gas/gasp.texi: Note that gasp is now deprecated.
4585 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
4587 * NEWS: Mark 2.12 branch.
4589 2002-02-19 Tom Tromey <tromey@redhat.com>
4591 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
4593 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4595 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
4598 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
4600 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
4601 Make bit size independent of architecture switch.
4602 (md_begin): Add warning for -m64 with -Aesa.
4603 (s390_md_end): Use renamed architecture defines.
4605 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
4607 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
4609 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
4611 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
4614 2002-02-15 Chris Demetriou <cgd@broadcom.com>
4616 * config/tc-mips.c (md_estimate_size_before_relax): Really
4617 make sure we treat weak like extern only for ELF. (Fixes
4618 patch from 2001-07-25.)
4620 2002-02-15 Ben Elliston <bje@redhat.com>
4622 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
4625 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
4627 * NEWS: Mention support for MMIX.
4629 2002-02-13 Chris Demetriou <cgd@broadcom.com>
4631 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
4632 a sequence of indpendent 'if' statements for easier debugging
4633 and future modification.
4635 2002-02-13 Matt Fredette <fredette@netbsd.org>
4637 * config/tc-m68k.c (md_show_usage): No longer display a
4638 hard-coded "68020" for the default CPU, instead display the
4639 canonical name of the true, configured default CPU.
4640 (m68k_elf_final_processing): Mark objects for sub-68020
4641 CPUs with the new EF_M68000 flag.
4643 2002-02-13 Andreas Schwab <schwab@suse.de>
4645 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
4646 pc-relative relocations to merge sections in 64-bit mode.
4648 2002-02-13 Ben Elliston <bje@redhat.com>
4650 * NEWS: Document floating point number handling in gasp.
4651 * gasp.c: Include <assert.h> and "xregex.h".
4652 (is_flonum): New function.
4653 (chew_flownum): Likewise.
4654 (change_base): Consume flonums from the input, where possible.
4655 * doc/gasp.texi (Constants): Document floating point numbers.
4657 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
4659 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
4660 that implicitly use LR and RR selectors.
4662 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
4664 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
4665 and `epsw' as available on AM33 and above only.
4666 (other_register_name): Add logic to handle machine type encoded in
4669 2002-02-11 Tom Rix <trix@redhat.com>
4671 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
4674 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
4676 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
4679 2002-02-11 Jan Hubicka <jh@suse.cz>
4681 * i386.c (md_assemble): Support 32bit address prefix.
4682 (i386_displacement): Likewise.
4683 (i386_index_check): Accept 32bit addressing in 64bit mode.
4685 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
4687 * config/tc-sh.c (dot): Removed unused function.
4689 2002-02-11 Alan Modra <amodra@bigpond.net.au>
4691 * Makefile.am: "make dep-am".
4692 * Makefile.in: Regenerate.
4693 * aclocal.m4: Regenerate.
4694 * config.in: Regenerate.
4695 * configure: Regenerate.
4696 * doc/Makefile.in: Regenerate.
4698 2002-02-10 Richard Henderson <rth@redhat.com>
4700 * doc/c-alpha.texi: New file.
4701 * doc/Makefile.am (CPU_DOCS): Add it.
4702 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
4704 2002-02-09 Richard Henderson <rth@redhat.com>
4706 * config/tc-alpha.c (O_samegp): New.
4707 (USER_RELOC_P): Include it.
4708 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
4709 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
4710 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
4711 (alpha_validate_fix): New.
4712 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
4714 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
4716 * doc/c-cris.texi: New.
4717 * doc/all.texi: @set CRIS.
4718 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
4719 Include c-cris.texi.
4720 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
4721 * doc/Makefile.in: Regenerate.
4723 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4725 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
4726 determine if a number is a sign-extended 32-bit number.
4727 (load_register): Use IS_SEXT_32BIT_NUM.
4728 (macro): Check if load/store macro handling is using a
4729 constant 32-bit address on 64-bit address systems, and if
4730 so optimize the generation of that address.
4732 2002-02-08 Richard Henderson <rth@redhat.com>
4734 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
4735 we've eliminated all foreign relocation types yet.
4736 (alpha_fix_adjustable): Likewise.
4738 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4740 Contribute sh64-elf.
4741 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
4742 Stephen Clarke <Stephen.Clarke@st.com>
4743 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
4744 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
4745 * config/tc-sh.c (md_relax_table): Added default sizes for
4746 non-PC-relative UNDEF_MOVI, and relaxation sequences for
4747 MOVI_16, MOVI_32 and MOVI_48.
4748 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
4749 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
4751 (shmedia_md_estimate_size_before_relax): Remove redundant
4752 blocks. Set fragP->fr_var even if relaxation type unchanged.
4753 Retain UNDEF_MOVI until expression decays to number.
4754 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
4755 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
4756 relocation types. Take fixP->fx_addnumber into account too.
4757 (shmedia_md_apply_fix): Likewise.
4758 (shmedia_md_convert_frag): Likewise.
4759 (shmedia_build_Mytes): Likewise.
4760 (sh64_consume_datalabel): Complain about nested datalabel.
4761 Support PIC relocs. Call sh_parse_name.
4762 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
4763 in tc-sh.h to SHmedia reloc types.
4764 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
4765 MOVI_GOTPC): New relaxation constants.
4766 (md_relax_table): Introduce relaxation directives for PIC-related
4768 (sh_PIC_related_p): Handle datalabel.
4769 (sh_check_fixup): Choose SH5 PIC relocations.
4770 (sh_cons_fix_new): Added BDF_RELOC_64.
4771 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
4772 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
4773 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
4774 current ISA is SHmedia, get 7 bytes.
4775 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
4776 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
4778 * config/tc-sh64.c (shmedia_apply_fix): Rename to
4779 shmedia_apply_fix3 and make void.
4780 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
4781 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
4783 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
4784 * config/tc-sh64.h (md_parse_name): Take &c as argument.
4785 2001-03-14 DJ Delorie <dj@redhat.com>
4786 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
4787 * doc/Makefile.in(CPU_DOCS): Ditto.
4788 * doc/c-sh64.texi: New file.
4789 * doc/as.texinfo: Add SH64 support.
4790 2001-03-13 DJ Delorie <dj@redhat.com>
4791 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
4792 A_REUSE_PREV so that its purpose is more obvious.
4793 (shmedia_build_Mytes): Ditto.
4794 2001-03-07 DJ Delorie <dj@redhat.com>
4795 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
4797 (sh64_vtable_inherit): Ditto.
4798 (strip_datalabels): New, strip "datalabel" from given line.
4799 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
4801 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
4802 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
4804 (shmedia_build_Mytes): ... to here.
4805 2001-03-06 DJ Delorie <dj@redhat.com>
4806 * config/tc-sh.c: Remove sh64-specific uaquad now that there
4808 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
4809 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
4810 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
4811 address by one in call to dwarf2_emit_insn.
4812 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
4813 Implement ".abi" pseudo and correct .cranges descriptors. Correct
4814 alignment handling broken by imported changes.
4815 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
4816 (sh64_handle_align): Declare.
4817 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
4818 (sh64_max_mem_for_rs_align_code): Declare.
4819 (enum sh64_isa_values): Moved here from tc-sh64.c.
4820 (md_do_align): Define.
4821 (sh64_do_align): Declare.
4822 (struct sh64_tc_frag_data): New.
4823 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
4825 (TC_FRAG_INIT): Change to set new datatype.
4826 (struct sh64_segment_info_type): Rename member
4827 last_flushed_location to last_contents_mark. All users changed.
4828 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
4829 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
4830 * config/tc-sh.c (md_pseudo_table): Add ".abi".
4831 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
4832 of unsetting seen_insn.
4833 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
4834 call sh64_update_contents_mark.
4835 (sh_handle_align): Remove HAVE_SH64-conditioned code.
4836 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
4837 enum sh64_isa_values.
4838 (sh64_set_contents_type): Drop segT parameter. All callers changed.
4839 (emitting_crange): Boolean guard moved to file scope from function
4840 scope in sh64_set_contents_type.
4842 (sh64_update_contents_mark): New; most split out from
4843 sh64_flush_pending_output.
4844 (shmedia_md_end): Call sh64_update_contents_mark. Set
4845 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
4846 (sh64_do_align): New function.
4847 (sh64_max_mem_for_rs_align_code): New function.
4848 (sh64_handle_align): Rename from shmedia_do_align. Make
4849 non-static. Add head comment. Emit zero bytes for n bytes modulo
4850 four. Change return-type to void.
4851 (shmedia_elf_new_section): Remove.
4852 (shmedia_md_assemble): Call sh64_update_contents_mark.
4853 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
4854 new frag. Call sh64_update_contents_mark after making the new
4856 (sh64_flush_pending_output): Just call sh64_update_contents_mark
4857 and sh_flush_pending_output.
4858 (sh64_flag_output): Also call md_flush_pending_output, but add
4859 condition on not emitting_crange.
4860 (sh64_tc_cons_fix_new): Remove.
4861 2001-01-12 Nick Clifton <nickc@redhat.com>
4862 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
4863 alignment handling scheme imported from sourceware.
4864 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
4865 * config/tc-sh64.h (TARGET_FORMAT): Define.
4866 (sh64_target_format): Prototype.
4867 * config/tc-sh64.c (sh64_target_mach): New function.
4868 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
4869 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
4870 zero_address_frag instead of copying the frag of the symbol.
4871 (shmedia_frob_file_before_adjust): Ditto.
4872 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
4873 to valueT to remove signedness.
4874 (shmedia_md_convert_frag): Add parameter final. Rename parameter
4875 headers to output_bfd. Do not evaluate symbols if final is false;
4877 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
4878 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
4879 to the current frag, call shmedia_md_convert_frag to emit fixups
4880 and make frag_wane neutralize the frag. Update comments.
4881 * config/tc-sh.c (md_convert_frag): Change caller of
4882 shmedia_md_convert_frag.
4883 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
4884 * config/tc-sh64.h: Tweak comments and correct formatting.
4885 * config/tc-sh64.c: Ditto.
4886 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
4887 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
4888 for the no-relocation case.
4889 (shmedia_check_limits): Fix range check being off-by-one for PTA.
4890 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
4892 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
4894 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
4895 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
4897 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
4899 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
4900 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
4901 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
4902 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
4903 al>: Set lowest bit of field to relocate to 1 and rest to empty,
4904 if reloc is emitted.
4905 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4906 New options plus bugfixes.
4907 * config/tc-sh.c (md_longopts): New options "-no-expand" and
4909 (md_parse_option): Handle new options.
4910 (md_show_usage): Add blurb for new options.
4911 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
4912 (sh64_expand, sh64_pt32): New variables.
4913 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
4914 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
4915 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
4916 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
4917 <resolved previously-pc-relative relocs>: Handle
4918 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
4919 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
4920 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
4921 points to SHcompact code.
4922 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
4923 SH64PCREL16)>: Check that ISA of what operand points at and
4924 PTA/PTB matches, or emit error.
4925 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
4926 SHMEDIA_BFD_RELOC_PT.
4927 (shmedia_immediate_op): If pcrel, emit fixup also for constant
4929 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
4930 condition for MOVI expansion.
4931 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
4932 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
4934 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
4936 (sh64_target_format): Error-check setting of sh64_pt32 and
4937 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
4938 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
4939 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
4940 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
4941 * config/tc-sh64.c: Improve comments.
4942 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
4943 not say the linker will check correctness of PTA/PTB expansion.
4944 (shmedia_md_end): Make non-static.
4945 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
4947 * config/tc-sh.c (sh_finalize): Remove.
4948 * config/tc-sh.h (md_end): Do not define.
4949 Remove prototype for sh_finalize.
4950 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
4951 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
4952 sh64_section_data container when storing section type in tdata
4953 field in elf_section_data.
4954 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
4956 * Makefile.am: Update dependencies.
4957 * Makefile.in: Regenerate.
4958 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
4959 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
4960 dwarf2_emit_insn call with test on debug_type.
4961 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
4962 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
4963 CRT_SH5_ISA32 sticky for 64-bit.
4964 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
4965 Generate .crange sections when switching ISA mode or emitting
4966 constants in same section as code.
4967 * config/tc-sh64.c: Reformat structure definitions.
4968 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
4970 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
4971 to emit a .cranges descriptor when contents type changes. Only
4972 emit error if changing contents type and -no-mix is in effect.
4973 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
4974 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
4975 (shmedia_md_end): Set sh64_end_of_assembly. Pass
4976 sh64_flush_last_crange over sections.
4977 When checking main symbol of datalabel symbol, check for
4978 STO_SH5_ISA32, not ISA type of section in definition.
4979 (shmedia_frob_file_before_adjust): Check main symbol for
4980 STO_SH5_ISA32; don't check ISA type of section in definition.
4981 (shmedia_frob_section_type): Adjust for .cranges; set section flag
4982 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
4983 .cranges entries have been output.
4984 (shmedia_elf_new_section): Just call md_flush_pending_output.
4985 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
4986 fix. Do not set tc_segment_info_data.in_code for section. Call
4987 sh64_set_contents_type for SHmedia code.
4988 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
4989 false. Call md_flush_pending_output.
4990 (sh64_target_format): Check that -no-mix and
4991 -shcompact-const-crange are used in sane combination with other
4993 (shmedia_md_pcrel_from_section): Check type of fix for how to
4995 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
4996 not ISA type of section in definition.
4997 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
4998 hold contents-type state.
4999 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
5000 (sh64_flush_pending_output): Declare.
5001 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
5002 (sh64_tc_cons_fix_new): Declare.
5003 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
5004 call sh64_flag_output.
5005 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
5006 call sh64_set_contents_type to mark SHcompact code and set
5008 (md_longopts): New options "-no-mix" and
5009 "-shcompact-const-crange".
5010 (md_parse_option): Handle new options.
5011 (md_show_usage): Add blurb for new options.
5012 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
5013 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
5014 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
5015 (sh64_last_insn_frag): New.
5016 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
5017 to get frag for insn opcode for generating fixups; do not assume it
5019 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
5021 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
5023 (TC_FRAG_TYPE): Define as fragS *.
5024 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
5025 (sh64_last_insn_frag): Declare.
5026 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
5027 not == NULL before dereferencing.
5028 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
5029 Get rid of BFD section flag and EF_SH64_ABI64.
5030 * config/tc-sh64.c (shmedia_frob_section_type): Use
5031 elf_section_data (sec)->tdata, not a specific BFD section flag, to
5032 communicate the section as containing SHmedia code. Describe why.
5033 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
5034 EF_SH64 regardless of ABI.
5035 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
5036 in error message. Handle resolved expressions for
5037 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
5038 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
5039 (shmedia_check_limits): Handle BFD_RELOC_64.
5040 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
5041 a STO_SH5_ISA32 symbol, only the BFD value.
5042 2000-12-11 Ben Elliston <bje@redhat.com>
5043 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
5044 dwarf2_generate_asm_lineno.
5045 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
5046 Handle PC-relative MOVI expansions with assembler relaxation.
5047 Generate PC-relative relocs from 16-bit PC-relative expressions.
5048 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
5049 (shmedia_md_pcrel_from_section): ...here.
5050 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
5051 turned completely resolved. Adjust relocation type for 16-bit
5052 immediate operands that has turned PC-relative. Adjust back for
5053 MD_PCREL_FROM_SECTION being applied twice.
5054 (shmedia_md_convert_frag): Always emit reloc for expression with
5055 global or weak symbol. Handle relaxation result for PC-relative
5057 (shmedia_md_estimate_size_before_relax): An expression with a weak
5058 or global symbol can not be relaxed. Break out tests for
5059 relaxable symbol into variable sym_relaxable.
5060 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
5061 UNDEF_MOVI)>: Break out any PC-relative expression and change
5063 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
5065 <case A_IMMS16>: Fix typo for initial minor relaxation type of
5066 MOVI expansion. If X_op_symbol of the immediate expression is
5067 set, make an expression symbol for the argument to frag_var.
5068 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
5070 (END): Adjust for new relaxations.
5071 (md_relax_table): Add entries for new relaxations.
5072 2000-12-07 Ben Elliston <bje@redhat.com>
5073 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
5074 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
5075 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
5076 SHORI operand offsets in PT/PTA/PTB expansions.
5077 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
5078 Implement DataLabel semantics.
5079 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
5080 shmedia_frob_file_before_adjust.
5081 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
5082 (DATALABEL_SUFFIX): Define.
5083 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
5084 symbol list to update "datalabel" symbols to their main symbol
5086 (shmedia_frob_file_before_adjust): New.
5087 (sh64_adjust_symtab): For remaining datalabel symbols, set to
5088 undefined and set STT_DATALABEL.
5089 (sh64_frob_label): Initialize TC symbol field.
5090 (sh64_consume_datalabel): Actually implement semantics. New
5091 parameter operandf, call it instead of expression.
5092 (sh64_exclude_symbol): New.
5093 * config/tc-sh64.h (md_parse_name): Pass on the function operand
5094 to sh64_consume_datalabel.
5095 (tc_symbol_new_hook): Define to tc_frob_symbol.
5096 (TC_SYMFIELD_TYPE): Define to symbolS *.
5097 (tc_frob_symbol): Define to call sh64_exclude_symbol.
5098 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
5099 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
5101 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
5102 generating dwarf2 debug information.
5103 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
5104 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
5105 elf64-sh64 for the 64-bit ABI.
5106 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
5108 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
5109 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
5111 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
5112 * config/tc-sh64.c: Tweak comments, formatting and error messages.
5113 (enum sh64_abi_values): New type.
5114 (enum sh64_isa_values): New type.
5115 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
5116 (seen_shcompact_mode, seen_shmedia_mode): Delete.
5117 (sh64_abi): Replace shmedia_64.
5118 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
5119 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
5120 (s_sh64_mode): Check validity for this target.
5121 (sh64_target_format): Initialize defaults for ISA and ABI.
5122 Fallback to old object format if no SH64 ISA or ABI has been
5124 * config/tc-sh.c (md_parse_option): Check combinations for errors.
5125 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
5126 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
5127 * config/tc-sh64.h: Fix typo in comment.
5128 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
5129 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
5130 <PT fixups for absolute values>: Size will be longest, not
5132 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
5133 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
5134 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
5135 and l1 to hold lowercase of two first characters. Change all
5136 remaining TO_LOWER to tolower.
5137 * config/tc-sh64.c (TO_LOWER): Delete.
5138 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
5139 (md_parse_name): Define.
5140 (sh64_consume_datalabel): Declare.
5141 (DOLLAR_DOT): Define.
5142 * config/tc-sh64.c (shmedia_parse_exp): New.
5143 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
5144 (shmedia_parse_reg): Remove const from src
5146 (shmedia_get_operands): Ditto for args parameter and ptr variable.
5147 (shmedia_md_assemble): Ditto for op_end variable.
5148 (shmedia_get_operand): Ditto for ptr parameter and src variable.
5149 Use shmedia_parse_exp, not parse_exp.
5150 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
5151 parameter. All callers changed.
5152 (shmedia_get_operand): Add shmedia_arg_type parameter. All
5154 (shmedia_parse_reg): Put first two character in local variables.
5155 Use tolower, not TO_LOWER. If no register is found and argtype
5156 indicates a control register, scan shmedia_creg_table
5158 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
5159 * Makefile.am (CPU_TYPES): Add sh64.
5160 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
5161 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
5162 Regenerate dependencies.
5163 * Makefile.in: Regenerate.
5164 * configure.in: Add support for sh64-*-elf*.
5165 * configure: Regenerate.
5166 * config/tc-sh64.h: New.
5167 * config/tc-sh64.c: New.
5168 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
5169 .mode, .isa and .uaquad.
5170 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
5171 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
5172 [HAVE_SH64] (END): Define as 10.
5173 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
5174 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
5176 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
5177 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
5178 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
5179 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
5181 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
5182 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
5183 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
5184 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
5185 SHmedia instructions. Handle state-change after switching to
5187 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
5188 (md_parse_option) [HAVE_SH64]: Parse new options.
5189 (md_show_usage) [HAVE_SH64]: Show usage of new options.
5190 (md_convert_frag) [HAVE_SH64] <default>: Call
5191 shmedia_md_convert_frag instead of abort.
5192 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
5193 BFD_RELOC_SH_SHMEDIA_CODE.
5194 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
5195 SHcompact or SHmedia code.
5196 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
5197 shmedia_md_apply_fix instead of abort.
5198 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
5199 result from calling shmedia_md_estimate_size_before_relax instead
5201 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
5203 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
5204 shmedia_init_reloc and do nothing more if it returns non-zero.
5205 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
5206 * po/POTFILES.in: Regenerate.
5207 * po/gas.pot: Regenerate.
5209 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
5211 * config/tc-sh.c (parse_at): Install the correct version of
5214 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
5215 assume fixP->fx_subsy is non-NULL.
5217 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
5219 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
5220 A_DISP_PC_ABS, and adjust it by -4.
5221 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
5223 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
5224 the operand type is not A_DISP_PC_ABS.
5226 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
5228 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
5229 common and weak symbols. Handle common and weak symbols as
5230 undefined symbols with regards to GREG handling and merging.
5231 (mmix_frob_file): Ditto.
5233 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
5235 * configure.in (hppa-*-netbsd*): New target.
5236 * configure: Regenerate.
5237 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
5239 2002-02-02 Alan Modra <amodra@bigpond.net.au>
5241 * config/tc-v850.c: Add missing prototypes amd use old-style
5242 function definitions.
5243 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
5244 (sdata_section tdata_section, zdata_section, sbss_section,
5245 tbss_section, zbss_section, rosdata_section, rozdata_section,
5246 scommon_section, tcommon_section, zcommon_section,
5247 call_table_data_section, call_table_text_section): Delete.
5248 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
5249 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
5250 v850_call_table_data, v850_call_table_text): Delete.
5251 (struct v850_seg_entry): New.
5252 (v850_seg_table): New.
5253 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
5254 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
5255 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
5256 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
5259 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
5260 recording of alignment.
5261 (md_pseudo_table): Use v850_seg.
5262 (md_begin): Don't init .call_table_data and .call_table_text here.
5263 Set v850_seg_table bss entry.
5265 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
5267 Support on-demand global register allocation by passing on
5268 base-plus-offset relocs to the linker.
5269 * config/tc-mmix.c: Tweak and fix typos in comments.
5270 (allocate_undefined_gregs_in_linker): New variable.
5271 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
5272 (md_longopts): Add --linker-allocated-gregs.
5273 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
5274 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
5275 (md_show_usage): Update text for -x. Add text for
5276 --linker-allocated-gregs.
5277 (tc_gen_reloc): Derive default value for addend from val and
5278 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
5279 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
5280 GREG if allocate_undefined_gregs_in_linker.
5281 * doc/as.texinfo (Overview) <Target MMIX options>: Add
5282 --linker-allocated-gregs.
5283 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
5284 --linker-allocated-gregs. Mention that it's implied by -x.
5285 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
5286 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
5288 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
5290 2002-02-01 Alan Modra <amodra@bigpond.net.au>
5292 * Makefile.am: Run "make dep-am"
5293 * Makefile.in: Regenerate.
5295 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
5297 * config/tc-or32.c: New file.
5298 * config/tc-or32.h: New file.
5299 * configure.in: Add support for or32 targets.
5300 * configure: Regenerate.
5301 * config/obj-coff.c: Add support for or32 targets.
5302 * config/obj-coff.h: Add support for or32 targets.
5303 * Makefile.am: Add support for or32 targets.
5304 * Makefile.in: Regenerate.
5305 * NEWS: Mention support for OpenRISC.
5306 * doc/Makefile.in: Regenerate.
5307 * po/POTFILES.in: Regenerate.
5308 * po/gas.pot: Regenerate.
5310 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
5312 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
5315 2002-01-29 Chris Demetriou <cgd@broadcom.com>
5317 * config/tc-mips.c (tc_gen_reloc): Arrange for
5318 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
5319 their LO16 parts, even for ELF.
5321 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
5323 * config/tc-i386.c: Protect definitions of true and false
5326 2002-01-28 Jakub Jelinek <jakub@redhat.com>
5328 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
5329 made because of .weak, if they are neither defined nor used in any
5332 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
5334 * configure: Regenerated.
5336 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
5338 * doc/Makefile.am (install): Depend on install-info.
5339 * doc/Makefile.in: Regenerate.
5341 2002-01-26 Nick Clifton <nick@redhat.com>
5343 * po/fr.po: Updated version
5345 2002-01-24 Kazu Hirata <kazu@hxi.com>
5347 * config/tc-h8300.c (check_operand): Don't print a warning
5348 when a valid 24-bit address is given to a 16-bit address
5351 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5353 * config/tc-sh.c (sh_elf_suffix): Removed.
5354 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
5355 sh_end_of_match, sh_parse_name): New functions.
5356 (sh_elf_cons): Simplify.
5357 (parse_exp): Reject misplaced PIC operands.
5358 (md_undefined_symbol): Simplify.
5359 (sh_fix_adjustable): Let @GOTOFF be adjusted.
5360 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
5361 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
5362 Complain if subsy remains at the end.
5363 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
5364 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
5366 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
5368 * config/tc-mn10300.c (xr_registers): Move `pc'...
5369 (other_registers): ... here.
5371 2002-01-22 Alan Modra <amodra@bigpond.net.au>
5373 * Makefile.am: Run "make dep-am".
5374 * Makefile.in: Regenerate.
5375 * gas/po/POTFILES.in: Regenerate.
5377 2002-01-21 DJ Delorie <dj@redhat.com>
5379 * config/obj-coff.c (obj_coff_init_stab_section): Make the
5380 stabstr_name allocation permanent, as it will be referenced from
5383 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
5385 * configure.in (ia64-*-netbsd*): New target.
5386 * configure: Regenerate.
5388 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5390 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
5392 <Detailed description, ARM options>: Ditto.
5393 * doc/c-arm.texi (ARM Options): Ditto.
5395 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5397 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
5398 do_mia, do_mar and do_mra respectively.
5399 (do_mav_*): Renamed from do_c_*.
5400 (mav_reg_required_here, mav_parse_offset): Renamed from
5401 cirrus_reg_required_here and cirrus_parse_offset respectively.
5402 (MAV_MODE?): Renamed from CIRRUS_MODE?.
5404 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5405 Keith Walker <keith.walker@arm.com>
5407 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
5408 (insns): Add pattern for bxj instruction.
5409 (do_bxj): New function.
5410 (arm_cpus): Add arm926ej.
5411 (arm_archs): Add armv5tej.
5413 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5415 * doc/c-arm.texi: Add new fpe options to list of supported flags.
5417 2002-01-19 Keith Walker <keith.walker@arm.com>
5419 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
5421 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
5423 * NEWS: Mention new ARM command-line options and VFP support.
5425 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
5427 (ARM_CEXT_MAVERICK): Similarly.
5428 (ARM_ANY): Now means any core instruction.
5429 (CPU_DEFAULT): Default to ARM_ANY.
5430 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
5431 (pic_code): Declare for all object types. Make type int.
5432 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
5433 (march_fpu_opt, mfpu_opt): Declare.
5434 (md_longopts): Tidy up conditional definitions.
5435 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
5436 (arm_long_opts): New tables.
5437 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
5438 (arm_parse_extension): New function.
5439 (md_parse_option): Rewrite using new table-driven system.
5440 (md_show_usage): Use new table-driven system.
5441 (md_begin): Calculate cpu_variant from command line option data.
5442 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
5443 command-line options.
5444 * doc/c-arm.texi: Likewise.
5446 2002-01-18 Andreas Jaeger <aj@suse.de>
5448 * as.c (parse_args): Update year.
5450 2002-01-17 Timothy Wall <twall@alum.mit.edu>
5452 * config/tc-tic54x.c (encode_address): Add a more informative
5453 warning about incorrect syntax.
5455 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5457 * po/gas.pot: Regenerate.
5459 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
5461 * macro.c (get_any_string): Add no-c-format comment to prevent
5462 confusion when translating string.
5463 * gasp.c (get_any_string): Add no-c-format comment to prevent
5464 confusion when translating string.
5466 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5467 Johannes Stezenbach <js@convergence.de>
5468 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
5469 matched before the shorter ones.
5470 (my_getSmallParser): Fix handling of nested parentheses in
5471 percent_op's. Code cleanup.
5472 (my_getPercentOp): New function, code from my_getSmallParser.
5473 (my_getSmallExpression): Fix handling of closing parentheses.
5474 Code cleanup. Better comments.
5476 2002-01-16 Nick Clifton <nickc@redhat.com>
5478 po/tr.po: New file: Turkish translation.
5479 configure.in (LINGUAS): Add "tr".
5480 configure: Regenerate.
5482 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5484 Support for VFP instructions
5485 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
5486 (cp_address_required_here): New argument wb_ok. When false, do not
5487 accept write-back forms of addressing. Change all callers.
5488 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
5489 (FPU_VFP_EXT_V2): Define.
5490 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
5491 Define in terms of above.
5492 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
5493 (vfp_reg): New struct.
5494 (vfp_regs): New array of registers.
5495 (insns): Add VFP instructions.
5496 (sn_table): New array of VFP single-precision register names.
5497 (dn_table): New array of VFP double-precision register names.
5498 (all_reg_maps): Add the new register tables.
5499 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
5500 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
5501 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
5502 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
5503 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
5504 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
5505 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
5506 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
5507 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
5508 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
5509 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
5510 (do_vfp_sp_dp_cvt): New functions.
5511 (md_begin): Set soft-float flag for appropriate VFP work.
5512 (md_atof): Handle VFP-format doubles.
5513 (md_parse_option): Handle VFP command-line options.
5514 (md_show_usage): Display VFP command-line options.
5516 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
5518 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
5519 various command line options.
5521 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
5523 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
5525 (xstormy16_md_apply_fix3): Do not return a value.
5527 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5529 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
5530 the -EL/-EB option that matches the target's endianness.
5531 (md_parse_option): Likewise.
5533 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5535 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
5536 is not dependent on ARM_BI_ENDIAN.
5538 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
5540 * tc-arm.c (all error messages): Normalize capitalization of messages.
5542 * tc-arm.h (md_operand): Delete define.
5543 * tc-arm.c (in_my_get_expression): New static variable.
5544 (my_get_expression): Set and clear it.
5545 (md_operand): New function. If called from my_get_expression
5546 put the error in inst.error.
5547 (output_inst): Now takes argument of instruction being assembled.
5548 Print it out with any error message.
5549 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
5551 (end_of_line): Don't update inst.error if it is already set.
5553 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5555 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
5556 op that can be translated into a mvn instruction.
5558 2002-01-11 Steve Ellcey <sje@cup.hp.com>
5560 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
5561 setting default md.flags.
5562 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
5563 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
5564 * gas/config/tc-ia64.c (setup_unwind_header): Add support
5565 for 32 bit unwind info blocks.
5566 (generate_unwind_image): Add support for different types
5567 of unwind images (32 bits and/or big-endian).
5568 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
5569 (ia64_target_format): Add support for hpux target formats.
5570 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
5571 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
5572 SHT_FINI_ARRAY elf section types.
5574 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
5576 * tc-arm.c (struct reg_entry): Move before prototypes.
5577 (int_register, cp_register, fp_register): Delete.
5578 (reg_table): Delete. Replaced with ...
5579 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
5580 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
5581 (mav_dspsc_table): ... one table per register set.
5582 (arm_reg_hsh): Delete.
5583 (struct reg_map): New structure.
5584 (all_reg_maps): New array.
5585 (enum arm_reg_type): New enums.
5586 (build_reg_hsh): New function.
5587 (insert_reg_alias): Use hash table passed by caller. Adjust all
5589 (create_register_alias): New function, split out from ...
5590 (md_assemble): ... here.
5591 (md_begin): Build new register hash tables.
5592 (arm_reg_parse): New argument for the hash table to search. Adjust all
5594 (arm_reg_parse_any): New function.
5595 (co_proc_number): Look up the processor number in the processor hash
5597 (cirrus_regtype): Delete.
5598 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
5599 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
5600 (ARM_EXT_MAVERICKsc_register): Delete.
5601 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
5602 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
5604 (do_c_triple_4, do_c_triple_5): Delete.
5605 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
5606 (do_c_quad_6): Delete.
5607 (do_c_quad_6[ab]): New functions.
5608 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
5609 arguments to use new register parsing methods.
5610 (cirrus_reg_required_here): Likewise.
5611 (insns): Reclassify cirrus maverick worker functions.
5612 (cirrus_valid_reg): Delete.
5614 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
5616 * configure.in (sh*le): Set cpu_type=sh and endian=little.
5617 (sh*-*-netbsdelf*): New target.
5618 * configure: Regenerate.
5619 * tc-sh.h: Update copyright years.
5620 (TARGET_FORMAT): Add version for TE_NetBSD.
5622 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
5624 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
5627 2002-01-06 Alan Modra <amodra@bigpond.net.au>
5629 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
5630 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
5632 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
5634 * tc-mips.c (mips_cprestore_valid): New flag.
5635 (mips_frame_reg_valid): New flag.
5636 (macro) [M_JAL_2]: Check both flags.
5637 [M_JAL_A]: Likewise.
5638 (s_cprestore): Set mips_cprestore_valid.
5639 (tc_get_register): If setting mips_frame_reg, set
5640 mips_frame_reg_valid and clear mips_cprestore_valid.
5641 (s_mips_ent): Clear both flags.
5642 (s_mips_end): Clear both flags.
5644 2002-01-05 Alan Modra <amodra@bigpond.net.au>
5646 * write.c (write_object_file): Make use of bfd_section_list_remove.
5647 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
5648 * config/tc-mmix.c (mmix_frob_file): Likewise.
5650 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
5652 * configure.in (i386-*-netbsdelf*): Collapse target into...
5653 (i386-*-netbsd*): ...this. Add support for x86-64.
5654 * configure: Regenerated.
5656 2002-01-03 matthew green <mrg@redhat.com>
5658 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
5660 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
5662 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
5665 For older changes see ChangeLog-0001
5671 version-control: never