1 2003-12-19 Nick Clifton <nickc@redhat.com>
2 Andreas Schwab <schwab@suse.de>
4 * messages.c (as_perror): Save errno around library calls.
5 * input-file.c [BFD_ASSEMBLER]: Set the BFD error to
6 bfd_error_system_call before each call to as_perror.
7 (input_file_open): Simplify the error reporting code to just use
9 * output-file.c (output_file_create) [BFD_ASSEMBLER]: Set the BFD
10 error to bfd_error_system_call before calling as_perror.
11 (output_file_close) [BFD_ASSEMBLER]: Likewise.
12 (output_file_append) [BFD_ASSEMBLER]: Likewise.
13 * listing.c (listing_print) [BFD_ASSEMBLER]: Likewise.
15 2003-12-19 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
17 Add m32r-linux and PIC support. Add new ABI that uses RELA.
18 * configure.in: Add m32r-linux targets.
19 * configure: Regenerate.
20 * config/tc-m32r.c (md_parse_option): Add -KPIC option.
21 (tc_gen_reloc): Added.
22 (debug_sym, md_estimate_size_before_relax, md_convert_frag,
23 md_pcrel_from_section, m32r_fix_adjustable): Changed for PIC.
24 * config/tc-m32r.h (tc_gen_reloc, EXTERN_FORCE_RELOC): Undefined.
25 (TC_HANDLES_FX_DONE, TC_FIX_ADJUSTABLE, TC_RELOC_RTSYM_LOC_FIXUP):
27 * doc/c-m32r.texi: Document -KPIC option.
28 * NEWS: Mention the support m32r Linux and PIC.
30 2003-12-18 Nick Clifton <nickc@redhat.com>
32 * input-file.c (input_file_open): Remove call to stat().
33 Add a check for getc() failing, and catch the case where the
34 failure is due to an attempt to read a directory.
36 2003-12-18 Richard Sandiford <rsandifo@redhat.com>
38 * config/tc-mips.c (mips_need_elf_addend_fixup): Delete.
39 (md_apply_fix3): Remove bfd_install_relocation workarounds.
40 (tc_gen_reloc): Likewise. Factor handling of pc-relative relocations
41 and treat fx_addnumber as relative to the relocation address.
43 2003-12-18 Richard Sandiford <rsandifo@redhat.com>
45 * config/tc-mips.c (s_change_section): When parsing the MIPS-specific
46 .section syntax, map SHT_MIPS_DWARF to SHT_PROGBITS.
48 2003-12-17 Mark Mitchell <mark@codesourcery.com>
50 * config/tc-arm.c (arm_archs): Change "armv6" to "armv6j".
51 * doc/c-arm.texi (ARM Options): Likewise.
53 2003-12-17 Nick Clifton <nickc@redhat.com>
55 * config/tc-m32r.c (error_explicit_parallel_conflicts): Rename
56 to 'ignore_parallel_conflicts'.
57 (md_longopts): Change option names as well.
58 (md_parse_option): Separate the warn_explicit and ignore
59 parallel conflicts options.
60 (md_show_usage): Update descriptions of these options.
61 (first_writes_to_seconds_operands): Do not run this check if
62 ignoring parallel conflicts.
63 (assemble_two_insns): Remove code that checked
64 error_explicit_parallel_conflicts.
65 * doc/c-m32r.texi: Update descriptions of the options.
67 2003-12-16 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
69 * tc-arm.c (do_adr): Do not adjust pc by -8 if TE_WINCE is
73 2003-12-15 Christian Groessler <chris@groessler.org>
75 * config/tc-z8k.c (struct z8k_exp): Remove, not used anywhere.
76 (ctrl_table): Add "flags" keyword and some comments.
77 (flag_table): Convert to uppercase.
78 (get_flags_operand): Be case insensitive.
79 (get_interrupt_operand): Be case insensitive. Support notation
80 where the inperrupt arguments are separated by commas.
81 (get_operands): Check whether get_flags_operand consumed all
82 arguments. Return failure if get_ctrl_operand didn't recognize a
83 valid control register.
84 (get_specific): Add case CLASS_CTRL: Test for valid control
85 register for ldctlb opcode.
86 (build_bytes): Check for valid control registers.
88 2003-12-15 Nick Clifton <nickc@redhat.com>
90 * config/obj-aout.c (obj_crawl_symbol_chain): Skip defined
91 symbols which resolve to symbolic values.
93 2003-12-13 Alan Modra <amodra@bigpond.net.au>
95 * config/obj-elf.c: Convert to C90, remove unneeded prototypes and
97 * config/obj-elf.h: Remove PARAMS.
99 * read.c (s_lcomm_internal): Make global.
100 * read.h (s_lcomm_internal): Declare.
101 * config/obj-elf.c (elf_pseudo_table): Handle lcomm.
102 (obj_elf_lcomm): New function.
104 2003-12-13 Alan Modra <amodra@bigpond.net.au>
106 * read.c: Remove unneeded prototypes.
107 (s_comm): Split out code to..
108 (s_comm_internal): ..here. Tidy error returns. Rearrange so that
109 "name" from input line may be used in more places. Merge code
110 testing for valid size from elf_common. Merge code from
111 s_lcomm_internal. Call comm_parse_extra.
112 (bss_alloc): New function, split out of s_lcomm_internal and
114 (parse_align): Likewise.
115 (s_lcomm_internal): Rewrite.
116 (s_lcomm, s_lcomm_bytes): Use s_comm_internal.
117 * read.h (bss_alloc, parse_align, s_comm_internal): Declare.
118 * config/obj-elf.c (elf_common): Split out code to..
119 (elf_common_parse): ..here. Remove code common to s_comm_internal,
120 parse_align and bss_alloc. Rearrange and Tidy.
121 * config/tc-alpha.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Define.
123 2003-12-10 Zack Weinberg <zack@codesourcery.com>
125 * tc-ppc.c (md_assemble): Rewrite comment about optional operands
126 to indicate that 'all or none' is also handled. Pluralize a
127 word in another comment.
129 2003-12-10 Paul Brook <paul@codesourcery.com>
131 * config/tc-arm.c (FPU_MAVERICK): Define.
132 (FPU_ARCH_MAVERICK): Define.
133 (arm_float_abi): Define.
134 (mfloat_abi_opt): New variable.
135 (md_begin): Use them.
136 (arm_opts): Add msoft-float and mhard-float.
137 (arm_cpus): Use FPU_ARCH_MAVERICK.
138 (arm_fpus): Add maverick.
139 (arm_float_abis): Add.
140 (arm_parse_float_abi): New function.
141 (arm_long_options): Add mfloat-abi.
142 * doc/as.texinfo: Document -mfloat-abi=.
143 * doc/c-arm.text: Ditto. Menution -fpu=maverick.
145 2003-12-09 Paul Brook <paul@codesourcery.com>
147 * config/tc-arm.c (do_umaal): Fix typo.
149 2003-12-06 Kazu Hirata <kazu@cs.umass.edu>
151 * dwarf2dbg.c: Convert to ISO-C.
155 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
157 * config/tc-mips.c (macro): Switch misordered call to frag_grow()
158 and setting of tc_fr_offset.
160 2003-12-05 Ricardo Anguiano <anguiano@codesourcery.com>
161 Mark Mitchell <mark@codesourcery.com>
162 Richard Earnshaw <rearnsha@arm.com>
165 * config/tc-arm.c (ARM_EXT_V6): New macro.
166 (ARM_ARCH_V6): Likewise.
167 (SHIFT_IMMEDIATE): Likewise.
168 (SHIFT_LSL_OR_ASR_IMMEDIATE): Likewise.
169 (SHIFT_ASR_IMMEDIATE): Likewise.
170 (SHIFT_LSL_IMMMEDIATE): Likewise.
171 (do_cps): New function.
173 (do_ldrex): Likewise.
174 (do_pkhbt): Likewise.
175 (do_pkhtb): Likewise.
176 (do_qadd16): Likewise.
179 (do_sxtah): Likewise.
181 (do_setend): Likewise.
182 (do_smlad): Likewise.
183 (do_smlald): Likewise.
184 (do_smmul): Likewise.
188 (do_ssat16): Likewise.
189 (do_usat16): Likewise.
190 (do_strex): Likewise.
191 (do_umaal): Likewise.
192 (do_cps_mode): Likewise.
193 (do_cps_flags): Likewise.
194 (do_endian_specifier): Likewise.
195 (do_pkh_core): Likewise.
197 (do_sat16): Likewise.
198 (insns): Add V6 instructions.
199 (do_t_cps): New function.
200 (do_t_cpy): Likewise.
201 (do_t_setend): Likewise.
202 (THUMB_CPY): New macro.
203 (tinsns): Add V6 instructions.
204 (decode_shift): Handle V6 restricted-shift options.
205 (thumb_mov_compare): Support CPY.
206 (arm_cores): Add arm1136js and arm1136jfs.
207 (arm_archs): Add armv6.
208 (arm_fpus): Add arm1136jfs.
209 * doc/c-arm.texi (ARM Options): Mention arm1136js, arm1136jfs, and
212 2003-12-06 Christian Groessler <chris@groessler.org>
214 * config/tc-z8k.c (parse_reg): Be case insensitive when checking
216 (get_ctrl_operand): Be case insensitive when checking ctrl names.
218 2003-12-05 Nick Clifton <nickc@redhat.com>
220 * config/tc-sh.c (md_show_usage): Fix compilation errors
221 introduced by the previous delta.
223 2003-12-03 Alexandre Oliva <aoliva@redhat.com>
225 * config/tc-sh.c: Add support for sh4a and no-fpu variants.
226 * testsuite/gas/sh/basic.exp: Call tests for sh4a.
227 * testsuite/gas/sh/{err-sh4a-fp.s, err-sh4a.s,
228 err-sh4al-dsp.s, sh4a-dsp.d, sh4a-dsp.s, sh4a-fp.d,
229 sh4a-fp.s, sh4a.d, sh4a.s, sh4al-dsp.d, sh4al-dsp.s:
230 New files, tests for sh4a and related variants.
232 2003-12-05 Michael Snyder <msnyder@redhat.com>
234 * config/tc-sh.c (md_show_usage): Mention new -isa options.
235 * doc/c-sh.texi: Document new -isa options.
236 * doc/c-sh64.texi: Ditto.
237 * NEWS: Mention new support for sh4a.
239 2003-12-03 H.J. Lu <hongjiu.lu@intel.com>
241 * config/tc-alpha.c (s_alpha_end): Don't crash if there is no
244 2003-12-04 Alan Modra <amodra@bigpond.net.au>
246 * tc.h (md_pcrel_from): Don't declare if defined as a macro.
248 2003-12-03 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
250 * config/tc-m32r.h : Add support for new machine m32r2.
251 * config/tc-m32r.c : Likewise.
252 Add new command line switches and directives to allow endian-ness
253 to be selected and some warnings to be turned into errors.
254 (line_separator_chars) : Use '!'.
255 * doc/c-m32r.texi: Document new switches and directives.
256 * NEWS: Mention new support.
258 2003-12-03 Dave Airlie <airlied@linux.ie>
260 * configure.in: Likewise.
261 * configure: Regenerate.
262 * config/tc-vax.c (md_shortopts): Add 'Q'.
263 (md_parse_option): Ignore 'Q' for now.
265 2003-12-02 Kazu Hirata <kazu@cs.umass.edu>
267 * messages.c: Convert to ISO-C.
269 * output-file.c: Likewise.
270 * output-file.h: Likewise.
274 * subsegs.c: Likewise.
275 * subsegs.h: Likewise.
278 2003-12-02 Kazu Hirata <kazu@cs.umass.edu>
280 * config/obj-elf.c: Remove ARGSUSED.
282 2003-12-02 Alan Modra <amodra@bigpond.net.au>
284 * Makefile.am: Run "make dep-am".
285 * Makefile.in: Regenerate.
287 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
289 * symbols.c: Convert to ISO-C.
290 * symbols.h: Likewise.
292 2003-11-28 Christian Groessler <chris@groessler.org>
294 * config/tc-z8k.c: Convert to ISO-C.
295 * config/tc-z8k.h: Likewise.
297 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
299 * read.c: Convert to ISO-C.
302 2003-11-27 Nick Clifton <nickc@redhat.com>
304 * config/tc-sh.c (sh_elf_cons): If md_cons_align is defined
305 call it to make sure that the constants that are going to be
306 emitted are correctly aligned.
308 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
310 * config/tc-frv.c (md_pcrel_from_section): Don't adjust when
311 referencing symbol in a different section.
313 2003-11-26 Christian Groessler <chris@groessler.org>
315 * config/tc-z8k.c (s_segm): Fix indentation.
316 (md_apply_fix3): Likewise.
317 (cc_names): Add alias names for the names generated by the
319 (get_cc_operand): Be case insensitive.
320 (get_operands): Improve error handling for cc operands.
321 (check_operand): Not used, remove.
322 (md_assemble): Remove unused variable prev_opcode. Skip
323 whitespace until end-of-line only. Restore *op_end after call to
326 2003-11-26 Nick Clifton <nickc@redhat.com>
328 * config/tc-h8300.c (get_operand): Allow er4-er7 for ldm/stm
329 instructions on the H8SX.
331 2003-11-25 Kazu Hirata <kazu@cs.umass.edu>
333 * config/tc-h8300.c (h8_exp): Remove.
335 2003-11-25 Asgari Jinia <asgarij@kpitcummins.com>
337 * config/tc-h8300.c (md_assemble): Check operands validity for
339 (get_operand): Check register pair's validity as per technical
340 note TN-H8*-193A/E from Renesas for H8s and for H8Sx manual.
342 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
344 * listing.c: Convert to ISO-C.
345 * listing.h: Likewise.
349 2003-11-24 Jakub Jelinek <jakub@redhat.com>
351 * app.c (do_scrub_chars): Add PUT (ch) and ch = GET ()
352 when transitioning from states 14 or 15 to 0 or 1.
354 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
356 * hash.c: Convert to ISO-C.
358 * input-file.c: Likewise.
359 * input-file.h: Likewise.
360 * input-scrub.c: Likewise.
361 * itbl-ops.c: Likewise.
362 * itbl-ops.h: Likewise.
364 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
366 * config/tc-h8300.c (Hmode): Make it global.
371 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
373 * ehopt.c: Convert to ISO-C.
377 * flonum-copy.c: Likewise.
378 * flonum-mult.c: Likewise.
379 * flonum.h: Likewise.
383 2003-11-22 Alan Modra <amodra@bigpond.net.au>
385 * doc/c-ppc.texi (PowerPC-Pseudo): Add section.
387 * app.c (do_scrub_chars): Revert 2003-04-23 and 2003-04-22.
389 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
391 * ecoff.c: Convert to ISO-C.
394 2003-11-22 Alan Modra <amodra@bigpond.net.au>
396 * config/tc-ppc.c (parse_cpu): New function, broken out from..
397 (md_parse_option): ..here.
398 (ppc_setup_opcodes): New function, broken out from..
400 (ppc_machine): Implement .machine pseudo op.
402 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
404 * depend.c: Convert to ISO-C.
405 * dwarf2dbg.c: Likewise.
406 * dwarf2dbg.h: Likewise.
408 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
410 * app.c: Convert to ISO-C.
412 * atof-generic.c: Likewise.
413 * bignum-copy.c: Likewise.
414 * bignum.h: Likewise.
419 2003-11-20 DJ Delorie <dj@redhat.com>
421 * config/tc-sh64.c (shmedia_frob_section): Only frob elf32
424 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
426 * config/tc-h8300.c: Make some functions and global
427 variables static appropriately.
429 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
431 * config/obj-ieee.c: Remove duplicate prototypes.
432 * config/tc-h8300.c: Likewise.
434 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
436 * config/tc-h8300.c: Convert to ISO-C.
437 * config/tc-h8300.h: Likewise.
439 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
441 * config/tc-mcore.h: Remove prototypes already in tc.h.
442 * config/tc-tic4x.c: Likewise.
444 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
446 * config/tc-arc.c: Remove a local prototype of atof_ieee.
447 * config/tc-ip2k.c: Likewise.
448 * config/tc-iq2000.c: Likewise.
449 * config/tc-tic30.c: Remove a comment.
451 2003-11-19 Bob Wilson <bob.wilson@acm.org>
453 * config/tc-xtensa.c (xg_emit_insn): Include "dwarf2dbg.h" and add
454 call to dwarf2_emit_insn.
456 2003-11-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
458 * config/tc-mips.c (macro): Handle new macros: "lca" and "dlca"
459 for loading addresses using CALL relocations.
460 Don't emit CALL relocations when a base register is used.
462 2003-11-15 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
464 * config/tc-mips.c: Formatting fixes.
466 2003-11-14 Ben Elliston <bje@wasabisystems.com>
468 * config/tc-arm.c (arm_elf_change_section): Not static.
470 2003-11-13 Nick Clifton <nickc@redhat.com>
472 * tc-arm.c (mapping_state): New function. Emit a mapping
474 (arm_elf_change_section): New function. Intercept section
475 changes and generate mapping symbols.
477 (s_arm_elf_cons): Likewise.
478 (opcode_select): Choose the correct mapping state.
479 (md_assemble): Likewise.
480 * tc-arm.h (md_elf_section_change_hook): Define.
481 * doc/c-arm.texi (ARM Mapping Symbols): New node.
482 * NEWS: Mention new feature.
484 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
486 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Define.
487 * doc/Makefile.am (install-info): Define.
489 * aclocal.m4: Regenerate.
490 * Makefile.in: Regenerate.
491 * doc/Makefile.in: Regenerate.
493 2003-11-11 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
495 * configure.in: Add support for arm-wince-pe target.
496 * configure: Regenerate.
498 2003-11-11 Jan Hubicka <jh@suse.cz>
500 * config/tc-i386.c (tc_i386_fix_adjustable):
502 2003-11-10 Alan Modra <amodra@bigpond.net.au>
504 * config/tc-ia64.c (ia64_handle_align): Remove bogus be_nop.
506 2003-11-10 Alan Modra <amodra@bigpond.net.au>
508 * README: Update bug report address. Move bug reporting info to
511 2003-11-07 Christian Groessler <chris@groessler.org>
513 * doc/c-z8k.texi: Document command-line options. Fix byte
514 register names. Document '.z8001' and '.z8002' directives.
515 Extend addressing modes documentation.
517 2003-11-07 Jonathan R. Grant <jg-binutils@jguk.org>
519 * input-file.c (input_file_open): Use "No such file" error
522 2003-11-06 Pete Gonzalez <pgonzalez@bluel.com>
524 * config/tc-arm.texi (struct reg_entry): Add new field 'builtin'.
525 (rn_table, iwmmxt_table, cp_table, cn_table, fn_table, sn_table,
526 dn_table, mav_mvf_table, mac_mvd_table, mav_mvfx_table,
527 mav_mvax_table, mav_dspc_table): Initialise new field.
528 (insert_reg_alias): Initialise new field.
529 (md_pseudo_table): Add "unreq" entry.
530 (s_unreq): New function: Undo the effects of a previous .req.
531 * doc/c-arm.texi: Document new pseudo op.
532 * NEWS: Mention new feature.
534 2003-11-06 Bruno Rohee <bruno@rohee.com>
536 * config/obj-vms.c: Fix "the the" typo.
537 * doc/c-arm.texi: Likewise.
539 2003-11-06 Nick Clifton <nickc@redhat.com>
541 * config/obj-vms.c: Convert to ISO-C.
543 2003-11-05 Alan Modra <amodra@bigpond.net.au>
545 * config/tc-ppc.h (TC_FORCE_RELOCATION): Only define for ELF and XCOFF.
547 2003-10-31 Christian Groessler <chris@groessler.org>
549 * config/tc-i860.c (md_pcrel_from): Fix typo in comment.
551 2003-10-29 Phil Edwards <phil@codesourcery.com>
553 * configure.in (arm-*-vxworks, i386-*-vxworks, mips-*-vxworks,
554 ppc-*-vxworks, ppc-*-windiss): Remove separate outdated stanzas.
555 (*-*-vxworks, *-*-windiss): Use common stanzas, all ELF.
556 * configure: Regenerated.
558 2003-10-27 Kazu Hirata <kazu@cs.umass.edu>
560 * ChangeLog: Fix typos.
561 * ChangeLog-9295: Likewise.
562 * as.c: Fix comment typos.
564 * atof-generic.c: Likewise.
565 * bit_fix.h: Likewise.
568 * input-file.c: Likewise.
569 * input-scrub.c: Likewise.
570 * itbl-ops.c: Likewise.
571 * itbl-parse.y: Likewise.
572 * listing.c: Likewise.
577 * symbols.c: Likewise.
578 * symbols.h: Likewise.
580 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
582 * config/tc-m68hc11.c: Convert to ISO C90.
583 * config/tc-m68hc11.h: Likewise.
585 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
587 * doc/c-sh64.texi: Fix a typo.
589 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
591 * doc/c-alpha.texi: Fix typos.
592 * doc/c-ia64.texi: Likewise.
593 * doc/c-mmix.texi: Likewise.
594 * doc/c-sh64.texi: Likewise.
595 * doc/c-xtensa.texi: Likewise.
596 * doc/internals.texi: Likewise.
598 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
600 * config/obj-elf.c (obj_elf_change_section): Allow SHF_ALLOC
601 for .interp, .strtab and .symtab. Use specified section
604 2003-10-22 Andreas Schwab <schwab@suse.de>
605 H.J. Lu <hongjiu.lu@intel.com>
606 Jim Wilson <wilson@specifixinc.com>
608 * config/tc-ia64.c (update_qp_mutex): New.
609 (note_register_values): Properly handle one of PRs in compare
610 is PR0. Don't add a mutex relation for .and.orcm/.or.andcm.
611 Clear mutex relation for .none/.unc. Don't clear mutex relation
612 on predicated compare.
614 2003-10-21 Wouter van Heyst <wouter@vidicode.nl>
616 * config/tc-arm.c (all_reg_maps): Correct text describing Maverick
617 register requirements.
618 (md_begin): Remove F_SOFT_FLOAT if enabling MAVERICK FP.
620 2003-10-21 Peter Barada <pbarada@mail.wm.sps.mot.com>
621 Bernardo Innocenti <bernie@develer.com>
623 * config/tc-m68k.c: Add MCF528x (MCFv4) support.
624 * config/m68k-parse.h: Likewise.
625 * NEWS: Mention the new support.
626 * doc/c-m68k.texi: Document new processor selection switch.
628 2003-10-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
630 * config/tc-mips.c (normalize_constant_expr): New function to fix sign
631 extensions broken by gas' expression evaluation of constants.
632 (check_absolute_expr): Use it.
635 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
637 Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
638 * doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
640 * config/tc-mmix.c: Include limits.h. Expand on mmix_relax_table
642 (expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
643 (pushj_stubs): New variable.
644 (OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
645 (PUSHJSTUB_MAX): New macros.
646 (md_longopts): New options "--no-pushj-stubs" and synonym
648 (mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
649 (md_parse_option): Handle OPTION_NOPUSHJSTUBS.
650 (md_estimate_size_before_relax): Modify STATE_PUSHJ state for
651 PUSHJ stub relaxation.
652 (md_convert_frag): Handle STATE_PUSHJSTUB.
653 (md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
654 (tc_gen_reloc): Ditto.
655 (mmix_md_relax_frag): Handle PUSHJ stub relaxation.
656 * config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
657 (struct mmix_segment_info_type): New.
659 2003-10-17 Paul Dale <pauli@snapgear.com>
660 Bernardo Innocenti <bernie@develer.com>
662 * config/tc-m68k.c (make_pcrel_absolute): Enforce
663 PC-relative jumps with --pcrel.
664 (md_convert_frag_1): Likewise.
665 (md_create_long_jump): Likewise.
667 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
669 * config/tc-h8300.c (PSIZE): Correct for Normal mode.
670 (get_operand): Accept both 16 bit 32 bit registers as pointer
671 registers, when operating in Normal mode.
672 (fix_operand_size): Make default address size 16 for Normal mode.
674 2003-10-17 Ian Lance Taylor <ian@wasabisystems.com>
676 * config/tc-arm.c (do_iwmmxt_byte_addr): Reject control
678 (do_iwmmxt_word_addr): With a control register, reject conditional
679 execution and reject a non-word size.
681 2003-10-16 Peter Bergner <bergner@vnet.ibm.com>
683 * configure.in: Set em=linux for ppc-*-linux-gnu* target.
684 * configure: Regenerate.
686 2003-10-15 Alan Modra <amodra@bigpond.net.au>
688 * doc/as.texinfo (Align): Correct list of byte targets.
690 2003-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
692 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
693 Fix indentation. Better error message.
695 2003-10-14 Bob Wilson <bob.wilson@acm.org>
697 * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
698 argument in call to xtensa_get_property_section_name. Formatting.
700 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
702 * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
705 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
707 * config/tc-sh.c: Convert to ISO C90. Remove unnecessary
708 prototypes and casts.
709 * config/tc-sh.h: Likewise.
710 * config/tc-sh64.c: Likewise.
711 * config/tc-sh64.h: Likewise.
713 2003-10-08 Dave Brolley <brolley@redhat.com>
715 * config/tc-frv.c (fr550_check_insn_acc_range): New function.
716 (fr550_check_acc_range): New function.
717 (md_assemble): Call fr550_check_acc_range.
719 2003-10-08 Dave Brolley <brolley@redhat.com>
721 * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
722 (md_parse_option): Handle OPTION_CPU==fr550.
723 (md_show_usage): Document fr550.
725 2003-10-08 Philippe De Muyter <phdm@macqel.be>
727 * as.c (use_gnu_debug_info_extensions) : New variable.
728 (parse_args) : Accept new --gstabs+ option, and set
729 `use_gnu_debug_info_extensions'.
730 (show_usage) : Document --gstabs+ option.
731 * as.h (use_gnu_debug_info_extensions) : New extern declaration.
732 * stabs.c (stabs_generate_asm_file) : If
733 `use_gnu_debug_info_extensions' is set, add the compilation
734 directory to the stabs debug info.
735 * doc/as.texinfo : Document --gstabs+ option.
736 * NEWS: Mention new feature.
738 2003-10-06 Matt Thomas <matt@3am-software.com>
740 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
743 * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
744 register names. Change all "defined (TE_LINUX)" to
745 "(defined (TE_LINUX) || defined (TE_NETBSD))".
747 * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
748 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
750 2003-10-06 Robert Millan <robertmh@gnu.org>
752 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
753 * configure: Regenerate.
755 2003-10-05 Nick Clifton <nickc@redhat.com>
757 * as.c (parse_args): Revert patch to change handling of -f
758 option. Its behaviour is mandated by the POSIX 2 spec.
760 2003-10-04 Christian Groessler <chris@groessler.org>
762 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
763 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
764 (md_pcrel_from): This function now gets called. Supply return
767 2003-10-04 Nick Clifton <nickc@redhat.com>
769 * as.c: Convert to ISO C90.
771 2003-10-04 Nick Clifton <nickc@redhat.com>
773 * as.c (std_shortopts): Remove 'f'.
774 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
775 acecpted as an alias for -f.
777 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
779 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
780 Make 'r' mean readonly data.
782 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
784 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
785 Unbreak overflow checks.
787 2003-10-01 Chris Demetriou <cgd@broadcom.com>
789 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
791 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
793 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
795 (load_register): Likewise.
798 2003-09-30 Chris Demetriou <cgd@broadcom.com>
800 * config/tc-mips.c (mips_ip): Capitalize first word of
801 existing condition code warning, and add condition code
802 warnings for .ps instructions, and for bc1any[24][tf].
804 2003-09-30 Chris Demetriou <cgd@broadcom.com>
806 * NEWS: Mention support for MIPS64 Release 2.
808 2003-09-30 Chris Demetriou <cgd@broadcom.com>
810 * NEWS: Add an indication of the cutoff for 2.14.
812 2003-09-30 Chris Demetriou <cgd@broadcom.com>
814 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
815 * configure: Regenerate.
816 * config/tc-mips.c (imm2_expr): New variable.
817 (md_assemble, mips16_ip): Initialize imm2_expr.
818 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
819 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
820 (macro): Handle M_DEXT and M_DINS.
821 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
823 (OPTION_MIPS64R2): New define.
824 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
825 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
826 (md_parse_option): Handle OPTION_MIPS64R2.
827 (s_mipsset): Handle setting "mips64r2" ISA.
828 (mips_cpu_info_table): Add mips64r2.
829 (md_show_usage): Document -mips64r2 option.
830 * doc/as.texinfo: Docuemnt -mips64r2 option.
831 * doc/c-mips.texi: Likewise.
833 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
835 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
837 2003-09-26 Matt Thomas <matt@3am-software.com>
839 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
840 (OPTION_PIC): Define.
841 (md_longopts): Add "pic" option.
842 (md_parse_option): Change 'K' to OPTION_PIC.
844 2003-09-23 Alan Modra <alan@modra.org>
846 * config/obj-elf.c (obj_elf_change_section): Adjust for
847 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
848 to be set when defaults are not. Don't set attr from defaults if
851 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
853 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
854 truncate values which won't fit im 32 bits.
855 (load_register): Likewise.
858 2003-09-17 Dmitry Diky <diwil@mail.ru>
860 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
861 (msp430_operands): Remove redundant l2[16] within switch-case.
863 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
865 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
866 * configure: Regenerate.
868 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
870 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
871 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
872 the function prototype.
873 (load_register): Likewise. Simplify the checks for sign-extended
875 (macro): Likewise. Fix code generation for 64-bit address constants
876 outside the 32-bit compatibility space. Adjust
877 macro_build_ldst_constoffset calls.
878 (s_cprestore): Adjust macro_build_ldst_constoffset call.
880 2003-09-11 Bob Wilson <bob.wilson@acm.org>
882 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
883 literal_syms): New global variables.
884 (xtensa_define_label, add_target_symbol, xtensa_find_label,
885 map_over_defined_symbols, is_loop_target_label,
886 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
887 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
888 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
889 from insn_labels to saved_insn_labels when entering a literal region.
890 (xtensa_end_directive): Call md_flush_pending_output. Restore
891 insn_labels list when leaving a literal region.
892 (xtensa_literal_position): Call xtensa_clear_insn_labels.
893 (xtensa_literal_pseudo): Add check to disallow .literal inside a
894 literal region. Move insn_labels to saved_insn_labels and then restore
896 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
897 code to set is_loop_target or is_branch_target flag on the symbol
898 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
899 (xtensa_add_literal_sym, xtensa_add_insn_label,
900 xtensa_clear_insn_labels): New functions.
901 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
902 loops_ok argument. Rewrite to use insn_labels list instead of
903 calling xtensa_find_label and to check the is_loop_target flag on
904 symbols when loops_ok is false.
905 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
906 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
907 call to xtensa_move_labels. Propagate is_branch_target and
908 is_loop_target flags from symbols to frags.
909 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
910 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
911 aligning a loop instruction. Adjust call to xtensa_move_labels for
912 aligning entry instructions. Add call to xtensa_clear_insn_labels.
913 (xtensa_end): Remove call to xtensa_mark_target_fragments.
914 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
915 code to use new literal_syms list.
916 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
917 is_branch_target flags.
919 2003-09-09 Bob Wilson <bob.wilson@acm.org>
921 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
922 "move_labels" argument and corresponding call to xtensa_move_labels.
923 (md_assemble): Add a separate call to xtensa_move_labels and remove
924 argument for call to xtensa_mark_literal_pool_location.
925 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
926 calls to xtensa_mark_literal_pool_location.
927 (xtensa_create_local_symbol): Delete and inline the code into...
928 (xtensa_create_literal_symbol): ...here.
929 (xtensa_frob_label): Combine conditionals.
930 (expression_maybe_register, xtensa_symbol_new_hook,
931 fix_new_exp_in_seg): Use symbol_get_tc.
933 2003-09-09 Bob Wilson <bob.wilson@acm.org>
935 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
936 combining identical literals.
937 (expression_maybe_register): Remove call to find_lit_sym_translation.
938 (is_duplicate_expression, cache_literal, is_duplicate_literal,
939 add_lit_sym_translation, find_lit_sym_translation): Delete.
941 2003-09-07 Nick Clifton <nickc@redhat.com>
943 * doc/as.texinfo (Comments): Comment character for PPC is #.
945 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
948 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
951 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
953 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
955 2003-09-04 Nick Clifton <nickc@redhat.com>
957 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
958 (md_pseudo_table): Add .v850e1 pseudo op.
959 (md_show_usage): Document -mv850e1 switch.
960 (md_parse_option): Accept -mv850e1 switch.
961 (md_begin): Allow TARGET_CPU to be v850e1.
962 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
963 * NEWS: Mention support for v850e1.
965 2003-09-04 Alan Modra <amodra@bigpond.net.au>
967 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
968 ppc_cpu selection rather than replacing.
969 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
970 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
972 2003-09-03 Robert Millan <robertmh@gnu.org>
974 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
976 * configure: Regenerate.
978 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
980 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
981 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
982 Specify AC_CONFIG_AUX_DIR.
983 * aclocal.m4: Regenerated with aclocal-1.7.
984 * configure: Regenerated with autoconf 2.57.
985 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
987 2003-08-29 Jakub Jelinek <jakub@redhat.com>
989 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
990 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
991 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
992 nor tc_cfi_emit_pcrel_expr are defined.
993 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
994 DIFF_EXPR_OK is not defined.
995 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
996 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
997 tc_cfi_emit_pcrel_expr): Define.
998 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
999 sparc_cfi_emit_pcrel_expr): New prototypes.
1000 (sparc_cie_data_alignment): New decl.
1001 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
1002 * config/tc-sparc.c: Include dw2gencfi.h.
1003 (sparc_cie_data_alignment): New variable.
1004 (md_begin): Initialize it.
1005 (sparc_cfi_frame_initial_instructions): New function.
1006 (sparc_regname_to_dw2regnum): Likewise.
1007 (sparc_cfi_emit_pcrel_expr): Likewise.
1008 * doc/as.texinfo: Document .cfi_window_save.
1010 * config/tc-sparc.c (s_common): Cast last argument to long and
1011 change format string to shut up warning.
1013 2003-08-25 Jason Eckhardt <jle@rice.edu>
1015 * doc/c-i860.texi: Update text about relocatable address expansions.
1017 2003-08-24 Jason Eckhardt <jle@rice.edu>
1019 * config/tc-i860.c (md_assemble): Use isrc2 from the original
1020 instruction when expanding E_ADDR.
1022 2003-08-21 Nick Clifton <nickc@redhat.com>
1024 * po/tr.po: Updated Turkish translation.
1026 2003-08-20 Alan Modra <amodra@bigpond.net.au>
1028 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
1029 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
1031 2003-08-19 Nick Clifton <nickc@redhat.com>
1033 * config/tc-arm.c (cp_address_required_here): Add code to handle
1034 unindexed addressing mode.
1036 2003-08-19 Alan Modra <amodra@bigpond.net.au>
1038 * config/tc-ppc.c (md_parse_option): Handle -m440.
1039 (md_show_usage): Add -m440.
1040 (md_apply_fix3): Warning fix.
1041 * doc/c-ppc.texi: Document -m440.
1043 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
1045 * read.c (s_print): Check for NULL.
1047 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1049 * write.c (fixup_segment): When handling an expression involving
1050 the subtraction of two symbols in the same segment, don't clear
1051 fx_pcrel except for TC_M68K.
1053 2003-08-14 Alan Modra <amodra@bigpond.net.au>
1055 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
1057 * config/tc-i386.c: Likewise.
1058 (RELOC_ENUM): Don't define. Replace throughout with enum.
1060 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
1061 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
1063 * Makefile.in: Regenerate.
1065 2003-08-08 Andreas Schwab <schwab@suse.de>
1067 * config/tc-m68k.h (TARGET_USE_CFIPOP)
1068 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
1069 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
1071 * config/tc-m68k.c: Include "dw2gencfi.h".
1072 (tc_m68k_regname_to_dw2regnum)
1073 (tc_m68k_frame_initial_instructions): New functions.
1075 2003-08-08 Dmitry Diky <diwil@mail.ru>
1077 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
1078 according to gcc order.
1080 2003-08-07 Jason Eckhardt <jle@rice.edu>
1082 * config/tc-i860.c (i860_check_label): New function.
1083 * config/tc-i860.h (i860_check_label): New prototype.
1084 (tc_check_label): Define macro as i860_check_label.
1086 2003-08-06 Jason Eckhardt <jle@rice.edu>
1088 * config/tc-i860.c (s_align_wrapper): New function and prototype.
1089 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
1090 surrounding OBJ_ELF ifdef, and re-format slightly.
1091 * doc/c-i860.texi: Document the special .align syntax available
1094 2003-08-06 Jason Eckhardt <jle@rice.edu>
1096 * config/tc-i860.c (i860_handle_align): New function.
1097 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
1098 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
1100 2003-08-06 Jason Eckhardt <jle@rice.edu>
1102 * config/tc-i860.c (i860_process_insn): Check that instructions
1103 with their dual-bit set are 8-byte aligned.
1105 2003-08-06 Nick Clifton <nickc@redhat.com>
1107 * po/fr.po: Updated French translation.
1109 2003-08-05 Jason Eckhardt <jle@rice.edu>
1111 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
1112 setting during flop argument parsing. Instead, do it after
1113 instruction is fully parsed.
1115 2003-08-05 Jason Eckhardt <jle@rice.edu>
1117 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
1118 directives are only available in Intel syntax mode.
1120 2003-08-05 Jason Eckhardt <jle@rice.edu>
1122 * config/tc-i860.c (s_dual): Accept .dual directive only in
1123 the Intel syntax mode.
1124 (s_enddual): Likewise for .enddual.
1125 (s_atmp): Likewise for .atmp.
1127 2003-08-04 Alan Modra <amodra@bigpond.net.au>
1129 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
1130 for memory operands. Pass the full operand_string to i386_index_check.
1132 2003-08-01 Jason Eckhardt <jle@rice.edu>
1134 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
1135 (target_intel_syntax): Declare variable.
1136 (OPTION_INTEL_SYNTAX): Declare macro.
1137 (md_longopts): Add option -mintel-syntax.
1138 (md_parse_option): Set target_intel_syntax.
1139 (md_show_usage): Add -mintel-syntax usage.
1140 (md_begin): Set reg_prefix based on target_intel_syntax.
1141 (i860_process_insn): Skip register prefix only if there is one.
1142 Parse relocatable expressions in either Intel or AT&T syntax based
1143 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
1144 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
1145 about the differences in syntax.
1147 2003-08-01 Dmitry Diky <diwil@mail.ru>
1149 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
1152 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
1154 * config/tc-sh.c (md_assemble): For branches, check & update
1157 2003-07-30 Jason Eckhardt <jle@rice.edu>
1159 * config/tc-i860.c: Convert to ISO C90.
1161 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1163 * read.c (s_space): Revert 2003-07-28 change.
1165 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1167 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
1169 2003-07-29 Alan Modra <amodra@bigpond.net.au>
1171 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
1173 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1175 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
1177 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
1179 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
1181 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1183 * read.c (s_space): Don't warn about .space 0.
1185 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1187 * config/tc-mips.c (mips_flag_pdr): Define.
1188 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
1189 (s_mips_end) [OBJ_ELF]: Likewise.
1190 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
1191 (md_parse_option) [OBJ_ELF]: Handle them.
1192 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
1194 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
1195 * doc/as.texinfo (Overview) [MIPS]: Likewise.
1197 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
1199 * config/obj-elf.c (obj_elf_change_section): Update
1200 elf_section_type and elf_section_flags only when they are
1203 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
1205 * config/obj-elf.c (obj_elf_change_section): Always set section
1208 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
1210 * config/obj-elf.c (special_sections): Removed.
1211 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
1212 elf_section_type and elf_section_flags.
1213 (elf_frob_file): Set SHT_GROUP.
1215 * config/obj-elf.h (obj_sec_set_private_data): New.
1217 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
1218 * config/tc-ia64.h: Likewise.
1219 * config/tc-m32r.h: Likewise.
1220 * config/tc-m68hc11.h: Likewise.
1221 * config/tc-mcore.h: Likewise.
1222 * config/tc-mips.h: Likewise.
1223 * config/tc-ppc.h: Likewise.
1224 * config/tc-sh64.h: Likewise.
1225 * config/tc-v850.h: Likewise.
1226 * config/tc-xtensa.h: Likewise.
1228 * config/tc-v850.h (SHF_V850_GPREL): Removed.
1229 (SHF_V850_EPREL): Likewise.
1230 (SHF_V850_R0REL): Likewise.
1232 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
1235 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1237 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
1238 debugging symbols so that we handle page memory correctly.
1240 2003-07-24 Nick Clifton <nickc@redhat.com>
1242 * po/fr.po: Updated French translation.
1244 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
1246 * config/tc-arm.c (arm_archs): Add iwmmxt.
1248 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1250 * read.c (do_parse_cons_expression): Mark nbytes unused to
1253 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
1255 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
1258 * config/tc-h8300.c (md_assemble): Make sure characters after
1259 slash and dot are lower-case.
1261 2003-07-17 Nick Clifton <nickc@redhat.com>
1263 * po/es.po: New Spanish translation.
1264 * po/tr.po: New Turkish translation.
1265 * po/opcodes.pot: Regenerate.
1267 2003-07-16 Alan Modra <amodra@bigpond.net.au>
1269 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
1270 (generic_dwarf2_emit_offset): Don't define function when
1271 TC__DWARF2_EMIT_OFFSET is defined.
1273 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1275 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
1276 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
1277 * doc/c-mips.texi: Document -march=rm9000.
1279 2003-07-15 Alan Modra <amodra@bigpond.net.au>
1281 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
1282 only for V850_OPERAND_DISP operands.
1284 2003-07-15 Alan Modra <amodra@bigpond.net.au>
1286 * frags.c (frag_more): Move segment checks to..
1287 (frag_alloc_check): ..here. New function.
1288 (frag_append_1_char): Call frag_alloc_check.
1290 2003-07-14 Nick Clifton <nickc@redhat.com>
1292 * po/tr.po: Update with latest version.
1293 * po/POTFILES.in: Regenerate.
1294 * po/gas.pot: Regenerate.
1295 * configure: Regenerate.
1297 2003-07-14 Nick Clifton <nickc@redhat.com>
1299 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
1300 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
1301 "safe-ctype.h" and update use of macros.
1302 * Makefile.am: Update dependencies.
1303 * Makefile.in: Regenerate.
1305 2003-07-11 Alan Modra <amodra@bigpond.net.au>
1307 * po/gas.pot: Regenerate.
1309 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1311 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
1312 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
1313 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
1314 DWARF2_CIE_DATA_ALIGNMENT): Define.
1315 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
1317 (ppc_cie_data_alignment): Declare.
1318 * config/tc-ppc.c: Include dw2gencfi.h.
1319 (ppc_cie_data_alignment): Define.
1320 (md_begin): Initialize ppc_cie_data_alignment.
1321 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
1323 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
1324 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
1325 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
1326 DWARF2_CIE_DATA_ALIGNMENT): Define.
1327 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
1329 (s390_cie_data_alignment): Declare.
1330 * config/tc-s390.c: Include dw2gencfi.h.
1331 (s390_cie_data_alignment): Define.
1332 (md_begin): Initialize s390_cie_data_alignment.
1333 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
1336 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
1338 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1339 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
1340 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1341 * configure.in (am33_2.0, mn10300-*-linux*): Added.
1342 * configure: Rebuilt.
1343 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
1345 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
1348 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1350 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
1351 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
1352 for subtracts from GLOBAL_OFFSET_TABLE that could not be
1354 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
1355 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
1356 could not be simplified.
1357 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
1358 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
1359 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
1360 BDF_RELOC_MN10300_GOT32.
1361 * config/tc-mn10300.c (mn10300_fix_adjustable): If
1362 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
1363 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1364 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
1365 symbol if we know its value.
1366 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1367 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
1368 duplicate underscore prefix.
1369 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1370 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
1371 type in X_md, not X_add_number. Zero X_add_number.
1372 (mn10300_check_fixup): Extract relocation type from X_md.
1373 * config/tc-mn10300.h: Update comment.
1374 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1375 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
1376 (O_PIC_reloc): this.
1377 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
1378 (mn10300_check_fixup): Likewise.
1379 (mn10300_parse_name): Set X_add_number to relocation type.
1380 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
1381 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
1382 O_GOTOFF, O_PLT, O_GOT): Define.
1383 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
1384 (mn10300_check_fixup): New fn.
1385 (md_assemble): Call it. Check for PIC-related relocs.
1386 (mn10300_cons_fix_new): Likewise. New fn.
1387 (mn10300_end_of_match): New fn.
1388 (mn10300_md_parse_name_cont): New fn.
1390 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1392 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
1393 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
1394 accumulator's shift.
1395 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
1396 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
1397 md_assemble, md_estimate_size_before_relax): Handle fbCC.
1398 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
1399 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
1401 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
1402 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
1403 (HAVE_AM33): Match AM33_2 too.
1404 (HAVE_AM33_2): New macro.
1405 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
1406 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
1407 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
1408 (float_registers, double_registers): New variables.
1409 (float_register_name, double_register_name): New functions.
1410 (md_assemble): Recognize FP registers. Implement FMT_D3.
1411 (mn10300_insert_operand): Support FP registers.
1413 2003-07-08 Chris Demetriou <cgd@broadcom.com>
1415 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
1416 target being a global symbol if not compiling SVR4 PIC code.
1418 2003-07-07 Nick Clifton <nickc@redhat.com>
1420 * doc/c-m32r.texi (M32R-Directives): New node. Document the
1421 .high, .shigh and .low directives.
1423 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
1425 * config/tc-h8300.c (h8300sxnmode): Add prototype.
1427 (parse_exp): Replace expressionS argument with a h8_op. Parse the
1428 operand size as well.
1429 (skip_colonthing): Remove unused expression argument. Tighten checks
1431 (colonmod24): Remove.
1432 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
1433 (get_operand): Likewise. Use the standard code to read the size of
1434 pc-relative operands.
1435 (fix_operand_size): Include the size-guessing logic that used to be
1436 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
1437 offsets with a symbolic component.
1439 2003-07-04 Nick Clifton <nickc@redhat.com>
1441 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
1442 macro to compute size of selected register name array.
1444 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
1446 * config/tc-s390.c (md_parse_option): Add cpu type z990.
1447 (md_begin): Add minimal cpu type logic for instructions with different
1448 binary format depending on the cpu.
1449 (md_assemble): Remove check for minimal cpu.
1450 (s390_insert_operand): Add support for long displacements.
1451 (md_gather_operands): Likewise.
1452 (tc_s390_fix_adjustable): Likewise.
1453 (tc_s390_force_relocation): Likewise.
1454 (md_apply_fix3): Likewise.
1456 2003-06-30 Chris Demetriou <cgd@broadcom.com>
1458 * config/tc-mips.c (s_mipsset): Implement -march= handling
1461 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1463 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
1464 prototypes and casts. Replace PTR with void *. Reformat.
1465 * config/tc-mips.h: Likewise.
1467 2003-06-30 Alan Modra <amodra@bigpond.net.au>
1469 * config/tc-ia64.c (note_register_values): Warning fix.
1470 * config/tc-mips.c (append_insn): Likewise.
1472 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1474 * config/tc-mips.c (mips_set_options,mips_opts): Support for
1476 (file_mips_arch): Rename mips_arch.
1477 (mips_arch_info,mips_tune_info): Remove.
1478 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
1479 (mips_cpu_info_from_arch): New function.
1480 (md_begin): Use file_mips_arch.
1481 (macro_build,macro,mips_ip): Use mips_opts.arch.
1482 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
1483 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
1485 (s_mipsset): Support for .set arch=FOO.
1486 (mips_cpu_info_table): Fix typo.
1488 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1490 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
1492 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
1494 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
1495 unsigned 8-bit operands.
1497 2003-06-24 Nick Clifton <nickc@redhat.com>
1499 * read.c (s_comm): Change error message to assume an unsigned size
1500 has been passed to .comm.
1501 * config/tc-sparc.c (s_common): Likewise.
1502 * write.c (write_contents): Replace 'unsigned long' with
1503 'addressT' and 'long' with offsetT in order to allow computations
1504 with very large values to work for 64-bit addressed targets.
1505 (relax_and_size_all_segments): Likewise.
1506 (relax_frag): Likewise.
1507 (relax_segment): Likewise.
1509 2003-06-23 Mark Mitchell <mark@codesourcery.com>
1511 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
1513 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
1515 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
1518 * gas/config/tc-i386.h (CpuPNI): New.
1519 (CpuUnknownFlags): Add CpuPNI.
1521 2003-06-23 <davidm@hpl.hp.com>
1523 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
1524 freebsd, openvms, and nsk (non-stop kernel).
1526 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
1528 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
1529 all locals have been declared.
1531 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1533 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
1534 special handling for n32 ABI.
1537 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1539 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
1542 2003-06-19 Christian Groessler <chris@groessler.org>
1544 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
1545 now, not only a warning. Add some more checks to detect invalid
1547 (get_operand): For CLASS_IR remember register size in mode struct.
1548 (get_specific): Handle new CLASS_IRO type. Add register size
1549 checks for CLASS_IR and CLASS_IRO.
1550 (md_apply_fix3): Fix undefined usage of buf.
1552 2003-06-19 Alan Modra <amodra@bigpond.net.au>
1554 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
1555 (ppc_change_csect): Add align param. Align frag at start of csect.
1556 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
1557 (ppc_frob_section): Align vma.
1559 2003-06-18 Jakub Jelinek <jakub@redhat.com>
1561 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
1562 (output_cie): Don't pad.
1563 (output_fde): Add align argument. Pad to align if not 0.
1564 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
1565 Pad just last FDE to EH_FRAME_ALIGNMENT.
1567 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
1569 * config/tc-s390.c (init_default_arch): Make current_mode_mask
1570 dependent on s390_arch_size and current_cpu dependent on
1573 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1575 * configure.in: Add c4x as an architecture variant to tic4x.
1576 * configure: Regenerate.
1577 * Makefile.in: Regenerate.
1578 * doc/Makefile.in: Regenerate.
1580 2003-06-18 Alan Modra <amodra@bigpond.net.au>
1582 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
1583 ".TOC." from PPC64_TOC relocs.
1585 2003-06-17 Alan Modra <amodra@bigpond.net.au>
1587 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
1589 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1591 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
1592 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
1593 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
1594 s_cprestore,s_cpadd): Use them.
1596 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
1598 * configure.in: Add specific case for cris-*-linux-gnu* with
1600 * configure: Regenerate.
1601 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
1602 if TE_LINUX defined, else FALSE.
1603 (bfd_boolean demand_register_prefix): Set default from
1604 DEFAULT_CRIS_AXIS_LINUX_GNU.
1605 (symbols_have_leading_underscore): Similar.
1606 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
1608 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1610 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
1611 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
1612 FPU_ARCH_FPA for AOUT.
1613 (md_begin): Don't try to guess the floating point architecture from
1614 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
1616 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
1618 * configure.in: Add i386-netbsd-gnu target.
1619 * configure: Regenerate.
1621 2003-06-12 Tom Tromey <tromey@redhat.com>
1623 * doc/as.texinfo (Comm): Added @node. Moved before CFI
1626 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
1628 * config/tc-mips.c (append_insn): In a compound relocation, take the
1629 field width from the final (outermost) operator.
1631 2003-06-11 Richard Henderson <rth@redhat.com>
1633 * dw2gencfi.c (struct cfi_escape_data): New.
1634 (cfi_add_CFA_nop): Remove.
1635 (CFI_escape, dot_cfi_escape): New.
1636 (dot_cfi): Remove nop.
1637 (cfi_pseudo_table): Remove nop; add escape.
1638 (output_cfi_insn): Likewise.
1639 (select_cie_for_fde): Stop on escape.
1640 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
1641 * read.c, read.h (do_parse_cons_expression): New.
1642 * doc/as.texinfo (.cfi_escape): New.
1644 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1646 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
1647 (s_cprestore): Likewise.
1648 (s_cpreturn): Likewise.
1650 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1652 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
1655 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1657 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
1658 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
1659 exceptions from size assert. Remove most of the addend fixup
1660 specialcasing. Remove value, use valP directly. simplify fx_addnumber
1661 handling. Remove zero addend specialcases.
1662 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
1663 the addend fixup specialcase.
1664 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
1666 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1668 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
1669 in the RELOC_EXPANSION_POSSIBLE case.
1671 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1673 * config/tc-i960.c (line_comment_chars): Add '#'.
1674 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
1676 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
1678 * po/Make-in (DESTDIR): New.
1679 (install-data-yes): Support $(DESTDIR).
1680 (uninstall): Likewise.
1682 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1684 * Makefile.am: Run "make dep-am".
1685 * Makefile.in: Regenerate.
1686 * po/POTFILES.in: Regenerate.
1688 2003-06-10 Doug Evans <dje@sebabeach.org>
1690 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1692 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1693 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1694 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1696 2003-06-10 Alan Modra <amodra@bigpond.net.au>
1697 Gary Hade <garyhade@us.ibm.com>
1699 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1700 (md_apply_fix3): Special case lq insn.
1702 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1704 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1705 lists. Allow single-register ranges.
1707 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1709 * config/tc-h8300.c (h8300sxnmode): New.
1710 (md_pseudo_table): Add .h8300sxn entry.
1712 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
1714 * NEWS: Updated for the new -n option for the i386 assembler.
1716 * config/tc-i386.c (optimize_align_code): New.
1717 (md_shortopts): Add 'n'.
1718 (md_parse_option): Handle 'n'.
1719 (md_show_usage): Add '-n'.
1721 * config/tc-i386.h (optimize_align_code): Declared.
1722 (md_do_align): Optimize code alignment only if optimize_align_code
1725 * doc/as.texinfo: Add the new -n option.
1727 * doc/c-i386.texi: Document the new -n option.
1729 2003-06-07 Richard Henderson <rth@redhat.com>
1731 * doc/as.texinfo: Document .cfi_rel_offset.
1733 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1734 (cfi_add_CFA_offset): Detect invalid offsets.
1735 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1736 (cfi_add_CFA_restore_state): Restore it.
1737 (CFI_rel_offset): New.
1738 (cfi_pseudo_table): Add it.
1739 (dot_cfi): Handle it.
1741 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1743 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1746 2003-06-05 Michael Snyder <msnyder@redhat.com>
1748 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1749 (build_bytes): Ditto.
1751 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1753 * config/tc-h8sx.c (DMODE): Remove.
1754 (colonmod24): Don't choose a default if the operand is a 16-bit
1756 (fix_operand_size): New function.
1757 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1758 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1760 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1762 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1763 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1764 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1765 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1766 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1767 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1768 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1769 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1770 (cfi_pseudo_table): New directives .cfi_return_column,
1771 .cfi_restore, .cfi_undefined, .cfi_same_value,
1772 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1773 (dot_cfi, output_cfi_insn): Handle new directives.
1774 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1775 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1776 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1778 2003-06-04 Richard Henderson <rth@redhat.com>
1780 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1782 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1784 2003-06-04 Richard Henderson <rth@redhat.com>
1786 * config/tc-alpha.c (s_alpha_usepv): New.
1787 (md_pseudo_table): Add it.
1788 (alpha_cfi_frame_initial_instructions): New.
1789 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1790 (tc_cfi_frame_initial_instructions): New.
1791 * doc/c-alpha.texi: Document .usepv.
1793 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1795 * as.c (show_usage): Document --execstack and --noexecstack.
1796 (parse_args): Add --execstack and --noexecstack.
1797 (main): Create .note.GNU-stack section if --execstack or
1798 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1799 * as.h (flag_execstack, flag_noexecstack): New.
1801 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1803 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1804 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1805 (OPTION_MISC_BASE): New defines.
1806 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1807 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1808 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1809 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1810 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1811 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1812 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1813 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1814 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1815 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1816 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1817 (OPTION_TRAP): Redefine in terms of new defines.
1818 (md_longopts): Reorder entries.
1820 2003-05-14 Michael Snyder <msnyder@redhat.com>
1821 From Bernd Schmidt <bernds@redhat.com>
1822 and Michael Snyder <msnyder@redhat.com>
1823 and Alexandre Oliva <aoliva@redhat.com>
1824 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1825 * config/tc-h8300.h: Ditto.
1827 2003-06-03 Nick Clifton <nickc@redhat.com>
1829 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1830 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1831 before calling bfd_reloc_type_lookup.
1833 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1835 * read.c (emit_expr): Set dot_value.
1836 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1838 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1840 * macro.c (sub_actual): Don't lose string if it turns out that
1841 &string wasn't an arg.
1843 2003-05-31 Richard Henderson <rth@redhat.com>
1845 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1846 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1848 2003-05-29 Richard Henderson <rth@redhat.com>
1850 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1851 (all_frame_data, plast_frame_data, cur_frame_data): New.
1852 (s_alpha_ent): Record data for dwarf2 cfi.
1853 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1854 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1855 * config/tc-alpha.h (md_end): New.
1856 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1857 (DWARF2_CIE_DATA_ALIGNMENT): New.
1859 2003-05-29 Nick Clifton <nickc@redhat.com>
1861 * configure.in: Add i386-*-freebsd* entry.
1862 * configure: Regenerate.
1864 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1866 * config/tc-m32r.c: Amend comment to refer to Renesas
1868 2003-05-27 Richard Henderson <rth@redhat.com>
1870 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1872 (current_location): Use symbol_temp_new_now.
1873 * stabs.c (s_stab_generic): Use symbol_temp_new.
1874 * symbols.c (temp_label_name): Remove.
1875 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1877 2003-05-27 Richard Henderson <rth@redhat.com>
1879 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1880 * as.c (main): Always call cfi_finish.
1881 * config/tc-i386.c (x86_dwarf2_return_column): New.
1882 (x86_cie_data_alignment): New.
1883 (md_begin): Set them.
1884 (tc_x86_cfi_init): Remove.
1885 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1886 return int, not unsigned long; don't as_bad here.
1887 (tc_x86_frame_initial_instructions): Streamline; use
1889 * config/tc-i386.h (tc_cfi_init): Remove.
1890 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1891 (DWARF2_CIE_DATA_ALIGNMENT): New.
1893 2003-05-27 Richard Henderson <rth@redhat.com>
1895 * symbols.c (temp_label_name): New.
1896 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1897 (symbol_set_value_now): New.
1898 * symbols.h: Prototype them.
1899 * dwarf2dbg.c: Use them.
1900 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1902 2003-05-23 Jason Eckhardt <jle@rice.edu>
1904 * config/tc-i860.c (target_xp): Declare variable.
1905 (OPTION_XP): Declare macro.
1906 (md_longopts): Add option -mxp.
1907 (md_parse_option): Set target_xp.
1908 (md_show_usage): Add -mxp usage.
1909 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1910 (md_assemble): Don't try expansions if XP_ONLY is set.
1911 * doc/c-i860.texi: Document -mxp option and i860XP support.
1913 2003-05-23 Eric Christopher <echristo@redhat.com>
1915 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1917 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1919 * config/tc-mips.c (append_insn): Use actual relocation size for new
1920 fixp's. Don't relax overflow checking for partial_inplace relocations.
1921 Use the actual relocation type in combined relocs, not just the type
1923 (macro_build_jalr): Use actual relocation size for new fix.
1924 (s_cpsetup, s_gpdword): Likewise.
1926 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1928 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1930 2003-05-22 Nick Clifton <nickc@redhat.com>
1932 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1933 section relative offsets for relocs that will not be based on the
1935 (xstormy16_md_apply_fix3): Remove previous patch to this
1938 2003-05-07 Eric Christopher <echristo@redhat.com>
1940 * config/tc-mips.c (mips_abicalls): New variable.
1941 (md_parse_option): Use.
1943 (s_abicalls): Ditto.
1944 (mips_elf_final_processing): Set EF_MIPS_PIC and
1945 EF_MIPS_CPIC dependent on above.
1947 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1949 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1951 2003-05-21 Nick Clifton <nickc@redhat.com>
1953 * config/obj-elf.c: Include dwarf2dbg.h.
1954 (elf_pseudo_tab): Add .file and .loc.
1955 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1956 * config/tc-arm.c: Likewise.
1957 * config/tc-h8300.c: Likewise.
1958 * config/tc-hppa.c: Likewise.
1959 * config/tc-ia64.c: Likewise.
1960 * config/tc-m68hc11.c: Likewise.
1961 * config/tc-m68k.c: Likewise.
1962 * config/tc-mmix.c: Likewise.
1963 * config/tc-mn10300.c: Likewise.
1964 * config/tc-ppc.c: Likewise.
1965 * config/tc-sh.c: Likewise.
1966 * config/tc-sparc.c: Likewise.
1967 * config/tc-v850.c: Likewise.
1968 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1970 * config/tc-ip2k.c: Likewise.
1971 * config/tc-iq2000.c: Likewise.
1972 * config/tc-xstormy16.c: Likewise.
1973 * config/tc-xtensa.c: Likewise.
1974 * Makefile.am: Regenerate dependencies.
1975 * Makefile.in: Regenerate.
1976 * aclocal.m4: Regenerate.
1977 * config.in: Regenerate.
1978 * configure: Regenerate.
1979 * po/POTFILES.in: Regenerate.
1980 * po/gas.pot: Regenerate.
1982 2003-05-21 Nick Clifton <nickc@redhat.com>
1984 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1985 BFD_ASSEMBLER targets.
1986 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1987 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1988 defining BFD_ASSEMBLER.
1990 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1992 * as.c (main): Remove tc_cfi_init().
1993 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1995 (cfi_pseudo_table): Add "cfi_register" entry.
1996 (cfi_make_insn): Handle CFA_register.
1997 (cfi_output_insn): Ditto.
1999 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
2000 (dot_cfi_endproc): Reuse already emitted CIEs.
2001 * testsuite/gas/cfi/cfi-i386.d: New pattern.
2002 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
2004 2003-05-20 Nick Clifton <nickc@redhat.com>
2006 * config/tc-xstormy16.c: Include dwarf2dbg.h.
2007 (md_pseudo_table): Add entries for .loc and .line.
2009 2003-05-20 Alan Modra <amodra@bigpond.net.au>
2011 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
2013 (dot_cfi_endproc): Avoid C99 construct.
2015 2003-05-20 Michal Ludvig <mludvig@suse.cz>
2017 * dw2gencfi.c, dw2gencfi.h: New files.
2018 * config/tc-i386.c (tc_x86_cfi_init): New function.
2019 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
2020 * as.c (parse_args): Set verbose flag on --verbose.
2021 (main): Call tc_cfi_init()/cfi_finish().
2022 * as.h (verbose): New external variable.
2023 * read.c (pobegin): Insert CFI pops to the list.
2024 * symbols.c (local_symbol_make): Make symbol external.
2025 * symbols.h (local_symbol_make): New prototype.
2026 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
2027 * Makefile.in: Regenerate.
2028 * doc/as.texinfo: Added node "CFI directives" with description of
2029 all implemented .cfi_* directives.
2030 * doc/Makefile.in: Regenerate.
2031 * po/POTFILES.in: Regenerate.
2033 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
2035 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
2037 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
2039 2003-05-18 Jason Eckhardt <jle@rice.edu>
2041 * config/tc-i860.c (i860_process_insn): Initialize fc after
2042 each opcode mismatch.
2044 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
2046 * configure.in: Accept i[3-7]86 variants.
2047 * configure: Regenerate.
2049 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2051 * config/tc-mips.h: Fix comment formatting.
2053 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
2055 * read.c (old_buffer, old_input, old_limit): Remove variables.
2056 (read_a_source_file): Delete label contin.
2057 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
2058 input as with macros, instead of in separate old_* variables.
2059 Zero-terminate string being scrubbed.
2061 2003-05-12 Nick Clifton <nickc@redhat.com>
2063 * config/tc-xstormy16.c (skipping_fptr): New local variable.
2064 (md_assemble): Reset skipping_fptr.
2065 (md_operand): If @fptr() is followed by a minus sign, set
2066 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
2067 @fptr is detected, ignore it and reset skipping_fptr.
2069 2003-05-11 Jason Eckhardt <jle@rice.edu>
2071 * config/tc-i860.c (MAX_FIXUPS): Define.
2072 (struct i860_fi fi[]): New struct.
2073 (struct i860_it the_insn): Add above as member and move fields
2074 exp, reloc, pcrel and fup into i860_fi.
2075 (md_assemble): Replace all instances of exp, reloc, pcrel
2076 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
2077 Add a loop to possibly emit multiple fix-ups for each insn.
2078 (i860_process_insn): Likewise.
2079 (i860_get_expression): Likewise.
2080 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
2082 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2084 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
2086 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
2088 * config/tc-ia64.c (alias_hash): New.
2089 (alias_name_hash): New.
2090 (secalias_hash): New.
2091 (secalias_name_hash): New.
2092 (md_pseudo_table): Add "secalias".
2093 (md_begin): Initialize alias_hash, alias_name_hash,
2094 secalias_hash and secalias_name_hash.
2095 (struct alias): New.
2096 (dot_alias): Implement .alias and .secalias directives.
2098 (ia64_adjust_symtab): New.
2100 (ia64_frob_file): New.
2102 * config/tc-ia64.h (ia64_adjust_symtab): New.
2103 (tc_adjust_symtab): Defined.
2104 (ia64_frob_file): New.
2105 (tc_frob_file): Defined.
2107 2003-05-07 Dmitry Diky <diwil@mail.ru>
2109 * tc-msp430.c: Add missing lines to known cpus list.
2111 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
2113 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
2114 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
2115 * config.in, configure: Rebuilt.
2117 2003-05-05 H.J. Lu <hjl@gnu.org>
2119 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
2120 howto->partial_inplace is false.
2122 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
2124 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
2125 symbol_used_in_reloc_p check.
2126 (md_apply_fix3): Remove check for howto->pcrel_offset.
2128 2003-05-03 H.J. Lu <hjl@gnu.org>
2130 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
2131 fatal error for unknown section attribute.
2133 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
2134 unknown section attribute.
2135 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
2136 * config/tc-ppc.c (ppc_section_letter): Likewise.
2138 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
2139 (ia64_elf_section_type): Accept "unwind".
2141 2003-05-02 H.J. Lu <hjl@gnu.org>
2143 * read.h (demand_copy_string): New.
2145 * config/tc-alpha.c (demand_copy_string): Removed.
2147 2003-05-02 Michael Snyder <msnyder@redhat.com>
2149 * write.h (FAKE_LABEL_NAME): Allow override
2150 (for targets that like eg. a leading dot in a local label).
2152 2003-05-02 Nick Clifton <nickc@redhat.com>
2154 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
2155 addend with the symbol's value for pc-relative relocations against
2156 a defined symbol - this will be done automatically.
2158 2003-05-01 H.J. Lu <hjl@gnu.org>
2160 * config/obj-elf.c (obj_elf_type): Accept "notype" and
2163 2003-05-01 H.J. Lu <hjl@gnu.org>
2165 * config/tc-ia64.h (tc_canonicalize_section_name): New.
2167 * config/obj-elf.c (obj_elf_section_name): Call
2168 tc_canonicalize_section_name if it is defined.
2170 2003-05-01 H.J. Lu <hjl@gnu.org>
2172 * config/tc-ia64.c (ia64_check_label): New.
2173 * config/tc-ia64.h (tc_check_label): New.
2175 * read.c (read_a_source_file): Call tc_check_label after
2176 creating a user-defined label if defined.
2178 2003-05-02 Alan Modra <amodra@bigpond.net.au>
2180 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
2181 -be and split strings to below 509 bytes in length.
2183 2003-05-01 Christian Groessler <chris@groessler.org>
2185 * expr.h: Fix comments in operatorT typedef.
2186 * config/tc-z8k.c: Add 2003 to copyright message.
2187 Fold s_segm() and s_unseg() into one function s_segm(parm) which
2188 decides by the parameter.
2189 (md_begin): Don't set linkrelax. Only set Z8002 default if no
2190 command line argument was given to select the intended
2192 (get_interrupt_operand): Warn if NOP type code is emitted.
2193 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
2194 (apply_fix): Call newfix with additional 'size' parameter.
2195 (build_bytes): Remove unused variable 'nib'. Detect overflow in
2196 4 bit immediate arguments.
2197 (md_longopts): Add 'linkrelax' option.
2198 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
2199 variable when 'linkrelax' command line option is specified.
2200 (md_show_usage): Display 'linkrelax' option.
2201 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
2202 R_CALLR and R_REL16.
2203 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
2205 2003-04-30 H.J. Lu <hjl@gnu.org>
2207 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
2208 (ia64_float_to_chars): Likewise.
2209 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
2210 and ia64_float_to_chars by tc_segment_info_data.endian from
2211 the current segment if byteorder == -1.
2212 (md_begin): Call dot_byteorder to set target_big_endian.
2213 (md_atof): Call ia64_float_to_chars to convert floating point.
2214 (ia64_float_to_chars_bigendian): New function.
2215 (ia64_float_to_chars_littleendian): Likewise.
2216 (ia64_elf_section_change_hook): Likewise.
2218 * config/tc-ia64.h (ia64_number_to_chars): New.
2219 (md_number_to_chars): Changed to (*ia64_number_to_chars)
2220 (ia64_elf_section_change_hook): New.
2221 (md_elf_section_change_hook): Defined.
2222 (ia64_segment_info_type): New struct.
2223 (TC_SEGMENT_INFO_TYPE): Defined.
2225 2003-04-30 H.J. Lu <hjl@gnu.org>
2227 * config/tc-ia64.c (md_section_align): Deleted.
2229 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
2230 (md_section_align): New.
2232 2003-04-30 H.J. Lu <hjl@gnu.org>
2234 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
2236 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
2238 (md_atof): Add 6 byte padding of zero for real16.
2240 2003-04-29 Nick Clifton <nickc@redhat.com>
2242 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
2243 start of a version name.
2245 2003-04-28 Chris Demetriou <cgd@broadcom.com>
2247 * configure.in (mips-*-*n*bsd*): Replace with...
2248 (mips-*-netbsd*, mips-*-openbsd*): These.
2249 * configure: Regenerate.
2251 2003-04-28 H.J. Lu <hjl@gnu.org>
2253 * config/tc-hppa.c (hppa_symbol_chars): New.
2254 * config/tc-hppa.h (tc_symbol_chars): Likewise.
2256 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2258 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
2260 2003-04-25 Chris Demetriou <cgd@broadcom.com>
2262 * NEWS: Belatedly mention support for MIPS32 Release 2.
2264 2003-04-24 Eric Christopher <echristo@redhat.com>
2266 * config/tc-mips.c (nopic_need_relax): Revert previous
2269 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2271 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
2272 * config/tc-h8300.c (dwarf2dbg.h): Include
2273 (md_pseudo_table): Handle .loc and .file
2274 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
2275 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
2276 * Makefile.in: Regenerate.
2278 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2280 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
2281 (md_pseudo_table): Add h8300hn, h8300sn.
2282 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
2283 * doc/c-h8300.texi : Add documentation for new machine directives.
2285 2003-04-24 Nick Clifton <nickc@redhat.com>
2287 * config/tc-ppc.c (ppc_symbol_chars): Define.
2288 * config/tc-ppc.h (tc_symbol_chars): Define.
2290 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
2292 * config/tc-sh.c: Amend comment to refer to SuperH.
2293 * config/tc-sh.h: Likewise.
2294 (LISTING_HEADER): Amend to refer to SuperH.
2295 * config/tc-sh64.c: Change comment to refer to SuperH.
2296 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
2297 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
2298 * doc/c-sh.texi: Amend to refer to SuperH.
2299 Add SuperH architecture documentation references.
2300 * doc/c-sh64.texi: Change to refer to SuperH.
2302 2003-04-23 H.J. Lu <hjl@gnu.org>
2304 * app.c (do_scrub_chars): More checks for valid labels.
2306 2003-04-22 H.J. Lu <hjl@gnu.org>
2308 * app.c (do_scrub_chars): Check for valid label.
2310 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2312 * doc/as.texinfo: Replace references to Mitsubishi M32R with
2313 references to Renesas M32R.
2314 * doc/c-m32r.texi: Likewise.
2316 2003-04-21 Richard Henderson <rth@redhat.com>
2318 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
2319 (out_file_list): Assign non-null filename after generating error.
2321 2003-04-18 Jakub Jelinek <jakub@redhat.com>
2323 * ehopt.c (check_eh_frame): For aug_size == 0
2324 in state_seeing_aug_size state skip the state_skipping_aug
2327 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
2329 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
2331 * doc/c-h8500.texi: Likewise.
2332 * doc/c-sh.texi: Likewise.
2333 * doc/c-sh64.texi: Likewise.
2334 * doc/h8.texi: Likewise.
2335 * config/tc-h8300.c: Likewise.
2336 * config/tc-h8300.h: Likewise.
2337 * config/tc-h8500.c: Likewise.
2338 * config/tc-h8500.h: Likewise.
2339 * config/tc-sh.c: Likewise.
2340 * config/tc-sh.h: Likewise.
2341 * config/tc-sh64.c: Likewise.
2342 * config/tc-sh64.h: Likewise.
2344 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
2346 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
2347 * config/tc-mips.c: Use signed add for n32 address arithmetic.
2348 (append_insn): When filling delay slots with instructions
2349 that have fixups that tc_gen_reloc might consider modifyable
2350 in variant frags, start a new frag.
2351 (load_address): Generate GOT_DISP with of without offset
2352 depending on whether symbol is local. For -xgot, use
2353 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
2354 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
2355 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
2356 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
2357 <ld_st>: In NewABI with small got, always use
2358 GOT_PAGE/GOT_OFST, with the latter in the load/store
2359 instruction. With big got, use GOT_HI16/GOT_LO16 or
2361 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
2362 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
2363 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
2364 (md_convert_frag): Use memmove for safe copying of overlapping
2367 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
2369 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
2370 -mlong, -mshort-double and -mlong-double options; use table @code.
2371 (M68HC11-Syntax): Update to document 68HC12 operands.
2372 (M68HC11-Modifiers): New section for operand modifiers.
2373 (M68HC11-Directives): New section for specific assembler directives.
2374 (M68HC11-Branch): Fix Overfull hbox error.
2376 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
2378 * config/tc-mips.c (macro): Add comments explaining the rationale
2381 2003-04-09 Chris Demetriou <cgd@broadcom.com>
2383 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
2384 constant address that Alexandre took out by accident. Reject
2385 64-bit addresses that are not sign extensions of 32 bits only if
2386 we don't support 64-bit address constants.
2388 2003-04-09 Alan Modra <amodra@bigpond.net.au>
2390 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
2392 2003-04-08 Nick Clifton <nickc@redhat.com>
2394 * as.c (perform_an_assembly_pass): If using cgen, call
2396 * cgen.c (gas_cgen_begin): New function. If
2397 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
2398 otherwise call cgen_clear_signed_overflow_ok.
2399 * cgen.h: Prototype gas_cgen_begin.
2401 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2403 * write.c (write_relocs): Remove unused variable.
2405 2003-04-06 Chris Demetriou <cgd@broadcom.com>
2407 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
2408 (macro): Use new macro to decide whether to emit constant address
2409 as 32 or 64 bits if addresses are 32-bit wide but registers are
2412 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
2414 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
2415 (M6811_OP_PAGE_ADDR): New internal define.
2416 (get_operand): New modifier %page and %addr to obtain page and
2417 address part of a far-function.
2418 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
2419 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
2421 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
2422 (find_opcode): Add comment.
2423 (md_estimate_size_before_relax): Force relocation of
2424 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
2425 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
2426 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
2427 on the symbol itself so that DWARF2 strings are merged correctly.
2429 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
2431 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
2432 default tic4x target format to 'coff2-tic4x'.
2433 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
2435 * config/tc-tic4x.h: Ditto
2437 2003-04-03 Nick Clifton <nickc@redhat.com>
2439 * NEWS: Mention support for Xtensa architecture.
2441 2003-04-02 Philip Blundell <philb@gnu.org>
2443 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
2445 2003-04-02 Chris Demetriou <cgd@broadcom.com>
2447 * config/tc-mips.c (macro2): Adjust implementation of
2448 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
2449 in the case where the source and destination registers
2452 2003-04-01 Bob Wilson <bob.wilson@acm.org>
2454 * Makefile.am (CPU_TYPES): Add xtensa.
2455 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
2456 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
2457 (xtensa-relax.o): New target.
2459 * Makefile.in: Regenerate.
2460 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
2461 extra_objects for xtensa targets.
2462 * configure: Regenerate.
2463 * write.c (write_object_file): Add new md_post_relax_hook.
2464 * config/tc-xtensa.c: New file.
2465 * config/tc-xtensa.h: Likewise.
2466 * config/xtensa-istack.h: Likewise.
2467 * config/xtensa-relax.c: Likewise.
2468 * config/xtensa-relax.h: Likewise.
2469 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
2470 * doc/Makefile.in: Regenerate.
2471 * doc/all.texi: Set new XTENSA variable.
2472 * doc/as.texinfo: Set new Xtensa variable. Describe
2473 Xtensa-specific options. Define line comment character for
2474 Xtensa. Add Xtensa processors to list of ELF targets where
2475 alignment is specified in bytes. Add new Xtensa-Dependent node.
2476 Add acknowledgements for those contributing to the Xtensa port.
2477 * doc/internals.texi: Describe new md_post_relax_hook.
2478 * doc/c-xtensa.texi: New file.
2480 2003-04-01 Nick Clifton <nickc@redhat.com>
2481 Richard Earnshaw <rearnsha@arm.com>
2483 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
2484 (ARM_ARCH_IWMMXT): Simplify.
2485 (insns): Place iwmmx instructions in correct place in table.
2486 (arm_add_note): New function: Add a note entry to a .note section.
2487 (md_begin): Make the default architecture be unknown.
2488 Suppress the creation of an arm note section.
2490 2003-03-26 Eric Christopher <echristo@redhat.com>
2492 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
2494 2003-03-25 Stan Cox <scox@redhat.com>
2495 Nick Clifton <nickc@redhat.com>
2497 Contribute support for Intel's iWMMXt chip - an ARM variant:
2499 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
2500 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
2501 (enum wreg_type, enum iwmmxt_insn_type): New types.
2502 (wr_register, wc_register, wcg_register): New macros.
2503 (iwmmxt_table): New variable.
2504 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
2505 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
2506 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
2507 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
2508 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
2509 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
2510 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
2511 cp_byte_address_offset, cp_byte_address_required_here,
2512 check_iwmmxt_insn): New functions.
2513 (asm_opcode_insns): Add iWMMXt instructions.
2514 (md_begin): Set the mach value for iWMMXt targets. Create a note
2515 section to identify iwmmxt binaries.
2516 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
2517 * doc/c-arm.texi: Document the support for the iWMMXt.
2518 * NEWS: Mention new support.
2520 2003-03-24 Daniel Néri <dne@mayonnaise.net>
2522 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
2523 * doc/all.texi: Likewise.
2524 * doc/c-tic54x.texi: Likewise.
2526 2003-03-21 Andreas Schwab <schwab@suse.de>
2528 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
2529 avoid aliasing issue.
2531 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
2533 * config/tc-s390.c (s390_arch_size): Initialize to zero.
2534 (current_arch_mask): Rename to current_mode_mask.
2535 (current_arch_requested): Remove variable.
2536 (current_cpu): New variable.
2537 (init_default_arch): Set defaults values for s390_arch_size,
2538 current_mode_mask and current_cpu.
2539 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
2540 (md_begin): Replace current_arch_mask by current_cpu.
2541 (md_assemble): Adapt check and error message to current_mode_mask and
2544 2003-03-09 James E Wilson <wilson@tuliptree.org>
2546 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
2547 * read.c (get_line_sb): Return end of line character or '\n' if
2548 it is zero or non-existent.
2550 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
2552 * config/tc-mips.c (mips_validate_fix): New function.
2553 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
2554 (mips_validate_fix): Declare.
2556 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
2558 * Reverted 2003-03-02's patch.
2560 2003-03-11 Steve Ellcey <sje@cup.hp.com>
2562 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
2563 (TC_DWARF2_EMIT_OFFSET): Provide default.
2564 (out_debug_aranges, out_debug_info): Use it.
2565 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
2566 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
2567 (ia64_gen_real_reloc_type): ... here.
2568 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
2570 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2572 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
2573 (s_mips_ent): Likewise.
2575 2003-03-04 Dmitry Diky <diwil@mail.ru>
2577 * config/tc-msp430.c (mcu_types): Add recently announced x1122
2578 and x1123 devices, add missed x437.
2579 (md_show_usage): Sort device list.
2581 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
2583 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
2584 (md_begin): Use preset_target_arch.
2585 (md_longopts): Make isa option unconditional.
2586 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
2587 set preset_target_arch.
2588 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
2589 by -S_GET_VALUE (fixP->fx_subsy).
2590 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
2591 and the addend is 0.
2592 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
2593 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2595 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2597 * config/tc-mips.c (append_insn): Add handling of
2598 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
2599 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
2600 misaligned address and reange overflow.
2601 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
2602 earlier warnings about misaligned address and reange overflow.
2603 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2604 (md_apply_fix): Likewise. Fix warning output.
2605 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2606 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
2607 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2609 2003-02-21 Nick Clifton <nickc@redhat.com>
2611 * NEWS: Mention availability of test generator program.
2613 2003-02-21 Miles Bader <miles@gnu.org>
2615 * config/tc-v850.c (system_registers): Add v850e debug registers.
2616 (system_register_name): Accept up to 27 (the last v850e sys register).
2618 2003-02-21 Bob Wilson <bob.wilson@acm.org>
2620 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
2621 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
2622 Capitalize section headings consistently. Format index entries more
2623 consistently. Unconditionalize text about whether text and data
2624 sections are alterable. Use @ifnottex for alternatives to @tex output
2625 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
2626 .size and .type directives. Be more polite about bad bug reports.
2627 Move FDL into a separate file.
2628 * doc/fdl.texi: New file.
2630 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
2632 * config/tc-mips.c (prev_reloc_op_frag): New variable.
2633 (macro): Check it to decide whether a new frag is needed.
2634 (my_getSmallExpression): Set it.
2636 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2638 * cgen.c: Fix typo: intial -> initial.
2640 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
2642 * app.c (do_scrub_chars): Handle '||' in two states.
2644 2003-02-13 Alan Modra <amodra@bigpond.net.au>
2646 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
2647 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2649 2003-02-11 Uwe Stieber <uwe@wwws.de>
2651 * configure.in: Add support for kaOS as cross build target system.
2652 * configure: Regenerated.
2654 2003-02-10 Nick Clifton <nickc@redhat.com>
2656 * config/tc-arm.c (md_begin): If the Maverick co-processor is
2657 selected, set the EF_ARM_MAVERICK_FLOAT flag and
2658 bfd_mach_arm_ep9312 machine number.
2660 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
2662 * config/tc-mips.c (reloc_needs_lo_p): New function.
2663 (fixup_has_matching_lo_p): New function.
2664 (append_insn): Use reloc_needs_lo_p to check whether a relocation
2665 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
2666 if that fixup already has a matching %lo(). Don't call frag_wane here.
2667 (macro): Call frag_wane here if the last unmatched hi was in the
2669 (pic_need_relax): New function, split out from...
2670 (md_estimate_size_before_relax): ...here.
2671 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
2672 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
2674 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
2676 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
2678 2003-02-06 Alan Modra <amodra@bigpond.net.au>
2680 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
2683 2003-02-05 Alan Modra <amodra@bigpond.net.au>
2685 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2686 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2687 accept x@got+off etc.
2688 (md_assemble): Handle TLS relocs.
2689 (ppc_force_relocation): Force for all TLS relocs.
2690 (ppc_fix_adjustable): Likewise.
2691 (md_apply_fix3): Handle TLS relocs.
2693 2003-02-04 Alan Modra <amodra@bigpond.net.au>
2695 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2696 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2698 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
2700 * config/tc-mips.c (enum small_ex_type): Remove.
2701 (imm_unmatched_hi): Remove.
2702 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
2703 argument from calls to append_insn.
2704 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2706 (macro_build): Update append_insn calls.
2707 (mips16_macro_build, macro_build_lui): Likewise.
2708 (mips_ip): Rework handling of small expressions. Move explicit
2709 relocation handling into my_getSmallExpression. Assume that the
2710 value of 'o' operands is zero if there is only one bracketed
2712 (percent_op): Make constant. Record the BFD relocation code
2713 associated with each operator.
2714 (my_getSmallParser, my_getPercentOp): Remove.
2715 (parse_relocation): New function.
2716 (my_getSamllExpression): Rework. Fill in relocations here
2717 rather than in mips_ip.
2719 2003-01-29 Nick Clifton <nickc@redhat.com>
2721 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
2722 assembler's handling of # <linenum> "<filename>" directives work.
2724 2003-01-28 Jakub Jelinek <jakub@redhat.com>
2726 * dwarf2dbg.c: Include filenames.h.
2727 (struct file_entry): Make filename const char *.
2728 (dirs, dirs_in_use, dirs_allocated): New variables.
2729 (get_filenum): Add NUM argument. Build directory table.
2730 (dwarf2_where): Adjust caller.
2731 (dwarf2_directive_file): Use get_filenum to allocate
2732 slot in file and directory tables.
2733 (dwarf2_directive_loc): Recreate full filename from
2734 directory and filename part if needed for listing.
2735 (out_file_list): Output directory table.
2736 Output main source file dirname before its filename.
2738 2003-01-28 Dmitry Diky <diwil@mail.ru>
2740 * config/tc-msp430.c: Replace occurences of 'tolower' with
2743 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2745 * config/tc-ia64.c (dot_vframesp): Correct error message.
2746 (dot_vframepsp): Ditto.
2748 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2750 * configure.in (em): Set to irix on all Irix systems.
2751 * configure: Rebuilt.
2752 * config/te-irix.h: New file.
2753 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2754 whether to use Irix-specific 64-bit format.
2756 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2758 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2760 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2762 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2763 (tc_gen_reloc): Handle TLS relocs.
2764 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2765 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2767 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2768 (obj_elf_type): Handle tls_object.
2770 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2772 * config/tc-s390.c (s390_tls_suffix): New function.
2773 (elf_suffix_type): Add suffix enums for TLS relocations.
2774 (s390_elf_suffix): Add suffix strings for TLS relocations.
2775 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2777 (md_gather_operands): Map new instruction operand/elf suffix
2778 combinations for TLS to bfd relocations.
2779 (tc_s390_fix_adjustable): Add new TLS relocations.
2780 (tc_s390_force_relocation): Likewise.
2781 (md_apply_fix3): Likewise.
2783 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2785 * as.h: Update copyright date.
2786 * symbols.c: Likewise.
2787 * config/tc-d10v.h: Likewise.
2788 * config/tc-fr30.h: Likewise.
2789 * config/tc-i960.h: Likewise.
2790 * config/tc-mips.h: Likewise.
2792 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2793 (MD_APPLY_SYM_VALUE): Move.
2795 2003-01-23 Nick Clifton <nickc@redhat.com>
2797 * NEWS: Announce sh2e support.
2800 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2801 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2802 (sh_elf_final_processing): Handle arch_sh2e.
2804 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2806 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2807 * symbols.h (S_FORCE_RELOC): Likewise.
2808 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2809 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2810 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2811 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2812 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2813 * write.c (generic_force_reloc): New function.
2814 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2815 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2816 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2817 * as.h (generic_force_reloc): Declare.
2818 * doc/internals.texi (S_FORCE_RELOC): Update.
2819 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2821 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2822 generic_force_reloc.
2823 (alpha_fix_adjustable): Likewise.
2824 * config/tc-arm.c (arm_force_relocation): Likewise.
2825 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2826 * config/tc-frv.c (frv_force_relocation): Likewise.
2827 * config/tc-i386.c (md_apply_fix3): Likewise.
2828 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2829 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2830 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2831 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2832 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2833 * config/tc-mips.c (mips_force_relocation): Likewise.
2834 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2835 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2836 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2837 * config/tc-sh.c (sh_force_relocation): Likewise.
2838 (md_pcrel_from_section): Likewise.
2839 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2840 * config/tc-v850.c (v850_force_relocation): Likewise.
2841 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2842 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2843 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2844 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2846 * config/tc-d10v.c (d10v_force_relocation): Delete.
2847 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2848 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2849 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2850 * config/tc-fr30.c (fr30_force_relocation): Delete.
2851 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2852 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2853 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2854 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2855 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2856 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2857 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2858 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2859 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2860 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2861 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2862 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2863 * config/tc-i386.c (i386_force_relocation): Delete.
2864 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2866 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2867 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2868 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2869 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2871 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2872 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2874 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2876 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2877 sh64_elf_section_data.
2878 * config/tc-sh64.h: Include elf32-sh64.h.
2879 * config/tc-m68hc11.c: Don't include stdio.h.
2880 (md_show_usage): Fix missing continuation.
2881 * Makefile.am: Run "make dep-am".
2882 * Makefile.in: Regenerate.
2884 2003-01-22 Nick Clifton <nickc@redhat.com>
2886 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2888 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2890 * configure.in: Handle *-*-aros*.
2891 * configure: Regenerated from configure.in.
2893 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2895 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2896 gotplt and pltoff relocations.
2897 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2898 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2899 gotplt and pltoff to bfd relocations.
2900 (md_gather_operands): Map new instruction operand/elf suffix
2901 combinations to bfd relocations.
2902 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2903 to the list of unadjustable relocations.
2904 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2905 and pltoff relocations.
2906 (md_apply_fix3): Add the new relocations.
2908 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2910 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2911 with a subsy symbol.
2913 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2915 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2916 of relocs for memory bank addressing.
2918 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2920 * config/tc-m68hc11.c (md_show_usage): Update usage.
2921 (md_parse_option): Recognize -m68hcs12.
2922 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2924 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2926 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2928 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2930 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2932 * Makefile.am: Run "make dep-am".
2933 * Makefile.in: Regenerate.
2934 * po/POTFILES.in: Regenerate.
2936 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2938 * read.c (get_absolute_expr): New, split out from..
2939 (get_absolute_expression): ..here.
2940 * read.h (get_absolute_expr): Declare.
2941 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2942 Trim size to arch bits_per_address, and test for negative input
2943 via get_absolute_expr.
2945 2003-01-07 DJ Delorie <dj@redhat.com>
2947 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2949 (xstormy16_md_apply_fix3): Use adjustment.
2951 2003-01-02 Ben Elliston <bje@redhat.com>
2953 * configure.in: Add iq2000-elf target.
2954 * configure: Regenerate.
2955 * config/tc-iq2000.c: New file.
2956 * config/tc-iq2000.h: Likewise.
2957 * po/gas.pot: Regenerate.
2959 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2961 * config/tc-mips.c: Update copyright years to include 2003.
2962 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2963 Additionally, clean up their code slightly and clean up their
2966 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2968 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2970 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2972 * doc/Makefile.in: Regenerate.
2974 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2976 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2977 of .init and .fini sections for array initializers and finalizers.
2979 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2981 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2982 the "+D" operand, which will be used only by the disassembler.
2984 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2986 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2988 * configure: Regenerate.
2989 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2990 (macro_build): Handle "K" operand.
2991 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2992 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2993 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2994 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2995 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2996 (validate_mips_insn): Implement "+" as a way to extend the
2997 allowed operands, and implement "K", "+A", "+B", and "+C"
2999 (OPTION_MIPS32R2): New define.
3000 (md_longopts): Add entry for OPTION_MIPS32R2.
3001 (OPTION_ELF_BASE): Adjust to accommodate OPTIONS_MIPS32R2.
3002 (md_parse_option): Handle OPTION_MIPS32R2.
3003 (s_mipsset): Reimplement handling of ".set mipsN" options
3004 and add support for ".set mips32r2".
3005 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
3006 (md_show_usage): Document "-mips32r2" option.
3007 * doc/as.texinfo: Document "-mips32r2" option.
3008 * doc/c-mips.texi: Likewise.
3010 2002-12-30 Dmitry Diky <diwil@mail.ru>
3012 * configure.in: Add msp430 target.
3013 * configure: Regenerate.
3014 * Makefile.am: Add msp430 target.
3015 * Makefile.in: Regenerate.
3016 * config/tc-msp430.c: New file: msp430 assembler.
3017 * config/tc-msp430.h: New file: target macros for msp430.
3018 * doc/Makefile.am: Add msp430 target.
3019 * doc/Makefile.in: Regenerate.
3020 * doc/as.texinfo: Include msp430 documenation.
3021 * doc/all.texi: Enable msp430 documentation.
3022 * doc/c-msp430.texi: New file: document msp430 specific features
3025 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
3027 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
3028 (dwarf2_finish): Use it.
3029 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
3030 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
3032 2002-12-20 DJ Delorie <dj@redhat.com>
3034 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
3035 BFD_RELOC_XSTORMY16_12.
3037 2002-12-19 Alan Modra <amodra@bigpond.net.au>
3039 * doc/as.texinfo (Invoking): Typo fix.
3040 * config/tc-tic54x.c (encode_operand): Comment typo fix.
3042 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
3044 * doc/c-alpha.texi: Fix typos.
3045 * doc/c-arm.texi: Likewise.
3046 * doc/c-d10v.texi: Likewise.
3047 * doc/c-i370.texi: Likewise.
3048 * doc/c-i960.texi: Likewise.
3049 * doc/c-ia64.texi: Likewise.
3050 * doc/c-mmix.texi: Likewise.
3051 * doc/c-ns32k.texi: Likewise.
3052 * doc/c-pdp11.texi: Likewise.
3053 * doc/c-pj.texi: Likewise.
3054 * doc/c-sh64.texi: Likewise.
3055 * doc/c-sparc.texi: Likewise.
3056 * doc/c-tic54x.texi: Likewise.
3057 * doc/c-v850.texi: Likewise.
3058 * doc/c-vax.texi: Likewise.
3059 * doc/internals.texi: Likewise.
3061 2002-12-18 Chris Demetriou <cgd@broadcom.com>
3063 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
3064 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
3065 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
3066 arrange not to issue warnings about use of AT when AT is not
3069 2002-12-17 Nick Clifton <nickc@redhat.com>
3071 * as.c (std_longopts): Duplicate --keep-locals entry in order to
3072 prevent it being confused with -k.
3074 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
3076 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
3077 has already been set up, use it.
3079 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
3081 * ChangeLog-9295: Fix a typo.
3083 * config/tc-d10v.c: Fix a comment typo.
3084 * config/tc-dlx.c: Likewise.
3085 * config/tc-h8300.h: Likewise.
3086 * config/tc-h8500.h: Likewise.
3087 * config/tc-mips.c: Likewise.
3088 * config/tc-s390.c: Likewise.
3089 * config/tc-sh.h: Likewise.
3090 * config/tc-tic80.h: Likewise.
3091 * config/tc-w65.h: Likewise.
3092 * config/tc-z8k.c: Likewise.
3093 * config/tc-z8k.h: Likewise.
3094 * testsuite/gas/h8300/cmpsi2.s: Likewise.
3096 2002-12-16 Alan Modra <amodra@bigpond.net.au>
3098 * config/tc-d30v.c (check_range): Warning fixes, formatting.
3099 Simplify sign extension. Remove redundant unsigned < 0 test.
3100 * config/tc-i960.c (md_ri_to_chars): Prototype.
3101 * config/tc-mcore.c (md_pseudo_table): Fix typo.
3102 (dump_literals): Init brarsym, and test later instead of isforce.
3104 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
3105 (parse): Constify line and lineptr.
3106 (md_begin): Calculate endop here.
3108 2002-12-13 Alan Modra <amodra@bigpond.net.au>
3110 * config/obj-vms.c: Formatting. Include fnctl.h.
3111 (Create_VMS_Object_File): Fix creat call for sane unix systems.
3112 (Object_Record_Offset): Make it a size_t.
3113 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
3114 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
3115 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
3116 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
3117 (vms_fixup_data_section <data_size>): Add here instead.
3118 * config/e-criself.c: Fix typo in last change.
3120 2002-12-13 Alan Modra <amodra@bigpond.net.au>
3122 * write.c (write_object_file): Fix signed/unsigned warning.
3123 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
3124 * config/e-criself.c (criself_bfd_name): Prototype.
3125 * config/obj-aout.c (s_sect): Remove unused function.
3126 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
3127 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
3128 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
3129 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
3130 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
3131 (VMS_RSYM_Parse <Current_Routine>): Likewise.
3132 (vms_fixup_text_section <text_siz>): Likewise.
3133 (synthesize_data_segment <data_size>): Likewise.
3134 (vms_fixup_xtors_section <sect_no>): Likewise.
3135 (structure_count): Don't use implicit int type.
3136 * config/tc-a29k.c (insert_sreg): Prototype.
3137 (define_some_regs): Prototype, make static.
3138 (parse_operand): Likewise.
3139 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
3140 (md_show_usage <stream>): Likewise.
3141 (md_section_align <segment>): Likewise.
3142 (md_convert_frag <all args>): Likewise.
3143 (md_estimate_size_before_relax <all args>): Likewise.
3144 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
3145 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
3146 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
3147 (md_undefined_symbol <name>): Likewise.
3148 (md_convert_frag <all args>): Likewise.
3149 (write_long <opcode>): Likewise.
3150 (tc_gen_reloc <seg>): Likewise.
3151 (md_estimate_size_before_relax <all args>): Likewise.
3152 (md_apply_fix3 <seg>): Likewise.
3153 (s_d30v_align <ignore>): Likewise.
3154 (build_insn): Correct format string.
3155 (md_apply_fix3): Likewise.
3156 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
3157 (md_undefined_symbol <name>): Likewise.
3158 (md_convert_frag <all args>): Likewise.
3159 (md_cgen_lookup_reloc <insn>): Likewise.
3160 (md_begin): Delete unused vars.
3161 (md_assemble): Likewise.
3162 (md_estimate_size_before_relax): Likewise.
3163 (fr30_relax_frag): #if 0 out, seems unused.
3164 (md_atof): Remove declaration of atof_ieee.
3165 (restore_colon): Prototype.
3166 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
3167 (frv_find_in_vliw): Likewise.
3168 (frv_debug_tomcat): Likewise.
3169 (frv_adjust_vliw_count): Likewise.
3170 (frv_tomcat_shuffle): Likewise.
3171 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
3172 frv_find_in_vliw call.
3173 (md_atof): Remove declaration of atof_ieee.
3174 * config/tc-h8500.c (cons): Delete declaration.
3175 (md_begin <opcode>): Constify.
3176 (displacement_size, immediate_size, absolute_size): Remove.
3177 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
3178 (tc_crawl_symbol_chain <headers>): Likewise.
3179 (md_undefined_symbol <name>): Likewise.
3180 (tc_headers_hook <headers>): Likewise.
3181 (md_parse_option <c,arg>): Likewise.
3182 (md_show_usage <stream>): Likewise.
3183 (md_convert_frag <headers, seg>): Likewise.
3184 (tc_coff_symbol_emit_hook <ignore>): Likewise.
3185 (md_atof): Remove declaration of atof_ieee.
3186 (tc_aout_fix_to_chars): Remove unused function.
3187 (parse_reg): Prototype.
3188 (parse_exp): Prototype.
3189 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
3190 (parse_reglist): Prototype.
3191 (get_operand): Prototype.
3192 (get_operands): Prototype.
3193 (get_specific): Prototype. Make "this_index" signed.
3194 (check): Prototype, make static.
3196 (build_relaxable_instruction): Prototype, make static.
3197 (build_bytes): Prototype.
3198 (wordify_scb): Prototype.
3199 * config/tc-h8500.h (start_label): Declare.
3200 (tc_coff_sizemachdep): Declare.
3201 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
3202 (i370_rmode <unused>): Likewise.
3203 (i370_csect <unused>): Likewise.
3204 (i370_dc <unused>): Likewise.
3205 (i370_ds <unused>): Likewise.
3206 (i370_elf_lcomm <unused>): Likewise.
3207 (i370_ltorg <ignore>): Likewise.
3208 (i370_using <ignore>): Likewise.
3209 (i370_drop <ignore>): Likewise.
3210 (i370_byte <ignore>): Likewise.
3211 (i370_tc <ignore>): Likewise.
3212 (md_estimate_size_before_relax <fragp, seg>): Likewise.
3213 (md_convert_frag <all args>): Likewise.
3214 (md_undefined_symbol <name>): Likewise.
3215 (md_pcrel_from_section <sec>): Likewise.
3216 (tc_gen_reloc <seg>): Likewise.
3217 (i370_section_letter): #if 0 unused functions.
3218 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
3219 (symbol_locate): Prototype.
3220 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
3221 (md_number_to_disp, md_number_to_field): Remove.
3222 (md_apply_fix3): Correct format string and cast "fup".
3223 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
3224 (s_endian <ignore>): Likewise.
3225 (md_undefined_symbol <name>): Likewise.
3226 (tc_crawl_symbol_chain <headers>): Likewise.
3227 (tc_set_bal_of_call): Likewise.
3228 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
3229 (i960_handle_align <fragp>): Likewise.
3230 (i960_validate_fix <this_segment_type>): Likewise
3231 (tc_gen_reloc <section>): Likewise.
3232 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
3233 (struct memS, struct regop): Forward declare.
3234 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
3235 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
3236 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
3237 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
3238 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
3239 (md_chars_to_number, md_number_to_imm): Make static, prototype.
3240 (md_number_to_field): Likewise.
3241 (md_number_to_disp): Remove unused function.
3242 (md_atof): Remove declaration of atof_ieee.
3243 (md_apply_fix3): Correct md_number_to_imm call.
3244 * config/tc-ip2k.c (md_assemble): Warning fix.
3245 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
3246 (fill_insn <ignore>): Likewise.
3247 (debug_sym <ignore>): Likewise.
3248 (md_undefined_symbol <name>): Likewise.
3249 (m32r_scomm <ignore>): Likewise.
3250 (md_convert_frag <abfd>): Likewise.
3251 (md_cgen_lookup_reloc <insn>): Likewise.
3252 (m32r_record_hi16 <seg>): Likewise.
3253 (md_estimate_size_before_relax): #if 0 old_fr_fix.
3254 (allow_m32rx): Prototype.
3255 (first_writes_to_seconds_operands): Prototype.
3256 (writes_to_pc): Prototype.
3257 (can_make_parallel): Prototype.
3258 (make_parallel): Prototype.
3259 (target_make_parallel): Prototype.
3260 (assemble_two_insns): Prototype.
3261 (m32r_record_hi16): Prototype.
3262 (md_atof): Remove declaration of atof_ieee.
3263 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
3264 (m32r_force_relocation): Prototype.
3265 (m32r_elf_section_change_hook): Prototype.
3266 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
3267 (md_show_usage): Fix signed/unsigned warning.
3268 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
3269 (calcop): Ditto for reg_prefix var.
3270 (hexval): Add cast to fix signed/unsigned warning.
3271 (md_number_to_disp): Delete unused function.
3272 (md_number_to_field): Likewise.
3273 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
3274 (match_name): Prototype.
3275 (get_bf2): Prototype.
3276 (get_bf_offset_expression): Prototype.
3277 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
3278 (md_undefined_symbol <ignore>): Likewise.
3279 (md_create_short_jump <all args>): Likewise.
3280 (md_create_long_jump <all args>): Likewise.
3281 (md_convert_frag <abfd, sec>): Likewise.
3282 (md_apply_fix3 <segment>): Likewise.
3283 (md_section_align <segment>): Likewise.
3284 (md_pcrel_from_section <sec>): Likewise.
3285 (tc_gen_reloc <section>): Likewise.
3286 (reg_m, reg_n, immediate): Delete unused vars.
3287 (dump_literals): Fix signed/unsigned warning.
3288 (enter_literal): Likewise.
3289 (parse_imm): Likewise. Also fix format string.
3290 (parse_mem): Remove unused var.
3291 (md_assemble <LS>): Abort on unexpected inst.
3292 (md_atof): Remove declaration of atof_ieee.
3293 (md_parse_option): Remove unused vars.
3294 (md_apply_fix3): Fix format strings, cast args.
3295 (tc_gen_reloc): Delete unused var.
3296 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
3297 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
3298 (md_undefined_symbol <name>): Likewise.
3299 (md_convert_frag <abfd>): Likewise.
3300 (tc_gen_reloc <seg>): Likewise.
3301 (check_operand <insn>): Likewise.
3302 (md_convert_frag): Fix format strings.
3303 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
3304 * config/tc-openrisc.c (ignore_pseudo): Prototype.
3305 (md_atof): Remove declaration of atof_ieee.
3306 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
3307 (md_apply_fix3): Fix bogus >>='s.
3308 (md_undefined_symbol): Delete unused var.
3309 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
3310 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
3311 (fake_opcode): Adjust for pj_opc_int_t change.
3312 (md_begin): Likewise.
3313 (md_assemble): Likewise.
3314 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
3315 instead of non-existent third arg of parse_exp_save_ilp.
3316 (md_parse_option): Correct "little" and "big" calls.
3317 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
3318 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
3319 (tc_gen_reloc <section>): Likewise.
3320 * config/tc-tic30.c: #include stdarg.h or varargs.h.
3321 (debug): Rewrite using VA_* macros.
3322 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
3323 (md_convert_frag): Likewise.
3324 (md_parse_option): Likewise.
3325 (md_show_usage): Likewise.
3326 (md_undefined_symbol): Likewise.
3327 (tc_gen_reloc): Likewise.
3328 (md_operand): Likewise.
3329 (tc_aout_pre_write_hook): Delete.
3330 (struct tic30_insn): Make "operands" unsigned.
3331 (struct tic30_par_insn): Likewise.
3332 (md_assemble): Likewise for "count", "i" and "numops".
3333 (tic30_parallel_insn): Likewise for vars here.
3334 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
3335 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
3336 * config/tc-tic80.c (obj_coff_section): Delete declaration.
3337 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
3338 (md_undefined_symbol): Likewise.
3339 (md_parse_option): Likewise.
3340 (md_convert_frag): Likewise.
3341 (tc_coff_symbol_emit_hook): Likewise.
3342 (md_atof): Remove declaration of atof_ieee.
3343 (const_overflow): Warning fixes, tidy.
3344 (get_operands): Delete unused vars.
3345 (internal_error_a): Adjust format string to expect a long for arg.
3346 (find_opcode): Warning fixes, simplify.
3347 (build_insn): Cast internal_error_a arg.
3348 (md_begin): Likewise.
3349 (md_apply_fix3): Likewise.
3350 (md_assemble): Delete unused var.
3351 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
3352 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
3353 (whatreg, parse_reg, parse_exp): Make static, prototype.
3354 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
3355 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
3356 (get_operand, get_operands, get_specific, newfix): Likewise.
3357 (apply_fix, build_bytes): Likewise.
3358 (md_atof): Remove declaration of atof_ieee.
3359 (tc_aout_fix_to_chars): Delete.
3360 (md_begin): Constify "opcode". Don't try to init opcode->idx.
3362 (md_parse_option): Fix s_segm and s_unseg calls.
3364 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3366 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
3368 (RELAX_BRANCH_RELOC_S2): Delete.
3369 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
3370 Do not handle BFD_RELOC_16_PCREL.
3371 (macro_build, mips_ip): Likewise.
3372 (md_pcrel_from): Return 4 for undefined symbols regardless of
3374 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
3375 Don't dereference howto if no such relocation is available.
3376 Do not apply hack for in-place zero addend in NEWABI.
3377 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
3379 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
3380 Alan Modra <amodra@bigpond.net.au>
3382 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
3383 (TC_LINKRELAX_FIXUP): Add comments.
3385 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3387 * config/tc-mn10300.c (set_arch_mach): Change argument type to
3389 (r_register_name, xr_register_name): Add prototype declarations.
3391 2002-12-08 H.J. Lu <hjl@gnu.org>
3393 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
3394 copied from tc-i386.c.
3396 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
3398 Fix Bug savannah/1825:
3399 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
3400 (md_relax_table): Define specific relax for PC-rel offsets.
3401 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
3402 (m68hc11_relax_frag): Handle the new relax code.
3403 (md_convert_frag): Likewise.
3404 (md_estimate_size_before_relax): Likewise.
3406 2002-12-08 Alan Modra <amodra@bigpond.net.au>
3408 * subsegs.c (section_symbol): Use the symbol, not the section, name.
3410 2002-12-05 Richard Henderson <rth@redhat.com>
3412 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
3413 (ia64_gen_real_reloc_type): Handle it.
3414 (pseudo_func): Add @ltoffx.
3415 (md_begin): Build .<ltoffx>.
3416 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
3418 2002-12-05 Alan Modra <amodra@bigpond.net.au>
3420 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
3421 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
3422 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
3423 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
3424 COFF to call arm_force_relocation.
3426 2002-12-04 David Mosberger <davidm@hpl.hp.com>
3428 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
3430 (emit_one_bundle): Handle "hint" instruction.
3431 (operand_match): Match IA64_OPND_AR_CSD.
3433 2002-12-04 Alan Modra <amodra@bigpond.net.au>
3435 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
3438 2002-12-03 Nick Clifton <nickc@redhat.com>
3440 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
3441 .PPC.EMB.apuinfo sections.
3443 2002-12-03 Richard Henderson <rth@redhat.com>
3445 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
3447 2002-12-03 Alan Modra <amodra@bigpond.net.au>
3449 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
3450 (cons, s_align_bytes): Delete declaration.
3452 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
3454 (dot): Delete unused function.
3455 (w65_expression): Remove unused arg.
3456 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
3458 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
3460 (get_specific): Prototype. Constify "struct opinfo *" arg and return
3462 (check): Remove unused function.
3463 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
3464 on unhandled switch case.
3465 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
3467 (tc_crawl_symbol_chain): Delete unused function.
3468 (tc_headers_hook): Likewise.
3469 (tc_Nout_fix_to_chars): Likewise.
3470 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
3471 (md_parse_option): Likewise.
3472 (md_convert_frag): Likewise.
3473 (tc_coff_symbol_emit_hook): Likewise.
3474 (md_show_usage): Likewise.
3475 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
3476 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
3477 (w65_expression): Declare.
3479 * po/POTFILES.in: Regenerate.
3481 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
3482 and ARM_ADRL_IMMEDIATE.
3484 2002-12-02 Nick Clifton <nickc@redhat.com>
3486 * gasp.c: Delete. It has been deprecated.
3487 * NEWS: Mention that gasp has been removed.
3488 * Makefile.am: Remove references to gasp.
3489 * makefile.vms: Likewise.
3490 * mpw-make.sed: Likewise.
3491 * Makeile.in: Regenerate.
3492 * doc/gasp.texi: Delete.
3493 * doc/Makefile.am: Remove references to gasp.texi.
3494 * doc/Makefile.in: Regenerate.
3495 * macro.c: Delete references to gasp.
3496 Remove use of comment_char function parameter as it is no longer
3498 * macro.h: Update prototypes to remove comment_char parameter.
3500 * read.c (read_a_source_file, s_irp): Remove comment_char
3501 parameter from invocation of functions in macro.c
3503 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
3505 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
3507 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3509 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
3510 (tc_gen_reloc): Mark section param as not used.
3512 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3514 Fix Bug savannah/1825:
3515 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
3516 that are not pc-relative.
3517 (m68hc11_relax_frag): Declare.
3519 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
3520 the offsetable indexed addressing modes (n,r).
3521 (build_insn): Cleanup some locals.
3522 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
3523 relaxation of difference between two symbols of same section.
3524 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
3525 only when this is a PC-relative operand and the offset is not absolute.
3526 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
3527 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
3528 be handled by m68hc11_relax_frag.
3530 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3532 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
3533 (32-bit int, 64-bit double).
3534 (md_longopts): New options -mshort, -mlong, -mshort-double and
3535 -mlong-double to control the ABI.
3536 (md_show_usage): Update.
3537 (md_parse_option): Handle new options.
3538 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
3540 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
3542 * symbols.c (report_op_error): New function, broken out of ...
3543 (resolve_symbol_value): ... here. Use for both monadic and dyadic
3546 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3548 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
3549 for BFD_RELOC_32_PLT_PCREL.
3551 2002-11-30 Alan Modra <amodra@bigpond.net.au>
3553 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
3554 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
3555 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
3556 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
3557 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
3558 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
3559 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
3560 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
3561 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
3562 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
3563 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
3564 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
3565 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
3566 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
3567 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
3568 TRUE/FALSE. Formatting.
3570 2002-11-29 Nick Clifton <nickc@redhat.com>
3572 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
3573 assume a value of zero.
3574 (do_bkpt): Likewise.
3576 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3578 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3579 for TLS relocations.
3581 2002-11-29 Jakub Jelinek <jakub@redhat.com>
3583 * config/tc-ia64.c (md_apply_fix3): Add default case.
3585 2002-11-28 Jakub Jelinek <jakub@redhat.com>
3587 * symbols.c (S_SET_THREAD_LOCAL): New function.
3588 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
3589 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3590 for TLS relocations.
3591 * config/tc-ia64.c (md_apply_fix3): Likewise.
3592 * config/tc-alpha.c (md_apply_fix3): Likewise.
3594 2002-11-28 Jakub Jelinek <jakub@redhat.com>
3596 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
3599 2002-11-26 DJ Delorie <dj@redhat.com.
3601 * dwarf2dbg.c (scale_addr_delta): New.
3602 (size_inc_line_addr): Use it.
3603 (emit_inc_line_addr): Use it.
3605 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
3607 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
3608 (md_assemble): Don't pass on branches to constants as relaxable.
3611 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
3613 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
3615 2002-11-21 Randolph Chung <randolph@tausq.org>
3617 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
3618 only if they have default visibility.
3620 2002-11-21 Richard Henderson <rth@redhat.com>
3622 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
3625 2002-11-21 Alan Modra <amodra@bigpond.net.au>
3627 * config/tc-mcore.c (mcore_pool_count): New function.
3628 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
3630 2002-11-20 Klee Dienes <kdienes@apple.com>
3632 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
3633 coalesce the name fields to use the same pointer.
3635 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
3636 the name fields to use the same pointer.
3637 (get_specific): Check for opcodes with the same name using strcmp
3638 as well as comparing the pointer.
3640 2002-11-20 Alan Modra <amodra@bigpond.net.au>
3642 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
3645 2002-11-19 Richard Henderson <rth@redhat.com>
3647 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
3648 visibility portion of st_other.
3650 2002-11-19 Klee Dienes <kdienes@apple.com>
3652 * config/tc-h8300.c (struct h8_instruction): New type, used to
3653 wrap h8_opcodes with length, noperands, idx, and size fields
3654 (computed at run-time).
3655 (h8_instructions): New variable.
3656 (md_begin): Allocate the storage for h8_instructions. Fill
3657 h8_instructions with pointers to the appropriate opcode and the
3658 correct value for the additional fields.
3659 (clever_message): Update to use h8_instructions instead of
3661 (build_bytes): Ditto.
3662 (get_specific): Ditto.
3663 (md_assemble): Ditto.
3665 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3667 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
3668 adjustments to symbols in merge sections.
3670 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
3672 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
3674 2002-11-18 Kevin Buettner <kevinb@redhat.com>
3676 * dwarf2dbg.h (dwarf2_format): New enum.
3677 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
3678 (out_debug_line, out_debug_info): Add code for handling 64-bit
3680 * config/tc-mips.h (mips_dwarf2_format): Declare.
3681 * config/tc-mips.c (mips_dwarf2_format): New function.
3682 * doc/internals.texi (DWARF2_FORMAT): Document.
3684 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
3686 * config/tc-mips.c (s_change_section): Make sure input buffer
3687 is not accessed past the end. Don't hand
3688 obj_elf_change_section a pointer into the input buffer.
3690 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
3692 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3695 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3697 * config/tc-tic4x.c: Fixed proper commandline
3698 parameters. Added support for new opcode-list format. General
3699 error message fixups.
3700 (c4x_inst_add): Reject insn not for our CPU
3701 (md_begin): Added matrix for setting the proper opcode-level &
3702 device-flags according to cpu type and revision. Rewrite the
3704 (c4x_operand_parse): Fix opcode bug
3705 (c4x_operands_match): New function argument. Added dry-run
3706 mechanism, that is optional error generation. Added constraint 'i'
3708 (c4x_insn_check): Added new function for post-verification of the
3710 (md_assemble): Check all opcodes before croaking because of an
3711 argument mismatch. Need this to be able to fully support
3712 ortogonally arguments.
3713 (md_parse_options): Revised commandprompt swicthes and added new
3715 (md_show_usage): Complete rewrite of printout.
3717 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
3719 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3720 (c4x_operands_match): Added check for 8-bits LDF insn. Give
3721 warning when using constant direct bigger than 2^16. Add the new
3724 2002-11-11 Christopher Faylor <cgf@redhat.com>
3726 * configure.in: Use .gdbinit under Cygwin.
3727 * configure: Regenerate.
3729 2002-11-11 Christopher Faylor <cgf@redhat.com>
3731 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3734 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
3736 * config/tc-tic4x.c: Declare as many functions as possible as
3737 static. Maintenance on the general indenting. Removed unnecessary
3738 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3739 function. Add support for new DSP, TMS320VC33. Fix bug for
3740 converting flonum constants.
3741 (c4x_do_align): Add proper align handling. Setup align to insert
3743 (c4x_gen_to_words): Support for extended TI type floats.
3744 (md_atof): Proper dumping of multiple-word littlenums.
3745 (c4x_atof): Added support for extended TI type floats.
3746 (c4x_stringer): Added new function to handle compact strings.
3747 (c4x_emit_char): Added new function argument to handle custom
3748 length inserts, like single-byte strings.
3749 * config/tc-tic4x.h: Add proper align handling with NOP's.
3750 * Makefile.am: Added tic4x dependecy
3751 * Makefile.in: Regenerate
3753 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3755 * macro.c (get_any_string): Correct logic for not going beyond end
3758 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3760 * config/tc-mmix.c (get_putget_operands): Mark both possible
3761 operands as invalid at beginning.
3763 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3764 Initialize target of fixup to zero.
3766 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3768 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3769 NEWABI, but we should still emit HI16_S for non-PIC n32.
3771 2002-11-06 Richard Henderson <rth@redhat.com>
3773 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3774 (alpha_fix_adjustable): ... here.
3775 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3777 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3779 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3782 2002-11-05 H.J. Lu <hjl@gnu.org>
3784 * config/tc-mips.c (support_64bit_objects): Check *l before it
3787 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3789 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3790 SEC_LOAD flags for sections marked as 's'.
3792 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3794 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3795 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3796 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3799 * dep-in.sed: Fix typo.
3801 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3803 * configure.in: Update ARM CPU patterns.
3804 * configure: Regenerated.
3806 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3808 * itbl-lex.l: Use #include <> for generated headers.
3809 * itbl-ops.c: Likewise.
3811 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3813 * doc/gasp.texi: Fix typo in deprecation note.
3815 2002-10-23 Nick Clifton <nickc@redhat.com>
3817 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3818 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3820 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3822 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3823 (tc_frob_file_before_adjust): Don't define.
3824 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3826 (mmix_frob_file_before_adjust): Remove ineffective function.
3828 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3830 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3831 (cris_relax_frag): New function.
3832 (md_estimate_size_before_relax) <case ENCODE_RELAX
3833 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3834 expressions that will become absolute expressions to relaxation.
3835 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3836 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3837 value, not distance to symbol.
3838 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3839 Ditto. Correct placement of fixup.
3840 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3842 * config/tc-cris.h (cris_relax_frag): Declare.
3843 (md_relax_frag): Define.
3845 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3847 * config/obj-elf.c (special_sections): Use correct types for init
3849 (obj_elf_change_section): Don't mess with init array section type.
3851 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3853 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3854 for relocs against symbols in a merged section.
3856 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3858 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3859 table as register names.
3861 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3863 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3866 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3868 * expr.c (operand): Add support for n.nn flonums.
3870 2002-10-17 Johannes Stezenbach <js@convergence.de>
3872 * itbl-parse.y (entry): Provide empty action.
3874 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3876 * configure.in (BFDVER_H): Set and subst.
3877 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3878 * Makefile.am: Run "make dep-am".
3880 * configure: Regenerate.
3881 * Makefile.in: Regenerate.
3882 * doc/Makefile.in: Regenerate.
3884 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3886 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3887 (MD_APPLY_SYM_VALUE): Define for PE too.
3889 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3891 * Makefile.am: Run "make dep-am".
3892 (CPU_OBJ_VALID): sh64 coff is invalid.
3893 * as.c: #include "bfdver.h".
3894 * Makefile.in: Regenerate.
3895 * config.in: Regenerate.
3897 2002-10-14 Momchil Velikov <velco@fadata.bg>
3899 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3901 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3903 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3904 * configure: Regenerate.
3906 2002-10-13 Eric Christopher <echristo@redhat.com>
3907 Alexandre Oliva <aoliva@redhat.com>
3909 * config/tc-mips.c (s_gpdword): New function.
3910 (mips_pseudo_table): Add .gpdword.
3911 (mips_need_elf_addend_fixup): never for NEWABI.
3912 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3914 (s_cpadd): Generate .cpadd on NEWABI.
3916 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3918 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3920 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3922 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3923 (md_relax_frag): Adjust macro.
3924 * config/tc-mips.c (mips_relax_branch): New variable.
3925 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3926 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3927 (RELAX_MIPS16_P): Adjust.
3928 (append_insn): Emit branch to non-constant in a frag_var if
3929 branch-relaxation is desirable and possible.
3930 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3931 (OPTION_ELF_BASE): Adjust.
3932 (md_parse_option): Handle new options.
3933 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3935 (relaxed_branch_length): New function.
3936 (md_estimate_size_before_relax): Handle branch frags.
3937 (mips_relax_frag): Likewise.
3938 (md_convert_frag): Handle branch frags. Warn if branch is
3941 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3943 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3945 (md_apply_fix3): Add TLS relocs.
3946 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3949 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3950 Alan Modra <amodra@bigpond.net.au>
3952 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3953 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3955 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3957 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3960 2002-10-09 Richard Shann <richard.shann@superh.com>
3961 Stephen Clarke <stephen.clarke@superh.com>
3963 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3966 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3968 * contig/tc-sh.c (sh_local_pcrel): New.
3969 (sh_force_relocation): Use sh_local_pcrel.
3970 (md_pcrel_from_section): Check the relocation type whether it
3971 should be resolved locally. Use S_FORCE_RELOC.
3973 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3975 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3976 (TC_FORCE_RELOCATION): Tidy arg.
3978 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3979 Ken Raeburn <raeburn@cygnus.com>
3980 Aldy Hernandez <aldyh@redhat.com>
3981 DJ Delorie <dj@redhat.com>
3982 Michael Meissner <meissner@redhat.com>
3983 Eric Christopher <echristo@redhat.com>
3984 Richard Sandiford <rsandifo@redhat.com>
3986 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3987 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3988 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3989 (hilo_interlocks): True for CPU_VR5500.
3990 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3991 (mips_fix_vr4122_bugs): New.
3992 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3993 (mips_emit_delays): Likewise.
3994 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3995 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3996 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3997 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3998 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3999 (OPTION_ELF_BASE): Bump.
4000 (md_parse_option): Handle the new options.
4001 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
4004 2002-09-29 H.J. Lu <hjl@gnu.org>
4006 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
4007 twice if howto->pcrel_offset is true.
4009 2002-09-28 Matt Thomas <matt@3am-software.com>
4010 Jason Thorpe <thorpej@wasabisystems.com>
4012 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
4013 convert undefined references to GOT32/PLT32 if PIC code is
4014 requested. Fix comment.
4016 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4018 * config/tc-sh.c (sh_force_relocation): Return 0 for
4019 some PC relative relocations when not relaxing.
4021 2002-09-26 Jakub Jelinek <jakub@redhat.com>
4023 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
4024 Define them if not BFD_ASSEMBLER.
4025 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
4027 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
4028 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
4029 (tc_gen_reloc): Handle x86-64 TLS relocs.
4031 2002-09-27 Alan Modra <amodra@bigpond.net.au>
4033 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
4034 fixups to current or absolute section.
4036 2002-09-26 Jim Wilson <wilson@redhat.com>
4038 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
4041 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4043 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
4044 capable configuration.
4045 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
4047 (mips_ip): Likewise.
4049 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4051 * config/tc-mips.c (append_insn): Fix jump overflow check.
4053 2002-09-24 Alan Modra <amodra@bigpond.net.au>
4055 * config/tc-i386.c (process_operands): Warn about "lea" segment
4058 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
4060 * write.c: Delete set_segment_vma and prototype. Update all callers.
4062 2002-09-21 Alan Modra <amodra@bigpond.net.au>
4064 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
4065 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
4066 Rename "fseg" to "sym_seg".
4067 * Makefile.am: Run "make dep-am".
4068 * Makefile.in: Regenerate.
4069 * doc/Makefile.in: Regenerate.
4071 2002-09-20 Nick Clifton <nickc@redhat.com>
4073 * symbols.c (colon): Do not allow symbols to be created in the
4074 absolute section if WORKING_DOT_WORD is not defined and
4075 new_broken_words would require a new frag to be created.
4077 2002-09-20 Alan Modra <amodra@bigpond.net.au>
4079 * expr.c (expr): Simplify foo-foo here.
4080 (clean_up_expression): Remove O_subtract code.
4082 * write.h (struct fix): Add fx_dot_value.
4083 (dot_value): Declare.
4084 * write.c (dot_value): New var.
4085 (fix_new_internal): Save dot_value as fx_dot_value.
4086 (fixup_segment): Adjust fx_offset using fx_dot_value.
4087 * expr.c (expr): Update dot_value.
4089 2002-09-19 Jakub Jelinek <jakub@redhat.com>
4091 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
4092 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
4093 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
4095 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
4096 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
4097 BFD_RELOC_386_TLS_GOTIE.
4099 2002-09-19 Richard Henderson <rth@redhat.com>
4101 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
4103 (alpha_force_relocation): Don't special-case branch type relocs.
4105 2002-09-19 Nick Clifton <nickc@redhat.com>
4107 * config/tc-m68k.c (select_control_regs): Handle situation where
4108 architecture has not yet been selected.
4110 2002-09-18 Chris Demetriou <cgd@broadcom.com>
4112 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
4113 (IS_SEXT_16BIT_NUM): New macro.
4114 (macro_build_ldst_constoffset): New function, to build a set of
4115 instructions to do a load or store from a constant offset relative
4116 to a given register.
4117 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
4118 .cprestore pseudo-op.
4120 2002-09-18 Chris Demetriou <cgd@broadcom.com>
4122 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
4124 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4126 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
4128 2002-09-17 Stan Cox <scox@redhat.com>
4130 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
4131 (macro): Likewise for la. Likewise for ld.
4132 (mips_after_parse_args): Make -xgot optional, not the default.
4133 (md_apply_fix3): Allow composite relocation to set up gp.
4134 (tc_gen_reloc): Allow relaxing for newabi.
4135 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
4136 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
4138 2002-09-17 Nick Clifton <nickc@redhat.com>
4140 * config/tc-arm.c (md_apply_fix3): Note that an implemented
4141 BFD_RELOC_ARM_IMMEDIATE has been done.
4142 (tc_gen_reloc): Do not issue reloc number of unimplemented
4143 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
4144 their name is already in the error message - plus remove them
4145 from the default case.
4147 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
4148 behavior of instructions.
4150 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
4152 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
4153 Convert functions to K&R format.
4155 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4157 * config/tc-mips.c (pdr_seg): Define only for ELF.
4158 (s_change_section): Remove unused variable. Don't use for nonELF.
4160 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4162 * config/obj-elf.c (obj_elf_change_section): Move prototype to
4164 * config/obj-elf.h (obj_elf_change_section): Likewise.
4166 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
4168 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
4169 (out_debug_info): Likewise.
4171 2002-09-16 Bruno Haible <bruno@clisp.org>
4173 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
4174 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
4175 * config/tc-i386.c (i386_target_format): Likewise.
4176 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
4177 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
4179 2002-09-13 Nick Clifton <nickc@redhat.com>
4181 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
4182 when deciding if any operands have been skipped.
4184 2002-09-11 Nick Clifton <nickc@redhat.com>
4186 * NEWS: New TI port supports both C4x and C3x series of DSPs.
4188 * po/tr.po: Updated Turkish translation.
4190 2002-09-11 Jakub Jelinek <jakub@redhat.com>
4192 * config/tc-i386.c (md_apply_fix3): Allow addend for
4193 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
4194 BFD_RELOC_386_TLS_LE_32.
4196 2002-09-05 Jeff Law <law@redhat.com>
4198 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
4199 marker relocations such as ENTRY/EXIT.
4200 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
4201 to both OBJ_ELF and OBJ_SOM.
4203 2002-09-05 Alan Modra <amodra@bigpond.net.au>
4205 * doc/internals.texi (md_apply_fix3): Expand.
4206 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
4207 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
4208 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
4209 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
4210 EXTERN_FORCE_RELOC): Document.
4211 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
4212 * as.h: Don't include struc-symbol.h for arc.
4214 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
4215 subtract absolute symbol.
4216 * obj.h (struct format_ops): Add frob_file_before_fix.
4217 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
4218 * symbols.c (S_FORCE_RELOC): New function.
4219 * symbols.h (S_FORCE_RELOC): Declare.
4220 * write.c (TC_FORCE_RELOCATION): Change default.
4221 (TC_FORCE_RELOCATION_ABS): Define.
4222 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4223 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4224 (TC_FORCE_RELOCATION_SECTION): Don't define.
4225 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
4226 (TC_FORCE_RELOCATION_SUB_ABS): Define.
4227 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
4228 (TC_VALIDATE_FIX_SUB): Define.
4229 (TC_FIX_ADJUSTABLE): Don't define.
4230 (MD_APPLY_SYM_VALUE): Define this instead.
4231 (abs_section_sym): New variable.
4232 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
4233 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
4234 Don't put the absolute section sym on fixups here.
4235 (fix_segment): New function.
4236 (write_relocs): Don't call fixup_segment from here.
4237 (write_object_file): Instead call tc_frob_file_before_fix,
4238 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
4239 Don't output the absolute section symbol.
4240 (fixup_segment): Rewrite.
4241 * write.h (abs_section_sym): Declare.
4242 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
4244 (aout_format_ops): Adjust to suit.
4245 * config/obj-aout.h (obj_frob_file): Don't define.
4246 (obj_frob_file_before_fix): Define.
4247 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
4248 (S_FORCE_RELOC): Define.
4249 * config/obj-bout.h (S_FORCE_RELOC): Define.
4250 * config/obj-coff.c (coff_format_ops): Init new field.
4251 * config/obj-coff.h: Formatting fixes.
4252 (obj_sec_sym_ok_for_reloc): Define.
4253 (S_FORCE_RELOC): Define.
4254 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
4255 (ecoff_frob_file): .. from here.
4256 (ecoff_format_ops): Add new function.
4257 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
4258 (obj_frob_file_before_fix): Define.
4259 * config/obj-elf.c (elf_format_ops): Init new field.
4260 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
4261 * config/obj-ieee.h: Formatting fixes.
4262 (S_FORCE_RELOC): Define.
4263 * config/obj-multi.h (obj_frob_file_before_fix): Define.
4264 * config/obj-vms.h (S_FORCE_RELOC): Define.
4265 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
4266 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
4267 for BFD_RELOC_32 and BFD_RELOC_64.
4268 (alpha_fix_adjustable): Remove extern and weak tests.
4269 (alpha_before_fix): Rename from alpha_adjust_symtab.
4270 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
4271 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
4272 (TC_VALIDATE_FIX): Tweak param name.
4273 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
4274 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4275 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4276 (MD_APPLY_SYM_VALUE): Define.
4277 (tc_adjust_symtab): Don't define.
4278 (alpha_adjust_symtab): Don't declare.
4279 (tc_frob_file_before_fix): Define.
4280 (alpha_before_fix): Declare.
4281 (TC_INIT_FIX_DATA): Tweak param names.
4282 * config/tc-arc.c: Include "struc-symbol.h".
4283 (md_pcrel_from): Remove undefined sym fudge.
4284 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
4285 Don't set fx_addnumber.
4286 (tc_gen_reloc): Remove spurious fx_addnumber comment.
4287 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
4288 (EXTERN_FORCE_RELOC): Define.
4289 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
4290 (tc_gen_reloc): Fudge ARM_GOTPC addend.
4291 (arm_validate_fix): Return void.
4292 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
4293 Add plt and got reloc tests.
4294 (arm_force_relocation): Call S_FORCE_RELOC.
4295 * config/tc-arm.h (struct fix): Forward declare.
4296 (TC_VALIDATE_FIX): No longer set add_symbolP.
4297 (arm_validate_fix): Adjust declaration.
4298 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
4299 (TC_FORCE_RELOCATION): Tweak param name.
4300 (TC_INIT_FIX_DATA): Likewise.
4301 (obj_fix_adjustable): Don't define.
4302 (tc_fix_adjustable): Call arm_fix_adjustable.
4303 (TC_FIX_ADJUSTABLE): Don't define.
4304 (MD_APPLY_SYM_VALUE): Define.
4305 (EXTERN_FORCE_RELOC): Define.
4306 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4307 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4308 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
4309 Remove *valP fudges and code to subtract abs sym. Don't set
4311 * config/tc-avr.h: Formatting.
4312 (EXTERN_FORCE_RELOC): Define.
4313 (MD_APPLY_SYM_VALUE): Define.
4314 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
4315 (md_apply_fix3): Remove code to subtract abs sym.
4316 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
4317 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
4318 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
4319 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4320 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4321 (tc_fix_adjustable): Remove extern, weak tests.
4322 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
4323 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
4324 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
4325 and code to subtract abs sym.
4326 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4327 (d10v_force_relocation): Call S_FORCE_RELOC.
4328 * config/tc-d10v.h: Don't include write.h.
4329 (struct fix): Instead, forward declare.
4330 (MD_PCREL_FROM_SECTION): Tweak param names.
4331 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
4332 (d10v_fix_adjustable): Likewise.
4333 (obj_fix_adjustable): Don't define.
4334 (tc_fix_adjustable): Define.
4335 (TC_FORCE_RELOCATION): Tweak param name.
4336 (MD_APPLY_SYM_VALUE): Define.
4337 (EXTERN_FORCE_RELOC): Define.
4338 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
4339 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
4340 and code to subtract abs sym.
4341 * config/tc-d30v.h: Don't include write.h.
4342 (struct fix): Instead, forward declare.
4343 (MD_PCREL_FROM_SECTION): Tweak param names.
4344 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
4345 (MD_APPLY_SYM_VALUE): Define.
4346 (EXTERN_FORCE_RELOC): Define.
4347 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
4348 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
4349 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
4350 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4351 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4352 Don't use fx_addnumber.
4353 * config/tc-dlx.h: Don't include write.h.
4354 (md_convert_frag): We're not alpha twice over.
4355 (EXTERN_FORCE_RELOC): Define.
4356 (obj_fix_adjustable): Don't define.
4357 (tc_fix_adjustable): Define.
4358 (TC_FIX_ADJUSTABLE): Don't define.
4359 (MD_APPLY_SYM_VALUE): Define.
4360 (LOCAL_LABELS_DOLLAR): Undef always.
4361 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
4362 (fr30_fix_adjustable): Remove extern, weak tests.
4363 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
4364 (obj_fix_adjustable): Don't define.
4365 (tc_fix_adjustable): Define.
4366 (struct fix): Forward declare.
4367 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
4368 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
4369 (frv_fix_adjustable): Don't do extern, weak tests.
4370 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
4371 (TC_FIX_ADJUSTABLE): Don't define.
4372 (obj_fix_adjustable): Don't define.
4373 (tc_fix_adjustable): Define.
4374 (struct fix): Forward declare.
4375 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
4376 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
4377 * config/tc-h8300.h (struct fix): Forward declare.
4378 (EXTERN_FORCE_RELOC): Define.
4379 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
4380 (hppa_fix_adjustable): Don't test extern or weak. Don't
4381 symbol_mark_used_in_reloc.
4382 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
4384 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
4385 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
4386 (TC_FORCE_RELOCATION_SECTION): Don't define.
4387 (MD_APPLY_SYM_VALUE): Define.
4388 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
4389 to subtract abs sym.
4390 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
4391 (MD_APPLY_SYM_VALUE): Define.
4392 (MD_PCREL_FROM_SECTION): Tweak param name.
4393 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
4394 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
4395 (i386_force_relocation): New function.
4396 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
4397 (TC_VALIDATE_FIX): Likewise.
4398 (TC_FIX_ADJUSTABLE): Don't define.
4399 (MD_APPLY_SYM_VALUE): Define.
4400 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
4401 (i386_force_relocation): Declare.
4402 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4403 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4404 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
4405 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
4406 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
4407 (EXTERN_FORCE_RELOC): Define.
4408 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
4409 (md_apply_fix3): Don't cast valP pointer type. Move code here from
4410 old fixup_segment. No need to test fx_pcrel before setting fx_done.
4411 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
4412 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
4413 Remove #if 0 code. Invert return boolean.
4414 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
4415 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
4416 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
4417 (tc_coff_sizemachdep): Prototype.
4418 (i960_handle_align): Likewise.
4419 (i960_validate_fix): Adjust declaration.
4420 (reloc_callj): Likewise.
4421 (EXTERN_FORCE_RELOC): Define.
4422 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4423 (TC_FORCE_RELOCATION_ABS): Define.
4424 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4425 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4426 (TC_FIX_ADJUSTABLE): Don't define.
4427 (MD_APPLY_SYM_VALUE): Define.
4428 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
4429 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
4430 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4431 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4432 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
4433 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
4434 (MD_APPLY_SYM_VALUE): Define.
4435 (EXTERN_FORCE_RELOC): Define.
4436 (TC_FORCE_RELOCATION): Tweak param name.
4437 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
4438 (m32r_fix_adjustable): Don't test extern, weak.
4439 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
4440 (MD_APPLY_SYM_VALUE): Define.
4441 (obj_fix_adjustable): Don't define.
4442 (tc_fix_adjustable): Define.
4443 (tc_frob_file): Don't define.
4444 (tc_frob_file_before_fix): Define.
4445 (EXTERN_FORCE_RELOC): Define.
4446 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
4447 BFD_RELOC_VTABLE_ENTRY address.
4448 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
4449 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
4450 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
4451 Remove duplicated fx_done code.
4452 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
4453 (EXTERN_FORCE_RELOC): Define.
4454 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
4456 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
4457 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4458 (TC_FIX_ADJUSTABLE): Don't define.
4459 (EXTERN_FORCE_RELOC): Define.
4460 (MD_APPLY_SYM_VALUE): Define.
4461 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4462 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
4463 Remove fx_addsy tests.
4464 (mcore_force_relocation): Call S_FORCE_RELOC.
4465 (mcore_fix_adjustable): Don't test fx_addsy.
4466 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
4467 (EXTERN_FORCE_RELOC): Define.
4468 (obj_fix_adjustable): Don't define.
4469 (tc_fix_adjustable): Define.
4470 (MD_APPLY_SYM_VALUE): Define.
4471 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
4472 (mips_pic): No longer static.
4473 (mips_force_relocation): Call S_FORCE_RELOC.
4474 (mips_fix_adjustable): Remove extern, weak tests.
4475 * config/tc-mips.h (enum mips_pic_level): Declare.
4476 (mips_pic): Declare.
4477 (tc_frob_file): Don't define.
4478 (tc_frob_file_before_fix): Define this instead.
4479 (EXTERN_FORCE_RELOC): Define.
4480 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
4481 with reg_section tests. Set fx_done instead of calling
4482 symbol_clear_used_in_reloc on bad relocs.
4483 (tc_gen_reloc): Zero fx_addsy on bad relocs.
4484 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
4485 (mmix_adjust_symtab): Simplify list handling. Abort on any
4487 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
4488 BFD_RELOC_MMIX_LOCAL.
4489 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
4490 (EXTERN_FORCE_RELOC): Define.
4491 (MD_PCREL_FROM_SECTION): Tweak param name.
4492 (tc_frob_file): Don't define.
4493 (tc_frob_file_before_fix): Define this instead.
4494 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
4495 Remove SEC_CODE checks.
4496 (mn10300_fix_adjustable): Remove extern and weak tests.
4497 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
4498 (TC_FORCE_RELOCATION): Tweak param name.
4499 (obj_fix_adjustable): Don't define.
4500 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
4501 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
4502 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
4503 (openrisc_fix_adjustable): Don't test fx_addsy.
4504 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
4505 (obj_fix_adjustable): Don't define.
4506 (tc_fix_adjustable): Define this instead.
4507 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4508 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
4509 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4510 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4511 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
4512 (MD_APPLY_SYM_VALUE): Define.
4513 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
4514 Don't subtract symbol value.
4515 * config/tc-pj.h (md_pcrel_from): Tweak param name.
4516 (EXTERN_FORCE_RELOC): Define.
4517 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4518 (MD_APPLY_SYM_VALUE): Define.
4519 (obj_fix_adjustable): Don't define.
4520 (tc_fix_adjustable): Define this instead.
4521 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
4523 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
4524 (ppc_force_relocation <elf version>): New.
4525 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
4526 (md_apply_fix3): Don't subtract symbol values for ELF. Update
4527 comments. Don't subtract fx_subsy as that is already done.
4528 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
4529 (MD_PCREL_FROM_SECTION): Likewise.
4530 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
4531 ppc_force_relocation.
4532 (TC_FORCE_RELOCATION_SECTION): Delete.
4533 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4534 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4535 (MD_APPLY_SYM_VALUE): Define.
4536 * config/tc-s390.c: #include "dwarf2dbg.h".
4537 (s390_insn): Remove excess parens.
4538 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4539 (tc_s390_force_relocation): Call S_FORCE_RELOC.
4540 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
4541 non-NULL. Don't subtract off fx_addsy value.
4542 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4543 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4544 (TC_FIX_ADJUSTABLE): Don't define.
4545 (MD_APPLY_SYM_VALUE): Define.
4546 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
4547 (SWITCH_TABLE): Likewise.
4548 (sh_force_relocation): Call S_FORCE_RELOC.
4549 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
4550 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
4551 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
4552 fx_addnumber is zero on entry. Save val in fx_addnumber.
4553 (tc_gen_reloc): Don't subtract fx_subsy.
4554 * config/tc-sh.h (struct fix): Move.
4555 (obj_fix_adjustable): Don't define.
4556 (tc_fix_adjustable): Define this instead.
4557 (TC_FIX_ADJUSTABLE): Don't define.
4558 (MD_APPLY_SYM_VALUE): Define.
4559 (SWITCH_TABLE_CONS): Define.
4560 (SWITCH_TABLE): Define.
4561 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4562 (TC_VALIDATE_FIX_SUB): Define.
4563 (MD_PCREL_FROM_SECTION): Tweak param name.
4564 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4565 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4566 (TC_FORCE_RELOCATION_SUB_ABS): Define.
4567 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4568 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4569 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4570 (TC_VALIDATE_FIX_SUB): Define.
4571 (MD_PCREL_FROM_SECTION): Tweak param name.
4572 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
4573 (tc_gen_reloc): Use S_FORCE_RELOC.
4574 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
4575 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
4576 (TC_FORCE_RELOCATION_ABS): Define this instead.
4577 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4578 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4579 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
4580 (MD_APPLY_SYM_VALUE): Define.
4581 (TC_FIX_DATA_PRINT): Tweak param name.
4582 * config/tc-tic30.c (USE_STDOUT): Don't define.
4583 (md_parse_option): Remove stupid debug code.
4584 (tc_gen_reloc): Don't use fx_addnumber.
4585 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
4586 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
4587 * config/tc-v850.h (obj_fix_adjustable): Don't define.
4588 (tc_fix_adjustable): Define this instead.
4589 (TC_FIX_ADJUSTABLE): Don't define.
4590 (MD_APPLY_SYM_VALUE): Define this instead.
4591 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4592 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4593 (TC_FIX_ADJUSTABLE): Don't define.
4594 (MD_APPLY_SYM_VALUE): Define this instead.
4595 (tc_fix_adjustable): Remove extern and weak tests.
4596 * config/tc-w65.h (struct fix): Forward declare.
4597 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
4599 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
4600 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
4601 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
4603 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
4604 (MD_APPLY_SYM_VALUE): Define.
4605 (obj_fix_adjustable): Don't define.
4606 (tc_fix_adjustable): Define this instead.
4607 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4609 2002-09-04 Alan Modra <amodra@bigpond.net.au>
4611 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
4612 (ppc_fix_adjustable <coff version>): Cleanup.
4614 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
4615 (md_parse_option): No -a64 without BFD64.
4616 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
4617 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
4619 2002-09-04 Nick Clifton <nickc@redhat.com>
4621 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
4622 instructions into the hash table if the target cpu is the BookE32.
4624 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
4626 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
4629 2000-08-28 Catherine Moore <clm@redhat.com>
4631 * tc-v850.c (v850_relax): Declare.
4632 (v850_longcode): New routine.
4633 (v850_handle_align): New routine.
4634 (md_pseudo_table): Add longcall and longjump.
4635 (md_parse_option): Check for relax option.
4636 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
4637 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
4638 (md_apply_fix3): Likewise.
4639 (v850_force_relocation): Likewise.
4640 (v850_comm): Change the current section.
4641 (md_assemble): Ensure that the correct value is put in the
4643 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4644 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
4645 Remove redundant v850ea support.
4646 * tc-v850.h (HANDLE_ALIGN): Define.
4647 (v850_handle_align): Declare.
4648 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
4650 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
4652 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
4653 * configure: Regenerate.
4654 * NEWS: Mention new port.
4656 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4658 * config/obj-coff.c: Add sdef definition.
4659 * config/obj-coff.h: Add tic4x include file and set
4661 * config/tc-tic4x.c: New file.
4662 * config/tc-tic4x.h: New file.
4664 2002-08-28 Alan Modra <amodra@bigpond.net.au>
4666 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
4667 (TC_ADJUST_RELOC_COUNT): Tweak param name.
4668 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
4669 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
4670 (RELOC_ENUM): Define.
4671 (fix_new_internal): Use RELOC_ENUM.
4672 (fix_new, fix_new_exp): Likewise.
4673 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
4674 Replace gotos with continue.
4675 (write_relocs): Formatting. Avoid symbol loops in
4676 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
4677 errors, and error number in other cases.
4678 (fixup_segment): Remove param names from prototype. Rename
4679 "this_segment_type" to "this_segment". Update linkrelax comment.
4680 Remove "size, "place" and "where" local vars. Formatting. Update
4681 "no symbol" comment. Remove #if 0 and #if 1.
4683 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
4685 2002-08-27 Alan Modra <amodra@bigpond.net.au>
4687 * dwarf2dbg.c: Always include dwarf2dbg.h.
4688 (dwarf2_directive_file): Adjust dummy version args.
4689 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4690 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4691 when symbol values differ.
4692 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4693 (pseudo_set <O_subtract>): Remove unnecessary segment test.
4694 * config/obj-bout.c (obj_pseudo_table): Warning fix.
4696 2002-08-26 Alan Modra <amodra@bigpond.net.au>
4698 * config/tc-w65.c (md_section_align): Fix typo.
4699 (md_parse_option): Return 0, not 1.
4701 2002-08-22 Nick Clifton <nickc@redhat.com>
4703 * doc/as.texinfo (Section): Note that if '@' is a comment
4704 character then another symbol is used to prefix the section's
4707 2002-08-22 Christian Groessler <chris@groessler.org>
4709 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4712 2002-08-12 Graeme Peterson <gp@qnx.com>
4714 * configure.in: Add support for sh-**-nto* target.
4715 * configure: Regenerate.
4717 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
4719 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4721 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4723 * config/tc-ppc.c (ppc_cleanup): Do something only if format
4725 (ppc_apuinfo_section_add): Define only if format is ELF.
4726 (md_assemble): Emit APUinfo section only if format is ELF.
4729 2002-08-21 Alan Modra <amodra@bigpond.net.au>
4731 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4732 * config/tc-frv.c: Likewise.
4733 * config/tc-hppa.c: Likewise.
4734 * config/tc-ia64.c: Likewise.
4735 * config/tc-ip2k.c: Likewise.
4736 * config/tc-m68hc11.c: Likewise.
4737 * config/tc-m68k.c: Likewise.
4738 * config/tc-mmix.c: Likewise.
4739 * config/tc-mn10300.c: Likewise.
4740 * config/tc-sh.c: Likewise.
4741 * config/tc-sparc.c: Likewise.
4742 * config/tc-v850.c: Likewise.
4744 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4746 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4749 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4751 From matthew green <mrg@redhat.com>
4753 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4754 PPC_OPCODE_PPC is, except for BookE architectures.
4755 (md_parse_option): Add support for -mspe.
4756 (md_show_usage): Add -mspe.
4757 (md_parse_option): Add support for -me500 and
4758 -me500x2 to generate code for Motorola e500 core complex.
4759 (md_show_usage): Add -me500 and -me500x2.
4761 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4762 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4763 PPC_APUINFO_BRLOCK): New macros.
4765 (ppc_cleanup): New function.
4766 (ppc_apuinfo_section_add): New function.
4768 (md_assemble): Collect info and write the APUinfo section.
4770 * config/tc-ppc.h (md_cleanup): Define.
4771 (ppc_cleanup): Export.
4772 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4774 2002-08-17 Stan Cox <scox@redhat.com>
4776 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4777 config/tc-mips.c (s_change_section): New function to support
4778 IRIX .section pseudo-op.
4780 2002-08-16 Nick Clifton <nickc@redhat.com>
4782 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4784 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4786 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4787 the fix-up against on the right frag.
4788 (s_cpsetup): Likewise. Parse third argument as expression, to
4789 handle global symbols and forward/backward labels correctly.
4791 2002-08-14 Nick Clifton <nickc@redhat.com>
4793 * read.c (stringer): Catch attempts to create strings in the abs
4796 * config/tc-alpha.c: Fix compiling for COFF targets.
4797 Some minor formatting tidyups.
4799 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4801 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4802 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4803 according to the reloc.
4804 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4805 (TC_FORCE_RELOCATION): Define.
4806 (tc_m68hc11_force_relocation): Declare.
4808 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4809 (s_m68hc11_relax): New function for relax group.
4810 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4811 beginning of jump instruction.
4812 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4813 address computation.
4814 (tc-gen_reloc): Update.
4815 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4817 (tc_m68hc11_force_relocation): New function, handle new relocs.
4818 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4819 reloc for the linker relax pass.
4820 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4823 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4825 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4826 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4827 (s_m68hc11_mode): New function for .mode pseudo op.
4828 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4830 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4831 (m68hc11_elf_final_processing): Declare.
4833 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4835 * config/tc-m68hc11.c (md_begin): Take into account additional
4836 page operand for call instruction.
4837 (print_opcode_format): Likewise.
4838 (check_range): Likewise for page range checking.
4839 (get_operand): Don't skip a possible comma in operands.
4840 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4841 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4842 (fixup24): New to handle call reloc.
4843 (build_insn): Handle missing page operand for call instruction.
4845 (md_apply_fix3): Take into account new relocs.
4846 (get_operand): Fix the mode for indexed indirect addressing.
4847 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4849 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4851 * config/tc-mips.c (mips_ip): Don't work out the value of
4852 constant %hi()s here.
4854 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4856 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4857 for ELF, and don't bother checking ELF relocs when non-ELF.
4858 (i386_immediate): Allow absolute_section expressions for aout.
4859 (i386_displacement): Likewise. Also test bfd_is_com_section.
4860 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4861 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4862 not when fx_addsy. Remove dead code.
4864 2002-08-09 Graeme Peterson <gp@qnx.com>
4866 * configure.in: Add support for ppc-*-nto* target.
4867 * configure: Regenerate.
4869 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4871 * config/tc-i386.h: Reorganize.
4873 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4875 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4876 immediate offset in "dla" and "la" expansions.
4878 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4880 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4881 Remove "bfd_gas=yes" from target table when covered later.
4882 Consolidate some entries.
4883 * configure: Regenerate
4885 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4887 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4888 at start of insn, pass it to output_disp and output_imm.
4889 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4890 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4892 (output_imm): Added arguments. Compute properly addend for
4894 (md_apply_fix3): Remove R_386_GOTPC handling.
4896 2002-08-06 George France <france@handhelds.org>
4898 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4899 and m21264b processor names and cpu types.
4900 * doc/c-alpha.texi: Documented new types.
4902 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4904 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4906 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4908 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4909 handling to BFD_RELOC_MIPS16_GPREL.
4911 2002-08-01 Nick Clifton <nickc@redhat.com>
4913 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4914 pool is computed using signed arithmetic so that proper sign
4915 extension is performed if X_add_number is a 64-bit integer.
4917 2002-08-01 H.J. Lu <hjl@gnu.org>
4918 Daniel Jacobowitz <drow@mvista.com>
4920 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4921 .debug_line section unless it has line information.
4923 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4925 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4926 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4927 Allow default displacement size to be an option "--disp-size-default".
4928 (md_number_to_disp): Make error messages include value. Use %d to
4929 print integers, not %s.
4930 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4931 get duplicate messages sometimes.
4932 (convert_iif): Grow frag to max possible instruction size. Avoid
4933 creating unnecessary fixes.
4934 (md_number_to_field) Add prototype.
4935 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4936 prototypes and make static.
4937 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4938 (evaluate_expr): Use resultP argument instead of exprP global.
4939 (get_addr_mode): Quiten compiler warnings.
4940 (encode_operand): eliminate unused variables. Quiten compiler
4941 warnings. Eliminate nul character in format strings.
4942 (parse): argc is unsigned.
4943 (reloc): Type cast index to quieten compiler.
4944 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4945 (md_convert_frag): Note unused parameters. Remove unused
4947 (md_create_long_jump, md_create_short_jump,
4948 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4951 2002-07-31 Nick Clifton <nickc@redhat.com>
4953 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4954 of the PDP-11 and 2.11BSD a.out support.
4956 2002-07-31 Momchil Velikov <velco@fadata.bg>
4958 * config/tc-v850.c (md_assemble): Fix range check for immediate
4961 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4963 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4964 to Broadcom SB-1 core support.
4966 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4968 * config/tc-mips.c (mips_target_format): Fix formatting.
4969 Add recognition of n32 ABI formats.
4971 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4973 * tc-mips.c (load_address): Don't clobber $at when loading a
4974 64-bit address in non-PIC code if noat is in effect.
4977 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4979 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4980 used in division/multiply macro expansions similarly to how they
4981 are used in the variants with break instructions.
4984 2002-07-30 Graeme Peterson <gp@qnx.com>
4986 * configure.in: Add support for arm-*-nto target.
4987 * configure: Regenerate.
4989 2002-07-30 Nick Clifton <nickc@redhat.com>
4991 * config/tc-arm.c (struct literal_pool): Add fields to allow
4992 multiple literal pools to be maintained.
4993 (find_literal_pool): New function.
4994 (find_or_make_literal_pool): New function.
4995 (add_to_literal_pool): Use find_or_make_literal_pool.
4996 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4998 (s_ltorg): Use find_literal_pool.
4999 (arm_cleanup): Dump all literal pools.
5000 * doc/c-arm.texi: Document new behaviour of only dumping literal
5003 2002-07-26 Alan Modra <amodra@bigpond.net.au>
5005 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
5006 rather than PPC_OPCODE_32 for powerpc64*.
5008 2002-07-25 Nick Clifton <nickc@redhat.com>
5010 * po/es.po: Updated Spanish translation.
5011 * po/fr.po: Updated French translation.
5013 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
5015 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
5016 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
5017 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
5018 * configure, config.in: Regenerate.
5019 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
5020 (mips_set_options): Remove "abi" field.
5021 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
5024 (mips_arch_string, mips_arch_info): New vars.
5025 (mips_tune_string, mips_tune_info): New vars.
5026 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
5027 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
5028 (mips_isa_to_str, mips_cpu_to_str): Remove.
5029 (mips_ip): If the selected architecture is a generic ISA rather
5030 than a processor, only mention the ISA level in error messages.
5031 (OPTION_MCPU): Remove.
5033 (md_longopts): Add -mfp64, remove -mcpu.
5034 (mips_set_option_string): New fn.
5035 (md_parse_option): Make -mipsN update file_mips_isa rather than
5036 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
5037 Don't let -mgp32 and -mfp32 change the ABI.
5038 (show): Move to end of file. Constify string argument.
5039 (md_show_usage): Move to the end of the file. Read available
5040 architectures from mips_cpu_info_table.
5041 (mips_set_architecture): New fn.
5042 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
5043 is an alias for -march=mipsN. Don't change the ABI based on other
5044 flags. Infer the register size from the ABI as well as the
5045 architecture. Complain about more conflicting arguments.
5046 Unify logic with GCC.
5047 (s_mipsset): Don't change the ABI.
5048 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
5049 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
5050 "mipsN"-type entries. Remove entries that vary only in the
5051 manufacturer's prefix, or that have "000" replaced by "k".
5052 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
5053 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
5054 (mips_parse_cpu): New fn.
5055 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
5056 (mips_cpu_info_from_isa): Minor formatting tweak.
5058 2002-07-24 Nick Clifton <nickc@redhat.com>
5060 * po/sv.po: Updated Swedish translation.
5061 * po/es.po: Updated Spanish translation.
5063 2002-07-23 Alan Modra <amodra@bigpond.net.au>
5065 * Makefile.am: Run "make dep-am".
5066 * Makefile.in: Regenerate.
5067 * doc/Makefile.in: Regenerate.
5068 * config.in: Regenerate.
5069 * po/POTFILES.in: Regenerate.
5071 2002-07-23 Nick Clifton <nickc@redhat.com>
5073 * po/fr.po: Updated French translation.
5075 2002-07-23 Nick Clifton <nickc@redhat.com>
5077 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
5080 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5082 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
5083 instead of S_IS_EXTERN.
5084 (md_estimate_size_before_relax): Likewise.
5085 (mips_fix_adjustable): Likewise.
5087 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5089 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
5091 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
5092 Nick Clifton <nickc@redhat.com>
5094 * cond.c (s_ifdef): Treat a referenced but not yet defined
5095 symbol as if it were undefined, in exactly the same way as
5098 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
5099 consider referenced bug not yet defined symbols to be
5102 2002-07-18 Denis Chertykov <denisc@overta.ru>
5103 Frank Ch. Eigler <fche@redhat.com>
5104 Alan Lehotsky <alehotsky@cygnus.com>
5105 John Healy <jhealy@redhat.com>
5106 Jeff Johnston <jjohnstn@redhat.com>
5108 * configure.in: Add ip2k configuraton.
5109 * configure: Regenerate.
5110 * Makefile.am: Add ip2k configuraton.
5111 * Makefile.in: Regenerate.
5112 * configure: Regenerate.
5113 * Makefile.in: Regenerate.
5114 * config/tc-ip2k.c: New file.
5115 * config/tc-ip2k.h: New files.
5116 * NEWS: Mention new support.
5117 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
5118 * doc/Makefile.in: Regenerate.
5119 * doc/all.texi: Set IP2K
5120 * doc/as.texinfo: Add IP2K description.
5121 * doc/c-ip2k.texi: New file.
5123 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
5125 * NEWS: Reformat to match style of other NEWS files.
5127 2002-07-17 Jan Hubicka <jh@suse.cz>
5129 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
5131 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
5133 * config/tc-z8k.c (build_bytes): Correct order of memset args.
5135 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
5137 * NEWS: Add 'Changes in 2.13'.
5139 2002-07-15 Matt Fredette <fredette@netbsd.org>
5141 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
5143 2002-07-12 Alan Modra <amodra@bigpond.net.au>
5145 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
5146 case with non CODE_64BIT case. Don't warn on "qword ptr" if
5149 2002-07-11 Alan Modra <amodra@bigpond.net.au>
5151 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
5152 (ppc_frob_file_before_adjust): New function.
5153 * config/tc-ppc.h (tc_frob_symbol): Don't define.
5154 (ppc_elf_frob_symbol): Don't declare.
5155 (tc_frob_file_before_adjust): Define.
5156 (ppc_frob_file_before_adjust): Declare.
5158 * config/tc-ppc.c (md_pseudo_table): Warning fix.
5159 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
5162 (ppc_xcoff64): Rename to ppc_obj64.
5163 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
5164 (ppc_set_cpu): Set PPC_OPCODE_32 too.
5165 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
5167 (ppc_target_format): Use ppc_obj64 to select format.
5168 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
5169 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
5170 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
5171 (tc_frob_symbol): Likewise.
5172 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
5173 BFD_DEFAULT_TARGET_SIZE.
5175 (ppc_is_toc_sym): Likewise.
5176 (md_apply_fix3): Likewise.
5177 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
5178 BFD_DEFAULT_TARGET_SIZE.
5179 (ELF_TC_SPECIAL_SECTIONS): Likewise.
5180 (tc_frob_symbol): Likewise.
5182 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5184 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
5185 (mips_ip): Likewise.
5187 2002-07-09 Alan Modra <amodra@bigpond.net.au>
5189 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
5190 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
5191 (md_apply_fix3): Formatting. Remove redundant test.
5192 (tc_gen_reloc): Remove redundant code.
5193 (tc_i386_force_relocation): Delete. Movy body of function to..
5194 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
5196 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
5198 * configure.in: Add hppa-*-openbsd* target, change
5199 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
5201 * configure: Regenerate.
5203 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5205 * config/tc-mips.c (macro): Shift the 32-bit address range
5206 accessible with a lone "lui" down by 32768.
5208 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5210 * config/tc-mips.c (load_address): Use non-trapping "daddu"
5211 instead of "dadd" in address calculations.
5214 2002-07-08 Alan Modra <amodra@bigpond.net.au>
5216 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
5218 (md_assemble): Instead, zap the suffix here.
5220 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
5222 * NEWS: Remove next release number until the release is actually
5225 2002-07-03 Alan Modra <amodra@bigpond.net.au>
5227 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
5229 * Makefile.in: Regenerate.
5231 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
5233 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
5234 to symbols in merge sections, even non pc-relative ones.
5236 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
5238 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
5240 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
5242 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
5243 .softregs and .eeprom.
5245 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5247 * NEWS: Note the next release is 2.13.
5249 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
5251 * po/tr.po: New translation imported.
5253 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
5255 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
5256 (ecoff_directive_def): Likewise.
5257 (ecoff_directive_tag): Likewise.
5258 * listing.c (file_info): Likewise.
5259 * hash.c (what): Likewise.
5261 2002-06-25 H.J. Lu <hjl@gnu.org>
5263 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
5264 * Makefile.in: Regenerated.
5266 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
5268 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
5269 (assemble_ppi): Generate warning if the same register is used
5270 twice as destination in the same padd / pmuls instruction.
5272 2002-06-18 Dave Brolley <brolley@redhat.com>
5274 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
5275 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
5276 * configure.in: Support frv-*-*.
5277 * Makefile.am (CPU_TYPES): Add frv.
5278 (TARGET_CPU_CFILES): Add tc-frv.c.
5279 (TARGET_CPU_HFILES): Add tc-frv.h.
5280 (DEPTC_frv_coff): New variable.
5281 (DEPTC_frv_elf): New variable.
5282 (DEPOBJ_frv_coff): New variable.
5283 (DEPOBJ_frv_elf): New variable.
5284 (DEP_frv_coff): New variable.
5285 (DEP_frv_elf): New variable.
5286 * tc-frv.c: New file.
5287 * tc-frv.h: New file.
5289 2002-06-17 Catherine Moore <clm@redhat.com>
5291 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
5293 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
5295 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
5297 2002-06-17 Tom Rix <trix@redhat.com>
5299 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
5301 2002-06-14 H.J. Lu <hjl@gnu.org>
5302 Daniel Jacobowitz <drow@mvista.com>
5304 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
5305 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
5306 * config/tc-mips.c (s_mips_file): Call s_app_file_string
5307 and new_logical_line for the first .file directive.
5308 * read.c (s_app_file_string): New function.
5309 (s_app_file): Call it.
5310 * read.h (s_app_file_string): Add declaration.
5312 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5314 * configure.in: Remove MIPS_STABS_ELF.
5315 * configure: Regenerated.
5316 * config.in: Regenerated.
5317 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
5319 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
5321 (pdr_seg): Declare unconditionally.
5322 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
5323 (s_mips_end): Likewise. Generate stabs function markers.
5324 (s_mips_ent): Generate stabs function markers.
5325 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
5327 (s_mips_mask): Likewise.
5328 (mips_flag_mdebug): New.
5329 (md_longopts): Add "mdebug" and "no-mdebug".
5330 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
5331 (mips_after_parse_args): Set mips_flag_mdebug.
5332 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
5334 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5336 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
5337 value twice for RELA relocations.
5339 2002-06-12 Ben Elliston <bje@redhat.com>
5341 * symbols.c (resolve_symbol_value): Initialise final_val.
5343 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
5345 2002-06-11 Tom Rix <trix@redhat.com>
5347 * config/tc-ppc.c (ppc_subseg_align): Delete.
5348 (ppc_change_csect): Default csect align is 2.
5349 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
5351 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
5353 * config/tc-avr.c (mcu_types): Update.
5355 2002-06-08 Matt Thomas <matt@3am-software.com>
5357 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
5358 (vax-*-netbsd*): New targets.
5359 * configure: Regenerate.
5360 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
5361 * config/tc-vax.c: Add support for ELF and PIC.
5362 (flag_want_pic): New flag.
5363 (float_cons): Fix prototype.
5364 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
5365 (md_assemble): Introduce a new is_absolute local, and use it
5366 rather than repeating the test. Make fatal errors actually
5367 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
5368 Add support for ELF. Add support for PIC.
5369 (md_convert_frag): Adjust for BFD_ASSEMBLER.
5370 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
5372 (vax_reg_parse): Make the % register prefix mandatory for ELF,
5373 optional for a.out, and not allowed for VMS. Adjust all callers.
5374 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
5375 (md_create_long_jump): Likewise.
5376 (md_undefined_symbol): Likewise.
5377 (md_section_align): Likewise.
5378 (md_shortopts): Allow -k and -K for ELF.
5379 (md_parse_option): Set flag_want_pic if -k or -K.
5380 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
5381 (tc_gen_reloc): New function if BFD_ASSEMBLER.
5382 * config/tc-vax.h (tc_headers_hook): Remove.
5383 (TARGET_FORMAT): Set according to object format and target
5385 (BFD_ARCH, TARGET_ARCH): Define.
5386 (NO_RELOC): Adjust for BFD_ASSEMBLER.
5387 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
5388 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
5389 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
5391 2002-06-08 Alan Modra <amodra@bigpond.net.au>
5393 * Makefile.am: Run "make dep-am".
5394 * Makefile.in: Regenerate.
5396 * as.c: Replace CONST with const.
5397 * write.c: Likewise.
5398 * config/obj-coff.c: Likewise.
5399 * config/tc-a29k.c: Likewise.
5400 * config/tc-arm.c: Likewise.
5401 * config/tc-dlx.c: Likewise.
5402 * config/tc-h8300.c: Likewise.
5403 * config/tc-h8500.c: Likewise.
5404 * config/tc-i370.c: Likewise.
5405 * config/tc-i860.c: Likewise.
5406 * config/tc-i960.c: Likewise.
5407 * config/tc-m68hc11.c: Likewise.
5408 * config/tc-m68k.c: Likewise.
5409 * config/tc-m88k.c: Likewise.
5410 * config/tc-mcore.c: Likewise.
5411 * config/tc-mips.c: Likewise.
5412 * config/tc-ns32k.c: Likewise.
5413 * config/tc-pdp11.c: Likewise.
5414 * config/tc-pj.c: Likewise.
5415 * config/tc-s390.c: Likewise.
5416 * config/tc-sh.c: Likewise.
5417 * config/tc-sparc.c: Likewise.
5418 * config/tc-tahoe.c: Likewise.
5419 * config/tc-tic80.c: Likewise.
5420 * config/tc-v850.c: Likewise.
5421 * config/tc-vax.c: Likewise.
5422 * config/tc-w65.c: Likewise.
5423 * config/tc-z8k.c: Likewise.
5425 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
5427 Based on patch from Matt Green:
5428 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
5429 * config/tc-mips.c (s_mips_file): Renamed from s_file.
5430 (s_mips_loc): New function.
5431 (mips_nonecoff_pseudo_table): Call them.
5432 (append_insn): Call dwarf2_emit_insn.
5434 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5436 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
5438 (file_ase_mips16): New veriable.
5439 (mips_eabi64): Remove.
5440 (CPU_HAS_MIPS16): New define.
5441 (CPU_HAS_MDMX): Fix data type.
5442 (md_begin): Code cleanup. Use file_ase_mips16.
5443 (mips_elf_final_processing): Handle mips16 header flag.
5444 Handle EABI flag without intermediate variable.
5446 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5448 * doc/as.texinfo: Update MIPS documentation.
5450 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5452 * config/tc-mips.c: Add define for $zero register.
5453 (md_begin): Add $zero as alias name for $0.
5454 (insn_uses_reg): Use ZERO define.
5455 (mips_ip): Add $zero as alias name for $0.
5456 (mips16_ip): Likewise.
5457 (s_cplocal): Demand empty rest of input line.
5458 (tc_get_register): Likewise. Add support for $kt0, kt1 register
5459 names. Use ZERO define. Fix input_line_pointer progress.
5461 2002-06-07 Alan Modra <amodra@bigpond.net.au>
5463 * symbols.c: Replace CONST by const throughout.
5464 (symbol_find_exact): Split out from..
5465 (symbol_find_base): ..here.
5466 * symbols.h: Replace CONST by const throughout.
5467 (symbol_find_exact): Declare.
5468 * config/obj-elf.c: #include "struc-symbol.h".
5469 (elf_frob_file): If group name matches an exported symbol, use that
5470 symbol for the signature and ".group" as the section name.
5472 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
5474 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
5477 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
5479 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
5480 and mips_opts.ase_mdmx if they are uninitialized.
5482 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5484 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
5485 (hppa_force_relocation): Check if a stub just before the start symbol
5486 of the last call_info is reachable before forcing relocation. Fix
5489 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5491 * config/tc-mips.c (mips_after_parse_args): New function.
5492 (md_begin): Move processing of defaults to mips_after_parse_args.
5493 config/tc-mips.h (md_after_parse_args): Define.
5495 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5497 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
5498 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
5499 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
5500 * configure: Regenerate.
5501 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
5504 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5506 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
5508 2002-06-04 Alan Modra <amodra@bigpond.net.au>
5510 * config/obj-elf.c (obj_elf_change_section): Set and check elf
5511 linkonce flag. Print all warnings.
5512 (obj_elf_section): Parse ",comdat" for groups.
5513 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
5514 consistency of comdat flag.
5516 2002-06-02 Richard Henderson <rth@redhat.com>
5518 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
5519 with LITERALs without sequence numbers.
5521 2002-06-01 Richard Henderson <rth@redhat.com>
5523 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
5524 Rename them LITUSE_ALPHA_*.
5526 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
5528 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
5529 accept parentheses enclosed register lists.
5531 2002-05-31 Alan Modra <amodra@bigpond.net.au>
5533 * Makefile.am: Run "make dep-am".
5534 * Makefile.in: Regenerate.
5535 * po/POTFILES.in: Regenerate.
5537 2002-05-31 Graeme Peterson <gp@qnx.com>
5539 * configure.in: Add i386-*-nto-qnx*.
5540 * configure: Regenerate.
5542 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5544 * config/tc-mips.c (mips_ip): Use unsigned long values for
5547 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5549 * config/tc-mips.c (s_cpsetup): Fix initialization of
5550 mips_cpreturn_register and mips_cpreturn_offset.
5552 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5554 * config/tc-mips.c (s_cpsetup): Fix comment.
5556 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5558 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
5559 (mips_ip): Likewise.
5560 (mips16_ip): Likewise.
5561 (tc_get_register): Likewise.
5563 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
5564 Ed Satterthwaite <ehs@broadcom.com>
5566 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
5567 (mips_opts): Initialize "ase_mdmx" member.
5568 (file_ase_mdmx): New variable.
5569 (CPU_HAS_MDMX): New macro.
5570 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
5571 based on command line options and configuration defaults.
5572 (macro_build): Note in comment that use of MDMX in macros is
5573 not currently allowed.
5574 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
5575 "Z" MDMX operand types.
5576 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
5577 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
5579 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
5580 Add support for "-mdmx" and "-no-mdmx" options.
5581 (OPTION_ELF_BASE): Move to accommodate new options.
5582 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
5583 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
5584 file_ase_mdmx was set.
5585 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
5586 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
5589 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5591 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
5592 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
5593 command line switch conforming to gcc conventions.
5594 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
5596 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5598 * config/tc-mips.c (macro_build_jalr): New Function.
5599 (md_begin): NewABI uses big GOTs.
5600 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
5601 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
5602 (load_address): Add some NewABI PIC support.
5604 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
5605 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
5607 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5609 * config/tc-mips.c (load_address): Use mips_gp_register instead
5610 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
5612 (macro): Use mips_gp_register instead of hardcoded value.
5614 2002-05-30 Richard Henderson <rth@redhat.com>
5616 * expr.h (operatorT): Add O_md17..O_md32.
5617 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
5618 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
5619 O_tprelhi, O_tprello, O_tprel): New.
5620 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
5621 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
5622 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
5623 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
5624 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
5625 (md_apply_fix3): Handle TLS relocations.
5626 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5627 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
5628 associated TLS reloc. Check lituse_tls relocs match up.
5629 (emit_insn): Handle TLS relocations.
5632 * doc/c-alpha.texi: Add docs for tls relocations.
5634 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5636 * config/tc-mips.c (mips_gprel_offset): New variable.
5637 (s_gpvalue): Use it.
5639 2002-05-30 Diego Novillo <dnovillo@redhat.com>
5641 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5642 write-write conflicts.
5643 (md_assemble): Reformat introductory comment.
5644 (parallel_ok): Prevent packing only if the first
5645 instruction cannot be packed.
5647 2002-05-30 Jason Eckhardt <jle@redhat.com>
5648 Tom Rix <trix@redhat.com>
5650 * config/tc-d10v.c (build_insn): Check for immediates.
5652 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5654 * config/tc-mips.c: Replace GP in comments by $gp.
5655 (mips_big_got): Initialize.
5656 (mips_trap): Initialize.
5657 (load_address): Use mips_gp_register instead of hardcoded value.
5658 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
5659 (macro): Use mips_gp_register instead of hardcoded value.
5660 (macro2): Change load_address calls.
5661 (md_pcrel_from): Comment formatting.
5662 (s_cpload): Use mips_gp_register instead of hardcoded value.
5663 (s_cprestore): Likewise. Comment formatting.
5664 (s_gpword): Fix data type.
5665 (s_cpadd): Use mips_gp_register instead of hardcoded value.
5666 (nopic_need_relax): Replace GP in comments by $gp.
5667 (mips_elf_final_processing): Better comment.
5669 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
5671 * configure.in: Add DLX configuraton
5672 * Makefile.am: Add DLX configuraton
5673 * configure: Regenerate.
5674 * Makefile.in: Regenerate.
5675 * config/tc-dlx.c: New file.
5676 * config/tc-dlx.h: New files.
5677 * NEWS: Mention new support.
5679 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
5681 * config/obj-coff.c (write_object_file): Add missing semicolon.
5683 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5685 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5686 by the define. Remove superfluous check of mips_opts.mips16.
5687 (append_insn): Likewise. Canonicalize variable increments.
5688 (macro_build): Canonicalize variable increments.
5689 (macro_build_lui): Likewise.
5690 (load_register): Likewise.
5691 (load_address): Move pointer initialization.
5692 (macro): Move pointer to a more local scope. Canonicalize variable
5693 increments. Better comments. Replace magic constant for RA by the
5695 (macro2): Replace magic constant for RA by the define. Canonicalize
5696 variable increments.
5697 (mips_ip): Canonicalize variable increments.
5698 (mips16_ip): Replace magic constant for RA by the define.
5699 (my_getSmallParser): Canonicalize variable increments/decrements.
5700 (my_getPercentOp): Likewise.
5701 (my_getSmallExpression): Likewise.
5702 (s_align): Likewise.
5703 (s_mipsset): Likewise.
5704 (s_cpsetup): Likewise.
5705 (s_insn): Remove superfluous check of mips_opts.mips16.
5706 (s_mips_stab): Likewise.
5707 (mips_handle_align): Canonicalize variable increments.
5708 (s_mips_ent): Likewise.
5709 (s_mips_end): Add comment.
5711 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5713 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5714 * configure: Regenerate.
5716 2002-05-25 Alan Modra <amodra@bigpond.net.au>
5718 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5719 * Makefile.in: Regenerate.
5720 * dep-in.sed: Reorder to match OBJS in Makefile.am.
5721 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5722 * configure: Regenerate.
5723 * as.h: Use #include "" instead of <> for local header files.
5724 * flonum-konst.c: Likewise.
5725 * flonum-mult.c: Likewise.
5727 * listing.c: Likewise.
5728 * config/tc-ia64.h: Likewise.
5729 * config/tc-v850.h: Likewise.
5731 2002-05-24 TAMURA Kent <kent@netbsd.org>
5733 * configure.in: Add a target for i386-netbsdpe.
5734 * configure: Regenerate.
5736 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5738 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5739 (obj_elf_common): Call elf_common.
5740 (obj_elf_tls_common): New function.
5741 (elf_pseudo_tab): Support .tls_common.
5742 (special_sections): Add .tdata and .tbss.
5743 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5745 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5746 (obj_elf_parse_section_letters): Include T in error message.
5747 * config/tc-ppc.c (ppc_section_letter): Likewise.
5748 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5749 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5751 * config/tc-sparc.c (md_apply_fix3): Likewise.
5752 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5753 Define them if not BFD_ASSEMBLER.
5754 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5756 (md_apply_fix3): Add TLS relocs.
5757 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5758 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5759 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5760 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5761 (ia64_elf_section_letter): Include T in error message.
5762 (md_begin): Support TLS operators.
5763 (md_operand): Likewise.
5764 (ia64_gen_real_reloc_type): Support TLS relocs.
5765 * write.c (adjust_reloc_syms): Don't change symbols in
5766 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5768 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5770 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5771 round the relocation up rather than down.
5773 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5775 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5777 * doc/as.texinfo: Document that the COFF version of .section
5778 ignores the 'a' flag.
5780 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5782 * config/tc-alpha.c (assemble_tokens): Protect use of
5783 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5785 * write.c (size_seg): Check adjustment to last frag.
5786 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5788 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5789 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5790 (write_object_file): Invoke md_do_align if available, and use
5791 frag_align_code on text sections.
5792 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5793 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5794 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5795 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5796 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5799 2002-05-22 H.J. Lu <hjl@gnu.org>
5801 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5804 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5806 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5809 2002-05-22 H.J. Lu <hjl@gnu.org>
5811 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5812 for one .loc for compiler.
5814 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5816 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5819 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5821 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5822 Optimize the rotate by zero case.
5824 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5826 * configure.in: Remove accidental enabling of bfd_gas=yes for
5828 * configure: Regenerate.
5830 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5832 * app.c: Fix formatting.
5834 * ehopt.c: Likewise.
5836 * input-file.c: Likewise.
5837 * listing.c: Likewise.
5838 * macro.h: Likewise.
5839 * stabs.c: Likewise.
5840 * symbols.c: Likewise.
5842 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5844 * config/obj-generic.c: Delete file.
5845 * config/obj-generic.h: Likewise.
5847 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5849 * config/tc-avr.c (mcu_types): Update for new devices.
5851 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5853 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5855 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5857 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5858 worked sometimes by accident. Fix copy&paste comment.
5860 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5862 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5863 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5864 (mips_elf_final_processing): Let n32 use .reginfo.
5866 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5868 * config/tc-mips.c (append_insn): Fix too small range of variable.
5870 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5872 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5873 listing_prev_line().
5875 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5877 * config/tc-arm.c (md_assemble): Remove redundant call to
5880 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5883 * stabs.c (s_stab_generic): Fix grammatical error in warning
5886 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5888 * write.c (subsegs_finish): Don't specially align last subseg.
5890 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5892 * stabs.c (s_stab_generic): Warn about a description field that is
5895 * config/obj-coff.c: Fix compile time warnings when compiling
5896 without BFD_ASSEMBLER defined.
5899 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5901 (md_pcrel_from_section): Use md_pcrel_from().
5903 2002-05-11 Bruno Haible <bruno@clisp.org>
5905 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5906 by dwarf2_directive_loc, instead of calling dwarf2_where.
5908 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5910 * config/obj-coff.h: Fix formatting.
5911 * config/tc-mcore.c: Likewise.
5912 * config/tc-mn10300.c: Likewise.
5913 * config/tc-openrisc.c: Likewise.
5914 * config/tc-or32.c: Likewise.
5915 * config/tc-pdp11.c: Likewise.
5916 * config/tc-ppc.c: Likewise.
5917 * config/tc-ppc.h: Likewise.
5918 * config/tc-sh64.c: Likewise.
5919 * config/tc-sh.c: Likewise.
5920 * config/tc-tic54x.c: Likewise.
5921 * config/tc-xstormy16.c: Likewise.
5922 * config/tc-xstormy16.h: Likewise.
5924 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5926 * config/obj-coff.c: Fix formatting.
5927 * config/obj-elf.c: Likewise.
5928 * config/tc-alpha.c: Likewise.
5929 * config/tc-arm.c: Likewise.
5930 * config/tc-d10v.c: Likewise.
5931 * config/tc-d30v.c: Likewise.
5932 * config/tc-h8300.c: Likewise.
5933 * config/tc-hppa.c: Likewise.
5935 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5937 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5938 reloc when no_cond_jump_promotion.
5940 2002-05-08 Jim Wilson <wilson@redhat.com>
5942 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5943 current variable part of frag.
5945 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5947 * config/tc-mmix.c: Fix formatting.
5948 * config/tc-mmix.h: Likewise.
5950 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5952 * configure: Regenerate.
5954 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5956 * config/tc-m68k.c: Fix formatting.
5958 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5960 * Makefile.am: Honour DESTDIR.
5961 * Makefile.in: Regenerate.
5963 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5965 * config/tc-ia64.c: Fix formatting.
5966 * config/tc-ia64.h: Likewise.
5968 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5970 * config/tc-mips.c: Fix formatting.
5971 * config/tc-s390.c: Likewise.
5972 * config/tc-s390.h: Likewise.
5974 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5976 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5977 information for instructions.
5979 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5981 * as.h: Fix formatting.
5984 * dwarf2dbg.c: Likewise.
5985 * frags.h: Likewise.
5987 * macro.c: Likewise.
5989 * stabs.c: Likewise.
5990 * symbols.c: Likewise.
5992 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5994 * app.c (mri_pseudo): Only declare for TC_M68K.
5996 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5997 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5998 BFD_RELOC_16_BASEREL.
5999 (md_assemble): Likewise.
6000 (md_apply_fix3): Likewise.
6002 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
6004 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
6005 zero into an add of zero - it is not the same.
6007 2002-05-01 Arati Dikey <aratid@kpit.com>
6009 * tc-sh.c (get_specific): Generate warning if the same
6010 destination register is used in parallel instructions.
6012 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
6014 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
6016 2002-05-01 Alan Modra <amodra@bigpond.net.au>
6018 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
6019 backwards to prevent cascading errors.
6021 2002-04-30 Mark Mitchell <mark@codesourcery.com>
6023 * configure.in: Add support for powerpc-*-windiss.
6024 * configure: Regenerated.
6026 2002-04-28 Alan Modra <amodra@bigpond.net.au>
6028 * config/tc-s390.c (md_parse_option): Formatting.
6030 * config/tc-i386.c: Formatting fixes, add missing space in error
6033 2002-04-24 Christian Groessler <chris@groessler.org>
6035 * config/tc-z8k.c (build_bytes): Add support for new cases:
6036 CLASS_IGNORE and ARG_NIM4.
6037 (md_assemble): Prevent destruction of input_line_pointer if
6038 get_operands returns failure.
6040 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
6042 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
6043 instructions to be generated by macros.
6045 2002-04-24 Andreas Schwab <schwab@suse.de>
6047 * config/tc-i386.c (output_jump, output_disp)
6048 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
6050 (md_apply_fix3): Remember addend value for rela relocations.
6051 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
6053 2002-04-22 Chris Demetriou <cgd@broadcom.com>
6055 * config/tc-mips.c (macro_build): Add close-parenthesis missing
6056 from previous change.
6058 2002-04-22 Eric Christopher <echristo@redhat.com>
6060 * config/tc-mips.c (macro_build): Add warning if macro instructions
6061 are expanded into a branch delay slot.
6063 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
6065 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
6066 numbers, gdb relies on them to detect the start of the prologue.
6068 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
6070 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
6071 symbols in merge sections.
6073 2002-04-16 Alan Modra <amodra@bigpond.net.au>
6075 * as.c (main): Don't reference _bfd_chunksize.
6077 2002-04-15 Tom Rix <trix@redhat.com>
6079 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
6080 symbols in merge sections.
6082 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6084 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
6085 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
6086 argument for the precision.
6087 (gen_to_words): Update accordingly.
6089 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6091 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
6092 BFD_VERSION_STRING unavailable.
6093 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
6095 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
6097 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
6098 symbol_used_in_reloc_p is true.
6100 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
6103 2002-04-04 Alan Modra <amodra@bigpond.net.au>
6105 * dep-in.sed: Cope with absolute paths.
6106 * Makefile.am (dep.sed): Subst TOPDIR.
6108 * Makefile.in: Regenerate.
6110 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6112 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
6113 (mips_ip): Remove unused variable.
6114 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
6115 unsigned char with bfd_byte.
6116 (s_file): Remove unused variable.
6117 (s_mips_ent): Likewise.
6119 2002-04-03 Tom Rix <trix@redhat.com>
6121 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
6123 (find_opcode): Fix warning in as_warn.
6124 * config/tc-d10v.h: Update Copyright.
6126 2002-04-03 Alan Matsuoka <alanm@redhat.com>
6127 Tom Rix <trix@redhat.com>
6129 From Jeff Knaggs <jknaggs@redhat.com>
6130 * config/tc-d10v.c (check_resource_conflict): New function to
6131 check for resource conflicts.
6133 From Jason Eckhardt <jle@redhat.com>
6134 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
6136 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
6137 reserved control registers is used.
6138 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
6141 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
6142 * tc-d10v.c (parallel_ok): Prevent packing only if the first
6143 instruction cannot be packed.
6145 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
6146 * gas/config/tc-d10v.c (check_resource_conflict): Only check
6147 write-write conflicts.
6148 (md_assemble): Reformat introductory comment.
6149 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
6152 2002-04-03 Alan Modra <amodra@bigpond.net.au>
6154 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
6155 O_logical_not>): Derive final_seg from add_symbol.
6156 <O_multiply..O_logical_or>: More final_seg twiddles.
6158 2002-04-01 Jessica Han <jessica@cup.hp.com>
6160 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
6163 2002-03-27 Andreas Schwab <schwab@suse.de>
6165 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
6166 field for pc-relative fixups.
6167 (output_disp): Likewise.
6168 (md_estimate_size_before_relax): Likewise.
6169 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
6170 pc-relative fixups in 64bit mode.
6172 2002-03-22 Alan Modra <amodra@bigpond.net.au>
6174 * config/te-aix5.h: Typo fix.
6176 2002-03-21 Alan Modra <amodra@bigpond.net.au>
6178 * Makefile.am: Run "make dep-am".
6179 * Makefile.in: Regenerate.
6180 * doc/Makefile.in: Regenerate.
6182 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
6184 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
6185 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
6187 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6189 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
6190 the EXTENDED bit here; report the estimate according to the
6193 2002-03-18 Tom Rix <trix@redhat.com>
6195 * configure.in: Add AIX 5 support.
6196 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
6197 * config/te-aix5.h: New file. AIX 5 support.
6198 * configure: Regenerate.
6200 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
6202 * po/fr.po: Updated version.
6204 2002-03-16 Andreas Jaeger <aj@suse.de>
6206 * doc/c-mips.texi (Machine Dependencies): Add new node.
6208 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
6210 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
6211 (mips_opts): Initialize "ase_mips3d" member.
6212 (file_ase_mips3d): New variable.
6213 (CPU_HAS_MIPS3D): New macro.
6214 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
6215 based on command line options and configuration defaults.
6216 (macro_build, mips_ip): Accept MIPS-3D instructions if
6217 mips_opts.ase_mips3d is set.
6218 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
6219 Add support for "-mips3d" and "-no-mips3d" options.
6220 (OPTION_ELF_BASE): Move to accommodate new options.
6221 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
6222 (mips_elf_final_processing): Add a comment indicating that a
6223 MIPS-3D ASE ELF header flag should be set, when one exists.
6224 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
6225 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
6226 nomips3d" directives.
6228 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
6230 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
6231 a weak symbol in same section to be within reach.
6233 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
6235 * po/fr.po: Updated version.
6237 2002-03-12 Andreas Schwab <schwab@suse.de>
6239 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
6240 body record so that an error is given for misplaced .save
6243 2002-03-09 Alan Modra <amodra@bigpond.net.au>
6245 * config/tc-i386.h (REX_OPCODE): Define.
6246 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
6247 (rex_byte): typedef to int.
6248 * config/tc-i386.c: Group prototypes and vars together.
6249 Formatting fixes. Remove occurrences of "register" keyword.
6252 (mode_from_disp_size): Add INLINE keyword to prototype.
6253 (fits_in_signed_byte): Likewise.
6254 (fits_in_unsigned_byte): Likewise.
6255 (fits_in_unsigned_word): Likewise.
6256 (fits_in_signed_word): Likewise.
6257 (fits_in_unsigned_long): Likewise.
6258 (fits_in_signed_long): Likewise.
6259 (type_names): Constify.
6260 (intel_float_operand): Constify param.
6261 (add_prefix): Use REX_OPCODE.
6262 (md_assemble): Likewise. Modify for changed rex_byte.
6263 (parse_insn): Split out of md_assemble.
6264 (parse_operands): Likewise.
6265 (swap_operands): Likewise.
6266 (optimize_imm): Likewise.
6267 (optimize_disp): Likewise.
6268 (match_template): Likewise.
6269 (check_string): Likewise.
6270 (process_suffix): Likewise.
6271 (check_byte_reg): Likewise.
6272 (check_long_reg): Likewise.
6273 (check_qword_reg): Likewise.
6274 (check_word_reg): Likewise.
6275 (finalize_imm): Likewise.
6276 (process_operands): Likewise.
6277 (build_modrm_byte): Likewise.
6278 (output_insn): Likewise.
6279 (output_branch): Likewise.
6280 (output_jump): Likewise.
6281 (output_interseg_jump): Likewise.
6282 (output_disp): Likewise.
6283 (output_imm): Likewise.
6285 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
6287 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
6289 2002-03-06 Alan Modra <amodra@bigpond.net.au>
6291 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
6292 relocs except when BFD64.
6294 * write.c (number_to_chars_bigendian): Don't abort when N is
6295 larger than sizeof (VAL).
6296 (number_to_chars_littleendian): Likewise.
6298 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6300 * config/tc-hppa.c (md_apply_fix3): Add cast.
6301 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
6304 2002-03-05 Paul Koning <pkoning@equallogic.com>
6306 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
6307 (parse_ac5): New function for parsing float regs in float operand.
6308 (parse_expression): Remove attempt to make literals be octal.
6309 (parse_op_no_deferred): Support float literals.
6310 (parse_op): Reject attempts to refer to float regs.
6311 (parse_fop): New function, like parse_op but for float operand.
6312 (md_assemble): Add cases to parse float operands. Also fix
6313 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
6315 2002-03-04 H.J. Lu <hjl@gnu.org>
6317 * config/obj-elf.c (special_section): Add .init_array,
6318 .fini_array and .preinit_array.
6320 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
6321 .init_array and .fini_array.
6323 2002-03-01 Jakub Jelinek <jakub@redhat.com>
6325 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
6327 (obj_frob_symbol): Copy visibility.
6329 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6331 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
6333 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
6335 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
6337 * po/es.po: Updated.
6339 2002-02-26 Chris Demetriou <cgd@broadcom.com>
6341 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
6342 only, undo the changes made on 2001-06-08, with the
6343 effect being that common or extern symbols are
6344 adjusted for embedded-PIC, but weak symbols are not.
6345 (md_estimate_size_before_relax: Likewise, with the effect
6346 that extern symbols are treated the same as weak symbols
6347 only if not embedded-PIC.
6348 (mips_fix_adjustable) Likewise, with the effect that
6349 weak or extern symbols are not adjusted for embedded-PIC.
6350 (md_apply_fix3): Tweak so that the case where value is zero
6351 is handled more correctly for embedded-PIC code.
6353 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
6355 * doc/as.texinfo (Overview): Add missing @ifset IA64
6357 * configure.in (LINGUAS): Add es.po.
6358 * configure: Regenerate.
6359 * po/es.po: New file.
6361 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6363 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
6364 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
6365 and NO_PIC cases. Code cleanup.
6366 (macro2): Fix handling of 64bit register loads.
6368 2002-02-25 David Mosberger <davidm@hpl.hp.com>
6370 * doc/as.texinfo: Add entry for IA64.
6371 * doc/c-ia64.texi: New file.
6373 2002-02-25 Alan Modra <amodra@bigpond.net.au>
6375 * config/tc-hppa.c: Update copyright date.
6377 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
6378 Remove references to chip manufacturers.
6379 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
6381 (md_show_usage): Remove references to chip manufacturers. Mention
6383 (md_begin): Test power4 opcode flag bits.
6385 2002-02-22 David Mosberger <davidm@hpl.hp.com>
6387 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
6388 count exceeds prologue count.
6389 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
6390 (unwind.label_prologue_count): New member.
6392 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
6394 (get_saved_prologue_count): New function.
6395 (save_prologue_count): New function.
6396 (free_saved_prologue_count): New function.
6397 (dot_label_state): Record state label by calling save_prologue_count().
6398 (dot_copy_state): Restore prologue count by calling
6399 get_saved_prologue_count().
6400 (generate_unwind_image): Free up list of saved prologue
6401 counts by calling free_saved_prologue_counts().
6403 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
6405 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
6406 function declarations.
6408 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
6410 * NEWS: Note that GASP is now deprecated.
6411 * Makefile.am: Do not build gasp-new by default.
6412 * Makefile.in: Regenerate.
6413 * doc/Makefile.am: Do not install gasp.info.
6414 * doc/Makefile.in: Regenerate.
6415 * gas/gasp.texi: Note that gasp is now deprecated.
6417 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
6419 * NEWS: Mark 2.12 branch.
6421 2002-02-19 Tom Tromey <tromey@redhat.com>
6423 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
6425 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6427 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
6430 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
6432 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
6433 Make bit size independent of architecture switch.
6434 (md_begin): Add warning for -m64 with -Aesa.
6435 (s390_md_end): Use renamed architecture defines.
6437 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
6439 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
6441 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
6443 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
6446 2002-02-15 Chris Demetriou <cgd@broadcom.com>
6448 * config/tc-mips.c (md_estimate_size_before_relax): Really
6449 make sure we treat weak like extern only for ELF. (Fixes
6450 patch from 2001-07-25.)
6452 2002-02-15 Ben Elliston <bje@redhat.com>
6454 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
6457 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
6459 * NEWS: Mention support for MMIX.
6461 2002-02-13 Chris Demetriou <cgd@broadcom.com>
6463 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
6464 a sequence of indpendent 'if' statements for easier debugging
6465 and future modification.
6467 2002-02-13 Matt Fredette <fredette@netbsd.org>
6469 * config/tc-m68k.c (md_show_usage): No longer display a
6470 hard-coded "68020" for the default CPU, instead display the
6471 canonical name of the true, configured default CPU.
6472 (m68k_elf_final_processing): Mark objects for sub-68020
6473 CPUs with the new EF_M68000 flag.
6475 2002-02-13 Andreas Schwab <schwab@suse.de>
6477 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
6478 pc-relative relocations to merge sections in 64-bit mode.
6480 2002-02-13 Ben Elliston <bje@redhat.com>
6482 * NEWS: Document floating point number handling in gasp.
6483 * gasp.c: Include <assert.h> and "xregex.h".
6484 (is_flonum): New function.
6485 (chew_flownum): Likewise.
6486 (change_base): Consume flonums from the input, where possible.
6487 * doc/gasp.texi (Constants): Document floating point numbers.
6489 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
6491 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
6492 that implicitly use LR and RR selectors.
6494 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
6496 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
6497 and `epsw' as available on AM33 and above only.
6498 (other_register_name): Add logic to handle machine type encoded in
6501 2002-02-11 Tom Rix <trix@redhat.com>
6503 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
6506 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
6508 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
6511 2002-02-11 Jan Hubicka <jh@suse.cz>
6513 * i386.c (md_assemble): Support 32bit address prefix.
6514 (i386_displacement): Likewise.
6515 (i386_index_check): Accept 32bit addressing in 64bit mode.
6517 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6519 * config/tc-sh.c (dot): Removed unused function.
6521 2002-02-11 Alan Modra <amodra@bigpond.net.au>
6523 * Makefile.am: "make dep-am".
6524 * Makefile.in: Regenerate.
6525 * aclocal.m4: Regenerate.
6526 * config.in: Regenerate.
6527 * configure: Regenerate.
6528 * doc/Makefile.in: Regenerate.
6530 2002-02-10 Richard Henderson <rth@redhat.com>
6532 * doc/c-alpha.texi: New file.
6533 * doc/Makefile.am (CPU_DOCS): Add it.
6534 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
6536 2002-02-09 Richard Henderson <rth@redhat.com>
6538 * config/tc-alpha.c (O_samegp): New.
6539 (USER_RELOC_P): Include it.
6540 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
6541 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
6542 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
6543 (alpha_validate_fix): New.
6544 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
6546 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
6548 * doc/c-cris.texi: New.
6549 * doc/all.texi: @set CRIS.
6550 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
6551 Include c-cris.texi.
6552 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
6553 * doc/Makefile.in: Regenerate.
6555 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6557 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
6558 determine if a number is a sign-extended 32-bit number.
6559 (load_register): Use IS_SEXT_32BIT_NUM.
6560 (macro): Check if load/store macro handling is using a
6561 constant 32-bit address on 64-bit address systems, and if
6562 so optimize the generation of that address.
6564 2002-02-08 Richard Henderson <rth@redhat.com>
6566 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
6567 we've eliminated all foreign relocation types yet.
6568 (alpha_fix_adjustable): Likewise.
6570 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
6572 Contribute sh64-elf.
6573 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
6574 Stephen Clarke <Stephen.Clarke@st.com>
6575 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
6576 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
6577 * config/tc-sh.c (md_relax_table): Added default sizes for
6578 non-PC-relative UNDEF_MOVI, and relaxation sequences for
6579 MOVI_16, MOVI_32 and MOVI_48.
6580 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
6581 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
6583 (shmedia_md_estimate_size_before_relax): Remove redundant
6584 blocks. Set fragP->fr_var even if relaxation type unchanged.
6585 Retain UNDEF_MOVI until expression decays to number.
6586 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6587 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
6588 relocation types. Take fixP->fx_addnumber into account too.
6589 (shmedia_md_apply_fix): Likewise.
6590 (shmedia_md_convert_frag): Likewise.
6591 (shmedia_build_Mytes): Likewise.
6592 (sh64_consume_datalabel): Complain about nested datalabel.
6593 Support PIC relocs. Call sh_parse_name.
6594 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
6595 in tc-sh.h to SHmedia reloc types.
6596 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
6597 MOVI_GOTPC): New relaxation constants.
6598 (md_relax_table): Introduce relaxation directives for PIC-related
6600 (sh_PIC_related_p): Handle datalabel.
6601 (sh_check_fixup): Choose SH5 PIC relocations.
6602 (sh_cons_fix_new): Added BDF_RELOC_64.
6603 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
6604 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6605 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
6606 current ISA is SHmedia, get 7 bytes.
6607 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
6608 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
6610 * config/tc-sh64.c (shmedia_apply_fix): Rename to
6611 shmedia_apply_fix3 and make void.
6612 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
6613 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
6615 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
6616 * config/tc-sh64.h (md_parse_name): Take &c as argument.
6617 2001-03-14 DJ Delorie <dj@redhat.com>
6618 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
6619 * doc/Makefile.in(CPU_DOCS): Ditto.
6620 * doc/c-sh64.texi: New file.
6621 * doc/as.texinfo: Add SH64 support.
6622 2001-03-13 DJ Delorie <dj@redhat.com>
6623 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
6624 A_REUSE_PREV so that its purpose is more obvious.
6625 (shmedia_build_Mytes): Ditto.
6626 2001-03-07 DJ Delorie <dj@redhat.com>
6627 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
6629 (sh64_vtable_inherit): Ditto.
6630 (strip_datalabels): New, strip "datalabel" from given line.
6631 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
6633 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
6634 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
6636 (shmedia_build_Mytes): ... to here.
6637 2001-03-06 DJ Delorie <dj@redhat.com>
6638 * config/tc-sh.c: Remove sh64-specific uaquad now that there
6640 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
6641 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
6642 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
6643 address by one in call to dwarf2_emit_insn.
6644 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
6645 Implement ".abi" pseudo and correct .cranges descriptors. Correct
6646 alignment handling broken by imported changes.
6647 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
6648 (sh64_handle_align): Declare.
6649 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
6650 (sh64_max_mem_for_rs_align_code): Declare.
6651 (enum sh64_isa_values): Moved here from tc-sh64.c.
6652 (md_do_align): Define.
6653 (sh64_do_align): Declare.
6654 (struct sh64_tc_frag_data): New.
6655 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
6657 (TC_FRAG_INIT): Change to set new datatype.
6658 (struct sh64_segment_info_type): Rename member
6659 last_flushed_location to last_contents_mark. All users changed.
6660 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
6661 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
6662 * config/tc-sh.c (md_pseudo_table): Add ".abi".
6663 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
6664 of unsetting seen_insn.
6665 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
6666 call sh64_update_contents_mark.
6667 (sh_handle_align): Remove HAVE_SH64-conditioned code.
6668 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
6669 enum sh64_isa_values.
6670 (sh64_set_contents_type): Drop segT parameter. All callers changed.
6671 (emitting_crange): Boolean guard moved to file scope from function
6672 scope in sh64_set_contents_type.
6674 (sh64_update_contents_mark): New; most split out from
6675 sh64_flush_pending_output.
6676 (shmedia_md_end): Call sh64_update_contents_mark. Set
6677 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
6678 (sh64_do_align): New function.
6679 (sh64_max_mem_for_rs_align_code): New function.
6680 (sh64_handle_align): Rename from shmedia_do_align. Make
6681 non-static. Add head comment. Emit zero bytes for n bytes modulo
6682 four. Change return-type to void.
6683 (shmedia_elf_new_section): Remove.
6684 (shmedia_md_assemble): Call sh64_update_contents_mark.
6685 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
6686 new frag. Call sh64_update_contents_mark after making the new
6688 (sh64_flush_pending_output): Just call sh64_update_contents_mark
6689 and sh_flush_pending_output.
6690 (sh64_flag_output): Also call md_flush_pending_output, but add
6691 condition on not emitting_crange.
6692 (sh64_tc_cons_fix_new): Remove.
6693 2001-01-12 Nick Clifton <nickc@redhat.com>
6694 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6695 alignment handling scheme imported from sourceware.
6696 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
6697 * config/tc-sh64.h (TARGET_FORMAT): Define.
6698 (sh64_target_format): Prototype.
6699 * config/tc-sh64.c (sh64_target_mach): New function.
6700 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
6701 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6702 zero_address_frag instead of copying the frag of the symbol.
6703 (shmedia_frob_file_before_adjust): Ditto.
6704 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6705 to valueT to remove signedness.
6706 (shmedia_md_convert_frag): Add parameter final. Rename parameter
6707 headers to output_bfd. Do not evaluate symbols if final is false;
6709 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6710 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6711 to the current frag, call shmedia_md_convert_frag to emit fixups
6712 and make frag_wane neutralize the frag. Update comments.
6713 * config/tc-sh.c (md_convert_frag): Change caller of
6714 shmedia_md_convert_frag.
6715 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6716 * config/tc-sh64.h: Tweak comments and correct formatting.
6717 * config/tc-sh64.c: Ditto.
6718 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6719 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6720 for the no-relocation case.
6721 (shmedia_check_limits): Fix range check being off-by-one for PTA.
6722 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
6724 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
6726 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6727 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6729 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6731 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6732 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6733 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6734 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6735 al>: Set lowest bit of field to relocate to 1 and rest to empty,
6736 if reloc is emitted.
6737 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6738 New options plus bugfixes.
6739 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6741 (md_parse_option): Handle new options.
6742 (md_show_usage): Add blurb for new options.
6743 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6744 (sh64_expand, sh64_pt32): New variables.
6745 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6746 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6747 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6748 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6749 <resolved previously-pc-relative relocs>: Handle
6750 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6751 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6752 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6753 points to SHcompact code.
6754 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6755 SH64PCREL16)>: Check that ISA of what operand points at and
6756 PTA/PTB matches, or emit error.
6757 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6758 SHMEDIA_BFD_RELOC_PT.
6759 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6761 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6762 condition for MOVI expansion.
6763 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6764 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6766 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6768 (sh64_target_format): Error-check setting of sh64_pt32 and
6769 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6770 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6771 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6772 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6773 * config/tc-sh64.c: Improve comments.
6774 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6775 not say the linker will check correctness of PTA/PTB expansion.
6776 (shmedia_md_end): Make non-static.
6777 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6779 * config/tc-sh.c (sh_finalize): Remove.
6780 * config/tc-sh.h (md_end): Do not define.
6781 Remove prototype for sh_finalize.
6782 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6783 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6784 sh64_section_data container when storing section type in tdata
6785 field in elf_section_data.
6786 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6788 * Makefile.am: Update dependencies.
6789 * Makefile.in: Regenerate.
6790 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6791 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6792 dwarf2_emit_insn call with test on debug_type.
6793 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6794 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6795 CRT_SH5_ISA32 sticky for 64-bit.
6796 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6797 Generate .crange sections when switching ISA mode or emitting
6798 constants in same section as code.
6799 * config/tc-sh64.c: Reformat structure definitions.
6800 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6802 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6803 to emit a .cranges descriptor when contents type changes. Only
6804 emit error if changing contents type and -no-mix is in effect.
6805 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6806 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6807 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6808 sh64_flush_last_crange over sections.
6809 When checking main symbol of datalabel symbol, check for
6810 STO_SH5_ISA32, not ISA type of section in definition.
6811 (shmedia_frob_file_before_adjust): Check main symbol for
6812 STO_SH5_ISA32; don't check ISA type of section in definition.
6813 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6814 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6815 .cranges entries have been output.
6816 (shmedia_elf_new_section): Just call md_flush_pending_output.
6817 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6818 fix. Do not set tc_segment_info_data.in_code for section. Call
6819 sh64_set_contents_type for SHmedia code.
6820 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6821 false. Call md_flush_pending_output.
6822 (sh64_target_format): Check that -no-mix and
6823 -shcompact-const-crange are used in sane combination with other
6825 (shmedia_md_pcrel_from_section): Check type of fix for how to
6827 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6828 not ISA type of section in definition.
6829 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6830 hold contents-type state.
6831 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6832 (sh64_flush_pending_output): Declare.
6833 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6834 (sh64_tc_cons_fix_new): Declare.
6835 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6836 call sh64_flag_output.
6837 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6838 call sh64_set_contents_type to mark SHcompact code and set
6840 (md_longopts): New options "-no-mix" and
6841 "-shcompact-const-crange".
6842 (md_parse_option): Handle new options.
6843 (md_show_usage): Add blurb for new options.
6844 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6845 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6846 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6847 (sh64_last_insn_frag): New.
6848 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6849 to get frag for insn opcode for generating fixups; do not assume it
6851 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6853 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6855 (TC_FRAG_TYPE): Define as fragS *.
6856 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6857 (sh64_last_insn_frag): Declare.
6858 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6859 not == NULL before dereferencing.
6860 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6861 Get rid of BFD section flag and EF_SH64_ABI64.
6862 * config/tc-sh64.c (shmedia_frob_section_type): Use
6863 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6864 communicate the section as containing SHmedia code. Describe why.
6865 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6866 EF_SH64 regardless of ABI.
6867 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6868 in error message. Handle resolved expressions for
6869 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6870 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6871 (shmedia_check_limits): Handle BFD_RELOC_64.
6872 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6873 a STO_SH5_ISA32 symbol, only the BFD value.
6874 2000-12-11 Ben Elliston <bje@redhat.com>
6875 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6876 dwarf2_generate_asm_lineno.
6877 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6878 Handle PC-relative MOVI expansions with assembler relaxation.
6879 Generate PC-relative relocs from 16-bit PC-relative expressions.
6880 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6881 (shmedia_md_pcrel_from_section): ...here.
6882 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6883 turned completely resolved. Adjust relocation type for 16-bit
6884 immediate operands that has turned PC-relative. Adjust back for
6885 MD_PCREL_FROM_SECTION being applied twice.
6886 (shmedia_md_convert_frag): Always emit reloc for expression with
6887 global or weak symbol. Handle relaxation result for PC-relative
6889 (shmedia_md_estimate_size_before_relax): An expression with a weak
6890 or global symbol can not be relaxed. Break out tests for
6891 relaxable symbol into variable sym_relaxable.
6892 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6893 UNDEF_MOVI)>: Break out any PC-relative expression and change
6895 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6897 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6898 MOVI expansion. If X_op_symbol of the immediate expression is
6899 set, make an expression symbol for the argument to frag_var.
6900 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6902 (END): Adjust for new relaxations.
6903 (md_relax_table): Add entries for new relaxations.
6904 2000-12-07 Ben Elliston <bje@redhat.com>
6905 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6906 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6907 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6908 SHORI operand offsets in PT/PTA/PTB expansions.
6909 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6910 Implement DataLabel semantics.
6911 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6912 shmedia_frob_file_before_adjust.
6913 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6914 (DATALABEL_SUFFIX): Define.
6915 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6916 symbol list to update "datalabel" symbols to their main symbol
6918 (shmedia_frob_file_before_adjust): New.
6919 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6920 undefined and set STT_DATALABEL.
6921 (sh64_frob_label): Initialize TC symbol field.
6922 (sh64_consume_datalabel): Actually implement semantics. New
6923 parameter operandf, call it instead of expression.
6924 (sh64_exclude_symbol): New.
6925 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6926 to sh64_consume_datalabel.
6927 (tc_symbol_new_hook): Define to tc_frob_symbol.
6928 (TC_SYMFIELD_TYPE): Define to symbolS *.
6929 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6930 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6931 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6933 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6934 generating dwarf2 debug information.
6935 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6936 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6937 elf64-sh64 for the 64-bit ABI.
6938 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6940 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6941 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6943 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6944 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6945 (enum sh64_abi_values): New type.
6946 (enum sh64_isa_values): New type.
6947 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6948 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6949 (sh64_abi): Replace shmedia_64.
6950 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6951 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6952 (s_sh64_mode): Check validity for this target.
6953 (sh64_target_format): Initialize defaults for ISA and ABI.
6954 Fallback to old object format if no SH64 ISA or ABI has been
6956 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6957 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6958 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6959 * config/tc-sh64.h: Fix typo in comment.
6960 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6961 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6962 <PT fixups for absolute values>: Size will be longest, not
6964 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6965 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6966 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6967 and l1 to hold lowercase of two first characters. Change all
6968 remaining TO_LOWER to tolower.
6969 * config/tc-sh64.c (TO_LOWER): Delete.
6970 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6971 (md_parse_name): Define.
6972 (sh64_consume_datalabel): Declare.
6973 (DOLLAR_DOT): Define.
6974 * config/tc-sh64.c (shmedia_parse_exp): New.
6975 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6976 (shmedia_parse_reg): Remove const from src
6978 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6979 (shmedia_md_assemble): Ditto for op_end variable.
6980 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6981 Use shmedia_parse_exp, not parse_exp.
6982 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6983 parameter. All callers changed.
6984 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6986 (shmedia_parse_reg): Put first two character in local variables.
6987 Use tolower, not TO_LOWER. If no register is found and argtype
6988 indicates a control register, scan shmedia_creg_table
6990 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6991 * Makefile.am (CPU_TYPES): Add sh64.
6992 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6993 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6994 Regenerate dependencies.
6995 * Makefile.in: Regenerate.
6996 * configure.in: Add support for sh64-*-elf*.
6997 * configure: Regenerate.
6998 * config/tc-sh64.h: New.
6999 * config/tc-sh64.c: New.
7000 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
7001 .mode, .isa and .uaquad.
7002 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
7003 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
7004 [HAVE_SH64] (END): Define as 10.
7005 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
7006 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
7008 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
7009 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
7010 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
7011 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
7013 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
7014 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
7015 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
7016 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
7017 SHmedia instructions. Handle state-change after switching to
7019 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
7020 (md_parse_option) [HAVE_SH64]: Parse new options.
7021 (md_show_usage) [HAVE_SH64]: Show usage of new options.
7022 (md_convert_frag) [HAVE_SH64] <default>: Call
7023 shmedia_md_convert_frag instead of abort.
7024 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
7025 BFD_RELOC_SH_SHMEDIA_CODE.
7026 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
7027 SHcompact or SHmedia code.
7028 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
7029 shmedia_md_apply_fix instead of abort.
7030 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
7031 result from calling shmedia_md_estimate_size_before_relax instead
7033 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
7035 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
7036 shmedia_init_reloc and do nothing more if it returns non-zero.
7037 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
7038 * po/POTFILES.in: Regenerate.
7039 * po/gas.pot: Regenerate.
7041 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
7043 * config/tc-sh.c (parse_at): Install the correct version of
7046 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
7047 assume fixP->fx_subsy is non-NULL.
7049 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7051 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
7052 A_DISP_PC_ABS, and adjust it by -4.
7053 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
7055 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
7056 the operand type is not A_DISP_PC_ABS.
7058 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
7060 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
7061 common and weak symbols. Handle common and weak symbols as
7062 undefined symbols with regards to GREG handling and merging.
7063 (mmix_frob_file): Ditto.
7065 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
7067 * configure.in (hppa-*-netbsd*): New target.
7068 * configure: Regenerate.
7069 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
7071 2002-02-02 Alan Modra <amodra@bigpond.net.au>
7073 * config/tc-v850.c: Add missing prototypes amd use old-style
7074 function definitions.
7075 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
7076 (sdata_section tdata_section, zdata_section, sbss_section,
7077 tbss_section, zbss_section, rosdata_section, rozdata_section,
7078 scommon_section, tcommon_section, zcommon_section,
7079 call_table_data_section, call_table_text_section): Delete.
7080 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
7081 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
7082 v850_call_table_data, v850_call_table_text): Delete.
7083 (struct v850_seg_entry): New.
7084 (v850_seg_table): New.
7085 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
7086 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
7087 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
7088 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
7091 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
7092 recording of alignment.
7093 (md_pseudo_table): Use v850_seg.
7094 (md_begin): Don't init .call_table_data and .call_table_text here.
7095 Set v850_seg_table bss entry.
7097 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
7099 Support on-demand global register allocation by passing on
7100 base-plus-offset relocs to the linker.
7101 * config/tc-mmix.c: Tweak and fix typos in comments.
7102 (allocate_undefined_gregs_in_linker): New variable.
7103 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
7104 (md_longopts): Add --linker-allocated-gregs.
7105 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
7106 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
7107 (md_show_usage): Update text for -x. Add text for
7108 --linker-allocated-gregs.
7109 (tc_gen_reloc): Derive default value for addend from val and
7110 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
7111 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
7112 GREG if allocate_undefined_gregs_in_linker.
7113 * doc/as.texinfo (Overview) <Target MMIX options>: Add
7114 --linker-allocated-gregs.
7115 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
7116 --linker-allocated-gregs. Mention that it's implied by -x.
7117 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
7118 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
7120 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
7122 2002-02-01 Alan Modra <amodra@bigpond.net.au>
7124 * Makefile.am: Run "make dep-am"
7125 * Makefile.in: Regenerate.
7127 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
7129 * config/tc-or32.c: New file.
7130 * config/tc-or32.h: New file.
7131 * configure.in: Add support for or32 targets.
7132 * configure: Regenerate.
7133 * config/obj-coff.c: Add support for or32 targets.
7134 * config/obj-coff.h: Add support for or32 targets.
7135 * Makefile.am: Add support for or32 targets.
7136 * Makefile.in: Regenerate.
7137 * NEWS: Mention support for OpenRISC.
7138 * doc/Makefile.in: Regenerate.
7139 * po/POTFILES.in: Regenerate.
7140 * po/gas.pot: Regenerate.
7142 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
7144 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
7147 2002-01-29 Chris Demetriou <cgd@broadcom.com>
7149 * config/tc-mips.c (tc_gen_reloc): Arrange for
7150 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
7151 their LO16 parts, even for ELF.
7153 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
7155 * config/tc-i386.c: Protect definitions of true and false
7158 2002-01-28 Jakub Jelinek <jakub@redhat.com>
7160 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
7161 made because of .weak, if they are neither defined nor used in any
7164 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
7166 * configure: Regenerated.
7168 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
7170 * doc/Makefile.am (install): Depend on install-info.
7171 * doc/Makefile.in: Regenerate.
7173 2002-01-26 Nick Clifton <nick@redhat.com>
7175 * po/fr.po: Updated version
7177 2002-01-24 Kazu Hirata <kazu@hxi.com>
7179 * config/tc-h8300.c (check_operand): Don't print a warning
7180 when a valid 24-bit address is given to a 16-bit address
7183 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7185 * config/tc-sh.c (sh_elf_suffix): Removed.
7186 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
7187 sh_end_of_match, sh_parse_name): New functions.
7188 (sh_elf_cons): Simplify.
7189 (parse_exp): Reject misplaced PIC operands.
7190 (md_undefined_symbol): Simplify.
7191 (sh_fix_adjustable): Let @GOTOFF be adjusted.
7192 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
7193 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
7194 Complain if subsy remains at the end.
7195 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
7196 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
7198 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7200 * config/tc-mn10300.c (xr_registers): Move `pc'...
7201 (other_registers): ... here.
7203 2002-01-22 Alan Modra <amodra@bigpond.net.au>
7205 * Makefile.am: Run "make dep-am".
7206 * Makefile.in: Regenerate.
7207 * gas/po/POTFILES.in: Regenerate.
7209 2002-01-21 DJ Delorie <dj@redhat.com>
7211 * config/obj-coff.c (obj_coff_init_stab_section): Make the
7212 stabstr_name allocation permanent, as it will be referenced from
7215 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
7217 * configure.in (ia64-*-netbsd*): New target.
7218 * configure: Regenerate.
7220 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
7222 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
7224 <Detailed description, ARM options>: Ditto.
7225 * doc/c-arm.texi (ARM Options): Ditto.
7227 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7229 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
7230 do_mia, do_mar and do_mra respectively.
7231 (do_mav_*): Renamed from do_c_*.
7232 (mav_reg_required_here, mav_parse_offset): Renamed from
7233 cirrus_reg_required_here and cirrus_parse_offset respectively.
7234 (MAV_MODE?): Renamed from CIRRUS_MODE?.
7236 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7237 Keith Walker <keith.walker@arm.com>
7239 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
7240 (insns): Add pattern for bxj instruction.
7241 (do_bxj): New function.
7242 (arm_cpus): Add arm926ej.
7243 (arm_archs): Add armv5tej.
7245 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7247 * doc/c-arm.texi: Add new fpe options to list of supported flags.
7249 2002-01-19 Keith Walker <keith.walker@arm.com>
7251 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
7253 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7255 * NEWS: Mention new ARM command-line options and VFP support.
7257 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
7259 (ARM_CEXT_MAVERICK): Similarly.
7260 (ARM_ANY): Now means any core instruction.
7261 (CPU_DEFAULT): Default to ARM_ANY.
7262 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
7263 (pic_code): Declare for all object types. Make type int.
7264 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
7265 (march_fpu_opt, mfpu_opt): Declare.
7266 (md_longopts): Tidy up conditional definitions.
7267 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
7268 (arm_long_opts): New tables.
7269 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
7270 (arm_parse_extension): New function.
7271 (md_parse_option): Rewrite using new table-driven system.
7272 (md_show_usage): Use new table-driven system.
7273 (md_begin): Calculate cpu_variant from command line option data.
7274 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
7275 command-line options.
7276 * doc/c-arm.texi: Likewise.
7278 2002-01-18 Andreas Jaeger <aj@suse.de>
7280 * as.c (parse_args): Update year.
7282 2002-01-17 Timothy Wall <twall@alum.mit.edu>
7284 * config/tc-tic54x.c (encode_address): Add a more informative
7285 warning about incorrect syntax.
7287 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
7289 * po/gas.pot: Regenerate.
7291 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
7293 * macro.c (get_any_string): Add no-c-format comment to prevent
7294 confusion when translating string.
7295 * gasp.c (get_any_string): Add no-c-format comment to prevent
7296 confusion when translating string.
7298 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7299 Johannes Stezenbach <js@convergence.de>
7300 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
7301 matched before the shorter ones.
7302 (my_getSmallParser): Fix handling of nested parentheses in
7303 percent_op's. Code cleanup.
7304 (my_getPercentOp): New function, code from my_getSmallParser.
7305 (my_getSmallExpression): Fix handling of closing parentheses.
7306 Code cleanup. Better comments.
7308 2002-01-16 Nick Clifton <nickc@redhat.com>
7310 po/tr.po: New file: Turkish translation.
7311 configure.in (LINGUAS): Add "tr".
7312 configure: Regenerate.
7314 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
7316 Support for VFP instructions
7317 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
7318 (cp_address_required_here): New argument wb_ok. When false, do not
7319 accept write-back forms of addressing. Change all callers.
7320 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
7321 (FPU_VFP_EXT_V2): Define.
7322 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
7323 Define in terms of above.
7324 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
7325 (vfp_reg): New struct.
7326 (vfp_regs): New array of registers.
7327 (insns): Add VFP instructions.
7328 (sn_table): New array of VFP single-precision register names.
7329 (dn_table): New array of VFP double-precision register names.
7330 (all_reg_maps): Add the new register tables.
7331 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
7332 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
7333 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
7334 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
7335 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
7336 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
7337 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
7338 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
7339 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
7340 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
7341 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
7342 (do_vfp_sp_dp_cvt): New functions.
7343 (md_begin): Set soft-float flag for appropriate VFP work.
7344 (md_atof): Handle VFP-format doubles.
7345 (md_parse_option): Handle VFP command-line options.
7346 (md_show_usage): Display VFP command-line options.
7348 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
7350 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
7351 various command line options.
7353 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
7355 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
7357 (xstormy16_md_apply_fix3): Do not return a value.
7359 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
7361 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
7362 the -EL/-EB option that matches the target's endianness.
7363 (md_parse_option): Likewise.
7365 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
7367 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
7368 is not dependent on ARM_BI_ENDIAN.
7370 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
7372 * tc-arm.c (all error messages): Normalize capitalization of messages.
7374 * tc-arm.h (md_operand): Delete define.
7375 * tc-arm.c (in_my_get_expression): New static variable.
7376 (my_get_expression): Set and clear it.
7377 (md_operand): New function. If called from my_get_expression
7378 put the error in inst.error.
7379 (output_inst): Now takes argument of instruction being assembled.
7380 Print it out with any error message.
7381 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
7383 (end_of_line): Don't update inst.error if it is already set.
7385 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
7387 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
7388 op that can be translated into a mvn instruction.
7390 2002-01-11 Steve Ellcey <sje@cup.hp.com>
7392 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
7393 setting default md.flags.
7394 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
7395 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
7396 * gas/config/tc-ia64.c (setup_unwind_header): Add support
7397 for 32 bit unwind info blocks.
7398 (generate_unwind_image): Add support for different types
7399 of unwind images (32 bits and/or big-endian).
7400 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
7401 (ia64_target_format): Add support for hpux target formats.
7402 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
7403 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
7404 SHT_FINI_ARRAY elf section types.
7406 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
7408 * tc-arm.c (struct reg_entry): Move before prototypes.
7409 (int_register, cp_register, fp_register): Delete.
7410 (reg_table): Delete. Replaced with ...
7411 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
7412 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
7413 (mav_dspsc_table): ... one table per register set.
7414 (arm_reg_hsh): Delete.
7415 (struct reg_map): New structure.
7416 (all_reg_maps): New array.
7417 (enum arm_reg_type): New enums.
7418 (build_reg_hsh): New function.
7419 (insert_reg_alias): Use hash table passed by caller. Adjust all
7421 (create_register_alias): New function, split out from ...
7422 (md_assemble): ... here.
7423 (md_begin): Build new register hash tables.
7424 (arm_reg_parse): New argument for the hash table to search. Adjust all
7426 (arm_reg_parse_any): New function.
7427 (co_proc_number): Look up the processor number in the processor hash
7429 (cirrus_regtype): Delete.
7430 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
7431 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
7432 (ARM_EXT_MAVERICKsc_register): Delete.
7433 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
7434 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
7436 (do_c_triple_4, do_c_triple_5): Delete.
7437 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
7438 (do_c_quad_6): Delete.
7439 (do_c_quad_6[ab]): New functions.
7440 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
7441 arguments to use new register parsing methods.
7442 (cirrus_reg_required_here): Likewise.
7443 (insns): Reclassify cirrus maverick worker functions.
7444 (cirrus_valid_reg): Delete.
7446 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
7448 * configure.in (sh*le): Set cpu_type=sh and endian=little.
7449 (sh*-*-netbsdelf*): New target.
7450 * configure: Regenerate.
7451 * tc-sh.h: Update copyright years.
7452 (TARGET_FORMAT): Add version for TE_NetBSD.
7454 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
7456 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
7459 2002-01-06 Alan Modra <amodra@bigpond.net.au>
7461 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
7462 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
7464 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
7466 * tc-mips.c (mips_cprestore_valid): New flag.
7467 (mips_frame_reg_valid): New flag.
7468 (macro) [M_JAL_2]: Check both flags.
7469 [M_JAL_A]: Likewise.
7470 (s_cprestore): Set mips_cprestore_valid.
7471 (tc_get_register): If setting mips_frame_reg, set
7472 mips_frame_reg_valid and clear mips_cprestore_valid.
7473 (s_mips_ent): Clear both flags.
7474 (s_mips_end): Clear both flags.
7476 2002-01-05 Alan Modra <amodra@bigpond.net.au>
7478 * write.c (write_object_file): Make use of bfd_section_list_remove.
7479 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
7480 * config/tc-mmix.c (mmix_frob_file): Likewise.
7482 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7484 * configure.in (i386-*-netbsdelf*): Collapse target into...
7485 (i386-*-netbsd*): ...this. Add support for x86-64.
7486 * configure: Regenerated.
7488 2002-01-03 matthew green <mrg@redhat.com>
7490 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
7492 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
7494 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
7497 For older changes see ChangeLog-0001
7503 version-control: never