1 2003-12-18 Richard Sandiford <rsandifo@redhat.com>
3 * config/tc-mips.c (mips_need_elf_addend_fixup): Delete.
4 (md_apply_fix3): Remove bfd_install_relocation workarounds.
5 (tc_gen_reloc): Likewise. Factor handling of pc-relative relocations
6 and treat fx_addnumber as relative to the relocation address.
8 2003-12-18 Richard Sandiford <rsandifo@redhat.com>
10 * config/tc-mips.c (s_change_section): When parsing the MIPS-specific
11 .section syntax, map SHT_MIPS_DWARF to SHT_PROGBITS.
13 2003-12-17 Mark Mitchell <mark@codesourcery.com>
15 * config/tc-arm.c (arm_archs): Change "armv6" to "armv6j".
16 * doc/c-arm.texi (ARM Options): Likewise.
18 2003-12-17 Nick Clifton <nickc@redhat.com>
20 * config/tc-m32r.c (error_explicit_parallel_conflicts): Rename
21 to 'ignore_parallel_conflicts'.
22 (md_longopts): Change option names as well.
23 (md_parse_option): Separate the warn_explicit and ignore
24 parallel conflicts options.
25 (md_show_usage): Update descriptions of these options.
26 (first_writes_to_seconds_operands): Do not run this check if
27 ignoring parallel conflicts.
28 (assemble_two_insns): Remove code that checked
29 error_explicit_parallel_conflicts.
30 * doc/c-m32r.texi: Update descriptions of the options.
32 2003-12-16 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
34 * tc-arm.c (do_adr): Do not adjust pc by -8 if TE_WINCE is
38 2003-12-15 Christian Groessler <chris@groessler.org>
40 * config/tc-z8k.c (struct z8k_exp): Remove, not used anywhere.
41 (ctrl_table): Add "flags" keyword and some comments.
42 (flag_table): Convert to uppercase.
43 (get_flags_operand): Be case insensitive.
44 (get_interrupt_operand): Be case insensitive. Support notation
45 where the inperrupt arguments are separated by commas.
46 (get_operands): Check whether get_flags_operand consumed all
47 arguments. Return failure if get_ctrl_operand didn't recognize a
48 valid control register.
49 (get_specific): Add case CLASS_CTRL: Test for valid control
50 register for ldctlb opcode.
51 (build_bytes): Check for valid control registers.
53 2003-12-15 Nick Clifton <nickc@redhat.com>
55 * config/obj-aout.c (obj_crawl_symbol_chain): Skip defined
56 symbols which resolve to symbolic values.
58 2003-12-13 Alan Modra <amodra@bigpond.net.au>
60 * config/obj-elf.c: Convert to C90, remove unneeded prototypes and
62 * config/obj-elf.h: Remove PARAMS.
64 * read.c (s_lcomm_internal): Make global.
65 * read.h (s_lcomm_internal): Declare.
66 * config/obj-elf.c (elf_pseudo_table): Handle lcomm.
67 (obj_elf_lcomm): New function.
69 2003-12-13 Alan Modra <amodra@bigpond.net.au>
71 * read.c: Remove unneeded prototypes.
72 (s_comm): Split out code to..
73 (s_comm_internal): ..here. Tidy error returns. Rearrange so that
74 "name" from input line may be used in more places. Merge code
75 testing for valid size from elf_common. Merge code from
76 s_lcomm_internal. Call comm_parse_extra.
77 (bss_alloc): New function, split out of s_lcomm_internal and
79 (parse_align): Likewise.
80 (s_lcomm_internal): Rewrite.
81 (s_lcomm, s_lcomm_bytes): Use s_comm_internal.
82 * read.h (bss_alloc, parse_align, s_comm_internal): Declare.
83 * config/obj-elf.c (elf_common): Split out code to..
84 (elf_common_parse): ..here. Remove code common to s_comm_internal,
85 parse_align and bss_alloc. Rearrange and Tidy.
86 * config/tc-alpha.h (TC_IMPLICIT_LCOMM_ALIGNMENT): Define.
88 2003-12-10 Zack Weinberg <zack@codesourcery.com>
90 * tc-ppc.c (md_assemble): Rewrite comment about optional operands
91 to indicate that 'all or none' is also handled. Pluralize a
92 word in another comment.
94 2003-12-10 Paul Brook <paul@codesourcery.com>
96 * config/tc-arm.c (FPU_MAVERICK): Define.
97 (FPU_ARCH_MAVERICK): Define.
98 (arm_float_abi): Define.
99 (mfloat_abi_opt): New variable.
100 (md_begin): Use them.
101 (arm_opts): Add msoft-float and mhard-float.
102 (arm_cpus): Use FPU_ARCH_MAVERICK.
103 (arm_fpus): Add maverick.
104 (arm_float_abis): Add.
105 (arm_parse_float_abi): New function.
106 (arm_long_options): Add mfloat-abi.
107 * doc/as.texinfo: Document -mfloat-abi=.
108 * doc/c-arm.text: Ditto. Menution -fpu=maverick.
110 2003-12-09 Paul Brook <paul@codesourcery.com>
112 * config/tc-arm.c (do_umaal): Fix typo.
114 2003-12-06 Kazu Hirata <kazu@cs.umass.edu>
116 * dwarf2dbg.c: Convert to ISO-C.
120 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
122 * config/tc-mips.c (macro): Switch misordered call to frag_grow()
123 and setting of tc_fr_offset.
125 2003-12-05 Ricardo Anguiano <anguiano@codesourcery.com>
126 Mark Mitchell <mark@codesourcery.com>
127 Richard Earnshaw <rearnsha@arm.com>
130 * config/tc-arm.c (ARM_EXT_V6): New macro.
131 (ARM_ARCH_V6): Likewise.
132 (SHIFT_IMMEDIATE): Likewise.
133 (SHIFT_LSL_OR_ASR_IMMEDIATE): Likewise.
134 (SHIFT_ASR_IMMEDIATE): Likewise.
135 (SHIFT_LSL_IMMMEDIATE): Likewise.
136 (do_cps): New function.
138 (do_ldrex): Likewise.
139 (do_pkhbt): Likewise.
140 (do_pkhtb): Likewise.
141 (do_qadd16): Likewise.
144 (do_sxtah): Likewise.
146 (do_setend): Likewise.
147 (do_smlad): Likewise.
148 (do_smlald): Likewise.
149 (do_smmul): Likewise.
153 (do_ssat16): Likewise.
154 (do_usat16): Likewise.
155 (do_strex): Likewise.
156 (do_umaal): Likewise.
157 (do_cps_mode): Likewise.
158 (do_cps_flags): Likewise.
159 (do_endian_specifier): Likewise.
160 (do_pkh_core): Likewise.
162 (do_sat16): Likewise.
163 (insns): Add V6 instructions.
164 (do_t_cps): New function.
165 (do_t_cpy): Likewise.
166 (do_t_setend): Likewise.
167 (THUMB_CPY): New macro.
168 (tinsns): Add V6 instructions.
169 (decode_shift): Handle V6 restricted-shift options.
170 (thumb_mov_compare): Support CPY.
171 (arm_cores): Add arm1136js and arm1136jfs.
172 (arm_archs): Add armv6.
173 (arm_fpus): Add arm1136jfs.
174 * doc/c-arm.texi (ARM Options): Mention arm1136js, arm1136jfs, and
177 2003-12-06 Christian Groessler <chris@groessler.org>
179 * config/tc-z8k.c (parse_reg): Be case insensitive when checking
181 (get_ctrl_operand): Be case insensitive when checking ctrl names.
183 2003-12-05 Nick Clifton <nickc@redhat.com>
185 * config/tc-sh.c (md_show_usage): Fix compilation errors
186 introduced by the previous delta.
188 2003-12-03 Alexandre Oliva <aoliva@redhat.com>
190 * config/tc-sh.c: Add support for sh4a and no-fpu variants.
191 * testsuite/gas/sh/basic.exp: Call tests for sh4a.
192 * testsuite/gas/sh/{err-sh4a-fp.s, err-sh4a.s,
193 err-sh4al-dsp.s, sh4a-dsp.d, sh4a-dsp.s, sh4a-fp.d,
194 sh4a-fp.s, sh4a.d, sh4a.s, sh4al-dsp.d, sh4al-dsp.s:
195 New files, tests for sh4a and related variants.
197 2003-12-05 Michael Snyder <msnyder@redhat.com>
199 * config/tc-sh.c (md_show_usage): Mention new -isa options.
200 * doc/c-sh.texi: Document new -isa options.
201 * doc/c-sh64.texi: Ditto.
202 * NEWS: Mention new support for sh4a.
204 2003-12-03 H.J. Lu <hongjiu.lu@intel.com>
206 * config/tc-alpha.c (s_alpha_end): Don't crash if there is no
209 2003-12-04 Alan Modra <amodra@bigpond.net.au>
211 * tc.h (md_pcrel_from): Don't declare if defined as a macro.
213 2003-12-03 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
215 * config/tc-m32r.h : Add support for new machine m32r2.
216 * config/tc-m32r.c : Likewise.
217 Add new command line switches and directives to allow endian-ness
218 to be selected and some warnings to be turned into errors.
219 (line_separator_chars) : Use '!'.
220 * doc/c-m32r.texi: Document new switches and directives.
221 * NEWS: Mention new support.
223 2003-12-03 Dave Airlie <airlied@linux.ie>
225 * configure.in: Likewise.
226 * configure: Regenerate.
227 * config/tc-vax.c (md_shortopts): Add 'Q'.
228 (md_parse_option): Ignore 'Q' for now.
230 2003-12-02 Kazu Hirata <kazu@cs.umass.edu>
232 * messages.c: Convert to ISO-C.
234 * output-file.c: Likewise.
235 * output-file.h: Likewise.
239 * subsegs.c: Likewise.
240 * subsegs.h: Likewise.
243 2003-12-02 Kazu Hirata <kazu@cs.umass.edu>
245 * config/obj-elf.c: Remove ARGSUSED.
247 2003-12-02 Alan Modra <amodra@bigpond.net.au>
249 * Makefile.am: Run "make dep-am".
250 * Makefile.in: Regenerate.
252 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
254 * symbols.c: Convert to ISO-C.
255 * symbols.h: Likewise.
257 2003-11-28 Christian Groessler <chris@groessler.org>
259 * config/tc-z8k.c: Convert to ISO-C.
260 * config/tc-z8k.h: Likewise.
262 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
264 * read.c: Convert to ISO-C.
267 2003-11-27 Nick Clifton <nickc@redhat.com>
269 * config/tc-sh.c (sh_elf_cons): If md_cons_align is defined
270 call it to make sure that the constants that are going to be
271 emitted are correctly aligned.
273 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
275 * config/tc-frv.c (md_pcrel_from_section): Don't adjust when
276 referencing symbol in a different section.
278 2003-11-26 Christian Groessler <chris@groessler.org>
280 * config/tc-z8k.c (s_segm): Fix indentation.
281 (md_apply_fix3): Likewise.
282 (cc_names): Add alias names for the names generated by the
284 (get_cc_operand): Be case insensitive.
285 (get_operands): Improve error handling for cc operands.
286 (check_operand): Not used, remove.
287 (md_assemble): Remove unused variable prev_opcode. Skip
288 whitespace until end-of-line only. Restore *op_end after call to
291 2003-11-26 Nick Clifton <nickc@redhat.com>
293 * config/tc-h8300.c (get_operand): Allow er4-er7 for ldm/stm
294 instructions on the H8SX.
296 2003-11-25 Kazu Hirata <kazu@cs.umass.edu>
298 * config/tc-h8300.c (h8_exp): Remove.
300 2003-11-25 Asgari Jinia <asgarij@kpitcummins.com>
302 * config/tc-h8300.c (md_assemble): Check operands validity for
304 (get_operand): Check register pair's validity as per technical
305 note TN-H8*-193A/E from Renesas for H8s and for H8Sx manual.
307 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
309 * listing.c: Convert to ISO-C.
310 * listing.h: Likewise.
314 2003-11-24 Jakub Jelinek <jakub@redhat.com>
316 * app.c (do_scrub_chars): Add PUT (ch) and ch = GET ()
317 when transitioning from states 14 or 15 to 0 or 1.
319 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
321 * hash.c: Convert to ISO-C.
323 * input-file.c: Likewise.
324 * input-file.h: Likewise.
325 * input-scrub.c: Likewise.
326 * itbl-ops.c: Likewise.
327 * itbl-ops.h: Likewise.
329 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
331 * config/tc-h8300.c (Hmode): Make it global.
336 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
338 * ehopt.c: Convert to ISO-C.
342 * flonum-copy.c: Likewise.
343 * flonum-mult.c: Likewise.
344 * flonum.h: Likewise.
348 2003-11-22 Alan Modra <amodra@bigpond.net.au>
350 * doc/c-ppc.texi (PowerPC-Pseudo): Add section.
352 * app.c (do_scrub_chars): Revert 2003-04-23 and 2003-04-22.
354 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
356 * ecoff.c: Convert to ISO-C.
359 2003-11-22 Alan Modra <amodra@bigpond.net.au>
361 * config/tc-ppc.c (parse_cpu): New function, broken out from..
362 (md_parse_option): ..here.
363 (ppc_setup_opcodes): New function, broken out from..
365 (ppc_machine): Implement .machine pseudo op.
367 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
369 * depend.c: Convert to ISO-C.
370 * dwarf2dbg.c: Likewise.
371 * dwarf2dbg.h: Likewise.
373 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
375 * app.c: Convert to ISO-C.
377 * atof-generic.c: Likewise.
378 * bignum-copy.c: Likewise.
379 * bignum.h: Likewise.
384 2003-11-20 DJ Delorie <dj@redhat.com>
386 * config/tc-sh64.c (shmedia_frob_section): Only frob elf32
389 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
391 * config/tc-h8300.c: Make some functions and global
392 variables static appropriately.
394 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
396 * config/obj-ieee.c: Remove duplicate prototypes.
397 * config/tc-h8300.c: Likewise.
399 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
401 * config/tc-h8300.c: Convert to ISO-C.
402 * config/tc-h8300.h: Likewise.
404 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
406 * config/tc-mcore.h: Remove prototypes already in tc.h.
407 * config/tc-tic4x.c: Likewise.
409 2003-11-19 Kazu Hirata <kazu@cs.umass.edu>
411 * config/tc-arc.c: Remove a local prototype of atof_ieee.
412 * config/tc-ip2k.c: Likewise.
413 * config/tc-iq2000.c: Likewise.
414 * config/tc-tic30.c: Remove a comment.
416 2003-11-19 Bob Wilson <bob.wilson@acm.org>
418 * config/tc-xtensa.c (xg_emit_insn): Include "dwarf2dbg.h" and add
419 call to dwarf2_emit_insn.
421 2003-11-18 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
423 * config/tc-mips.c (macro): Handle new macros: "lca" and "dlca"
424 for loading addresses using CALL relocations.
425 Don't emit CALL relocations when a base register is used.
427 2003-11-15 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
429 * config/tc-mips.c: Formatting fixes.
431 2003-11-14 Ben Elliston <bje@wasabisystems.com>
433 * config/tc-arm.c (arm_elf_change_section): Not static.
435 2003-11-13 Nick Clifton <nickc@redhat.com>
437 * tc-arm.c (mapping_state): New function. Emit a mapping
439 (arm_elf_change_section): New function. Intercept section
440 changes and generate mapping symbols.
442 (s_arm_elf_cons): Likewise.
443 (opcode_select): Choose the correct mapping state.
444 (md_assemble): Likewise.
445 * tc-arm.h (md_elf_section_change_hook): Define.
446 * doc/c-arm.texi (ARM Mapping Symbols): New node.
447 * NEWS: Mention new feature.
449 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
451 * Makefile.am (install, install-info, RECURSIVE_TARGETS): Define.
452 * doc/Makefile.am (install-info): Define.
454 * aclocal.m4: Regenerate.
455 * Makefile.in: Regenerate.
456 * doc/Makefile.in: Regenerate.
458 2003-11-11 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
460 * configure.in: Add support for arm-wince-pe target.
461 * configure: Regenerate.
463 2003-11-11 Jan Hubicka <jh@suse.cz>
465 * config/tc-i386.c (tc_i386_fix_adjustable):
467 2003-11-10 Alan Modra <amodra@bigpond.net.au>
469 * config/tc-ia64.c (ia64_handle_align): Remove bogus be_nop.
471 2003-11-10 Alan Modra <amodra@bigpond.net.au>
473 * README: Update bug report address. Move bug reporting info to
476 2003-11-07 Christian Groessler <chris@groessler.org>
478 * doc/c-z8k.texi: Document command-line options. Fix byte
479 register names. Document '.z8001' and '.z8002' directives.
480 Extend addressing modes documentation.
482 2003-11-07 Jonathan R. Grant <jg-binutils@jguk.org>
484 * input-file.c (input_file_open): Use "No such file" error
487 2003-11-06 Pete Gonzalez <pgonzalez@bluel.com>
489 * config/tc-arm.texi (struct reg_entry): Add new field 'builtin'.
490 (rn_table, iwmmxt_table, cp_table, cn_table, fn_table, sn_table,
491 dn_table, mav_mvf_table, mac_mvd_table, mav_mvfx_table,
492 mav_mvax_table, mav_dspc_table): Initialise new field.
493 (insert_reg_alias): Initialise new field.
494 (md_pseudo_table): Add "unreq" entry.
495 (s_unreq): New function: Undo the effects of a previous .req.
496 * doc/c-arm.texi: Document new pseudo op.
497 * NEWS: Mention new feature.
499 2003-11-06 Bruno Rohee <bruno@rohee.com>
501 * config/obj-vms.c: Fix "the the" typo.
502 * doc/c-arm.texi: Likewise.
504 2003-11-06 Nick Clifton <nickc@redhat.com>
506 * config/obj-vms.c: Convert to ISO-C.
508 2003-11-05 Alan Modra <amodra@bigpond.net.au>
510 * config/tc-ppc.h (TC_FORCE_RELOCATION): Only define for ELF and XCOFF.
512 2003-10-31 Christian Groessler <chris@groessler.org>
514 * config/tc-i860.c (md_pcrel_from): Fix typo in comment.
516 2003-10-29 Phil Edwards <phil@codesourcery.com>
518 * configure.in (arm-*-vxworks, i386-*-vxworks, mips-*-vxworks,
519 ppc-*-vxworks, ppc-*-windiss): Remove separate outdated stanzas.
520 (*-*-vxworks, *-*-windiss): Use common stanzas, all ELF.
521 * configure: Regenerated.
523 2003-10-27 Kazu Hirata <kazu@cs.umass.edu>
525 * ChangeLog: Fix typos.
526 * ChangeLog-9295: Likewise.
527 * as.c: Fix comment typos.
529 * atof-generic.c: Likewise.
530 * bit_fix.h: Likewise.
533 * input-file.c: Likewise.
534 * input-scrub.c: Likewise.
535 * itbl-ops.c: Likewise.
536 * itbl-parse.y: Likewise.
537 * listing.c: Likewise.
542 * symbols.c: Likewise.
543 * symbols.h: Likewise.
545 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
547 * config/tc-m68hc11.c: Convert to ISO C90.
548 * config/tc-m68hc11.h: Likewise.
550 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
552 * doc/c-sh64.texi: Fix a typo.
554 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
556 * doc/c-alpha.texi: Fix typos.
557 * doc/c-ia64.texi: Likewise.
558 * doc/c-mmix.texi: Likewise.
559 * doc/c-sh64.texi: Likewise.
560 * doc/c-xtensa.texi: Likewise.
561 * doc/internals.texi: Likewise.
563 2003-10-24 H.J. Lu <hongjiu.lu@intel.com>
565 * config/obj-elf.c (obj_elf_change_section): Allow SHF_ALLOC
566 for .interp, .strtab and .symtab. Use specified section
569 2003-10-22 Andreas Schwab <schwab@suse.de>
570 H.J. Lu <hongjiu.lu@intel.com>
571 Jim Wilson <wilson@specifixinc.com>
573 * config/tc-ia64.c (update_qp_mutex): New.
574 (note_register_values): Properly handle one of PRs in compare
575 is PR0. Don't add a mutex relation for .and.orcm/.or.andcm.
576 Clear mutex relation for .none/.unc. Don't clear mutex relation
577 on predicated compare.
579 2003-10-21 Wouter van Heyst <wouter@vidicode.nl>
581 * config/tc-arm.c (all_reg_maps): Correct text describing Maverick
582 register requirements.
583 (md_begin): Remove F_SOFT_FLOAT if enabling MAVERICK FP.
585 2003-10-21 Peter Barada <pbarada@mail.wm.sps.mot.com>
586 Bernardo Innocenti <bernie@develer.com>
588 * config/tc-m68k.c: Add MCF528x (MCFv4) support.
589 * config/m68k-parse.h: Likewise.
590 * NEWS: Mention the new support.
591 * doc/c-m68k.texi: Document new processor selection switch.
593 2003-10-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
595 * config/tc-mips.c (normalize_constant_expr): New function to fix sign
596 extensions broken by gas' expression evaluation of constants.
597 (check_absolute_expr): Use it.
600 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
602 Generate BFD_RELOC_MMIX_PUSHJ_STUBBABLE for PUSHJ when possible.
603 * doc/c-mmix.texi (MMIX-Opts): Document --no-pushj-stubs and
605 * config/tc-mmix.c: Include limits.h. Expand on mmix_relax_table
607 (expand_op, mmix_next_semicolon_is_eoln): Fix head comment.
608 (pushj_stubs): New variable.
609 (OPTION_NOPUSHJSTUBS, STATE_PUSHJSTUB, PUSHJSTUB_MIN)
610 (PUSHJSTUB_MAX): New macros.
611 (md_longopts): New options "--no-pushj-stubs" and synonym
613 (mmix_relax_table): Handle new entry for STATE_PUSHJSTUB.
614 (md_parse_option): Handle OPTION_NOPUSHJSTUBS.
615 (md_estimate_size_before_relax): Modify STATE_PUSHJ state for
616 PUSHJ stub relaxation.
617 (md_convert_frag): Handle STATE_PUSHJSTUB.
618 (md_apply_fix3): Handle BFD_RELOC_MMIX_PUSHJ_STUBBABLE.
619 (tc_gen_reloc): Ditto.
620 (mmix_md_relax_frag): Handle PUSHJ stub relaxation.
621 * config/tc-mmix.h (TC_SEGMENT_INFO_TYPE): Define.
622 (struct mmix_segment_info_type): New.
624 2003-10-17 Paul Dale <pauli@snapgear.com>
625 Bernardo Innocenti <bernie@develer.com>
627 * config/tc-m68k.c (make_pcrel_absolute): Enforce
628 PC-relative jumps with --pcrel.
629 (md_convert_frag_1): Likewise.
630 (md_create_long_jump): Likewise.
632 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
634 * config/tc-h8300.c (PSIZE): Correct for Normal mode.
635 (get_operand): Accept both 16 bit 32 bit registers as pointer
636 registers, when operating in Normal mode.
637 (fix_operand_size): Make default address size 16 for Normal mode.
639 2003-10-17 Ian Lance Taylor <ian@wasabisystems.com>
641 * config/tc-arm.c (do_iwmmxt_byte_addr): Reject control
643 (do_iwmmxt_word_addr): With a control register, reject conditional
644 execution and reject a non-word size.
646 2003-10-16 Peter Bergner <bergner@vnet.ibm.com>
648 * configure.in: Set em=linux for ppc-*-linux-gnu* target.
649 * configure: Regenerate.
651 2003-10-15 Alan Modra <amodra@bigpond.net.au>
653 * doc/as.texinfo (Align): Correct list of byte targets.
655 2003-10-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
657 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
658 Fix indentation. Better error message.
660 2003-10-14 Bob Wilson <bob.wilson@acm.org>
662 * config/tc-xtensa.c (xtensa_create_property_segments): Remove bfd
663 argument in call to xtensa_get_property_section_name. Formatting.
665 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
667 * config/tc-sh.h (sh_coff_reloc_mangle): Delete an extra
670 2003-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
672 * config/tc-sh.c: Convert to ISO C90. Remove unnecessary
673 prototypes and casts.
674 * config/tc-sh.h: Likewise.
675 * config/tc-sh64.c: Likewise.
676 * config/tc-sh64.h: Likewise.
678 2003-10-08 Dave Brolley <brolley@redhat.com>
680 * config/tc-frv.c (fr550_check_insn_acc_range): New function.
681 (fr550_check_acc_range): New function.
682 (md_assemble): Call fr550_check_acc_range.
684 2003-10-08 Dave Brolley <brolley@redhat.com>
686 * config/tc-frv.c: Handle DEFAULT_CPU_FR550.
687 (md_parse_option): Handle OPTION_CPU==fr550.
688 (md_show_usage): Document fr550.
690 2003-10-08 Philippe De Muyter <phdm@macqel.be>
692 * as.c (use_gnu_debug_info_extensions) : New variable.
693 (parse_args) : Accept new --gstabs+ option, and set
694 `use_gnu_debug_info_extensions'.
695 (show_usage) : Document --gstabs+ option.
696 * as.h (use_gnu_debug_info_extensions) : New extern declaration.
697 * stabs.c (stabs_generate_asm_file) : If
698 `use_gnu_debug_info_extensions' is set, add the compilation
699 directory to the stabs debug info.
700 * doc/as.texinfo : Document --gstabs+ option.
701 * NEWS: Mention new feature.
703 2003-10-06 Matt Thomas <matt@3am-software.com>
705 Switch NetBSD/hppa to use Linux PA-RISC ELF ABI and
708 * tc-hppa.c: Add "%farg[0-3]", "%fret", "%t[1-4]", "%tf[1-4]"
709 register names. Change all "defined (TE_LINUX)" to
710 "(defined (TE_LINUX) || defined (TE_NETBSD))".
712 * tc-hppa.h: Make NetBSD use "elfXX-hppa-linux" bfd target.
713 Remove NetBSD's use of LABELS_WITHOUT_COLONS.
715 2003-10-06 Robert Millan <robertmh@gnu.org>
717 * configure.in: Match GNU/KNetBSD with new knetbsd*-gnu triplet.
718 * configure: Regenerate.
720 2003-10-05 Nick Clifton <nickc@redhat.com>
722 * as.c (parse_args): Revert patch to change handling of -f
723 option. Its behaviour is mandated by the POSIX 2 spec.
725 2003-10-04 Christian Groessler <chris@groessler.org>
727 * tc-z8k.c (newfix): Tell fix_new_exp about pc relativeness.
728 (md_apply_fix3): Fix R_JR, R_DISP7, and R_CALLR cases.
729 (md_pcrel_from): This function now gets called. Supply return
732 2003-10-04 Nick Clifton <nickc@redhat.com>
734 * as.c: Convert to ISO C90.
736 2003-10-04 Nick Clifton <nickc@redhat.com>
738 * as.c (std_shortopts): Remove 'f'.
739 (std_longopts): Add 'f'. Doing this prevents -f<foo> being
740 acecpted as an alias for -f.
742 2003-10-04 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
744 * config/obj-coff.c (obj_coff_section [BEF_ASSEMBLER]):
745 Make 'r' mean readonly data.
747 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
749 * config/tc-mips.c (macro_build_ldst_constoffset,load_register,macro):
750 Unbreak overflow checks.
752 2003-10-01 Chris Demetriou <cgd@broadcom.com>
754 * config/tc-mips.c (s_cpreturn): Correct errors in comment.
756 2003-10-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
758 * config/tc-mips.c (macro_build_ldst_constoffset): Fix sign extension
760 (load_register): Likewise.
763 2003-09-30 Chris Demetriou <cgd@broadcom.com>
765 * config/tc-mips.c (mips_ip): Capitalize first word of
766 existing condition code warning, and add condition code
767 warnings for .ps instructions, and for bc1any[24][tf].
769 2003-09-30 Chris Demetriou <cgd@broadcom.com>
771 * NEWS: Mention support for MIPS64 Release 2.
773 2003-09-30 Chris Demetriou <cgd@broadcom.com>
775 * NEWS: Add an indication of the cutoff for 2.14.
777 2003-09-30 Chris Demetriou <cgd@broadcom.com>
779 * configure.in (mipsisa64r2, mipsisa64r2el, mipsisa64r2*): New CPUs.
780 * configure: Regenerate.
781 * config/tc-mips.c (imm2_expr): New variable.
782 (md_assemble, mips16_ip): Initialize imm2_expr.
783 (ISA_HAS_64BIT_REGS, ISA_HAS_DROR, ISA_HAS_ROR): Add ISA_MIPS64R2.
784 (macro_build): Handle +A, +B, +C, +E, +F, +G, and +H format operands.
785 (macro): Handle M_DEXT and M_DINS.
786 (validate_mips_insn): Handle +E, +F, +G, +H, and +I format operands.
788 (OPTION_MIPS64R2): New define.
789 (md_longopts): New entry for -mips64r2 (OPTION_MIPS64R2).
790 OPTION_ASE_BASE): Increase to compensate for OPTION_MIPS64R2.
791 (md_parse_option): Handle OPTION_MIPS64R2.
792 (s_mipsset): Handle setting "mips64r2" ISA.
793 (mips_cpu_info_table): Add mips64r2.
794 (md_show_usage): Document -mips64r2 option.
795 * doc/as.texinfo: Docuemnt -mips64r2 option.
796 * doc/c-mips.texi: Likewise.
798 2003-09-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
800 * config/tc-hppa.c (pa_ip): Check for invalid 64-bit conditions.
802 2003-09-26 Matt Thomas <matt@3am-software.com>
804 * config/tc-vax.c (md_shortopts): Fix a typo. Remove 'K'.
805 (OPTION_PIC): Define.
806 (md_longopts): Add "pic" option.
807 (md_parse_option): Change 'K' to OPTION_PIC.
809 2003-09-23 Alan Modra <alan@modra.org>
811 * config/obj-elf.c (obj_elf_change_section): Adjust for
812 _bfd_elf_get_sec_type_attr changes. Allow SHF_MERGE and SHF_STRINGS
813 to be set when defaults are not. Don't set attr from defaults if
816 2003-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
818 * config/tc-mips.c (macro_build_ldst_constoffset): Don't silently
819 truncate values which won't fit im 32 bits.
820 (load_register): Likewise.
823 2003-09-17 Dmitry Diky <diwil@mail.ru>
825 * config/tc-msp430.c (MAX_OP_LEN): Set to 256.
826 (msp430_operands): Remove redundant l2[16] within switch-case.
828 2003-09-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
830 * configure.in: Handle arm-*-rtems* and thumb-*rtems*.
831 * configure: Regenerate.
833 2003-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
835 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): Remove.
836 (macro_build_ldst_constoffset): Sign-extend 32-bit constants. Change
837 the function prototype.
838 (load_register): Likewise. Simplify the checks for sign-extended
840 (macro): Likewise. Fix code generation for 64-bit address constants
841 outside the 32-bit compatibility space. Adjust
842 macro_build_ldst_constoffset calls.
843 (s_cprestore): Adjust macro_build_ldst_constoffset call.
845 2003-09-11 Bob Wilson <bob.wilson@acm.org>
847 * config/tc-xtensa.c (insn_labels, free_insn_labels, saved_insn_labels,
848 literal_syms): New global variables.
849 (xtensa_define_label, add_target_symbol, xtensa_find_label,
850 map_over_defined_symbols, is_loop_target_label,
851 xtensa_mark_target_fragments, xtensa_move_frag_symbol,
852 xtensa_move_frag_symbols, defined_symbols, branch_targets): Delete.
853 (xtensa_begin_directive): Call md_flush_pending_output. Move symbols
854 from insn_labels to saved_insn_labels when entering a literal region.
855 (xtensa_end_directive): Call md_flush_pending_output. Restore
856 insn_labels list when leaving a literal region.
857 (xtensa_literal_position): Call xtensa_clear_insn_labels.
858 (xtensa_literal_pseudo): Add check to disallow .literal inside a
859 literal region. Move insn_labels to saved_insn_labels and then restore
861 (xg_add_branch_and_loop_targets): Replace add_target_symbol calls with
862 code to set is_loop_target or is_branch_target flag on the symbol
863 (xtensa_create_literal_symbol): Call xtensa_add_literal_sym.
864 (xtensa_add_literal_sym, xtensa_add_insn_label,
865 xtensa_clear_insn_labels): New functions.
866 (xtensa_move_labels): Remove old_frag and old_offset arguments. Add
867 loops_ok argument. Rewrite to use insn_labels list instead of
868 calling xtensa_find_label and to check the is_loop_target flag on
869 symbols when loops_ok is false.
870 (xtensa_frob_label): Remove call to xtensa_define_label. Add call
871 to either xtensa_add_literal_sym or xtensa_add_insn_label. Adjust
872 call to xtensa_move_labels. Propagate is_branch_target and
873 is_loop_target flags from symbols to frags.
874 (xtensa_flush_pending_output): Call xtensa_clear_insn_labels.
875 (md_assemble): Use xtensa_move_labels with loops_ok = FALSE when
876 aligning a loop instruction. Adjust call to xtensa_move_labels for
877 aligning entry instructions. Add call to xtensa_clear_insn_labels.
878 (xtensa_end): Remove call to xtensa_mark_target_fragments.
879 (xtensa_move_literals): Replace xtensa_move_frag_symbols call with
880 code to use new literal_syms list.
881 * config/tc-xtensa.h (xtensa_symfield_type): Add is_loop_target and
882 is_branch_target flags.
884 2003-09-09 Bob Wilson <bob.wilson@acm.org>
886 * config/tc-xtensa.c (xtensa_mark_literal_pool_location): Remove
887 "move_labels" argument and corresponding call to xtensa_move_labels.
888 (md_assemble): Add a separate call to xtensa_move_labels and remove
889 argument for call to xtensa_mark_literal_pool_location.
890 (xtensa_literal_position, xtensa_switch_to_literal_fragment): Fix
891 calls to xtensa_mark_literal_pool_location.
892 (xtensa_create_local_symbol): Delete and inline the code into...
893 (xtensa_create_literal_symbol): ...here.
894 (xtensa_frob_label): Combine conditionals.
895 (expression_maybe_register, xtensa_symbol_new_hook,
896 fix_new_exp_in_seg): Use symbol_get_tc.
898 2003-09-09 Bob Wilson <bob.wilson@acm.org>
900 * config/tc-xtensa.c (xtensa_literal_pseudo): Remove code for
901 combining identical literals.
902 (expression_maybe_register): Remove call to find_lit_sym_translation.
903 (is_duplicate_expression, cache_literal, is_duplicate_literal,
904 add_lit_sym_translation, find_lit_sym_translation): Delete.
906 2003-09-07 Nick Clifton <nickc@redhat.com>
908 * doc/as.texinfo (Comments): Comment character for PPC is #.
910 2003-09-06 Stephane Carrez <stcarrez@nerim.fr>
913 * config/tc-m68hc11.c (s_m68hc11_relax): Use 2 for size to avoid
916 2003-09-05 Richard Sandiford <rsandifo@redhat.com>
918 * config/tc-frv.c (md_pcrel_from_section): Heed TC_FORCE_RELOCATION.
920 2003-09-04 Nick Clifton <nickc@redhat.com>
922 * config/tc-v850.c (set_machine): Accept v850e1 machine number.
923 (md_pseudo_table): Add .v850e1 pseudo op.
924 (md_show_usage): Document -mv850e1 switch.
925 (md_parse_option): Accept -mv850e1 switch.
926 (md_begin): Allow TARGET_CPU to be v850e1.
927 * doc/c-v850.texi: Document -mv850e1 switch and .v850e1 pseudo op.
928 * NEWS: Mention support for v850e1.
930 2003-09-04 Alan Modra <amodra@bigpond.net.au>
932 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ANY to existing
933 ppc_cpu selection rather than replacing.
934 (ppc_set_cpu): Ignore and preserve PPC_OPCODE_ANY in ppc_cpu.
935 (md_begin): When PPC_OPCODE_ANY, insert all opcodes in ppc_hash.
937 2003-09-03 Robert Millan <robertmh@gnu.org>
939 * configure.in: Match GNU/KFreeBSD with new kfreebsd*-gnu
941 * configure: Regenerate.
943 2003-09-02 Daniel Jacobowitz <drow@mvista.com>
945 * configure.in: Update AC_PREREQ to 2.57. Use AC_CONFIG_FILES
946 and AC_CONFIG_COMMANDS instead of the three-argument AC_OUTPUT.
947 Specify AC_CONFIG_AUX_DIR.
948 * aclocal.m4: Regenerated with aclocal-1.7.
949 * configure: Regenerated with autoconf 2.57.
950 * Makefile.in, doc/Makefile.in: Regenerated with automake-1.7.
952 2003-08-29 Jakub Jelinek <jakub@redhat.com>
954 * dw2gencfi.c (cfi_pseudo_table): Add cfi_window_save.
955 (dot_cfi, output_cfi_insn): Handle DW_CFA_GNU_window_save.
956 (output_cie): Don't use DW_EH_PE_pcrel if neither DIFF_EXPR_OK
957 nor tc_cfi_emit_pcrel_expr are defined.
958 (output_fde): Use tc_cfi_emit_pcrel_expr if available and
959 DIFF_EXPR_OK is not defined.
960 * config/tc-sparc.h (TARGET_USE_CFIPOP): Define.
961 (tc_cfi_frame_initial_instructions, tc_regname_to_dw2regnum,
962 tc_cfi_emit_pcrel_expr): Define.
963 (sparc_cfi_frame_initial_instructions, sparc_regname_to_dw2regnum,
964 sparc_cfi_emit_pcrel_expr): New prototypes.
965 (sparc_cie_data_alignment): New decl.
966 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT): Define.
967 * config/tc-sparc.c: Include dw2gencfi.h.
968 (sparc_cie_data_alignment): New variable.
969 (md_begin): Initialize it.
970 (sparc_cfi_frame_initial_instructions): New function.
971 (sparc_regname_to_dw2regnum): Likewise.
972 (sparc_cfi_emit_pcrel_expr): Likewise.
973 * doc/as.texinfo: Document .cfi_window_save.
975 * config/tc-sparc.c (s_common): Cast last argument to long and
976 change format string to shut up warning.
978 2003-08-25 Jason Eckhardt <jle@rice.edu>
980 * doc/c-i860.texi: Update text about relocatable address expansions.
982 2003-08-24 Jason Eckhardt <jle@rice.edu>
984 * config/tc-i860.c (md_assemble): Use isrc2 from the original
985 instruction when expanding E_ADDR.
987 2003-08-21 Nick Clifton <nickc@redhat.com>
989 * po/tr.po: Updated Turkish translation.
991 2003-08-20 Alan Modra <amodra@bigpond.net.au>
993 * config/tc-ppc.c (md_parse_option): Add PPC_OPCODE_ISEL and
994 PPC_OPCODE_RFMCI to -m440 selected ppc_cpu.
996 2003-08-19 Nick Clifton <nickc@redhat.com>
998 * config/tc-arm.c (cp_address_required_here): Add code to handle
999 unindexed addressing mode.
1001 2003-08-19 Alan Modra <amodra@bigpond.net.au>
1003 * config/tc-ppc.c (md_parse_option): Handle -m440.
1004 (md_show_usage): Add -m440.
1005 (md_apply_fix3): Warning fix.
1006 * doc/c-ppc.texi: Document -m440.
1008 2003-08-16 Benjamin Kalytta <bkausbk@web.de>
1010 * read.c (s_print): Check for NULL.
1012 2003-08-16 Alan Modra <amodra@bigpond.net.au>
1014 * write.c (fixup_segment): When handling an expression involving
1015 the subtraction of two symbols in the same segment, don't clear
1016 fx_pcrel except for TC_M68K.
1018 2003-08-14 Alan Modra <amodra@bigpond.net.au>
1020 * config/tc-i386.h: Remove BFD_ASSEMBLER tests and all !BFD_ASSEMBLER
1022 * config/tc-i386.c: Likewise.
1023 (RELOC_ENUM): Don't define. Replace throughout with enum.
1025 * dep-in.sed: Remove libintl.h. Ignore include/fopen-*.h
1026 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
1028 * Makefile.in: Regenerate.
1030 2003-08-08 Andreas Schwab <schwab@suse.de>
1032 * config/tc-m68k.h (TARGET_USE_CFIPOP)
1033 (DWARF2_DEFAULT_RETURN_COLUMN, DWARF2_CIE_DATA_ALIGNMENT)
1034 (tc_regname_to_dw2regnum, tc_cfi_frame_initial_instructions):
1036 * config/tc-m68k.c: Include "dw2gencfi.h".
1037 (tc_m68k_regname_to_dw2regnum)
1038 (tc_m68k_frame_initial_instructions): New functions.
1040 2003-08-08 Dmitry Diky <diwil@mail.ru>
1042 * config/tc-msp430.c: Add xW42 and xE42 parts. Sort MPU list
1043 according to gcc order.
1045 2003-08-07 Jason Eckhardt <jle@rice.edu>
1047 * config/tc-i860.c (i860_check_label): New function.
1048 * config/tc-i860.h (i860_check_label): New prototype.
1049 (tc_check_label): Define macro as i860_check_label.
1051 2003-08-06 Jason Eckhardt <jle@rice.edu>
1053 * config/tc-i860.c (s_align_wrapper): New function and prototype.
1054 (md_pseudo_table): Change s_align_bytes to s_align_wrapper, remove
1055 surrounding OBJ_ELF ifdef, and re-format slightly.
1056 * doc/c-i860.texi: Document the special .align syntax available
1059 2003-08-06 Jason Eckhardt <jle@rice.edu>
1061 * config/tc-i860.c (i860_handle_align): New function.
1062 * config/tc-i860.h (HANDLE_ALIGN): Define macro.
1063 (MAX_MEM_FOR_RS_ALIGN_CODE): Define macro.
1065 2003-08-06 Jason Eckhardt <jle@rice.edu>
1067 * config/tc-i860.c (i860_process_insn): Check that instructions
1068 with their dual-bit set are 8-byte aligned.
1070 2003-08-06 Nick Clifton <nickc@redhat.com>
1072 * po/fr.po: Updated French translation.
1074 2003-08-05 Jason Eckhardt <jle@rice.edu>
1076 * config/tc-i860.c (i860_process_insn): Don't handle dual-bit
1077 setting during flop argument parsing. Instead, do it after
1078 instruction is fully parsed.
1080 2003-08-05 Jason Eckhardt <jle@rice.edu>
1082 * doc/c-i860.texi: Mention that .dual, .enddual, and .atmp
1083 directives are only available in Intel syntax mode.
1085 2003-08-05 Jason Eckhardt <jle@rice.edu>
1087 * config/tc-i860.c (s_dual): Accept .dual directive only in
1088 the Intel syntax mode.
1089 (s_enddual): Likewise for .enddual.
1090 (s_atmp): Likewise for .atmp.
1092 2003-08-04 Alan Modra <amodra@bigpond.net.au>
1094 * config/tc-i386.c (i386_intel_operand): Always call i386_index_check
1095 for memory operands. Pass the full operand_string to i386_index_check.
1097 2003-08-01 Jason Eckhardt <jle@rice.edu>
1099 * config/tc-i860.c: Remove SYNTAX_SVR4 macro and occurrences.
1100 (target_intel_syntax): Declare variable.
1101 (OPTION_INTEL_SYNTAX): Declare macro.
1102 (md_longopts): Add option -mintel-syntax.
1103 (md_parse_option): Set target_intel_syntax.
1104 (md_show_usage): Add -mintel-syntax usage.
1105 (md_begin): Set reg_prefix based on target_intel_syntax.
1106 (i860_process_insn): Skip register prefix only if there is one.
1107 Parse relocatable expressions in either Intel or AT&T syntax based
1108 on target_intel_syntax instead of the SYNTAX_SVR4 macro.
1109 * doc/c-i860.texi: Document -mintel-syntax option and give blurb
1110 about the differences in syntax.
1112 2003-08-01 Dmitry Diky <diwil@mail.ru>
1114 * config/tc-msp430.c (msp430_srcoperand): Extend 'push' bug workaround
1117 2003-07-30 J"orn Rennecke <joern.rennecke@superh.com>
1119 * config/tc-sh.c (md_assemble): For branches, check & update
1122 2003-07-30 Jason Eckhardt <jle@rice.edu>
1124 * config/tc-i860.c: Convert to ISO C90.
1126 2003-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1128 * read.c (s_space): Revert 2003-07-28 change.
1130 2003-07-30 Alan Modra <amodra@bigpond.net.au>
1132 * config/obj-elf.c (obj_elf_change_section): Allow "x" for .note*.
1134 2003-07-29 Alan Modra <amodra@bigpond.net.au>
1136 * config/tc-sh.c (tc_gen_reloc): Test for R_SH_IND12W only when ELF.
1138 2003-07-29 Jakub Jelinek <jakub@redhat.com>
1140 * config/tc-ppc.c (md_apply_fix3): Fix check for lq insns.
1142 2003-07-28 H.J. Lu <hongjiu.lu@intel.com>
1144 * config/obj-elf.c (obj_elf_section_type): Also accept "note".
1146 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1148 * read.c (s_space): Don't warn about .space 0.
1150 2003-07-28 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1152 * config/tc-mips.c (mips_flag_pdr): Define.
1153 (md_begin) [OBJ_ELF]: Use it to control .pdr creation.
1154 (s_mips_end) [OBJ_ELF]: Likewise.
1155 (md_longopts) [OBJ_ELF]: Define OPTION_PDR, OPTION_NO_PDR.
1156 (md_parse_option) [OBJ_ELF]: Handle them.
1157 (md_show_usage) [OBJ_ELF]: Document -mpdr, -mno-pdr.
1159 * doc/c-mips.texi (MIPS Opts): Document -mpdr, -mno-pdr.
1160 * doc/as.texinfo (Overview) [MIPS]: Likewise.
1162 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
1164 * config/obj-elf.c (obj_elf_change_section): Update
1165 elf_section_type and elf_section_flags only when they are
1168 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
1170 * config/obj-elf.c (obj_elf_change_section): Always set section
1173 2003-07-25 H.J. Lu <hongjiu.lu@intel.com>
1175 * config/obj-elf.c (special_sections): Removed.
1176 (obj_elf_change_section): Call _bfd_elf_get_sec_type_attr. Set
1177 elf_section_type and elf_section_flags.
1178 (elf_frob_file): Set SHT_GROUP.
1180 * config/obj-elf.h (obj_sec_set_private_data): New.
1182 * config/tc-alpha.h (ELF_TC_SPECIAL_SECTIONS): Removed.
1183 * config/tc-ia64.h: Likewise.
1184 * config/tc-m32r.h: Likewise.
1185 * config/tc-m68hc11.h: Likewise.
1186 * config/tc-mcore.h: Likewise.
1187 * config/tc-mips.h: Likewise.
1188 * config/tc-ppc.h: Likewise.
1189 * config/tc-sh64.h: Likewise.
1190 * config/tc-v850.h: Likewise.
1191 * config/tc-xtensa.h: Likewise.
1193 * config/tc-v850.h (SHF_V850_GPREL): Removed.
1194 (SHF_V850_EPREL): Likewise.
1195 (SHF_V850_R0REL): Likewise.
1197 * subsegs.c (subseg_get): Call obj_sec_set_private_data if it
1200 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
1202 * config/tc-m68hc11.h (DWARF2_ADDR_SIZE): Use 32-bit address for
1203 debugging symbols so that we handle page memory correctly.
1205 2003-07-24 Nick Clifton <nickc@redhat.com>
1207 * po/fr.po: Updated French translation.
1209 2003-07-23 Daniel Jacobowitz <drow@mvista.com>
1211 * config/tc-arm.c (arm_archs): Add iwmmxt.
1213 2003-07-22 H.J. Lu <hongjiu.lu@intel.com>
1215 * read.c (do_parse_cons_expression): Mark nbytes unused to
1218 2003-07-22 Alexandre Oliva <aoliva@redhat.com>
1220 * config/tc-h8300.c (get_specific): No PCREL8 encoding for bsr/bc
1223 * config/tc-h8300.c (md_assemble): Make sure characters after
1224 slash and dot are lower-case.
1226 2003-07-17 Nick Clifton <nickc@redhat.com>
1228 * po/es.po: New Spanish translation.
1229 * po/tr.po: New Turkish translation.
1230 * po/opcodes.pot: Regenerate.
1232 2003-07-16 Alan Modra <amodra@bigpond.net.au>
1234 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.
1235 (generic_dwarf2_emit_offset): Don't define function when
1236 TC__DWARF2_EMIT_OFFSET is defined.
1238 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
1240 * config/tc-mips.c (hilo_interlocks): True for CPU_RM7000.
1241 (mips_cpu_info_table): Add rm7000 and rm9000 entries.
1242 * doc/c-mips.texi: Document -march=rm9000.
1244 2003-07-15 Alan Modra <amodra@bigpond.net.au>
1246 * config/tc-v850.c (md_assemble): When no reloc, create pcrel fixups
1247 only for V850_OPERAND_DISP operands.
1249 2003-07-15 Alan Modra <amodra@bigpond.net.au>
1251 * frags.c (frag_more): Move segment checks to..
1252 (frag_alloc_check): ..here. New function.
1253 (frag_append_1_char): Call frag_alloc_check.
1255 2003-07-14 Nick Clifton <nickc@redhat.com>
1257 * po/tr.po: Update with latest version.
1258 * po/POTFILES.in: Regenerate.
1259 * po/gas.pot: Regenerate.
1260 * configure: Regenerate.
1262 2003-07-14 Nick Clifton <nickc@redhat.com>
1264 * config/tc-ip2k.c: Remove inclusion of <ctype.h>
1265 * config/tc-tic4x.c: Replace inclusion of <ctype.h> with
1266 "safe-ctype.h" and update use of macros.
1267 * Makefile.am: Update dependencies.
1268 * Makefile.in: Regenerate.
1270 2003-07-11 Alan Modra <amodra@bigpond.net.au>
1272 * po/gas.pot: Regenerate.
1274 2003-07-10 Jakub Jelinek <jakub@redhat.com>
1276 * config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
1277 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
1278 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
1279 DWARF2_CIE_DATA_ALIGNMENT): Define.
1280 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
1282 (ppc_cie_data_alignment): Declare.
1283 * config/tc-ppc.c: Include dw2gencfi.h.
1284 (ppc_cie_data_alignment): Define.
1285 (md_begin): Initialize ppc_cie_data_alignment.
1286 (ppc_cfi_frame_initial_instructions, tc_ppc_regname_to_dw2regnum): New
1288 * config/tc-s390.h (DWARF2_LINE_MIN_INSN_LENGTH): Define always.
1289 (TARGET_USE_CFIPOP, tc_cfi_frame_initial_instructions,
1290 tc_regname_to_dw2regnum, DWARF2_DEFAULT_RETURN_COLUMN,
1291 DWARF2_CIE_DATA_ALIGNMENT): Define.
1292 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
1294 (s390_cie_data_alignment): Declare.
1295 * config/tc-s390.c: Include dw2gencfi.h.
1296 (s390_cie_data_alignment): Define.
1297 (md_begin): Initialize s390_cie_data_alignment.
1298 (s390_cfi_frame_initial_instructions, tc_s390_regname_to_dw2regnum):
1301 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
1303 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
1304 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Don't define to zero.
1305 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1306 * configure.in (am33_2.0, mn10300-*-linux*): Added.
1307 * configure: Rebuilt.
1308 * config/tc-mn10300.h (TARGET_FORMAT) [TE_LINUX]: Define to
1310 * config/tc-mn10300.c (md_begin) [TE_LINUX]: Choose AM33/2.0
1313 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1315 2003-02-25 Alexandre Oliva <aoliva@redhat.com>
1316 * config/tc-mn10300.c (mn10300_check_fixup): Set GOT_PCREL type
1317 for subtracts from GLOBAL_OFFSET_TABLE that could not be
1319 2002-07-18 Alexandre Oliva <aoliva@redhat.com>
1320 * config/tc-mn10300.c (mn10300_check_fixup): Accept subtracts that
1321 could not be simplified.
1322 (tc_gen_reloc): Turn an absolute fx_subsy into part of fx_offset.
1323 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
1324 * config/tc-mn10300.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't adjust
1325 BDF_RELOC_MN10300_GOT32.
1326 * config/tc-mn10300.c (mn10300_fix_adjustable): If
1327 TC_RELOC_RTSYM_LOC_FIXUP doesn't hold, it's not adjustable.
1328 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1329 * config/tc-mn10300.c (mn10300_parse_name): Don't return a
1330 symbol if we know its value.
1331 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1332 * config/tc-mn10300.h (GLOBAL_OFFSET_TABLE_NAME): Remove
1333 duplicate underscore prefix.
1334 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
1335 * config/tc-mn10300.c (mn10300_parse_name): Store relocation
1336 type in X_md, not X_add_number. Zero X_add_number.
1337 (mn10300_check_fixup): Extract relocation type from X_md.
1338 * config/tc-mn10300.h: Update comment.
1339 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
1340 * config/tc-mn10300.h (O_GOTOFF, O_PLT, O_GOT): Replace with...
1341 (O_PIC_reloc): this.
1342 * config/tc-mn10300.c (mn10300_PIC_related_p): Use it.
1343 (mn10300_check_fixup): Likewise.
1344 (mn10300_parse_name): Set X_add_number to relocation type.
1345 * config/tc-mn10300.h (DIFF_EXPR_OK, GLOBAL_OFFSET_TABLE_NAME,
1346 TC_RELOC_RTSYM_LOC_FIXUP, md_parse_name, TC_CONS_FIX_NEW,
1347 O_GOTOFF, O_PLT, O_GOT): Define.
1348 * config/tc-mn10300.c (mn10300_PIC_related_p): New fn.
1349 (mn10300_check_fixup): New fn.
1350 (md_assemble): Call it. Check for PIC-related relocs.
1351 (mn10300_cons_fix_new): Likewise. New fn.
1352 (mn10300_end_of_match): New fn.
1353 (mn10300_md_parse_name_cont): New fn.
1355 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
1357 2000-05-25 Alexandre Oliva <aoliva@cygnus.com>
1358 * config/tc-mn10300.c (mn10300_insert_operand): Negate negative
1359 accumulator's shift.
1360 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
1361 * config/tc-mn10300.c (md_relax_table, md_convert_frag,
1362 md_assemble, md_estimate_size_before_relax): Handle fbCC.
1363 2000-04-20 Alexandre Oliva <aoliva@cygnus.com>
1364 * config/tc-mn10300.c (HAVE_AM33): Redefine in terms of
1366 2000-04-03 Alexandre Oliva <aoliva@cygnus.com>
1367 * config/tc-mn10300.c (md_pseudo_table): Use AM33_2 constant.
1368 (HAVE_AM33): Match AM33_2 too.
1369 (HAVE_AM33_2): New macro.
1370 (md_assemble): Use it. Match 2.0 registers only if HAVE_AM33_2.
1371 2000-04-01 Alexandre Oliva <aoliva@cygnus.com>
1372 * config/tc-mn10300.c (md_pseudo_table): Added `am33_2'.
1373 (float_registers, double_registers): New variables.
1374 (float_register_name, double_register_name): New functions.
1375 (md_assemble): Recognize FP registers. Implement FMT_D3.
1376 (mn10300_insert_operand): Support FP registers.
1378 2003-07-08 Chris Demetriou <cgd@broadcom.com>
1380 * config/tc-mips.c (mips_validate_fix): Do not warn about branch
1381 target being a global symbol if not compiling SVR4 PIC code.
1383 2003-07-07 Nick Clifton <nickc@redhat.com>
1385 * doc/c-m32r.texi (M32R-Directives): New node. Document the
1386 .high, .shigh and .low directives.
1388 2003-07-07 Richard Sandiford <rsandifo@redhat.com>
1390 * config/tc-h8300.c (h8300sxnmode): Add prototype.
1392 (parse_exp): Replace expressionS argument with a h8_op. Parse the
1393 operand size as well.
1394 (skip_colonthing): Remove unused expression argument. Tighten checks
1396 (colonmod24): Remove.
1397 (get_mova_operands): Combine calls to parse_exp and skip_colonthing.
1398 (get_operand): Likewise. Use the standard code to read the size of
1399 pc-relative operands.
1400 (fix_operand_size): Include the size-guessing logic that used to be
1401 in colonmod24 and get_operand. Don't apply dd:2 optimizations to
1402 offsets with a symbolic component.
1404 2003-07-04 Nick Clifton <nickc@redhat.com>
1406 * config/tc-i386.c (tc_x86_regname_to_dw2regnum): Use ARRAY_SIZE
1407 macro to compute size of selected register name array.
1409 2003-07-01 Martin Schwidefsky <schwidefsky@de.ibm.com>
1411 * config/tc-s390.c (md_parse_option): Add cpu type z990.
1412 (md_begin): Add minimal cpu type logic for instructions with different
1413 binary format depending on the cpu.
1414 (md_assemble): Remove check for minimal cpu.
1415 (s390_insert_operand): Add support for long displacements.
1416 (md_gather_operands): Likewise.
1417 (tc_s390_fix_adjustable): Likewise.
1418 (tc_s390_force_relocation): Likewise.
1419 (md_apply_fix3): Likewise.
1421 2003-06-30 Chris Demetriou <cgd@broadcom.com>
1423 * config/tc-mips.c (s_mipsset): Implement -march= handling
1426 2003-06-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1428 * config/tc-mips.c: Convert to ISO C90 prototypes. Remove unnecessary
1429 prototypes and casts. Replace PTR with void *. Reformat.
1430 * config/tc-mips.h: Likewise.
1432 2003-06-30 Alan Modra <amodra@bigpond.net.au>
1434 * config/tc-ia64.c (note_register_values): Warning fix.
1435 * config/tc-mips.c (append_insn): Likewise.
1437 2003-06-29 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1439 * config/tc-mips.c (mips_set_options,mips_opts): Support for
1441 (file_mips_arch): Rename mips_arch.
1442 (mips_arch_info,mips_tune_info): Remove.
1443 (hilo_interlocks,gpr_interlocks,cop_interlocks): Use mips_opts.arch.
1444 (mips_cpu_info_from_arch): New function.
1445 (md_begin): Use file_mips_arch.
1446 (macro_build,macro,mips_ip): Use mips_opts.arch.
1447 (mips_set_architecture): Init file_mips_arch and mips_opts.arch.
1448 (mips_after_parse_args): Remove mips_arch_info and mips_tune_info.
1450 (s_mipsset): Support for .set arch=FOO.
1451 (mips_cpu_info_table): Fix typo.
1453 2003-06-26 H.J. Lu <hongjiu.lu@intel.com>
1455 * config/tc-i386.c (md_assemble): Declare "exp" before "if".
1457 2003-06-25 Richard Sandiford <rsandifo@redhat.com>
1459 * config/tc-h8300.c (get_specific): Allow ':8' to be used for
1460 unsigned 8-bit operands.
1462 2003-06-24 Nick Clifton <nickc@redhat.com>
1464 * read.c (s_comm): Change error message to assume an unsigned size
1465 has been passed to .comm.
1466 * config/tc-sparc.c (s_common): Likewise.
1467 * write.c (write_contents): Replace 'unsigned long' with
1468 'addressT' and 'long' with offsetT in order to allow computations
1469 with very large values to work for 64-bit addressed targets.
1470 (relax_and_size_all_segments): Likewise.
1471 (relax_frag): Likewise.
1472 (relax_segment): Likewise.
1474 2003-06-23 Mark Mitchell <mark@codesourcery.com>
1476 * config/tc-ppc.c (ppc_cleanup): Use bytes to count APUinfo slots.
1478 2003-06-23 H.J. Lu <hongjiu.lu@intel.com>
1480 * gas/config/tc-i386.c (md_assemble): Support Intel Precott New
1483 * gas/config/tc-i386.h (CpuPNI): New.
1484 (CpuUnknownFlags): Add CpuPNI.
1486 2003-06-23 <davidm@hpl.hp.com>
1488 * config/tc-ia64.c (pseudo_func): Add ABI constants for linux,
1489 freebsd, openvms, and nsk (non-stop kernel).
1491 2003-06-22 Jason Thorpe <thorpej@wasabisystems.com>
1493 * config/tc-ns32k.c (md_begin): Initialize inst_hash_table after
1494 all locals have been declared.
1496 2003-06-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1498 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN): Remove
1499 special handling for n32 ABI.
1502 2003-06-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1504 * config/tc-mips.c (s_cpsetup,s_cprestore,s_cpreturn): Revert
1507 2003-06-19 Christian Groessler <chris@groessler.org>
1509 * config/tc-z8k.c (parse_reg): Invalid registers generate an error
1510 now, not only a warning. Add some more checks to detect invalid
1512 (get_operand): For CLASS_IR remember register size in mode struct.
1513 (get_specific): Handle new CLASS_IRO type. Add register size
1514 checks for CLASS_IR and CLASS_IRO.
1515 (md_apply_fix3): Fix undefined usage of buf.
1517 2003-06-19 Alan Modra <amodra@bigpond.net.au>
1519 * config/tc-ppc.c (ppc_csect): Pass alignment to ppc_change_csect.
1520 (ppc_change_csect): Add align param. Align frag at start of csect.
1521 (ppc_section, ppc_named_section): Adjust ppc_change_csect calls.
1522 (ppc_frob_section): Align vma.
1524 2003-06-18 Jakub Jelinek <jakub@redhat.com>
1526 * dw2gencfi.c (EH_FRAME_ALIGNMENT): Define if not defined.
1527 (output_cie): Don't pad.
1528 (output_fde): Add align argument. Pad to align if not 0.
1529 (cfi_finish): Set .eh_frame alignment to EH_FRAME_ALIGNMENT.
1530 Pad just last FDE to EH_FRAME_ALIGNMENT.
1532 2003-06-18 Martin Schwidefsky <schwidefsky@de.ibm.com>
1534 * config/tc-s390.c (init_default_arch): Make current_mode_mask
1535 dependent on s390_arch_size and current_cpu dependent on
1538 2003-06-18 Svein E. Seldal <Svein.Seldal@solidas.com>
1540 * configure.in: Add c4x as an architecture variant to tic4x.
1541 * configure: Regenerate.
1542 * Makefile.in: Regenerate.
1543 * doc/Makefile.in: Regenerate.
1545 2003-06-18 Alan Modra <amodra@bigpond.net.au>
1547 * config/tc-ppc.c (ppc_elf_suffix): Don't remove symbols other than
1548 ".TOC." from PPC64_TOC relocs.
1550 2003-06-17 Alan Modra <amodra@bigpond.net.au>
1552 * config/tc-ppc.c (md_apply_fix3): Allow BRTAKEN, BRNTAKEN relocs.
1554 2003-06-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1556 * config/tc-mips.c (ADDRESS_ADD_INSN,ADDRESS_ADDI_INSN,
1557 ADDRESS_LOAD_INSN,ADDRESS_STORE_INSN): New macros.
1558 (macro_build_ldst_constoffset,load_address,macro,s_cpsetup,
1559 s_cprestore,s_cpadd): Use them.
1561 2003-06-16 Hans-Peter Nilsson <hp@axis.com>
1563 * configure.in: Add specific case for cris-*-linux-gnu* with
1565 * configure: Regenerate.
1566 * config/tc-cris.c (DEFAULT_CRIS_AXIS_LINUX_GNU): New macro, TRUE
1567 if TE_LINUX defined, else FALSE.
1568 (bfd_boolean demand_register_prefix): Set default from
1569 DEFAULT_CRIS_AXIS_LINUX_GNU.
1570 (symbols_have_leading_underscore): Similar.
1571 * config/tc-cris.h (LOCAL_LABELS_DOLLAR): Define to 1.
1573 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
1575 * tc-arm.c (FPU_DEFAULT, case TE_LINUX): Default to FPU_ARCH_FPA.
1576 (FPU_DEFAULT, case TE_NetBSD): Default to FPU_ARCH_VFP for ELF,
1577 FPU_ARCH_FPA for AOUT.
1578 (md_begin): Don't try to guess the floating point architecture from
1579 the CPU if the OS ABI (Linux, NetBSD) mandates a particular form.
1581 2003-06-13 Robert Millan <zeratul2@wanadoo.es>
1583 * configure.in: Add i386-netbsd-gnu target.
1584 * configure: Regenerate.
1586 2003-06-12 Tom Tromey <tromey@redhat.com>
1588 * doc/as.texinfo (Comm): Added @node. Moved before CFI
1591 2003-06-12 Richard Sandiford <rsandifo@redhat.com>
1593 * config/tc-mips.c (append_insn): In a compound relocation, take the
1594 field width from the final (outermost) operator.
1596 2003-06-11 Richard Henderson <rth@redhat.com>
1598 * dw2gencfi.c (struct cfi_escape_data): New.
1599 (cfi_add_CFA_nop): Remove.
1600 (CFI_escape, dot_cfi_escape): New.
1601 (dot_cfi): Remove nop.
1602 (cfi_pseudo_table): Remove nop; add escape.
1603 (output_cfi_insn): Likewise.
1604 (select_cie_for_fde): Stop on escape.
1605 * dw2gencfi.h (cfi_add_CFA_nop): Remove.
1606 * read.c, read.h (do_parse_cons_expression): New.
1607 * doc/as.texinfo (.cfi_escape): New.
1609 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1611 * config/tc-mips.c (s_cpsetup): Use mips_frame_reg instead of SP.
1612 (s_cprestore): Likewise.
1613 (s_cpreturn): Likewise.
1615 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1617 * config/tc-mips.c (tc_gen_reloc): Initialize retval amd reloc
1620 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1622 * config/tc-mips.c (md_pcrel_from): Return actual pcrel address.
1623 (md_apply_fix3): Ignore non-special relocations. Remove superfluous
1624 exceptions from size assert. Remove most of the addend fixup
1625 specialcasing. Remove value, use valP directly. simplify fx_addnumber
1626 handling. Remove zero addend specialcases.
1627 (tc_gen_reloc): Use appropriate value for reloc2 addend. Remove
1628 the addend fixup specialcase.
1629 * config/tc-mips.h (MD_APPLY_SYM_VALUE): Define as 0.
1631 2003-06-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1633 * write.c (write_relocs): Use xcalloc. Fix relocs initialization
1634 in the RELOC_EXPANSION_POSSIBLE case.
1636 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1638 * config/tc-i960.c (line_comment_chars): Add '#'.
1639 * config/tc-mn10200.c (tc_gen_reloc): Don't ignore fx_subsy.
1641 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
1643 * po/Make-in (DESTDIR): New.
1644 (install-data-yes): Support $(DESTDIR).
1645 (uninstall): Likewise.
1647 2003-06-11 Alan Modra <amodra@bigpond.net.au>
1649 * Makefile.am: Run "make dep-am".
1650 * Makefile.in: Regenerate.
1651 * po/POTFILES.in: Regenerate.
1653 2003-06-10 Doug Evans <dje@sebabeach.org>
1655 * cgen.c (gas_cgen_finish_insn): CGEN_INSN_RELAX renamed to
1657 * config/tc-fr30.c (md_estimate_size_before_relax): Ditto.
1658 * config/tc-m32r.c (md_estimate_size_before_relax): Ditto.
1659 * config/tc-openrisc.c (md_estimate_size_before_relax): Ditto.
1661 2003-06-10 Alan Modra <amodra@bigpond.net.au>
1662 Gary Hade <garyhade@us.ibm.com>
1664 * config/tc-ppc.c (md_assemble): Handle PPC_OPERAND_DQ.
1665 (md_apply_fix3): Special case lq insn.
1667 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1669 * config/tc-h8300.c (get_rtsl_operands): Accept unbracketed register
1670 lists. Allow single-register ranges.
1672 2003-06-10 Richard Sandiford <rsandifo@redhat.com>
1674 * config/tc-h8300.c (h8300sxnmode): New.
1675 (md_pseudo_table): Add .h8300sxn entry.
1677 2003-06-09 H.J. Lu <hongjiu.lu@intel.com>
1679 * NEWS: Updated for the new -n option for the i386 assembler.
1681 * config/tc-i386.c (optimize_align_code): New.
1682 (md_shortopts): Add 'n'.
1683 (md_parse_option): Handle 'n'.
1684 (md_show_usage): Add '-n'.
1686 * config/tc-i386.h (optimize_align_code): Declared.
1687 (md_do_align): Optimize code alignment only if optimize_align_code
1690 * doc/as.texinfo: Add the new -n option.
1692 * doc/c-i386.texi: Document the new -n option.
1694 2003-06-07 Richard Henderson <rth@redhat.com>
1696 * doc/as.texinfo: Document .cfi_rel_offset.
1698 * dw2gencfi.c (struct cfa_save_data, cfa_save_stack): New.
1699 (cfi_add_CFA_offset): Detect invalid offsets.
1700 (cfi_add_CFA_remember_state): Save cur_cfa_offset.
1701 (cfi_add_CFA_restore_state): Restore it.
1702 (CFI_rel_offset): New.
1703 (cfi_pseudo_table): Add it.
1704 (dot_cfi): Handle it.
1706 2003-06-07 H.J. Lu <hongjiu.lu@intel.com>
1708 * app.c (do_scrub_chars): Add states 14 and 15 to handle
1711 2003-06-05 Michael Snyder <msnyder@redhat.com>
1713 * config/tc-h8sx.c (get_specific): Distinguish h8h from h8s ops.
1714 (build_bytes): Ditto.
1716 2003-06-05 Richard Sandiford <rsandifo@redhat.com>
1718 * config/tc-h8sx.c (DMODE): Remove.
1719 (colonmod24): Don't choose a default if the operand is a 16-bit
1721 (fix_operand_size): New function.
1722 (md_assemble): Use it to choose between @(d:2, ERn) and @(d:16,ERn).
1723 Adjust @(d:2,ERn) operands before choosing the specific opcodes.
1725 2003-06-05 Michal Ludvig <mludvig@suse.cz>
1727 * dw2gencfi.c (cfi_add_CFA_insn, cfi_add_CFA_insn_reg)
1728 (cfi_add_CFA_insn_reg_reg, cfi_add_CFA_insn_reg_offset): New.
1729 (cfi_add_CFA_offset, cfi_add_CFA_def_cfa)
1730 (cfi_add_CFA_register, cfi_add_CFA_def_cfa_register)
1731 (cfi_add_CFA_def_cfa_offset): Use cfi_add_CFA_insn_*().
1732 (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1733 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1734 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New.
1735 (cfi_pseudo_table): New directives .cfi_return_column,
1736 .cfi_restore, .cfi_undefined, .cfi_same_value,
1737 .cfi_remember_state, .cfi_restore_state, .cfi_nop.
1738 (dot_cfi, output_cfi_insn): Handle new directives.
1739 * dw2gencfi.h (cfi_add_CFA_restore, cfi_add_CFA_undefined)
1740 (cfi_add_CFA_same_value, cfi_add_CFA_remember_state)
1741 (cfi_add_CFA_restore_state, cfi_add_CFA_nop): New prototypes.
1743 2003-06-04 Richard Henderson <rth@redhat.com>
1745 * dw2gencfi.c (output_cfi_insn): Fix typo for negative offsets.
1747 * dw2gencfi.c (cfi_finish): Set .eh_frame read-only.
1749 2003-06-04 Richard Henderson <rth@redhat.com>
1751 * config/tc-alpha.c (s_alpha_usepv): New.
1752 (md_pseudo_table): Add it.
1753 (alpha_cfi_frame_initial_instructions): New.
1754 * config/tc-alpha.h (TARGET_USE_CFIPOP): New.
1755 (tc_cfi_frame_initial_instructions): New.
1756 * doc/c-alpha.texi: Document .usepv.
1758 2003-06-04 Jakub Jelinek <jakub@redhat.com>
1760 * as.c (show_usage): Document --execstack and --noexecstack.
1761 (parse_args): Add --execstack and --noexecstack.
1762 (main): Create .note.GNU-stack section if --execstack or
1763 --noexecstack was given on comand line, set its SHF_EXECINSTR bit.
1764 * as.h (flag_execstack, flag_noexecstack): New.
1766 2003-06-03 Chris Demetriou <cgd@broadcom.com>
1768 * config/tc-mips.c: (OPTION_ARCH_BASE, OPTION_ASE_BASE)
1769 (OPTION_COMPAT_ARCH_BASE, OPTION_FIX_BASE)
1770 (OPTION_MISC_BASE): New defines.
1771 (OPTION_BREAK, OPTION_CONSTRUCT_FLOATS, OPTION_EB, OPTION_EL)
1772 (OPTION_ELF_BASE, OPTION_FIX_VR4122, OPTION_FP32, OPTION_FP64)
1773 (OPTION_GP32, OPTION_GP64, OPTION_M3900, OPTION_M4010, OPTION_M4100)
1774 (OPTION_M4650, OPTION_M7000_HILO_FIX, OPTION_MARCH, OPTION_MDMX)
1775 (OPTION_MEMBEDDED_PIC, OPTION_MIPS1, OPTION_MIPS16, OPTION_MIPS2)
1776 (OPTION_MIPS3, OPTION_MIPS32, OPTION_MIPS32R2, OPTION_MIPS3D)
1777 (OPTION_MIPS4, OPTION_MIPS5, OPTION_MIPS64)
1778 (OPTION_MNO_7000_HILO_FIX, OPTION_MTUNE, OPTION_NO_CONSTRUCT_FLOATS)
1779 (OPTION_NO_FIX_VR4122, OPTION_NO_M3900, OPTION_NO_M4010)
1780 (OPTION_NO_M4100, OPTION_NO_M4650, OPTION_NO_MDMX, OPTION_NO_MIPS16)
1781 (OPTION_NO_MIPS3D, OPTION_NO_RELAX_BRANCH, OPTION_RELAX_BRANCH)
1782 (OPTION_TRAP): Redefine in terms of new defines.
1783 (md_longopts): Reorder entries.
1785 2003-05-14 Michael Snyder <msnyder@redhat.com>
1786 From Bernd Schmidt <bernds@redhat.com>
1787 and Michael Snyder <msnyder@redhat.com>
1788 and Alexandre Oliva <aoliva@redhat.com>
1789 * config/tc-h8300.c: Add insns and addressing modes for h8300sx.
1790 * config/tc-h8300.h: Ditto.
1792 2003-06-03 Nick Clifton <nickc@redhat.com>
1794 * tc-v850.c (tc-gen_reloc): Translate BFD_RELOC_32 into
1795 BFD_RELOC_32_PCREL if the reloc is pc-relative. Do this
1796 before calling bfd_reloc_type_lookup.
1798 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1800 * read.c (emit_expr): Set dot_value.
1801 * dw2gencfi.c (output_fde): Remove pcrel reloc hack.
1803 2003-06-02 Alan Modra <amodra@bigpond.net.au>
1805 * macro.c (sub_actual): Don't lose string if it turns out that
1806 &string wasn't an arg.
1808 2003-05-31 Richard Henderson <rth@redhat.com>
1810 * dw2gencfi.c (output_fde): Use fix_new to emit pc-relative reloc.
1811 (cfi_finish): Set flag_traditional_format around .eh_frame data.
1813 2003-05-29 Richard Henderson <rth@redhat.com>
1815 * config/tc-alpha.c (alpha_cur_ent_sym): Remove.
1816 (all_frame_data, plast_frame_data, cur_frame_data): New.
1817 (s_alpha_ent): Record data for dwarf2 cfi.
1818 (s_alpha_end, s_alpha_mask, s_alpha_frame, s_alpha_prologue): Likewise.
1819 (alpha_elf_md_end): Emit dwarf2 cfi for ecoff unwind directives.
1820 * config/tc-alpha.h (md_end): New.
1821 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1822 (DWARF2_CIE_DATA_ALIGNMENT): New.
1824 2003-05-29 Nick Clifton <nickc@redhat.com>
1826 * configure.in: Add i386-*-freebsd* entry.
1827 * configure: Regenerate.
1829 2003-05-29 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1831 * config/tc-m32r.c: Amend comment to refer to Renesas
1833 2003-05-27 Richard Henderson <rth@redhat.com>
1835 * expr.c (make_expr_symbol): Fold FAKE_LABEL_NAME use into the
1837 (current_location): Use symbol_temp_new_now.
1838 * stabs.c (s_stab_generic): Use symbol_temp_new.
1839 * symbols.c (temp_label_name): Remove.
1840 (symbol_temp_new, symbol_temp_make): Use FAKE_LABEL_NAME.
1842 2003-05-27 Richard Henderson <rth@redhat.com>
1844 * dw2gencfi.c, dw2gencfi.h: Rewrite from scratch.
1845 * as.c (main): Always call cfi_finish.
1846 * config/tc-i386.c (x86_dwarf2_return_column): New.
1847 (x86_cie_data_alignment): New.
1848 (md_begin): Set them.
1849 (tc_x86_cfi_init): Remove.
1850 (tc_x86_regname_to_dw2regnum): Fix 32-bit register numbers;
1851 return int, not unsigned long; don't as_bad here.
1852 (tc_x86_frame_initial_instructions): Streamline; use
1854 * config/tc-i386.h (tc_cfi_init): Remove.
1855 (DWARF2_DEFAULT_RETURN_COLUMN): New.
1856 (DWARF2_CIE_DATA_ALIGNMENT): New.
1858 2003-05-27 Richard Henderson <rth@redhat.com>
1860 * symbols.c (temp_label_name): New.
1861 (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New.
1862 (symbol_set_value_now): New.
1863 * symbols.h: Prototype them.
1864 * dwarf2dbg.c: Use them.
1865 (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
1867 2003-05-23 Jason Eckhardt <jle@rice.edu>
1869 * config/tc-i860.c (target_xp): Declare variable.
1870 (OPTION_XP): Declare macro.
1871 (md_longopts): Add option -mxp.
1872 (md_parse_option): Set target_xp.
1873 (md_show_usage): Add -mxp usage.
1874 (i860_process_insn): Recognize XP registers bear, ccr, p0-p3.
1875 (md_assemble): Don't try expansions if XP_ONLY is set.
1876 * doc/c-i860.texi: Document -mxp option and i860XP support.
1878 2003-05-23 Eric Christopher <echristo@redhat.com>
1880 * config/tc-mips.c (macro_build_jalr): Warning patrol.
1882 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1884 * config/tc-mips.c (append_insn): Use actual relocation size for new
1885 fixp's. Don't relax overflow checking for partial_inplace relocations.
1886 Use the actual relocation type in combined relocs, not just the type
1888 (macro_build_jalr): Use actual relocation size for new fix.
1889 (s_cpsetup, s_gpdword): Likewise.
1891 2003-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1893 * config/tc-mips.c (macro): Don't use uninitialized tempreg.
1895 2003-05-22 Nick Clifton <nickc@redhat.com>
1897 * config/tc-xstormy16.c (md_pcrel_from_section): Do not produce
1898 section relative offsets for relocs that will not be based on the
1900 (xstormy16_md_apply_fix3): Remove previous patch to this
1903 2003-05-07 Eric Christopher <echristo@redhat.com>
1905 * config/tc-mips.c (mips_abicalls): New variable.
1906 (md_parse_option): Use.
1908 (s_abicalls): Ditto.
1909 (mips_elf_final_processing): Set EF_MIPS_PIC and
1910 EF_MIPS_CPIC dependent on above.
1912 2003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1914 * tc-hppa.c (hppa_symbol_chars): Remove `,' and `!'.
1916 2003-05-21 Nick Clifton <nickc@redhat.com>
1918 * config/obj-elf.c: Include dwarf2dbg.h.
1919 (elf_pseudo_tab): Add .file and .loc.
1920 * config/tc-arc.c (md_pseudo_table): Remove .file and .loc.
1921 * config/tc-arm.c: Likewise.
1922 * config/tc-h8300.c: Likewise.
1923 * config/tc-hppa.c: Likewise.
1924 * config/tc-ia64.c: Likewise.
1925 * config/tc-m68hc11.c: Likewise.
1926 * config/tc-m68k.c: Likewise.
1927 * config/tc-mmix.c: Likewise.
1928 * config/tc-mn10300.c: Likewise.
1929 * config/tc-ppc.c: Likewise.
1930 * config/tc-sh.c: Likewise.
1931 * config/tc-sparc.c: Likewise.
1932 * config/tc-v850.c: Likewise.
1933 * config/tc-frv.c: Likewise, and remove redundant inclusion of
1935 * config/tc-ip2k.c: Likewise.
1936 * config/tc-iq2000.c: Likewise.
1937 * config/tc-xstormy16.c: Likewise.
1938 * config/tc-xtensa.c: Likewise.
1939 * Makefile.am: Regenerate dependencies.
1940 * Makefile.in: Regenerate.
1941 * aclocal.m4: Regenerate.
1942 * config.in: Regenerate.
1943 * configure: Regenerate.
1944 * po/POTFILES.in: Regenerate.
1945 * po/gas.pot: Regenerate.
1947 2003-05-21 Nick Clifton <nickc@redhat.com>
1949 * dw2gencfi.c (cfi_get_label): Use symbol_make for non
1950 BFD_ASSEMBLER targets.
1951 (cfi_startproc): Change type of saved_seg and cfi_seg to segT.
1952 (dot_cfi_endproc): Only call bfd_set_section_flags for targets
1953 defining BFD_ASSEMBLER.
1955 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1957 * as.c (main): Remove tc_cfi_init().
1958 * dw2gencfi.c (cfi_parse_arg): Allow regnames beginning
1960 (cfi_pseudo_table): Add "cfi_register" entry.
1961 (cfi_make_insn): Handle CFA_register.
1962 (cfi_output_insn): Ditto.
1964 (cfi_get_label): Add 'simple' modifier to .cfi_startproc.
1965 (dot_cfi_endproc): Reuse already emitted CIEs.
1966 * testsuite/gas/cfi/cfi-i386.d: New pattern.
1967 * testsuite/gas/cfi/cfi-x86-64.d: Ditto.
1969 2003-05-20 Nick Clifton <nickc@redhat.com>
1971 * config/tc-xstormy16.c: Include dwarf2dbg.h.
1972 (md_pseudo_table): Add entries for .loc and .line.
1974 2003-05-20 Alan Modra <amodra@bigpond.net.au>
1976 * dw2gencfi.c (cfi_parse_arg): Only use tc_regname_to_dw2regnum if
1978 (dot_cfi_endproc): Avoid C99 construct.
1980 2003-05-20 Michal Ludvig <mludvig@suse.cz>
1982 * dw2gencfi.c, dw2gencfi.h: New files.
1983 * config/tc-i386.c (tc_x86_cfi_init): New function.
1984 * config/tc-i386.h (TARGET_USE_CFIPOP, tc_cfi_init): New defines.
1985 * as.c (parse_args): Set verbose flag on --verbose.
1986 (main): Call tc_cfi_init()/cfi_finish().
1987 * as.h (verbose): New external variable.
1988 * read.c (pobegin): Insert CFI pops to the list.
1989 * symbols.c (local_symbol_make): Make symbol external.
1990 * symbols.h (local_symbol_make): New prototype.
1991 * Makefile.am: Add dw2gencfi.[ch] files. Run "make dep-am".
1992 * Makefile.in: Regenerate.
1993 * doc/as.texinfo: Added node "CFI directives" with description of
1994 all implemented .cfi_* directives.
1995 * doc/Makefile.in: Regenerate.
1996 * po/POTFILES.in: Regenerate.
1998 2003-05-19 Svein E. Seldal <Svein.Seldal@solidas.com>
2000 * config/tc-tic4x.c (md_assemble): Added support for one-line parallel
2002 * config/tc-tic4x.h: Added DOUBLEBAR_PARALLEL definition
2004 2003-05-18 Jason Eckhardt <jle@rice.edu>
2006 * config/tc-i860.c (i860_process_insn): Initialize fc after
2007 each opcode mismatch.
2009 2003-05-16 Kelley Cook <kelleycook@wideopenwest.com>
2011 * configure.in: Accept i[3-7]86 variants.
2012 * configure: Regenerate.
2014 2003-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2016 * config/tc-mips.h: Fix comment formatting.
2018 2003-05-13 Hans-Peter Nilsson <hp@axis.com>
2020 * read.c (old_buffer, old_input, old_limit): Remove variables.
2021 (read_a_source_file): Delete label contin.
2022 <handling #APP/#NO_APP>: Use an "sb" to push #APP expansion into
2023 input as with macros, instead of in separate old_* variables.
2024 Zero-terminate string being scrubbed.
2026 2003-05-12 Nick Clifton <nickc@redhat.com>
2028 * config/tc-xstormy16.c (skipping_fptr): New local variable.
2029 (md_assemble): Reset skipping_fptr.
2030 (md_operand): If @fptr() is followed by a minus sign, set
2031 skipping_fptr and ignore the fptr. If skipping_fptr is set and an
2032 @fptr is detected, ignore it and reset skipping_fptr.
2034 2003-05-11 Jason Eckhardt <jle@rice.edu>
2036 * config/tc-i860.c (MAX_FIXUPS): Define.
2037 (struct i860_fi fi[]): New struct.
2038 (struct i860_it the_insn): Add above as member and move fields
2039 exp, reloc, pcrel and fup into i860_fi.
2040 (md_assemble): Replace all instances of exp, reloc, pcrel
2041 and fup with fi[].exp, fi[].reloc, fi[].pcrel, fi[].fup.
2042 Add a loop to possibly emit multiple fix-ups for each insn.
2043 (i860_process_insn): Likewise.
2044 (i860_get_expression): Likewise.
2045 (md_apply_fix3): Use a bitwise check for OP_IMM_U5, not equality.
2047 2003-05-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2049 * config/tc-s390.c (s390_target_format): Always call init_default_arch.
2051 2003-05-07 H.J. Lu <hongjiu.lu@intel.com>
2053 * config/tc-ia64.c (alias_hash): New.
2054 (alias_name_hash): New.
2055 (secalias_hash): New.
2056 (secalias_name_hash): New.
2057 (md_pseudo_table): Add "secalias".
2058 (md_begin): Initialize alias_hash, alias_name_hash,
2059 secalias_hash and secalias_name_hash.
2060 (struct alias): New.
2061 (dot_alias): Implement .alias and .secalias directives.
2063 (ia64_adjust_symtab): New.
2065 (ia64_frob_file): New.
2067 * config/tc-ia64.h (ia64_adjust_symtab): New.
2068 (tc_adjust_symtab): Defined.
2069 (ia64_frob_file): New.
2070 (tc_frob_file): Defined.
2072 2003-05-07 Dmitry Diky <diwil@mail.ru>
2074 * tc-msp430.c: Add missing lines to known cpus list.
2076 2003-05-06 Alexandre Oliva <aoliva@redhat.com>
2078 * configure.in (MIPS_DEFAULT_ABI): AC_DEFINE.
2079 * config/tc-mips.c (mips_after_parse_args): Set mips_abi to it.
2080 * config.in, configure: Rebuilt.
2082 2003-05-05 H.J. Lu <hjl@gnu.org>
2084 * config/tc-mips.c (tc_gen_reloc): Add addend just once if
2085 howto->partial_inplace is false.
2087 2003-05-05 Daniel Jacobowitz <drow@mvista.com>
2089 * config/tc-mips.c (mips_need_elf_addend_fixup): Remove
2090 symbol_used_in_reloc_p check.
2091 (md_apply_fix3): Remove check for howto->pcrel_offset.
2093 2003-05-03 H.J. Lu <hjl@gnu.org>
2095 * config/obj-elf.c (obj_elf_parse_section_letters): Make it a
2096 fatal error for unknown section attribute.
2098 * config/tc-alpha.c (alpha_elf_section_letter): Return -1 for
2099 unknown section attribute.
2100 * config/tc-ia64.c (ia64_elf_section_letter): Likewise.
2101 * config/tc-ppc.c (ppc_section_letter): Likewise.
2103 * config/tc-ia64.c (ia64_elf_section_letter): Handle 'o'.
2104 (ia64_elf_section_type): Accept "unwind".
2106 2003-05-02 H.J. Lu <hjl@gnu.org>
2108 * read.h (demand_copy_string): New.
2110 * config/tc-alpha.c (demand_copy_string): Removed.
2112 2003-05-02 Michael Snyder <msnyder@redhat.com>
2114 * write.h (FAKE_LABEL_NAME): Allow override
2115 (for targets that like eg. a leading dot in a local label).
2117 2003-05-02 Nick Clifton <nickc@redhat.com>
2119 * config/tc-xstormy16.c (xstormy16_md_apply_fix3): Do not bias the
2120 addend with the symbol's value for pc-relative relocations against
2121 a defined symbol - this will be done automatically.
2123 2003-05-01 H.J. Lu <hjl@gnu.org>
2125 * config/obj-elf.c (obj_elf_type): Accept "notype" and
2128 2003-05-01 H.J. Lu <hjl@gnu.org>
2130 * config/tc-ia64.h (tc_canonicalize_section_name): New.
2132 * config/obj-elf.c (obj_elf_section_name): Call
2133 tc_canonicalize_section_name if it is defined.
2135 2003-05-01 H.J. Lu <hjl@gnu.org>
2137 * config/tc-ia64.c (ia64_check_label): New.
2138 * config/tc-ia64.h (tc_check_label): New.
2140 * read.c (read_a_source_file): Call tc_check_label after
2141 creating a user-defined label if defined.
2143 2003-05-02 Alan Modra <amodra@bigpond.net.au>
2145 * config/tc-ppc.c (md_show_usage): Mention -a32, -a64, -l, -le, -b,
2146 -be and split strings to below 509 bytes in length.
2148 2003-05-01 Christian Groessler <chris@groessler.org>
2150 * expr.h: Fix comments in operatorT typedef.
2151 * config/tc-z8k.c: Add 2003 to copyright message.
2152 Fold s_segm() and s_unseg() into one function s_segm(parm) which
2153 decides by the parameter.
2154 (md_begin): Don't set linkrelax. Only set Z8002 default if no
2155 command line argument was given to select the intended
2157 (get_interrupt_operand): Warn if NOP type code is emitted.
2158 (newfix): New parameter 'size', forward it to 'fix_new_exp'.
2159 (apply_fix): Call newfix with additional 'size' parameter.
2160 (build_bytes): Remove unused variable 'nib'. Detect overflow in
2161 4 bit immediate arguments.
2162 (md_longopts): Add 'linkrelax' option.
2163 (md_parse_option): Adapt to new s_segm function. Set 'linkrelax'
2164 variable when 'linkrelax' command line option is specified.
2165 (md_show_usage): Display 'linkrelax' option.
2166 (md_apply_fix3): Fix cases R_IMM4L, R_JR, and R_IMM8. Add cases
2167 R_CALLR and R_REL16.
2168 * config/tc-z8k.h: Undef WARN_SIGNED_OVERFLOW_WORD.
2170 2003-04-30 H.J. Lu <hjl@gnu.org>
2172 * config/tc-ia64.c (ia64_number_to_chars): New function pointer.
2173 (ia64_float_to_chars): Likewise.
2174 (dot_byteorder): Set target_big_endian, ia64_number_to_chars
2175 and ia64_float_to_chars by tc_segment_info_data.endian from
2176 the current segment if byteorder == -1.
2177 (md_begin): Call dot_byteorder to set target_big_endian.
2178 (md_atof): Call ia64_float_to_chars to convert floating point.
2179 (ia64_float_to_chars_bigendian): New function.
2180 (ia64_float_to_chars_littleendian): Likewise.
2181 (ia64_elf_section_change_hook): Likewise.
2183 * config/tc-ia64.h (ia64_number_to_chars): New.
2184 (md_number_to_chars): Changed to (*ia64_number_to_chars)
2185 (ia64_elf_section_change_hook): New.
2186 (md_elf_section_change_hook): Defined.
2187 (ia64_segment_info_type): New struct.
2188 (TC_SEGMENT_INFO_TYPE): Defined.
2190 2003-04-30 H.J. Lu <hjl@gnu.org>
2192 * config/tc-ia64.c (md_section_align): Deleted.
2194 * config/tc-ia64.h (SUB_SEGMENT_ALIGN): New.
2195 (md_section_align): New.
2197 2003-04-30 H.J. Lu <hjl@gnu.org>
2199 * config/tc-ia64.c (stmt_float_cons): Fix alignment for real10
2201 (md_pseudo_table): Add "xreal16", "xreal16.ua", "real16" and
2203 (md_atof): Add 6 byte padding of zero for real16.
2205 2003-04-29 Nick Clifton <nickc@redhat.com>
2207 * config/obj-elf.c (obj_elf_symver): Skip whitespace before the
2208 start of a version name.
2210 2003-04-28 Chris Demetriou <cgd@broadcom.com>
2212 * configure.in (mips-*-*n*bsd*): Replace with...
2213 (mips-*-netbsd*, mips-*-openbsd*): These.
2214 * configure: Regenerate.
2216 2003-04-28 H.J. Lu <hjl@gnu.org>
2218 * config/tc-hppa.c (hppa_symbol_chars): New.
2219 * config/tc-hppa.h (tc_symbol_chars): Likewise.
2221 2003-04-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2223 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define again.
2225 2003-04-25 Chris Demetriou <cgd@broadcom.com>
2227 * NEWS: Belatedly mention support for MIPS32 Release 2.
2229 2003-04-24 Eric Christopher <echristo@redhat.com>
2231 * config/tc-mips.c (nopic_need_relax): Revert previous
2234 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2236 * config/tc-h8300.h (DWARF2_LINE_MIN_INSN_LENGTH): New
2237 * config/tc-h8300.c (dwarf2dbg.h): Include
2238 (md_pseudo_table): Handle .loc and .file
2239 (md_assemble): Call dwarf2_emit_insn if BFD_ASSEMBLER.
2240 * Makefile.am: Add dependency on dwarf2dbg.h for h8300 targets.
2241 * Makefile.in: Regenerate.
2243 2003-04-24 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
2245 * config/tc-h8300.c (Nmode, h8300hnmode, h8300snmode): New.
2246 (md_pseudo_table): Add h8300hn, h8300sn.
2247 * config/tc-h8300.h (COFF_MAGIC): Handle h8300hn, h8300sn.
2248 * doc/c-h8300.texi : Add documentation for new machine directives.
2250 2003-04-24 Nick Clifton <nickc@redhat.com>
2252 * config/tc-ppc.c (ppc_symbol_chars): Define.
2253 * config/tc-ppc.h (tc_symbol_chars): Define.
2255 2003-04-23 J"orn Rennecke <joern.rennecke@superh.com>
2257 * config/tc-sh.c: Amend comment to refer to SuperH.
2258 * config/tc-sh.h: Likewise.
2259 (LISTING_HEADER): Amend to refer to SuperH.
2260 * config/tc-sh64.c: Change comment to refer to SuperH.
2261 * config/tc-sh64.h (LISTING_HEADER): Change to refer to SuperH.
2262 * doc/as.texinfo [SH, GENERIC]: Amend / Change to refer to SuperH.
2263 * doc/c-sh.texi: Amend to refer to SuperH.
2264 Add SuperH architecture documentation references.
2265 * doc/c-sh64.texi: Change to refer to SuperH.
2267 2003-04-23 H.J. Lu <hjl@gnu.org>
2269 * app.c (do_scrub_chars): More checks for valid labels.
2271 2003-04-22 H.J. Lu <hjl@gnu.org>
2273 * app.c (do_scrub_chars): Check for valid label.
2275 2003-04-22 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2277 * doc/as.texinfo: Replace references to Mitsubishi M32R with
2278 references to Renesas M32R.
2279 * doc/c-m32r.texi: Likewise.
2281 2003-04-21 Richard Henderson <rth@redhat.com>
2283 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.
2284 (out_file_list): Assign non-null filename after generating error.
2286 2003-04-18 Jakub Jelinek <jakub@redhat.com>
2288 * ehopt.c (check_eh_frame): For aug_size == 0
2289 in state_seeing_aug_size state skip the state_skipping_aug
2292 2003-04-15 Rohit Kumar Srivastava <rohits@kpitcummins.com>
2294 * doc/c-h8300.texi: Replace occurrances of 'Hitachi' with
2296 * doc/c-h8500.texi: Likewise.
2297 * doc/c-sh.texi: Likewise.
2298 * doc/c-sh64.texi: Likewise.
2299 * doc/h8.texi: Likewise.
2300 * config/tc-h8300.c: Likewise.
2301 * config/tc-h8300.h: Likewise.
2302 * config/tc-h8500.c: Likewise.
2303 * config/tc-h8500.h: Likewise.
2304 * config/tc-sh.c: Likewise.
2305 * config/tc-sh.h: Likewise.
2306 * config/tc-sh64.c: Likewise.
2307 * config/tc-sh64.h: Likewise.
2309 2003-04-10 Alexandre Oliva <aoliva@redhat.com>
2311 * config/tc-mips.h (tc_frag_data_type, TC_FRAG_TYPE): New.
2312 * config/tc-mips.c: Use signed add for n32 address arithmetic.
2313 (append_insn): When filling delay slots with instructions
2314 that have fixups that tc_gen_reloc might consider modifyable
2315 in variant frags, start a new frag.
2316 (load_address): Generate GOT_DISP with of without offset
2317 depending on whether symbol is local. For -xgot, use
2318 GOT_PAGE/GOT_OFST or GOT_HI16/GOT_LO16.
2319 (macro) <M_DLA_AB, M_LA_AB>: Likewise.
2320 <M_JAL_A>: In NewABI, use CALL16 or GOT_DISP for small got,
2321 CALL_HI16/CALL_LO16 or GOT_PAGE/GOT_OFST for big got.
2322 <ld_st>: In NewABI with small got, always use
2323 GOT_PAGE/GOT_OFST, with the latter in the load/store
2324 instruction. With big got, use GOT_HI16/GOT_LO16 or
2326 (tc_gen_reloc): Adjust variant frags with GOT_DISP in NewABI.
2327 Add tc_frag_data.tc_fr_offset to addends. Decay CALL16,
2328 GOT_OFST and GOT_DISP to GOT_DISP in NewABI.
2329 (md_convert_frag): Use memmove for safe copying of overlapping
2332 2003-04-09 Stephane Carrez <stcarrez@nerim.fr>
2334 * doc/c-m68hc11.texi (M68HC11-Opts): Document -m68hcs12, -mshort,
2335 -mlong, -mshort-double and -mlong-double options; use table @code.
2336 (M68HC11-Syntax): Update to document 68HC12 operands.
2337 (M68HC11-Modifiers): New section for operand modifiers.
2338 (M68HC11-Directives): New section for specific assembler directives.
2339 (M68HC11-Branch): Fix Overfull hbox error.
2341 2003-04-09 Alexandre Oliva <aoliva@redhat.com>
2343 * config/tc-mips.c (macro): Add comments explaining the rationale
2346 2003-04-09 Chris Demetriou <cgd@broadcom.com>
2348 * config/tc-mips.c (macro): Put back `+ 0x8000' in test for 64-bit
2349 constant address that Alexandre took out by accident. Reject
2350 64-bit addresses that are not sign extensions of 32 bits only if
2351 we don't support 64-bit address constants.
2353 2003-04-09 Alan Modra <amodra@bigpond.net.au>
2355 * config/tc-ppc.c (md_apply_fix3): Generate ADDR16 relocs.
2357 2003-04-08 Nick Clifton <nickc@redhat.com>
2359 * as.c (perform_an_assembly_pass): If using cgen, call
2361 * cgen.c (gas_cgen_begin): New function. If
2362 flag_signed_overflow_ok is set call cgen_set_signed_overflow_ok
2363 otherwise call cgen_clear_signed_overflow_ok.
2364 * cgen.h: Prototype gas_cgen_begin.
2366 2003-04-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2368 * write.c (write_relocs): Remove unused variable.
2370 2003-04-06 Chris Demetriou <cgd@broadcom.com>
2372 * config/tc-mips.c (HAVE_64BIT_ADDRESS_CONSTANTS): New.
2373 (macro): Use new macro to decide whether to emit constant address
2374 as 32 or 64 bits if addresses are 32-bit wide but registers are
2377 2003-04-05 Stephane Carrez <stcarrez@nerim.fr>
2379 * config/tc-m68hc11.c (M6811_OP_CALL_ADDR): New internal define.
2380 (M6811_OP_PAGE_ADDR): New internal define.
2381 (get_operand): New modifier %page and %addr to obtain page and
2382 address part of a far-function.
2383 (fixup8): Use BFD_RELOC_M68HC11_PAGE for a %page modifier; don't
2384 complain on overflow for the BFD_RELOC_M68HC11_PAGE and truncation
2386 (fixup16): Use BFD_RELOC_M68HC11_LO16 for a %addr modifier.
2387 (find_opcode): Add comment.
2388 (md_estimate_size_before_relax): Force relocation of
2389 STATE_UNDEXED_OFFSET types when the symbol is not absolute.
2390 (tc_m68hc11_fix_adjustable): Check for BFD_RELOC_M68HC11_LO16
2391 instead of BFD_RELOC_LO16; temporarily make the BFD_RELOC_32
2392 on the symbol itself so that DWARF2 strings are merged correctly.
2394 2003-04-04 Svein E. Seldal <Svein.Seldal@solidas.com>
2396 * config/obj-coff.h (TARGET_FORMAT): Namespace cleanup, changed
2397 default tic4x target format to 'coff2-tic4x'.
2398 * config/tc-tic4x.c: Namespace cleanup. Replace s/c4x/tic4x/ and
2400 * config/tc-tic4x.h: Ditto
2402 2003-04-03 Nick Clifton <nickc@redhat.com>
2404 * NEWS: Mention support for Xtensa architecture.
2406 2003-04-02 Philip Blundell <philb@gnu.org>
2408 * config/tc-arm.c (arm_force_relocation): Return 0 for OFFSET_IMM.
2410 2003-04-02 Chris Demetriou <cgd@broadcom.com>
2412 * config/tc-mips.c (macro2): Adjust implementation of
2413 M_ULH, M_ULHU, M_ULW, and M_ULD so that they work properly
2414 in the case where the source and destination registers
2417 2003-04-01 Bob Wilson <bob.wilson@acm.org>
2419 * Makefile.am (CPU_TYPES): Add xtensa.
2420 (TARGET_CPU_CFILES): Add config/tc-xtensa.c.
2421 (TARGET_CPU_HFILES): Add config/tc-xtensa.h.
2422 (xtensa-relax.o): New target.
2424 * Makefile.in: Regenerate.
2425 * configure.in: Handle xtensa-*-*. Add xtensa-relax.o to
2426 extra_objects for xtensa targets.
2427 * configure: Regenerate.
2428 * write.c (write_object_file): Add new md_post_relax_hook.
2429 * config/tc-xtensa.c: New file.
2430 * config/tc-xtensa.h: Likewise.
2431 * config/xtensa-istack.h: Likewise.
2432 * config/xtensa-relax.c: Likewise.
2433 * config/xtensa-relax.h: Likewise.
2434 * doc/Makefile.am (CPU_DOCS): Add c-xtensa.texi.
2435 * doc/Makefile.in: Regenerate.
2436 * doc/all.texi: Set new XTENSA variable.
2437 * doc/as.texinfo: Set new Xtensa variable. Describe
2438 Xtensa-specific options. Define line comment character for
2439 Xtensa. Add Xtensa processors to list of ELF targets where
2440 alignment is specified in bytes. Add new Xtensa-Dependent node.
2441 Add acknowledgements for those contributing to the Xtensa port.
2442 * doc/internals.texi: Describe new md_post_relax_hook.
2443 * doc/c-xtensa.texi: New file.
2445 2003-04-01 Nick Clifton <nickc@redhat.com>
2446 Richard Earnshaw <rearnsha@arm.com>
2448 * config/tc-arm.c: Remove presence of (r) and (tm) symbols.
2449 (ARM_ARCH_IWMMXT): Simplify.
2450 (insns): Place iwmmx instructions in correct place in table.
2451 (arm_add_note): New function: Add a note entry to a .note section.
2452 (md_begin): Make the default architecture be unknown.
2453 Suppress the creation of an arm note section.
2455 2003-03-26 Eric Christopher <echristo@redhat.com>
2457 * config/tc-mips.c (nopic_need_relax): Check for S_IS_EXTERN.
2459 2003-03-25 Stan Cox <scox@redhat.com>
2460 Nick Clifton <nickc@redhat.com>
2462 Contribute support for Intel's iWMMXt chip - an ARM variant:
2464 * config/tc-arm.c: (ARM_CEXT_IWMMXT, ARM_ARCH_IWMMXT, WR_PREFIX,
2465 WC_PREFIX, REG_TYPE_IWMMXT): New constants.
2466 (enum wreg_type, enum iwmmxt_insn_type): New types.
2467 (wr_register, wc_register, wcg_register): New macros.
2468 (iwmmxt_table): New variable.
2469 (wreg_required_here, do_iwmmxt_byte_addr, do_iwmmxt_tandc,
2470 do_iwmmxt_tbcst, do_iwmmxt_textrc, do_iwmmxt_textrm,
2471 do_iwmmxt_tinsr, do_iwmmxt_tmcr, do_iwmmxt_tmcrr, do_iwmmxt_tmia,
2472 do_iwmmxt_tmovmsk, do_iwmmxt_tmrc, do_iwmmxt_tmrrc,
2473 do_iwmmxt_torc, do_iwmmxt_waligni, do_iwmmxt_wmov,
2474 do_iwmmxt_word_addr, do_iwmmxt_wrwr, do_iwmmxt_wrwrwcg,
2475 do_iwmmxt_wrwrwr, do_iwmmxt_wshufh, do_iwmmxt_wzero,
2476 cp_byte_address_offset, cp_byte_address_required_here,
2477 check_iwmmxt_insn): New functions.
2478 (asm_opcode_insns): Add iWMMXt instructions.
2479 (md_begin): Set the mach value for iWMMXt targets. Create a note
2480 section to identify iwmmxt binaries.
2481 (md_apply_fix3): Handle BFD_RELOC_ARM_CP_OFF_IMM_S2.
2482 * doc/c-arm.texi: Document the support for the iWMMXt.
2483 * NEWS: Mention new support.
2485 2003-03-24 Daniel Néri <dne@mayonnaise.net>
2487 * doc/as.texinfo: Rename the all occurances of C54X to TIC54X.
2488 * doc/all.texi: Likewise.
2489 * doc/c-tic54x.texi: Likewise.
2491 2003-03-21 Andreas Schwab <schwab@suse.de>
2493 * config/tc-ia64.c (generate_unwind_image): Fix type of unw_rec to
2494 avoid aliasing issue.
2496 2003-03-21 Martin Schwidefsky <schwidefsky@de.ibm.com>
2498 * config/tc-s390.c (s390_arch_size): Initialize to zero.
2499 (current_arch_mask): Rename to current_mode_mask.
2500 (current_arch_requested): Remove variable.
2501 (current_cpu): New variable.
2502 (init_default_arch): Set defaults values for s390_arch_size,
2503 current_mode_mask and current_cpu.
2504 (md_parse_option): New options -mesa, -mzarch and -march={g5,g6,z900}.
2505 (md_begin): Replace current_arch_mask by current_cpu.
2506 (md_assemble): Adapt check and error message to current_mode_mask and
2509 2003-03-09 James E Wilson <wilson@tuliptree.org>
2511 * macro.c (buffer_and_nest): Store more to sb instead of '\n'.
2512 * read.c (get_line_sb): Return end of line character or '\n' if
2513 it is zero or non-existent.
2515 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
2517 * config/tc-mips.c (mips_validate_fix): New function.
2518 * config/tc-mips.h (TC_VALIDATE_FIX): Define.
2519 (mips_validate_fix): Declare.
2521 2003-03-12 Alexandre Oliva <aoliva@redhat.com>
2523 * Reverted 2003-03-02's patch.
2525 2003-03-11 Steve Ellcey <sje@cup.hp.com>
2527 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.
2528 (TC_DWARF2_EMIT_OFFSET): Provide default.
2529 (out_debug_aranges, out_debug_info): Use it.
2530 * config/tc-ia64.c (ia64_dwarf2_emit_offset): New.
2531 (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ...
2532 (ia64_gen_real_reloc_type): ... here.
2533 * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
2535 2003-03-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2537 * config/tc-mips.c (s_mips_end): Remove !BFD_ASSEMBLER case.
2538 (s_mips_ent): Likewise.
2540 2003-03-04 Dmitry Diky <diwil@mail.ru>
2542 * config/tc-msp430.c (mcu_types): Add recently announced x1122
2543 and x1123 devices, add missed x437.
2544 (md_show_usage): Sort device list.
2546 2003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
2548 * config/tc-sh.c (sh_dsp): Replace with preset_target_arch.
2549 (md_begin): Use preset_target_arch.
2550 (md_longopts): Make isa option unconditional.
2551 (md_parse_option): Make OPTION_DSP and OPTION_ISA sh4 / any
2552 set preset_target_arch.
2553 (md_apply_fix3): If BFD_ASSEMBLER, adjust SWITCH_TABLE fixups
2554 by -S_GET_VALUE (fixP->fx_subsy).
2555 (tc_gen_reloc): For SWITCH_TABLE fixups, the symbol is fixp->fx_subsy,
2556 and the addend is 0.
2557 Adjust addend of R_SH_IND12W relocations by fixp->fx_offset - 4.
2558 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
2560 2003-03-02 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2562 * config/tc-mips.c (append_insn): Add handling of
2563 BFD_RELOC_MIPSEMB_16_PCREL_S2. Avoid emitting unneeded
2564 BFD_RELOC_16_PCREL_S2 relocs and add earlier warnings about
2565 misaligned address and reange overflow.
2566 (macro_build): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2. Add
2567 earlier warnings about misaligned address and reange overflow.
2568 (mips_ip): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2569 (md_apply_fix): Likewise. Fix warning output.
2570 (tc_gen_reloc): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2571 Allow BFD_RELOC_16_PCREL_S2 for all ABIs.
2572 (md_convert_frag): Add handling of BFD_RELOC_MIPSEMB_16_PCREL_S2.
2574 2003-02-21 Nick Clifton <nickc@redhat.com>
2576 * NEWS: Mention availability of test generator program.
2578 2003-02-21 Miles Bader <miles@gnu.org>
2580 * config/tc-v850.c (system_registers): Add v850e debug registers.
2581 (system_register_name): Accept up to 27 (the last v850e sys register).
2583 2003-02-21 Bob Wilson <bob.wilson@acm.org>
2585 * doc/as.texinfo: Define new COFF-ELF variable to conditionalize text
2586 relevant to both COFF and ELF. Fix obvious typos and texinfo bugs.
2587 Capitalize section headings consistently. Format index entries more
2588 consistently. Unconditionalize text about whether text and data
2589 sections are alterable. Use @ifnottex for alternatives to @tex output
2590 so that HTML works. Clean up COFF vs. ELF descriptions of .section,
2591 .size and .type directives. Be more polite about bad bug reports.
2592 Move FDL into a separate file.
2593 * doc/fdl.texi: New file.
2595 2003-02-21 Richard Sandiford <rsandifo@redhat.com>
2597 * config/tc-mips.c (prev_reloc_op_frag): New variable.
2598 (macro): Check it to decide whether a new frag is needed.
2599 (my_getSmallExpression): Set it.
2601 2003-02-20 jmc <jmc@prioris.mini.pw.edu.pl>
2603 * cgen.c: Fix typo: intial -> initial.
2605 2003-02-19 Jie Zhang <zhangjie@magima.com.cn>
2607 * app.c (do_scrub_chars): Handle '||' in two states.
2609 2003-02-13 Alan Modra <amodra@bigpond.net.au>
2611 * write.c (TC_FORCE_RELOCATION_SUB_SAME): Revert last change.
2612 * config/tc-s390.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
2614 2003-02-11 Uwe Stieber <uwe@wwws.de>
2616 * configure.in: Add support for kaOS as cross build target system.
2617 * configure: Regenerated.
2619 2003-02-10 Nick Clifton <nickc@redhat.com>
2621 * config/tc-arm.c (md_begin): If the Maverick co-processor is
2622 selected, set the EF_ARM_MAVERICK_FLOAT flag and
2623 bfd_mach_arm_ep9312 machine number.
2625 2003-02-08 Richard Sandiford <rsandifo@redhat.com>
2627 * config/tc-mips.c (reloc_needs_lo_p): New function.
2628 (fixup_has_matching_lo_p): New function.
2629 (append_insn): Use reloc_needs_lo_p to check whether a relocation
2630 might need a matching %lo(). Reuse the head of mips_hi_fixup_list
2631 if that fixup already has a matching %lo(). Don't call frag_wane here.
2632 (macro): Call frag_wane here if the last unmatched hi was in the
2634 (pic_need_relax): New function, split out from...
2635 (md_estimate_size_before_relax): ...here.
2636 (mips_frob_file): Use reloc_needs_lo_p. Use pic_need_relax to test
2637 whether BFD_RELOC_MIPS_GOT16 fixups refer to global symbols.
2639 2003-02-07 Richard Sandiford <rsandifo@redhat.com>
2641 * config/tc-mips.c (my_getSmallExpression): Rework bracket handling.
2643 2003-02-06 Alan Modra <amodra@bigpond.net.au>
2645 * config/tc-ppc.c (ppc_elf_suffix): Undo part of last change so that
2648 2003-02-05 Alan Modra <amodra@bigpond.net.au>
2650 * config/tc-ppc.c (mapping): Handle new TLS reloc specs.
2651 (ppc_elf_suffix): Don't warn for x+off@got when ppc64 and don't
2652 accept x@got+off etc.
2653 (md_assemble): Handle TLS relocs.
2654 (ppc_force_relocation): Force for all TLS relocs.
2655 (ppc_fix_adjustable): Likewise.
2656 (md_apply_fix3): Handle TLS relocs.
2658 2003-02-04 Alan Modra <amodra@bigpond.net.au>
2660 * config/obj-elf.c (obj_elf_change_section): Set SEC_LINK_ONCE and
2661 SEC_LINK_DUPLICATES_DISCARD directly rather than using elf_linkonce_p.
2663 2003-02-02 Richard Sandiford <rsandifo@redhat.com>
2665 * config/tc-mips.c (enum small_ex_type): Remove.
2666 (imm_unmatched_hi): Remove.
2667 (md_assemble): Remove use of imm_unmatched_hi. Remove the last
2668 argument from calls to append_insn.
2669 (append_insn): Remove unmatched_hi parameter; check reloc_type[0]
2671 (macro_build): Update append_insn calls.
2672 (mips16_macro_build, macro_build_lui): Likewise.
2673 (mips_ip): Rework handling of small expressions. Move explicit
2674 relocation handling into my_getSmallExpression. Assume that the
2675 value of 'o' operands is zero if there is only one bracketed
2677 (percent_op): Make constant. Record the BFD relocation code
2678 associated with each operator.
2679 (my_getSmallParser, my_getPercentOp): Remove.
2680 (parse_relocation): New function.
2681 (my_getSamllExpression): Rework. Fill in relocations here
2682 rather than in mips_ip.
2684 2003-01-29 Nick Clifton <nickc@redhat.com>
2686 * config/tc-i386.c (line_comment_chars): Add '#'. This makes the
2687 assembler's handling of # <linenum> "<filename>" directives work.
2689 2003-01-28 Jakub Jelinek <jakub@redhat.com>
2691 * dwarf2dbg.c: Include filenames.h.
2692 (struct file_entry): Make filename const char *.
2693 (dirs, dirs_in_use, dirs_allocated): New variables.
2694 (get_filenum): Add NUM argument. Build directory table.
2695 (dwarf2_where): Adjust caller.
2696 (dwarf2_directive_file): Use get_filenum to allocate
2697 slot in file and directory tables.
2698 (dwarf2_directive_loc): Recreate full filename from
2699 directory and filename part if needed for listing.
2700 (out_file_list): Output directory table.
2701 Output main source file dirname before its filename.
2703 2003-01-28 Dmitry Diky <diwil@mail.ru>
2705 * config/tc-msp430.c: Replace occurences of 'tolower' with
2708 2003-01-27 David Mosberger <davidm@hpl.hp.com>
2710 * config/tc-ia64.c (dot_vframesp): Correct error message.
2711 (dot_vframepsp): Ditto.
2713 2003-01-27 Alexandre Oliva <aoliva@redhat.com>
2715 * configure.in (em): Set to irix on all Irix systems.
2716 * configure: Rebuilt.
2717 * config/te-irix.h: New file.
2718 * config/tc-mips.c (mips_dwarf2_format): Use TE_IRIX to decide
2719 whether to use Irix-specific 64-bit format.
2721 2003-01-27 Martin Schwidefsky <schwidefsky@de.ibm.com>
2723 * config/tc-s390.c (s390_elf_cons): Avoid designated initializers.
2725 2003-01-25 Jakub Jelinek <jakub@redhat.com>
2727 * config/tc-sparc.c (sparc_ip): Handle TLS % operators.
2728 (tc_gen_reloc): Handle TLS relocs.
2729 (sparc_cons, cons_fix_new_sparc): Handle %r_tls_dtpoff.
2730 * config/tc-sparc.h (tc_fix_adjustable): Don't adjust TLS
2732 * config/obj-elf.c (obj_elf_section_word): Handle tls.
2733 (obj_elf_type): Handle tls_object.
2735 2003-01-24 Martin Schwidefsky <schwidefsky@de.ibm.com>
2737 * config/tc-s390.c (s390_tls_suffix): New function.
2738 (elf_suffix_type): Add suffix enums for TLS relocations.
2739 (s390_elf_suffix): Add suffix strings for TLS relocations.
2740 (s390_elf_cons): Map new lenght/elf suffix combinations for TLS to
2742 (md_gather_operands): Map new instruction operand/elf suffix
2743 combinations for TLS to bfd relocations.
2744 (tc_s390_fix_adjustable): Add new TLS relocations.
2745 (tc_s390_force_relocation): Likewise.
2746 (md_apply_fix3): Likewise.
2748 2003-01-24 Alan Modra <amodra@bigpond.net.au>
2750 * as.h: Update copyright date.
2751 * symbols.c: Likewise.
2752 * config/tc-d10v.h: Likewise.
2753 * config/tc-fr30.h: Likewise.
2754 * config/tc-i960.h: Likewise.
2755 * config/tc-mips.h: Likewise.
2757 * config/tc-hppa.h (DIFF_EXPR_OK): Define.
2758 (MD_APPLY_SYM_VALUE): Move.
2760 2003-01-23 Nick Clifton <nickc@redhat.com>
2762 * NEWS: Announce sh2e support.
2765 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
2766 * config/tc-sh.c (md_show_usage): Added sh2e next to sh3e.
2767 (sh_elf_final_processing): Handle arch_sh2e.
2769 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2771 * symbols.c (S_FORCE_RELOC): Add "strict" param.
2772 * symbols.h (S_FORCE_RELOC): Likewise.
2773 * config/obj-aout.h (S_FORCE_RELOC): Likewise.
2774 * config/obj-bout.h (S_FORCE_RELOC): Likewise.
2775 * config/obj-coff.h (S_FORCE_RELOC): Likewise.
2776 * config/obj-ieee.h (S_FORCE_RELOC): Likewise.
2777 * config/obj-vms.h (S_FORCE_RELOC): Likewise.
2778 * write.c (generic_force_reloc): New function.
2779 (TC_FORCE_RELOCATION): Use it here instead of S_FORCE_RELOC.
2780 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2781 (adjust_reloc_syms): Adjust S_FORCE_RELOC call.
2782 * as.h (generic_force_reloc): Declare.
2783 * doc/internals.texi (S_FORCE_RELOC): Update.
2784 (TC_FORCE_RELOCATION_SUB_SAME): Update.
2786 * config/tc-alpha.c (alpha_force_relocation): Adjust to use
2787 generic_force_reloc.
2788 (alpha_fix_adjustable): Likewise.
2789 * config/tc-arm.c (arm_force_relocation): Likewise.
2790 * config/tc-cris.c (md_cris_force_relocation): Likewise.
2791 * config/tc-frv.c (frv_force_relocation): Likewise.
2792 * config/tc-i386.c (md_apply_fix3): Likewise.
2793 * config/tc-ia64.c (ia64_force_relocation): Likewise.
2794 * config/tc-ip2k.c (ip2k_force_relocation): Likewise.
2795 * config/tc-m32r.c (m32r_force_relocation): Likewise.
2796 * config/tc-m68hc11.c (tc_m68hc11_force_relocation): Likewise.
2797 * config/tc-mcore.c (mcore_force_relocation): Likewise.
2798 * config/tc-mips.c (mips_force_relocation): Likewise.
2799 * config/tc-mmix.c (mmix_force_relocation): Likewise.
2800 * config/tc-ppc.c (ppc_force_relocation): Likewise.
2801 * config/tc-s390.c (tc_s390_force_relocation): Likewise.
2802 * config/tc-sh.c (sh_force_relocation): Likewise.
2803 (md_pcrel_from_section): Likewise.
2804 * config/tc-sparc.c (tc_gen_reloc): Likewise.
2805 * config/tc-v850.c (v850_force_relocation): Likewise.
2806 * config/tc-xstormy16.c (xstormy16_force_relocation): Likewise.
2807 * config/tc-i386.h (TC_FORCE_RELOCATION): Likewise.
2808 * config/tc-mcore.h (TC_FORCE_RELOCATION): Likewise.
2809 * config/tc-sparc.h (tc_fix_adjustable): Likewise.
2811 * config/tc-d10v.c (d10v_force_relocation): Delete.
2812 * config/tc-d10v.h (TC_FORCE_RELOCATION): Don't define.
2813 * config/tc-dlx.c (md_dlx_force_relocation): Delete.
2814 * config/tc-dlx.h (TC_FORCE_RELOCATION): Don't define.
2815 * config/tc-fr30.c (fr30_force_relocation): Delete.
2816 * config/tc-fr30.h (TC_FORCE_RELOCATION): Don't define.
2817 * config/tc-mn10300.c (mn10300_force_relocation): Delete.
2818 * config/tc-mn10300.h (TC_FORCE_RELOCATION): Don't define.
2819 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2820 * config/tc-i960.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2821 * config/tc-hppa.c (hppa_force_relocation): Adjust S_FORCE_RELOC call.
2822 * config/tc-mips.c (RELAX_BRANCH_TOOFAR): Warning fix.
2823 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Don't define.
2824 * config/tc-openrisc.c (openrisc_force_relocation): Delete.
2825 * config/tc-openrisc.h (TC_FORCE_RELOCATION): Don't define.
2826 * config/tc-sparc.c (elf32_sparc_force_relocation): Delete.
2827 * config/tc-sparc.h (TC_FORCE_RELOCATION): Don't define for ELF.
2828 * config/tc-i386.c (i386_force_relocation): Delete.
2829 * config/tc-i386.h (TC_FORCE_RELOCATION): Don't define for
2831 (EXTERN_FORCE_RELOC): Fix TE_PE and STRICT_PE_FORMAT nesting.
2832 * config/tc-m68k.h (TC_FORCE_RELOCATION): Don't define.
2833 * config/tc-pj.h (TC_FORCE_RELOCATION): Don't define.
2834 * config/tc-sh.h (TC_FORCE_RELOCATION_SUB_ABS): Don't call
2836 (TC_FORCE_RELOCATION_SUB_SAME): Test TC_FORCE_RELOCATION too.
2837 * config/tc-sh64.h (TC_FORCE_RELOCATION_SUB_SAME): Likewise.
2839 2003-01-23 Alan Modra <amodra@bigpond.net.au>
2841 * config/tc-sh64.c (shmedia_frob_section_type): Adjust for changed
2842 sh64_elf_section_data.
2843 * config/tc-sh64.h: Include elf32-sh64.h.
2844 * config/tc-m68hc11.c: Don't include stdio.h.
2845 (md_show_usage): Fix missing continuation.
2846 * Makefile.am: Run "make dep-am".
2847 * Makefile.in: Regenerate.
2849 2003-01-22 Nick Clifton <nickc@redhat.com>
2851 * as.h: Include fopen-bin.h not fopen-same.h for mingw32 hosts.
2853 2003-01-21 Fabio Alemagna <falemagn@aros.org>
2855 * configure.in: Handle *-*-aros*.
2856 * configure: Regenerated from configure.in.
2858 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2860 * config/tc-s390.c (elf_suffix_type): Add suffix enums for gotoff,
2861 gotplt and pltoff relocations.
2862 (s390_elf_suffix): Add suffix strings for gotoff, gotplt and pltoff.
2863 (s390_elf_cons): Map new lenght/elf suffix combinations for gotoff,
2864 gotplt and pltoff to bfd relocations.
2865 (md_gather_operands): Map new instruction operand/elf suffix
2866 combinations to bfd relocations.
2867 (tc_s390_fix_adjustable): Add new gotoff, gotplt and pltoff relocations
2868 to the list of unadjustable relocations.
2869 (tc_s390_force_relocation): Always emit relocations for gotoff, gotplt
2870 and pltoff relocations.
2871 (md_apply_fix3): Add the new relocations.
2873 2003-01-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
2875 * config/tc-s390.c (md_apply_fix3): Emit error message for relocations
2876 with a subsy symbol.
2878 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2880 * config/tc-m68hc11.c (tc_m68hc11_fix_adjustable): Prevent adjustment
2881 of relocs for memory bank addressing.
2883 2003-01-17 Stephane Carrez <stcarrez@nerim.fr>
2885 * config/tc-m68hc11.c (md_show_usage): Update usage.
2886 (md_parse_option): Recognize -m68hcs12.
2887 (m68hc11_elf_final_processing): Set EF_M68HCS12_MACH flag to identify
2889 * doc/as.texinfo (Overview): Document new option -m68hcs12.
2891 2003-01-16 Jakub Jelinek <jakub@redhat.com>
2893 * config/tc-ia64.c (ia64_cons_fix_new): Handle @dtprel() in data.
2895 2003-01-16 Alan Modra <amodra@bigpond.net.au>
2897 * Makefile.am: Run "make dep-am".
2898 * Makefile.in: Regenerate.
2899 * po/POTFILES.in: Regenerate.
2901 2003-01-11 Alan Modra <amodra@bigpond.net.au>
2903 * read.c (get_absolute_expr): New, split out from..
2904 (get_absolute_expression): ..here.
2905 * read.h (get_absolute_expr): Declare.
2906 * config/obj-elf.c (elf_common): Use offsetT for "temp" and "size".
2907 Trim size to arch bits_per_address, and test for negative input
2908 via get_absolute_expr.
2910 2003-01-07 DJ Delorie <dj@redhat.com>
2912 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Adjust value based
2914 (xstormy16_md_apply_fix3): Use adjustment.
2916 2003-01-02 Ben Elliston <bje@redhat.com>
2918 * configure.in: Add iq2000-elf target.
2919 * configure: Regenerate.
2920 * config/tc-iq2000.c: New file.
2921 * config/tc-iq2000.h: Likewise.
2922 * po/gas.pot: Regenerate.
2924 2003-01-02 Chris Demetriou <cgd@broadcom.com>
2926 * config/tc-mips.c: Update copyright years to include 2003.
2927 (mips_ip): Fix indentation of "+A", "+B", and "+C" handling.
2928 Additionally, clean up their code slightly and clean up their
2931 * doc/c-mips.texi: Add MIPS32r2 to ".set mipsN" documentation.
2933 2003-01-01 Daniel Jacobowitz <drow@mvista.com>
2935 * doc/Makefile.am (as.1): Depend on "asconfig.texi gasver.texi
2937 * doc/Makefile.in: Regenerate.
2939 2003-01-01 John David Anglin <dave.anglin@nrc.ca>
2941 * config/obj-elf.c (special_sections): Work around HP's incorrect usage
2942 of .init and .fini sections for array initializers and finalizers.
2944 2002-12-31 Chris Demetriou <cgd@broadcom.com>
2946 * config/tc-mips.c (validate_mips_insn, mips_ip): Recognize
2947 the "+D" operand, which will be used only by the disassembler.
2949 2002-12-30 Chris Demetriou <cgd@broadcom.com>
2951 * configure.in: Recognize mipsisa32r2, mipsisa32r2el, and
2953 * configure: Regenerate.
2954 * config/tc-mips.c (ISA_HAS_DROR, ISA_HAS_ROR): New defines.
2955 (macro_build): Handle "K" operand.
2956 (macro2): Use ISA_HAS_DROR and ISA_HAS_ROR in the places where
2957 CPU_HAS_DROR and CPU_HAS_ROR are currently used.
2958 (mips_ip): New variable "lastpos", and implement "+A", "+B",
2959 and "+C" operands for MIPS32 Release 2 ins/ext instructions.
2960 Implement "K" operand for MIPS32 Release 2 rdhwr instruction.
2961 (validate_mips_insn): Implement "+" as a way to extend the
2962 allowed operands, and implement "K", "+A", "+B", and "+C"
2964 (OPTION_MIPS32R2): New define.
2965 (md_longopts): Add entry for OPTION_MIPS32R2.
2966 (OPTION_ELF_BASE): Adjust to accommodate OPTIONS_MIPS32R2.
2967 (md_parse_option): Handle OPTION_MIPS32R2.
2968 (s_mipsset): Reimplement handling of ".set mipsN" options
2969 and add support for ".set mips32r2".
2970 (mips_cpu_info_table): Add entry for "mips32r2" (MIPS32 Release 2).
2971 (md_show_usage): Document "-mips32r2" option.
2972 * doc/as.texinfo: Document "-mips32r2" option.
2973 * doc/c-mips.texi: Likewise.
2975 2002-12-30 Dmitry Diky <diwil@mail.ru>
2977 * configure.in: Add msp430 target.
2978 * configure: Regenerate.
2979 * Makefile.am: Add msp430 target.
2980 * Makefile.in: Regenerate.
2981 * config/tc-msp430.c: New file: msp430 assembler.
2982 * config/tc-msp430.h: New file: target macros for msp430.
2983 * doc/Makefile.am: Add msp430 target.
2984 * doc/Makefile.in: Regenerate.
2985 * doc/as.texinfo: Include msp430 documenation.
2986 * doc/all.texi: Enable msp430 documentation.
2987 * doc/c-msp430.texi: New file: document msp430 specific features
2990 2002-12-25 Alexandre Oliva <aoliva@redhat.com>
2992 * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.
2993 (dwarf2_finish): Use it.
2994 * doc/internals.texi (DWARF2_ADDR_SIZE): Document it.
2995 * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2997 2002-12-20 DJ Delorie <dj@redhat.com>
2999 * config/tc-xstormy16.c (md_cgen_lookup_reloc): Support
3000 BFD_RELOC_XSTORMY16_12.
3002 2002-12-19 Alan Modra <amodra@bigpond.net.au>
3004 * doc/as.texinfo (Invoking): Typo fix.
3005 * config/tc-tic54x.c (encode_operand): Comment typo fix.
3007 2002-12-18 Kazu Hirata <kazu@cs.umass.edu>
3009 * doc/c-alpha.texi: Fix typos.
3010 * doc/c-arm.texi: Likewise.
3011 * doc/c-d10v.texi: Likewise.
3012 * doc/c-i370.texi: Likewise.
3013 * doc/c-i960.texi: Likewise.
3014 * doc/c-ia64.texi: Likewise.
3015 * doc/c-mmix.texi: Likewise.
3016 * doc/c-ns32k.texi: Likewise.
3017 * doc/c-pdp11.texi: Likewise.
3018 * doc/c-pj.texi: Likewise.
3019 * doc/c-sh64.texi: Likewise.
3020 * doc/c-sparc.texi: Likewise.
3021 * doc/c-tic54x.texi: Likewise.
3022 * doc/c-v850.texi: Likewise.
3023 * doc/c-vax.texi: Likewise.
3024 * doc/internals.texi: Likewise.
3026 2002-12-18 Chris Demetriou <cgd@broadcom.com>
3028 * config/tc-mips.c (macro): In M_DROL, M_DROR, M_ROL, and M_ROR,
3029 use hardware rotate ops as appropriate. In M_DROL_I, M_DROR_I,
3030 M_ROL_I, and M_ROR_I, simplify code, clean up warnings, and
3031 arrange not to issue warnings about use of AT when AT is not
3034 2002-12-17 Nick Clifton <nickc@redhat.com>
3036 * as.c (std_longopts): Duplicate --keep-locals entry in order to
3037 prevent it being confused with -k.
3039 2002-12-16 Andrew MacLeod <amacleod@redhat.com>
3041 * config/tc-xstormy16.c (md_cgen_lookup_reloc): If a relocation
3042 has already been set up, use it.
3044 2002-12-16 Kazu Hirata <kazu@cs.umass.edu>
3046 * ChangeLog-9295: Fix a typo.
3048 * config/tc-d10v.c: Fix a comment typo.
3049 * config/tc-dlx.c: Likewise.
3050 * config/tc-h8300.h: Likewise.
3051 * config/tc-h8500.h: Likewise.
3052 * config/tc-mips.c: Likewise.
3053 * config/tc-s390.c: Likewise.
3054 * config/tc-sh.h: Likewise.
3055 * config/tc-tic80.h: Likewise.
3056 * config/tc-w65.h: Likewise.
3057 * config/tc-z8k.c: Likewise.
3058 * config/tc-z8k.h: Likewise.
3059 * testsuite/gas/h8300/cmpsi2.s: Likewise.
3061 2002-12-16 Alan Modra <amodra@bigpond.net.au>
3063 * config/tc-d30v.c (check_range): Warning fixes, formatting.
3064 Simplify sign extension. Remove redundant unsigned < 0 test.
3065 * config/tc-i960.c (md_ri_to_chars): Prototype.
3066 * config/tc-mcore.c (md_pseudo_table): Fix typo.
3067 (dump_literals): Init brarsym, and test later instead of isforce.
3069 * config/tc-ns32k.c (encode_operand): Constify operandsP and suffixP.
3070 (parse): Constify line and lineptr.
3071 (md_begin): Calculate endop here.
3073 2002-12-13 Alan Modra <amodra@bigpond.net.au>
3075 * config/obj-vms.c: Formatting. Include fnctl.h.
3076 (Create_VMS_Object_File): Fix creat call for sane unix systems.
3077 (Object_Record_Offset): Make it a size_t.
3078 (Flush_VMS_Object_Record_Buffer): Fix signed/unsigned warning.
3079 (VMS_TBT_Routine_End <Size>): Make var unsigned long.
3080 (VMS_Fix_Indirect_Reference <Offset>): Make arg addressT.
3081 (synthesize_data_segment <data_size>): Remove ATTRIBUTE_UNUSED.
3082 (vms_fixup_data_section <data_size>): Add here instead.
3083 * config/e-criself.c: Fix typo in last change.
3085 2002-12-13 Alan Modra <amodra@bigpond.net.au>
3087 * write.c (write_object_file): Fix signed/unsigned warning.
3088 * config/e-crisaout.c (crisaout_bfd_name): Prototype.
3089 * config/e-criself.c (criself_bfd_name): Prototype.
3090 * config/obj-aout.c (s_sect): Remove unused function.
3091 * config/obj-bout.c (obj_bout_line <ignore>): Add ATTRIBUTE_UNUSED.
3092 * config/obj-coff.c (coff_last_bf): Don't declare for OBJ_XCOFF.
3093 (fixup_mdeps <h>): Add ATTRIBUTE_UNUSED.
3094 * config/obj-ecoff.c (ecoff_frob_file <addr>): Likewise.
3095 * config/obj-vms.c (setup_basic_type <spnt>): Likewise.
3096 (VMS_RSYM_Parse <Current_Routine>): Likewise.
3097 (vms_fixup_text_section <text_siz>): Likewise.
3098 (synthesize_data_segment <data_size>): Likewise.
3099 (vms_fixup_xtors_section <sect_no>): Likewise.
3100 (structure_count): Don't use implicit int type.
3101 * config/tc-a29k.c (insert_sreg): Prototype.
3102 (define_some_regs): Prototype, make static.
3103 (parse_operand): Likewise.
3104 (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
3105 (md_show_usage <stream>): Likewise.
3106 (md_section_align <segment>): Likewise.
3107 (md_convert_frag <all args>): Likewise.
3108 (md_estimate_size_before_relax <all args>): Likewise.
3109 (md_apply_fix3): Don't cast valP pointer type. Fix bogus >>='s.
3110 * config/tc-arm.c (arm_validate_fix): Only for OBJ_COFF or OBJ_ELF.
3111 * config/tc-d30v.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
3112 (md_undefined_symbol <name>): Likewise.
3113 (md_convert_frag <all args>): Likewise.
3114 (write_long <opcode>): Likewise.
3115 (tc_gen_reloc <seg>): Likewise.
3116 (md_estimate_size_before_relax <all args>): Likewise.
3117 (md_apply_fix3 <seg>): Likewise.
3118 (s_d30v_align <ignore>): Likewise.
3119 (build_insn): Correct format string.
3120 (md_apply_fix3): Likewise.
3121 * config/tc-fr30.c (md_parse_option <c,arg>): Add ATTRIBUTE_UNUSED.
3122 (md_undefined_symbol <name>): Likewise.
3123 (md_convert_frag <all args>): Likewise.
3124 (md_cgen_lookup_reloc <insn>): Likewise.
3125 (md_begin): Delete unused vars.
3126 (md_assemble): Likewise.
3127 (md_estimate_size_before_relax): Likewise.
3128 (fr30_relax_frag): #if 0 out, seems unused.
3129 (md_atof): Remove declaration of atof_ieee.
3130 (restore_colon): Prototype.
3131 * config/tc-frv.c (frv_insert_vliw_insn): Prototype.
3132 (frv_find_in_vliw): Likewise.
3133 (frv_debug_tomcat): Likewise.
3134 (frv_adjust_vliw_count): Likewise.
3135 (frv_tomcat_shuffle): Likewise.
3136 (frv_tomcat_analyze_vliw_chains): Likewise. Correct args to
3137 frv_find_in_vliw call.
3138 (md_atof): Remove declaration of atof_ieee.
3139 * config/tc-h8500.c (cons): Delete declaration.
3140 (md_begin <opcode>): Constify.
3141 (displacement_size, immediate_size, absolute_size): Remove.
3142 (build_relaxable_instruction <operand>): Add ATTRIBUTE_UNUSED.
3143 (tc_crawl_symbol_chain <headers>): Likewise.
3144 (md_undefined_symbol <name>): Likewise.
3145 (tc_headers_hook <headers>): Likewise.
3146 (md_parse_option <c,arg>): Likewise.
3147 (md_show_usage <stream>): Likewise.
3148 (md_convert_frag <headers, seg>): Likewise.
3149 (tc_coff_symbol_emit_hook <ignore>): Likewise.
3150 (md_atof): Remove declaration of atof_ieee.
3151 (tc_aout_fix_to_chars): Remove unused function.
3152 (parse_reg): Prototype.
3153 (parse_exp): Prototype.
3154 (skip_colonthing): Prototype. Use &&, not & in logical expressions.
3155 (parse_reglist): Prototype.
3156 (get_operand): Prototype.
3157 (get_operands): Prototype.
3158 (get_specific): Prototype. Make "this_index" signed.
3159 (check): Prototype, make static.
3161 (build_relaxable_instruction): Prototype, make static.
3162 (build_bytes): Prototype.
3163 (wordify_scb): Prototype.
3164 * config/tc-h8500.h (start_label): Declare.
3165 (tc_coff_sizemachdep): Declare.
3166 * config/tc-i370.c (i370_ebcdic <unused>): Add ATTRIBUTE_UNUSED.
3167 (i370_rmode <unused>): Likewise.
3168 (i370_csect <unused>): Likewise.
3169 (i370_dc <unused>): Likewise.
3170 (i370_ds <unused>): Likewise.
3171 (i370_elf_lcomm <unused>): Likewise.
3172 (i370_ltorg <ignore>): Likewise.
3173 (i370_using <ignore>): Likewise.
3174 (i370_drop <ignore>): Likewise.
3175 (i370_byte <ignore>): Likewise.
3176 (i370_tc <ignore>): Likewise.
3177 (md_estimate_size_before_relax <fragp, seg>): Likewise.
3178 (md_convert_frag <all args>): Likewise.
3179 (md_undefined_symbol <name>): Likewise.
3180 (md_pcrel_from_section <sec>): Likewise.
3181 (tc_gen_reloc <seg>): Likewise.
3182 (i370_section_letter): #if 0 unused functions.
3183 (i370_section_word, i370_section_type, i370_section_flags): Likewise.
3184 (symbol_locate): Prototype.
3185 * config/tc-i860.c (md_atof): Remove declaration of atof_ieee.
3186 (md_number_to_disp, md_number_to_field): Remove.
3187 (md_apply_fix3): Correct format string and cast "fup".
3188 * config/tc-i960.c (md_convert_frag): Add ATTRIBUTE_UNUSED to args.
3189 (s_endian <ignore>): Likewise.
3190 (md_undefined_symbol <name>): Likewise.
3191 (tc_crawl_symbol_chain <headers>): Likewise.
3192 (tc_set_bal_of_call): Likewise.
3193 (tc_coff_symbol_emit_hook <symbolP>): Likewise.
3194 (i960_handle_align <fragp>): Likewise.
3195 (i960_validate_fix <this_segment_type>): Likewise
3196 (tc_gen_reloc <section>): Likewise.
3197 (tc_coff_symbol_emit_hook): Only define for OBJ_COFF.
3198 (struct memS, struct regop): Forward declare.
3199 (brcnt_emit, brlab_next, cobr_fmt, ctrl_fmt, emit, get_args,
3200 get_cdisp, get_ispec, get_regnum, i_scan, mem_fmt, mema_to_memb,
3201 parse_expr, parse_ldconst, parse_memop, parse_po, parse_regop,
3202 reg_fmt, relax_cobr, s_leafproc, s_sysproc, shift_ok, syntax,
3203 targ_has_sfr, targ_has_iclass, tc_bfd_fix2rtype): Prototype.
3204 (md_chars_to_number, md_number_to_imm): Make static, prototype.
3205 (md_number_to_field): Likewise.
3206 (md_number_to_disp): Remove unused function.
3207 (md_atof): Remove declaration of atof_ieee.
3208 (md_apply_fix3): Correct md_number_to_imm call.
3209 * config/tc-ip2k.c (md_assemble): Warning fix.
3210 * config/tc-m32r.c (md_parse_option <arg>): Add ATTRIBUTE_UNUSED.
3211 (fill_insn <ignore>): Likewise.
3212 (debug_sym <ignore>): Likewise.
3213 (md_undefined_symbol <name>): Likewise.
3214 (m32r_scomm <ignore>): Likewise.
3215 (md_convert_frag <abfd>): Likewise.
3216 (md_cgen_lookup_reloc <insn>): Likewise.
3217 (m32r_record_hi16 <seg>): Likewise.
3218 (md_estimate_size_before_relax): #if 0 old_fr_fix.
3219 (allow_m32rx): Prototype.
3220 (first_writes_to_seconds_operands): Prototype.
3221 (writes_to_pc): Prototype.
3222 (can_make_parallel): Prototype.
3223 (make_parallel): Prototype.
3224 (target_make_parallel): Prototype.
3225 (assemble_two_insns): Prototype.
3226 (m32r_record_hi16): Prototype.
3227 (md_atof): Remove declaration of atof_ieee.
3228 * config/tc-m32r.h (m32r_fix_adjustable): Declare.
3229 (m32r_force_relocation): Prototype.
3230 (m32r_elf_section_change_hook): Prototype.
3231 * config/tc-m68k.c (tc_gen_reloc <section>): Add ATTRIBUTE_UNUSED.
3232 (md_show_usage): Fix signed/unsigned warning.
3233 * config/tc-m88k.c (get_reg): Make reg_prefix param unsigned.
3234 (calcop): Ditto for reg_prefix var.
3235 (hexval): Add cast to fix signed/unsigned warning.
3236 (md_number_to_disp): Delete unused function.
3237 (md_number_to_field): Likewise.
3238 (float_cons, cons, s_globl, s_space, s_set, s_lcomm): Remove decl.
3239 (match_name): Prototype.
3240 (get_bf2): Prototype.
3241 (get_bf_offset_expression): Prototype.
3242 * config/tc-mcore.c (mcore_s_literals <ignore>): Add ATTRIBUTE_UNUSED.
3243 (md_undefined_symbol <ignore>): Likewise.
3244 (md_create_short_jump <all args>): Likewise.
3245 (md_create_long_jump <all args>): Likewise.
3246 (md_convert_frag <abfd, sec>): Likewise.
3247 (md_apply_fix3 <segment>): Likewise.
3248 (md_section_align <segment>): Likewise.
3249 (md_pcrel_from_section <sec>): Likewise.
3250 (tc_gen_reloc <section>): Likewise.
3251 (reg_m, reg_n, immediate): Delete unused vars.
3252 (dump_literals): Fix signed/unsigned warning.
3253 (enter_literal): Likewise.
3254 (parse_imm): Likewise. Also fix format string.
3255 (parse_mem): Remove unused var.
3256 (md_assemble <LS>): Abort on unexpected inst.
3257 (md_atof): Remove declaration of atof_ieee.
3258 (md_parse_option): Remove unused vars.
3259 (md_apply_fix3): Fix format strings, cast args.
3260 (tc_gen_reloc): Delete unused var.
3261 * config/tc-mcore.h (tc_coff_sizemachdep): Declare.
3262 * config/tc-mn10200.c (md_parse_option <c, arg>): Add ATTRIBUTE_UNUSED.
3263 (md_undefined_symbol <name>): Likewise.
3264 (md_convert_frag <abfd>): Likewise.
3265 (tc_gen_reloc <seg>): Likewise.
3266 (check_operand <insn>): Likewise.
3267 (md_convert_frag): Fix format strings.
3268 (tc_gen_reloc): Delete fx_addsy - fx_subsy code.
3269 * config/tc-openrisc.c (ignore_pseudo): Prototype.
3270 (md_atof): Remove declaration of atof_ieee.
3271 * config/tc-or32.c (parse_operand): Prototype non-BFD too.
3272 (md_apply_fix3): Fix bogus >>='s.
3273 (md_undefined_symbol): Delete unused var.
3274 * config/tc-pj.c (little, big, parse_exp_save_ilp): Prototype.
3275 (c_to_r, ipush_code, fake_opcode, alias): Likewise.
3276 (fake_opcode): Adjust for pj_opc_int_t change.
3277 (md_begin): Likewise.
3278 (md_assemble): Likewise.
3279 (ipush_code): Correct parse_exp_save_ilp call. Test pending_reloc
3280 instead of non-existent third arg of parse_exp_save_ilp.
3281 (md_parse_option): Correct "little" and "big" calls.
3282 * config/tc-sparc.c (s_register): Only declare #ifdef OBJ_ELF.
3283 (md_apply_fix3 <segment>): Add ATTRIBUTE_UNUSED.
3284 (tc_gen_reloc <section>): Likewise.
3285 * config/tc-tic30.c: #include stdarg.h or varargs.h.
3286 (debug): Rewrite using VA_* macros.
3287 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED to args.
3288 (md_convert_frag): Likewise.
3289 (md_parse_option): Likewise.
3290 (md_show_usage): Likewise.
3291 (md_undefined_symbol): Likewise.
3292 (tc_gen_reloc): Likewise.
3293 (md_operand): Likewise.
3294 (tc_aout_pre_write_hook): Delete.
3295 (struct tic30_insn): Make "operands" unsigned.
3296 (struct tic30_par_insn): Likewise.
3297 (md_assemble): Likewise for "count", "i" and "numops".
3298 (tic30_parallel_insn): Likewise for vars here.
3299 (tic30_operand): Likewise. Remove useless unsigned >= 0 comparison.
3300 * config/tc-tic30.h (tc_aout_pre_write_hook): Define as empty.
3301 * config/tc-tic80.c (obj_coff_section): Delete declaration.
3302 (md_estimate_size_before_relax): Add ATTRIBUTE_UNUSED on args.
3303 (md_undefined_symbol): Likewise.
3304 (md_parse_option): Likewise.
3305 (md_convert_frag): Likewise.
3306 (tc_coff_symbol_emit_hook): Likewise.
3307 (md_atof): Remove declaration of atof_ieee.
3308 (const_overflow): Warning fixes, tidy.
3309 (get_operands): Delete unused vars.
3310 (internal_error_a): Adjust format string to expect a long for arg.
3311 (find_opcode): Warning fixes, simplify.
3312 (build_insn): Cast internal_error_a arg.
3313 (md_begin): Likewise.
3314 (md_apply_fix3): Likewise.
3315 (md_assemble): Delete unused var.
3316 * config/tc-tic80.h (tc_coff_fix2rtype): Prototype.
3317 * config/tc-z8k.c (cons, obj_coff_section): Delete declarations.
3318 (whatreg, parse_reg, parse_exp): Make static, prototype.
3319 (checkfor, regword, regaddr, get_ctrl_operand): Prototype.
3320 (get_flags_operand, get_interrupt_operand, get_cc_operand): Likewise.
3321 (get_operand, get_operands, get_specific, newfix): Likewise.
3322 (apply_fix, build_bytes): Likewise.
3323 (md_atof): Remove declaration of atof_ieee.
3324 (tc_aout_fix_to_chars): Delete.
3325 (md_begin): Constify "opcode". Don't try to init opcode->idx.
3327 (md_parse_option): Fix s_segm and s_unseg calls.
3329 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3331 * tc-mips.c (RELAX_BRANCH_ENCODE): Remove reloc_s2 argument.
3333 (RELAX_BRANCH_RELOC_S2): Delete.
3334 (append_insn): Use only BFD_RELOC_16_PCREL_S2 for branches.
3335 Do not handle BFD_RELOC_16_PCREL.
3336 (macro_build, mips_ip): Likewise.
3337 (md_pcrel_from): Return 4 for undefined symbols regardless of
3339 (md_apply_fix3): Use only BFD_RELOC_16_PCREL_S2 for branches.
3340 Don't dereference howto if no such relocation is available.
3341 Do not apply hack for in-place zero addend in NEWABI.
3342 (md_convert_frag): Use only BFD_RELOC_16_PCREL_S2 for branches.
3344 2002-12-12 Alexandre Oliva <aoliva@redhat.com>,
3345 Alan Modra <amodra@bigpond.net.au>
3347 * config/tc-mn10300.h (TC_VALIDATE_FIX_SUB): Define.
3348 (TC_LINKRELAX_FIXUP): Add comments.
3350 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3352 * config/tc-mn10300.c (set_arch_mach): Change argument type to
3354 (r_register_name, xr_register_name): Add prototype declarations.
3356 2002-12-08 H.J. Lu <hjl@gnu.org>
3358 * config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
3359 copied from tc-i386.c.
3361 2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
3363 Fix Bug savannah/1825:
3364 * config/tc-m68hc11.c (STATE_INDEXED_PCREL): New relax code.
3365 (md_relax_table): Define specific relax for PC-rel offsets.
3366 (build_indexed_byte): Use a STATE_INDEXED_PCREL relax code.
3367 (m68hc11_relax_frag): Handle the new relax code.
3368 (md_convert_frag): Likewise.
3369 (md_estimate_size_before_relax): Likewise.
3371 2002-12-08 Alan Modra <amodra@bigpond.net.au>
3373 * subsegs.c (section_symbol): Use the symbol, not the section, name.
3375 2002-12-05 Richard Henderson <rth@redhat.com>
3377 * config/ia64.c (enum reloc_func): Add FUNC_LT_RELATIVE_X.
3378 (ia64_gen_real_reloc_type): Handle it.
3379 (pseudo_func): Add @ltoffx.
3380 (md_begin): Build .<ltoffx>.
3381 (ia64_force_relocation): True for LTOFF22X and LDXMOV.
3383 2002-12-05 Alan Modra <amodra@bigpond.net.au>
3385 * config/tc-arm.c (arm_force_relocation): Move out of #if OBJ_ELF.
3386 Move OBJ_COFF TC_FORCE_RELOCATION code here so that COFF handles
3387 ARM_IMMEDIATE and ARM_ADRL_IMMEDIATE relocs as for ELF.
3388 * config/tc-arm.h (TC_FORCE_RELOCATION): Define for both ELF and
3389 COFF to call arm_force_relocation.
3391 2002-12-04 David Mosberger <davidm@hpl.hp.com>
3393 * config/tc-ia64.c (pseudo_func): Add "@pause" constant for "hint"
3395 (emit_one_bundle): Handle "hint" instruction.
3396 (operand_match): Match IA64_OPND_AR_CSD.
3398 2002-12-04 Alan Modra <amodra@bigpond.net.au>
3400 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototype
3403 2002-12-03 Nick Clifton <nickc@redhat.com>
3405 * config/tc-ppc.c (ppc_cleanup): Do not set SEC_MERGE flag on
3406 .PPC.EMB.apuinfo sections.
3408 2002-12-03 Richard Henderson <rth@redhat.com>
3410 * config/tc-ia64.c (operand_match): Add IA64_OPND_LDXMOV case.
3412 2002-12-03 Alan Modra <amodra@bigpond.net.au>
3414 * config/tc-w65.c (s_longa): Prototype. Make static, specify int arg.
3415 (cons, s_align_bytes): Delete declaration.
3417 (md_begin): Constify "struct opinfo *" var. Don't try to make "name"
3419 (dot): Delete unused function.
3420 (w65_expression): Remove unused arg.
3421 (parse_exp): Prototype. Remove unused arg. Adjust w65_expression
3423 (get_operands): Prototype. Constify "struct opinfo *" arg. Fix
3425 (get_specific): Prototype. Constify "struct opinfo *" arg and return
3427 (check): Remove unused function.
3428 (build_Mytes): Prototype. Constify "struct opinfo *" arg. Abort
3429 on unhandled switch case.
3430 (md_assemble): Remove unused op_start, op_end, nlen, p vars. Constify
3432 (tc_crawl_symbol_chain): Delete unused function.
3433 (tc_headers_hook): Likewise.
3434 (tc_Nout_fix_to_chars): Likewise.
3435 (md_undefined_symbol): Add ATTRIBUTE_UNUSED.
3436 (md_parse_option): Likewise.
3437 (md_convert_frag): Likewise.
3438 (tc_coff_symbol_emit_hook): Likewise.
3439 (md_show_usage): Likewise.
3440 * config/tc-w65.h (tc_coff_sizemachdep): Declare.
3441 (TC_PARSE_CONS_EXPRESSION): w65_expression takes one arg.
3442 (w65_expression): Declare.
3444 * po/POTFILES.in: Regenerate.
3446 * config/tc-arm.c (arm_force_relocation): Return 0 for ARM_IMMEDIATE
3447 and ARM_ADRL_IMMEDIATE.
3449 2002-12-02 Nick Clifton <nickc@redhat.com>
3451 * gasp.c: Delete. It has been deprecated.
3452 * NEWS: Mention that gasp has been removed.
3453 * Makefile.am: Remove references to gasp.
3454 * makefile.vms: Likewise.
3455 * mpw-make.sed: Likewise.
3456 * Makeile.in: Regenerate.
3457 * doc/gasp.texi: Delete.
3458 * doc/Makefile.am: Remove references to gasp.texi.
3459 * doc/Makefile.in: Regenerate.
3460 * macro.c: Delete references to gasp.
3461 Remove use of comment_char function parameter as it is no longer
3463 * macro.h: Update prototypes to remove comment_char parameter.
3465 * read.c (read_a_source_file, s_irp): Remove comment_char
3466 parameter from invocation of functions in macro.c
3468 2002-12-02 Hans-Peter Nilsson <hp@axis.com>
3470 * read.c (emit_expr) [!WORKING_DOT_WORD]: Initialize x->use_jump.
3472 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3474 * config/tc-m68hc11.c (md_begin): Fix qsort warning.
3475 (tc_gen_reloc): Mark section param as not used.
3477 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3479 Fix Bug savannah/1825:
3480 * config/tc-m68hc11.h (md_relax_frag): Define to support relaxations
3481 that are not pc-relative.
3482 (m68hc11_relax_frag): Declare.
3484 * config/tc-m68hc11.c (build_indexed_byte): Use a frag_var to handle
3485 the offsetable indexed addressing modes (n,r).
3486 (build_insn): Cleanup some locals.
3487 (m68hc11_relax_frag): New function imported from tc-cris.c to handle
3488 relaxation of difference between two symbols of same section.
3489 (md_convert_frag): For INDEXED_OFFSET relaxs, use the displacement
3490 only when this is a PC-relative operand and the offset is not absolute.
3491 (md_estimate_size_before_relax): Convert the INDEXED_OFFSET,UNDEF frag
3492 to INDEXED_OFFSET,STATE_BITS5 when the symbol is absolute; this will
3493 be handled by m68hc11_relax_frag.
3495 2002-12-01 Stephane Carrez <stcarrez@nerim.fr>
3497 * config/tc-m68hc11.c (elf_flags): Set default ABI to gcc default
3498 (32-bit int, 64-bit double).
3499 (md_longopts): New options -mshort, -mlong, -mshort-double and
3500 -mlong-double to control the ABI.
3501 (md_show_usage): Update.
3502 (md_parse_option): Handle new options.
3503 * doc/as.texinfo (Overview): Document new options for HC11/HC12.
3505 2002-12-01 Nathan Sidwell <nathan@codesourcery.com>
3507 * symbols.c (report_op_error): New function, broken out of ...
3508 (resolve_symbol_value): ... here. Use for both monadic and dyadic
3511 2002-11-30 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3513 * config/tc-sh.c (md_apply_fix3): Take account of fx_offset
3514 for BFD_RELOC_32_PLT_PCREL.
3516 2002-11-30 Alan Modra <amodra@bigpond.net.au>
3518 * dwarf2dbg.c, write.c, config/obj-aout.c, config/obj-coff.c,
3519 config/obj-ecoff.c, config/obj-elf.c, config/obj-som.c,
3520 config/tc-arm.c, config/tc-arm.h, config/tc-avr.c, config/tc-cris.c,
3521 config/tc-d10v.c, config/tc-d10v.h, config/tc-d30v.c, config/tc-d30v.h,
3522 config/tc-dlx.c, config/tc-dlx.h, config/tc-fr30.c, config/tc-fr30.h,
3523 config/tc-frv.c, config/tc-frv.h, config/tc-hppa.c, config/tc-i370.c,
3524 config/tc-i386.c, config/tc-i386.h, config/tc-m32r.c,
3525 config/tc-m68hc11.c, config/tc-mcore.c, config/tc-mcore.h,
3526 config/tc-mips.c, config/tc-mips.h, config/tc-mn10200.c,
3527 config/tc-mn10300.c, config/tc-mn10300.h, config/tc-openrisc.c,
3528 config/tc-openrisc.h, config/tc-ppc.c, config/tc-s390.c,
3529 config/tc-sh.c, config/tc-sh.h, config/tc-sh64.c, config/tc-tic54x.c,
3530 config/tc-v850.c, config/tc-v850.h, config/tc-xstormy16.c,
3531 config/tc-xstormy16.h: Replace boolean with bfd_boolean, true with
3532 TRUE, false with FALSE. Simplify comparisons of bfd_boolean vars with
3533 TRUE/FALSE. Formatting.
3535 2002-11-29 Nick Clifton <nickc@redhat.com>
3537 * config/tc-arm.c (do_t_bkpt): If no operand is specified,
3538 assume a value of zero.
3539 (do_bkpt): Likewise.
3541 2002-11-29 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3543 * config/tc-sh.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3544 for TLS relocations.
3546 2002-11-29 Jakub Jelinek <jakub@redhat.com>
3548 * config/tc-ia64.c (md_apply_fix3): Add default case.
3550 2002-11-28 Jakub Jelinek <jakub@redhat.com>
3552 * symbols.c (S_SET_THREAD_LOCAL): New function.
3553 * symbols.h (S_SET_THREAD_LOCAL): New prototype.
3554 * config/tc-i386.c (md_apply_fix3): Call S_SET_THREAD_LOCAL
3555 for TLS relocations.
3556 * config/tc-ia64.c (md_apply_fix3): Likewise.
3557 * config/tc-alpha.c (md_apply_fix3): Likewise.
3559 2002-11-28 Jakub Jelinek <jakub@redhat.com>
3561 * write.c (subsegs_finish): For SEC_MERGE sections pad last fragment
3564 2002-11-26 DJ Delorie <dj@redhat.com.
3566 * dwarf2dbg.c (scale_addr_delta): New.
3567 (size_inc_line_addr): Use it.
3568 (emit_inc_line_addr): Use it.
3570 2002-11-26 Hans-Peter Nilsson <hp@axis.com>
3572 * config/tc-cris.c (cris_relax_frag): Fix typo in comment.
3573 (md_assemble): Don't pass on branches to constants as relaxable.
3576 2002-11-25 Svein E. Seldal <Svein.Seldal@solidas.com>
3578 * config/tc-tic4x.c (c4x_operands_match): Bugfix in direct mode
3580 2002-11-21 Randolph Chung <randolph@tausq.org>
3582 * config/tc-hppa.h (tc_frob_symbol): Frob undefined unused symbols
3583 only if they have default visibility.
3585 2002-11-21 Richard Henderson <rth@redhat.com>
3587 * config/tc-alpha.c (alpha_fix_adjustable): Remove redundant
3590 2002-11-21 Alan Modra <amodra@bigpond.net.au>
3592 * config/tc-mcore.c (mcore_pool_count): New function.
3593 (mcore_cons, mcore_float_cons, mcore_stringer, mcore_fill): Use it.
3595 2002-11-20 Klee Dienes <kdienes@apple.com>
3597 * config/tc-mcore.c (md_begin): Use a const iterator. Don't
3598 coalesce the name fields to use the same pointer.
3600 * config/tc-sh.c (md_begin): Use a const iterator. Don't coalesce
3601 the name fields to use the same pointer.
3602 (get_specific): Check for opcodes with the same name using strcmp
3603 as well as comparing the pointer.
3605 2002-11-20 Alan Modra <amodra@bigpond.net.au>
3607 * write.c (adjust_reloc_syms): Don't reduce SEC_MERGE fixups with
3610 2002-11-19 Richard Henderson <rth@redhat.com>
3612 * config/obj-elf.c (obj_elf_visibility): Overwrite only the
3613 visibility portion of st_other.
3615 2002-11-19 Klee Dienes <kdienes@apple.com>
3617 * config/tc-h8300.c (struct h8_instruction): New type, used to
3618 wrap h8_opcodes with length, noperands, idx, and size fields
3619 (computed at run-time).
3620 (h8_instructions): New variable.
3621 (md_begin): Allocate the storage for h8_instructions. Fill
3622 h8_instructions with pointers to the appropriate opcode and the
3623 correct value for the additional fields.
3624 (clever_message): Update to use h8_instructions instead of
3626 (build_bytes): Ditto.
3627 (get_specific): Ditto.
3628 (md_assemble): Ditto.
3630 2002-11-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
3632 * config/tc-s390.c (tc_s390_fix_adjustable): Re-add patch to prevent
3633 adjustments to symbols in merge sections.
3635 2002-11-19 Luke Deller <luked@cse.unsw.edu.au>
3637 * config/tc-alpha.c (s_alpha_prologue): as_bad when sym is NULL.
3639 2002-11-18 Kevin Buettner <kevinb@redhat.com>
3641 * dwarf2dbg.h (dwarf2_format): New enum.
3642 * dwarf2dbg.c (DWARF2_FORMAT): Provide default definition.
3643 (out_debug_line, out_debug_info): Add code for handling 64-bit
3645 * config/tc-mips.h (mips_dwarf2_format): Declare.
3646 * config/tc-mips.c (mips_dwarf2_format): New function.
3647 * doc/internals.texi (DWARF2_FORMAT): Document.
3649 2002-11-18 Alexandre Oliva <aoliva@redhat.com>
3651 * config/tc-mips.c (s_change_section): Make sure input buffer
3652 is not accessed past the end. Don't hand
3653 obj_elf_change_section a pointer into the input buffer.
3655 2002-11-18 Alexandre Oliva <aoliva@redhat.com>, Chris Demetriou <cgd@broadcom.com>
3657 * config/tc-mips.c (tc_gen_reloc): Fix typo in handling of
3660 2002-11-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3662 * config/tc-tic4x.c: Fixed proper commandline
3663 parameters. Added support for new opcode-list format. General
3664 error message fixups.
3665 (c4x_inst_add): Reject insn not for our CPU
3666 (md_begin): Added matrix for setting the proper opcode-level &
3667 device-flags according to cpu type and revision. Rewrite the
3669 (c4x_operand_parse): Fix opcode bug
3670 (c4x_operands_match): New function argument. Added dry-run
3671 mechanism, that is optional error generation. Added constraint 'i'
3673 (c4x_insn_check): Added new function for post-verification of the
3675 (md_assemble): Check all opcodes before croaking because of an
3676 argument mismatch. Need this to be able to fully support
3677 ortogonally arguments.
3678 (md_parse_options): Revised commandprompt swicthes and added new
3680 (md_show_usage): Complete rewrite of printout.
3682 2002-11-16 Svein E. Seldal <Svein.Seldal@solidas.com>
3684 * config/tc-tic4x.c: Remove c4x_pseudo_ignore function.
3685 (c4x_operands_match): Added check for 8-bits LDF insn. Give
3686 warning when using constant direct bigger than 2^16. Add the new
3689 2002-11-11 Christopher Faylor <cgf@redhat.com>
3691 * configure.in: Use .gdbinit under Cygwin.
3692 * configure: Regenerate.
3694 2002-11-11 Christopher Faylor <cgf@redhat.com>
3696 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define only if
3699 2002-11-11 Svein E. Seldal <Svein.Seldal@solidas.com>
3701 * config/tc-tic4x.c: Declare as many functions as possible as
3702 static. Maintenance on the general indenting. Removed unnecessary
3703 pseudo-ops and added new ones. Removed obsoleted c4x_pseudo_ignore
3704 function. Add support for new DSP, TMS320VC33. Fix bug for
3705 converting flonum constants.
3706 (c4x_do_align): Add proper align handling. Setup align to insert
3708 (c4x_gen_to_words): Support for extended TI type floats.
3709 (md_atof): Proper dumping of multiple-word littlenums.
3710 (c4x_atof): Added support for extended TI type floats.
3711 (c4x_stringer): Added new function to handle compact strings.
3712 (c4x_emit_char): Added new function argument to handle custom
3713 length inserts, like single-byte strings.
3714 * config/tc-tic4x.h: Add proper align handling with NOP's.
3715 * Makefile.am: Added tic4x dependecy
3716 * Makefile.in: Regenerate
3718 2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
3720 * macro.c (get_any_string): Correct logic for not going beyond end
3723 2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
3725 * config/tc-mmix.c (get_putget_operands): Mark both possible
3726 operands as invalid at beginning.
3728 * config/tc-mmix.c (md_convert_frag) <case STATE_GREG_DEF>:
3729 Initialize target of fixup to zero.
3731 2002-11-07 Alexandre Oliva <aoliva@redhat.com>
3733 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
3734 NEWABI, but we should still emit HI16_S for non-PIC n32.
3736 2002-11-06 Richard Henderson <rth@redhat.com>
3738 * config/tc-alpha.c (alpha_validate_fix): Move code ...
3739 (alpha_fix_adjustable): ... here.
3740 * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
3742 2002-11-07 Eric Kohl <ekohl@rz-online.de>
3744 * config/te-pe.h (LEX_AT): Accept at-sign (@) as first character
3747 2002-11-05 H.J. Lu <hjl@gnu.org>
3749 * config/tc-mips.c (support_64bit_objects): Check *l before it
3752 2002-11-04 Danny Smith <dannysmith@users.sourceforge.net>
3754 * config/obj-coff.c (obj-coff-section): Set SEC_DATA and
3755 SEC_LOAD flags for sections marked as 's'.
3757 2002-11-01 Alan Modra <amodra@bigpond.net.au>
3759 * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
3760 (TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
3761 * doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
3764 * dep-in.sed: Fix typo.
3766 2002-10-30 Daniel Jacobowitz <drow@mvista.com>
3768 * configure.in: Update ARM CPU patterns.
3769 * configure: Regenerated.
3771 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3773 * itbl-lex.l: Use #include <> for generated headers.
3774 * itbl-ops.c: Likewise.
3776 2002-10-28 Daniel Jacobowitz <drow@mvista.com>
3778 * doc/gasp.texi: Fix typo in deprecation note.
3780 2002-10-23 Nick Clifton <nickc@redhat.com>
3782 * config/tc-arm.c (tc_gen_reloc): Allow an absolute reference to
3783 _GLOBAL_TABLE_OFFSET_ to be converted into a GOT reloc.
3785 2002-10-23 Hans-Peter Nilsson <hp@bitrange.com>
3787 * config/tc-mmix.h (mmix_frob_file_before_adjust): Don't declare.
3788 (tc_frob_file_before_adjust): Don't define.
3789 * config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
3791 (mmix_frob_file_before_adjust): Remove ineffective function.
3793 2002-10-23 Hans-Peter Nilsson <hp@axis.com>
3795 * config/tc-cris.c (SIMPLE_EXPR): New macro.
3796 (cris_relax_frag): New function.
3797 (md_estimate_size_before_relax) <case ENCODE_RELAX
3798 (STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
3799 expressions that will become absolute expressions to relaxation.
3800 (md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
3801 STATE_WORD)>: Expect only absolute expressions. Use the symbol
3802 value, not distance to symbol.
3803 <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
3804 Ditto. Correct placement of fixup.
3805 (md_assemble): Use SIMPLE_EXPR when dissecting expressions.
3807 * config/tc-cris.h (cris_relax_frag): Declare.
3808 (md_relax_frag): Define.
3810 2002-10-22 Alan Modra <amodra@bigpond.net.au>
3812 * config/obj-elf.c (special_sections): Use correct types for init
3814 (obj_elf_change_section): Don't mess with init array section type.
3816 2002-10-21 Richard Sandiford <rsandifo@redhat.com>
3818 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
3819 for relocs against symbols in a merged section.
3821 2002-10-18 Alexandre Oliva <aoliva@redhat.com>
3823 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
3824 table as register names.
3826 2002-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3828 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
3831 2002-10-18 Svein E. Seldal <Svein.Seldal@solidas.com>
3833 * expr.c (operand): Add support for n.nn flonums.
3835 2002-10-17 Johannes Stezenbach <js@convergence.de>
3837 * itbl-parse.y (entry): Provide empty action.
3839 2002-10-16 Alan Modra <amodra@bigpond.net.au>
3841 * configure.in (BFDVER_H): Set and subst.
3842 * dep-in.sed: Replace bfdver.h with $(BFDVER_H).
3843 * Makefile.am: Run "make dep-am".
3845 * configure: Regenerate.
3846 * Makefile.in: Regenerate.
3847 * doc/Makefile.in: Regenerate.
3849 2002-10-15 Alan Modra <amodra@bigpond.net.au>
3851 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
3852 (MD_APPLY_SYM_VALUE): Define for PE too.
3854 2002-10-14 Alan Modra <amodra@bigpond.net.au>
3856 * Makefile.am: Run "make dep-am".
3857 (CPU_OBJ_VALID): sh64 coff is invalid.
3858 * as.c: #include "bfdver.h".
3859 * Makefile.in: Regenerate.
3860 * config.in: Regenerate.
3862 2002-10-14 Momchil Velikov <velco@fadata.bg>
3864 * config/tc-v850.c (CHECK_): Remove token pasting operator.
3866 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
3868 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
3869 * configure: Regenerate.
3871 2002-10-13 Eric Christopher <echristo@redhat.com>
3872 Alexandre Oliva <aoliva@redhat.com>
3874 * config/tc-mips.c (s_gpdword): New function.
3875 (mips_pseudo_table): Add .gpdword.
3876 (mips_need_elf_addend_fixup): never for NEWABI.
3877 (md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
3879 (s_cpadd): Generate .cpadd on NEWABI.
3881 2002-10-12 Elias Athanasopoulos <eathan@otenet.gr>
3883 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
3885 2002-10-12 Alexandre Oliva <aoliva@redhat.com>
3887 * config/tc-mips.h (mips_relax_frag): Take segment as argument.
3888 (md_relax_frag): Adjust macro.
3889 * config/tc-mips.c (mips_relax_branch): New variable.
3890 (RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
3891 RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
3892 (RELAX_MIPS16_P): Adjust.
3893 (append_insn): Emit branch to non-constant in a frag_var if
3894 branch-relaxation is desirable and possible.
3895 (OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
3896 (OPTION_ELF_BASE): Adjust.
3897 (md_parse_option): Handle new options.
3898 (md_apply_fix3): Update comment on EMBEDDED_PIC conditional
3900 (relaxed_branch_length): New function.
3901 (md_estimate_size_before_relax): Handle branch frags.
3902 (mips_relax_frag): Likewise.
3903 (md_convert_frag): Handle branch frags. Warn if branch is
3906 2002-10-11 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3908 * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
3910 (md_apply_fix3): Add TLS relocs.
3911 (sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
3914 2002-10-11 Michel Six <msix@ccr.jussieu.fr>
3915 Alan Modra <amodra@bigpond.net.au>
3917 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
3918 (md_estimate_size_before_relax): Likewise for 8 bit branches.
3920 Thu Oct 10 14:31:30 2002 J"orn Rennecke <joern.rennecke@superh.com>
3922 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
3925 2002-10-09 Richard Shann <richard.shann@superh.com>
3926 Stephen Clarke <stephen.clarke@superh.com>
3928 * config/tc-sh64.c (sh64_target_format): Add support for sh64
3931 2002-10-03 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3933 * contig/tc-sh.c (sh_local_pcrel): New.
3934 (sh_force_relocation): Use sh_local_pcrel.
3935 (md_pcrel_from_section): Check the relocation type whether it
3936 should be resolved locally. Use S_FORCE_RELOC.
3938 2002-10-01 Alan Modra <amodra@bigpond.net.au>
3940 * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
3941 (TC_FORCE_RELOCATION): Tidy arg.
3943 2002-09-30 Gavin Romig-Koch <gavin@redhat.com>
3944 Ken Raeburn <raeburn@cygnus.com>
3945 Aldy Hernandez <aldyh@redhat.com>
3946 DJ Delorie <dj@redhat.com>
3947 Michael Meissner <meissner@redhat.com>
3948 Eric Christopher <echristo@redhat.com>
3949 Richard Sandiford <rsandifo@redhat.com>
3951 * doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
3952 vr5400 and vr5500. Add entry for -mfix-vr4122-bugs.
3953 * config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
3954 (hilo_interlocks): True for CPU_VR5500.
3955 (gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
3956 (mips_fix_vr4122_bugs): New.
3957 (append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
3958 (mips_emit_delays): Likewise.
3959 (macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
3960 [M_ROLI]: Likewise ror if CPU_HAS_ROR.
3961 (validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
3962 (OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
3963 (md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
3964 (OPTION_ELF_BASE): Bump.
3965 (md_parse_option): Handle the new options.
3966 (mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
3969 2002-09-29 H.J. Lu <hjl@gnu.org>
3971 * config/tc-mips.c (md_apply_fix3): Subtract the symbol value
3972 twice if howto->pcrel_offset is true.
3974 2002-09-28 Matt Thomas <matt@3am-software.com>
3975 Jason Thorpe <thorpej@wasabisystems.com>
3977 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
3978 convert undefined references to GOT32/PLT32 if PIC code is
3979 requested. Fix comment.
3981 2002-09-27 Kaz Kojima <kkojima@rr.iij4u.or.jp>
3983 * config/tc-sh.c (sh_force_relocation): Return 0 for
3984 some PC relative relocations when not relaxing.
3986 2002-09-26 Jakub Jelinek <jakub@redhat.com>
3988 * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs.
3989 Define them if not BFD_ASSEMBLER.
3990 (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add
3992 (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD,
3993 BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF.
3994 (tc_gen_reloc): Handle x86-64 TLS relocs.
3996 2002-09-27 Alan Modra <amodra@bigpond.net.au>
3998 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrel
3999 fixups to current or absolute section.
4001 2002-09-26 Jim Wilson <wilson@redhat.com>
4003 * config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix
4006 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4008 * config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16
4009 capable configuration.
4010 (macro_build): Check for MIPS16 capability, not for actual MIPS16 code
4012 (mips_ip): Likewise.
4014 2002-09-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4016 * config/tc-mips.c (append_insn): Fix jump overflow check.
4018 2002-09-24 Alan Modra <amodra@bigpond.net.au>
4020 * config/tc-i386.c (process_operands): Warn about "lea" segment
4023 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
4025 * write.c: Delete set_segment_vma and prototype. Update all callers.
4027 2002-09-21 Alan Modra <amodra@bigpond.net.au>
4029 * config/tc-i386.c (md_apply_fix3): Replace S_IS_EXTERNAL,
4030 S_IS_WEAK etc. with S_FORCE_RELOC call. Correct comment.
4031 Rename "fseg" to "sym_seg".
4032 * Makefile.am: Run "make dep-am".
4033 * Makefile.in: Regenerate.
4034 * doc/Makefile.in: Regenerate.
4036 2002-09-20 Nick Clifton <nickc@redhat.com>
4038 * symbols.c (colon): Do not allow symbols to be created in the
4039 absolute section if WORKING_DOT_WORD is not defined and
4040 new_broken_words would require a new frag to be created.
4042 2002-09-20 Alan Modra <amodra@bigpond.net.au>
4044 * expr.c (expr): Simplify foo-foo here.
4045 (clean_up_expression): Remove O_subtract code.
4047 * write.h (struct fix): Add fx_dot_value.
4048 (dot_value): Declare.
4049 * write.c (dot_value): New var.
4050 (fix_new_internal): Save dot_value as fx_dot_value.
4051 (fixup_segment): Adjust fx_offset using fx_dot_value.
4052 * expr.c (expr): Update dot_value.
4054 2002-09-19 Jakub Jelinek <jakub@redhat.com>
4056 * config/tc-i386.c (tc_i386_fix_adjustable): Handle
4057 BFD_RELOC_386_TLS_IE and BFD_RELOC_386_TLS_GOTIE.
4058 (BFD_RELOC_386_TLS_IE, BFD_RELOC_386_TLS_GOTIE): Define to 0
4060 (lex_got): Handle @GOTNTPOFF and @INDNTPOFF.
4061 (md_apply_fix3, tc_gen_reloc): Handle BFD_RELOC_386_TLS_IE and
4062 BFD_RELOC_386_TLS_GOTIE.
4064 2002-09-19 Richard Henderson <rth@redhat.com>
4066 * config/tc-alpha.c (md_pcrel_from): Only adjust special for
4068 (alpha_force_relocation): Don't special-case branch type relocs.
4070 2002-09-19 Nick Clifton <nickc@redhat.com>
4072 * config/tc-m68k.c (select_control_regs): Handle situation where
4073 architecture has not yet been selected.
4075 2002-09-18 Chris Demetriou <cgd@broadcom.com>
4077 * config/tc-mips.c (IS_SEXT_32BIT_NUM): Move closer to top of file.
4078 (IS_SEXT_16BIT_NUM): New macro.
4079 (macro_build_ldst_constoffset): New function, to build a set of
4080 instructions to do a load or store from a constant offset relative
4081 to a given register.
4082 (macro, s_cprestore): Use macro_build_ldst_constoffset to implement
4083 .cprestore pseudo-op.
4085 2002-09-18 Chris Demetriou <cgd@broadcom.com>
4087 * config/tc-mips.c (md_apply_fix3): Just return for BFD_RELOC_8.
4089 2002-09-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4091 * config/tc-mips.c (s_change_section): Fix parsing. Code cleanup.
4093 2002-09-17 Stan Cox <scox@redhat.com>
4095 * tc-mips.c (load_address): Use BFD_RELOC_MIPS_GOT_DISP for newabi.
4096 (macro): Likewise for la. Likewise for ld.
4097 (mips_after_parse_args): Make -xgot optional, not the default.
4098 (md_apply_fix3): Allow composite relocation to set up gp.
4099 (tc_gen_reloc): Allow relaxing for newabi.
4100 Relax R_MIPS_CALL16 to R_MIPS_GOT_PAGE/R_MIPS_GOT_OFST if local.
4101 Relax R_MIPS_GOT16/R_MIPS_LO16 to R_MIPS_GOT_DISP if local.
4103 2002-09-17 Nick Clifton <nickc@redhat.com>
4105 * config/tc-arm.c (md_apply_fix3): Note that an implemented
4106 BFD_RELOC_ARM_IMMEDIATE has been done.
4107 (tc_gen_reloc): Do not issue reloc number of unimplemented
4108 BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_OFFSET_IMM relocs -
4109 their name is already in the error message - plus remove them
4110 from the default case.
4112 * config/tc-arm.c (do_ldmstm): Warn about unpredictable
4113 behavior of instructions.
4115 2002-09-17 Svein E. Seldal <Svein.Seldal@solidas.com>
4117 * config/tc-tic4x.c: Add function declarations and ATTRIBUTE_UNUSED.
4118 Convert functions to K&R format.
4120 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4122 * config/tc-mips.c (pdr_seg): Define only for ELF.
4123 (s_change_section): Remove unused variable. Don't use for nonELF.
4125 2002-09-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4127 * config/obj-elf.c (obj_elf_change_section): Move prototype to
4129 * config/obj-elf.h (obj_elf_change_section): Likewise.
4131 2002-09-16 Elias Athanasopoulos <eathan@otenet.gr>
4133 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.
4134 (out_debug_info): Likewise.
4136 2002-09-16 Bruno Haible <bruno@clisp.org>
4138 * config/tc-i386.h (ELF_TARGET_FORMAT): New macro.
4139 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf32-i386".
4140 * config/tc-i386.c (i386_target_format): Likewise.
4141 * config/tc-alpha.h (ELF_TARGET_FORMAT): New macro.
4142 (TARGET_FORMAT): Use ELF_TARGET_FORMAT instead of "elf64-alpha".
4144 2002-09-13 Nick Clifton <nickc@redhat.com>
4146 * config/tc-ppc.c (md_assemble): Do not count FAKE operands
4147 when deciding if any operands have been skipped.
4149 2002-09-11 Nick Clifton <nickc@redhat.com>
4151 * NEWS: New TI port supports both C4x and C3x series of DSPs.
4153 * po/tr.po: Updated Turkish translation.
4155 2002-09-11 Jakub Jelinek <jakub@redhat.com>
4157 * config/tc-i386.c (md_apply_fix3): Allow addend for
4158 BFD_RELOC_386_TLS_LDO_32, BFD_RELOC_386_TLS_LE and
4159 BFD_RELOC_386_TLS_LE_32.
4161 2002-09-05 Jeff Law <law@redhat.com>
4163 * config/tc-hppa.c (md_apply_fix3): Don't set fx_done for
4164 marker relocations such as ENTRY/EXIT.
4165 * config/tc-hppa.h (MD_APPLY_SYM_VALUE): Definition applies
4166 to both OBJ_ELF and OBJ_SOM.
4168 2002-09-05 Alan Modra <amodra@bigpond.net.au>
4170 * doc/internals.texi (md_apply_fix3): Expand.
4171 (TC_VALIDATE_FIX, TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_ABS,
4172 TC_FORCE_RELOCATION_LOCAL, TC_FORCE_RELOCATION_SUB_SAME,
4173 TC_FORCE_RELOCATION_SUB_ABS, TC_FORCE_RELOCATION_SUB_LOCAL,
4174 TC_VALIDATE_FIX_SUB, MD_APPLY_SYM_VALUE, S_FORCE_RELOC,
4175 EXTERN_FORCE_RELOC): Document.
4176 (TC_HANDLES_FX_DONE, obj_fix_adjustable): Remove.
4177 * as.h: Don't include struc-symbol.h for arc.
4179 * cgen.c (gas_cgen_md_apply_fix3): Remove *valP fudges and code to
4180 subtract absolute symbol.
4181 * obj.h (struct format_ops): Add frob_file_before_fix.
4182 * subsegs.c (section_symbol): Set BSF_SECTION_SYM flag.
4183 * symbols.c (S_FORCE_RELOC): New function.
4184 * symbols.h (S_FORCE_RELOC): Declare.
4185 * write.c (TC_FORCE_RELOCATION): Change default.
4186 (TC_FORCE_RELOCATION_ABS): Define.
4187 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4188 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4189 (TC_FORCE_RELOCATION_SECTION): Don't define.
4190 (TC_FORCE_RELOCATION_SUB_SAME): Define this instead.
4191 (TC_FORCE_RELOCATION_SUB_ABS): Define.
4192 (TC_FORCE_RELOCATION_SUB_LOCAL): Define.
4193 (TC_VALIDATE_FIX_SUB): Define.
4194 (TC_FIX_ADJUSTABLE): Don't define.
4195 (MD_APPLY_SYM_VALUE): Define this instead.
4196 (abs_section_sym): New variable.
4197 (adjust_reloc_syms): Use S_FORCE_RELOC. Remove obj_fix_adjustable
4198 call. Don't symbol_mark_used_in_reloc here. Simplify link_once tests.
4199 Don't put the absolute section sym on fixups here.
4200 (fix_segment): New function.
4201 (write_relocs): Don't call fixup_segment from here.
4202 (write_object_file): Instead call tc_frob_file_before_fix,
4203 obj_frob_file_before_fix, and fix_segment prior to symbol table code.
4204 Don't output the absolute section symbol.
4205 (fixup_segment): Rewrite.
4206 * write.h (abs_section_sym): Declare.
4207 * config/obj-aout.c (obj_aout_frob_file_before_fix): Rename from
4209 (aout_format_ops): Adjust to suit.
4210 * config/obj-aout.h (obj_frob_file): Don't define.
4211 (obj_frob_file_before_fix): Define.
4212 (obj_aout_frob_file_before_fix): Rename from obj_aout_frob_file.
4213 (S_FORCE_RELOC): Define.
4214 * config/obj-bout.h (S_FORCE_RELOC): Define.
4215 * config/obj-coff.c (coff_format_ops): Init new field.
4216 * config/obj-coff.h: Formatting fixes.
4217 (obj_sec_sym_ok_for_reloc): Define.
4218 (S_FORCE_RELOC): Define.
4219 * config/obj-ecoff.c (ecoff_frob_file_before_fix): Split out ..
4220 (ecoff_frob_file): .. from here.
4221 (ecoff_format_ops): Add new function.
4222 * config/obj-ecoff.h (ecoff_frob_file_before_fix): Declare.
4223 (obj_frob_file_before_fix): Define.
4224 * config/obj-elf.c (elf_format_ops): Init new field.
4225 * config/obj-elf.h (obj_sec_sym_ok_for_reloc): Expand comment.
4226 * config/obj-ieee.h: Formatting fixes.
4227 (S_FORCE_RELOC): Define.
4228 * config/obj-multi.h (obj_frob_file_before_fix): Define.
4229 * config/obj-vms.h (S_FORCE_RELOC): Define.
4230 * config/tc-alpha.c (md_apply_fix3): Correct GPDISP comment.
4231 (alpha_force_relocation): Use S_FORCE_RELOC, and don't return 0
4232 for BFD_RELOC_32 and BFD_RELOC_64.
4233 (alpha_fix_adjustable): Remove extern and weak tests.
4234 (alpha_before_fix): Rename from alpha_adjust_symtab.
4235 (alpha_adjust_relocs): Rename from alpha_adjust_symtab_relocs.
4236 * config/tc-alpha.h (struct fix, struct alpha_reloc_tag): Declare.
4237 (TC_VALIDATE_FIX): Tweak param name.
4238 (TC_FORCE_RELOCATION, tc_fix_adjustable): Likewise.
4239 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4240 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4241 (MD_APPLY_SYM_VALUE): Define.
4242 (tc_adjust_symtab): Don't define.
4243 (alpha_adjust_symtab): Don't declare.
4244 (tc_frob_file_before_fix): Define.
4245 (alpha_before_fix): Declare.
4246 (TC_INIT_FIX_DATA): Tweak param names.
4247 * config/tc-arc.c: Include "struc-symbol.h".
4248 (md_pcrel_from): Remove undefined sym fudge.
4249 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
4250 Don't set fx_addnumber.
4251 (tc_gen_reloc): Remove spurious fx_addnumber comment.
4252 * config/tc-arc.h (MD_APPLY_SYM_VALUE): Define.
4253 (EXTERN_FORCE_RELOC): Define.
4254 * config/tc-arm.c (md_apply_fix3 <case BFD_RELOC_ARM_GOTPC>): Remove.
4255 (tc_gen_reloc): Fudge ARM_GOTPC addend.
4256 (arm_validate_fix): Return void.
4257 (arm_fix_adjustable <elf version>): Remove extern and weak tests.
4258 Add plt and got reloc tests.
4259 (arm_force_relocation): Call S_FORCE_RELOC.
4260 * config/tc-arm.h (struct fix): Forward declare.
4261 (TC_VALIDATE_FIX): No longer set add_symbolP.
4262 (arm_validate_fix): Adjust declaration.
4263 (TC_FORCE_RELOCATION <pe version): Call S_FORCE_RELOC.
4264 (TC_FORCE_RELOCATION): Tweak param name.
4265 (TC_INIT_FIX_DATA): Likewise.
4266 (obj_fix_adjustable): Don't define.
4267 (tc_fix_adjustable): Call arm_fix_adjustable.
4268 (TC_FIX_ADJUSTABLE): Don't define.
4269 (MD_APPLY_SYM_VALUE): Define.
4270 (EXTERN_FORCE_RELOC): Define.
4271 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4272 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4273 * config/tc-avr.c (md_apply_fix3): Don't cast valP pointer type.
4274 Remove *valP fudges and code to subtract abs sym. Don't set
4276 * config/tc-avr.h: Formatting.
4277 (EXTERN_FORCE_RELOC): Define.
4278 (MD_APPLY_SYM_VALUE): Define.
4279 * config/tc-cris.c (tc_gen_reloc): Don't use fx_addnumber.
4280 (md_apply_fix3): Remove code to subtract abs sym.
4281 (md_cris_force_relocation): Update comment. Call S_FORCE_RELOC.
4282 * config/tc-cris.h (TC_FORCE_RELOCATION): Tweak param name.
4283 (IS_CRIS_PIC_RELOC, tc_fix_adjustable): Likewise.
4284 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4285 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4286 (tc_fix_adjustable): Remove extern, weak tests.
4287 * config/tc-d10v.c (tc_gen_reloc): Don't fiddle address of
4288 BFD_RELOC_VTABLE_INHERIT relocs. Don't use fx_addnumber.
4289 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
4290 and code to subtract abs sym.
4291 (d10v_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4292 (d10v_force_relocation): Call S_FORCE_RELOC.
4293 * config/tc-d10v.h: Don't include write.h.
4294 (struct fix): Instead, forward declare.
4295 (MD_PCREL_FROM_SECTION): Tweak param names.
4296 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
4297 (d10v_fix_adjustable): Likewise.
4298 (obj_fix_adjustable): Don't define.
4299 (tc_fix_adjustable): Define.
4300 (TC_FORCE_RELOCATION): Tweak param name.
4301 (MD_APPLY_SYM_VALUE): Define.
4302 (EXTERN_FORCE_RELOC): Define.
4303 * config/tc-d30v.c (tc_gen_reloc): Don't use fx_addnumber.
4304 (md_apply_fix3): Don't cast valP pointer type. Remove *valP fudges
4305 and code to subtract abs sym.
4306 * config/tc-d30v.h: Don't include write.h.
4307 (struct fix): Instead, forward declare.
4308 (MD_PCREL_FROM_SECTION): Tweak param names.
4309 (md_pcrel_from_section): Use "struct fix" instead of "fixS".
4310 (MD_APPLY_SYM_VALUE): Define.
4311 (EXTERN_FORCE_RELOC): Define.
4312 * config/tc-dlx.c (md_dlx_force_relocation): Call S_FORCE_RELOC.
4313 (md_dlx_fix_adjustable): Don't test for NULL fx_addsy.
4314 (md_apply_fix3): No need to test fx_pcrel before setting fx_done.
4315 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4316 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4317 Don't use fx_addnumber.
4318 * config/tc-dlx.h: Don't include write.h.
4319 (md_convert_frag): We're not alpha twice over.
4320 (EXTERN_FORCE_RELOC): Define.
4321 (obj_fix_adjustable): Don't define.
4322 (tc_fix_adjustable): Define.
4323 (TC_FIX_ADJUSTABLE): Don't define.
4324 (MD_APPLY_SYM_VALUE): Define.
4325 (LOCAL_LABELS_DOLLAR): Undef always.
4326 * config/tc-fr30.c (fr30_force_relocation): Call S_FORCE_RELOC.
4327 (fr30_fix_adjustable): Remove extern, weak tests.
4328 * config/tc-fr30.h (MD_APPLY_SYM_VALUE): Define.
4329 (obj_fix_adjustable): Don't define.
4330 (tc_fix_adjustable): Define.
4331 (struct fix): Forward declare.
4332 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.
4333 * config/tc-frv.c (frv_force_relocation): Call S_FORCE_RELOC.
4334 (frv_fix_adjustable): Don't do extern, weak tests.
4335 * config/tc-frv.h (MD_APPLY_SYM_VALUE): Define.
4336 (TC_FIX_ADJUSTABLE): Don't define.
4337 (obj_fix_adjustable): Don't define.
4338 (tc_fix_adjustable): Define.
4339 (struct fix): Forward declare.
4340 (MD_PCREL_FROM_SECTION): Tweak param name. Remove duplicate.\
4341 * config/tc-h8300.c (md_apply_fix3): Don't cast valP pointer type.
4342 * config/tc-h8300.h (struct fix): Forward declare.
4343 (EXTERN_FORCE_RELOC): Define.
4344 * config/tc-hppa.c (md_apply_fix3): Remove subtraction of sym value.
4345 (hppa_fix_adjustable): Don't test extern or weak. Don't
4346 symbol_mark_used_in_reloc.
4347 (hppa_force_relocation): Use S_FORCE_RELOC instead of S_IS_EXTERNAL
4349 * config/tc-hppa.h (EXTERN_FORCE_RELOC): Define
4350 (TC_FORCE_RELOCATION, TC_INIT_FIX_DATA): Tweak param name.
4351 (TC_FORCE_RELOCATION_SECTION): Don't define.
4352 (MD_APPLY_SYM_VALUE): Define.
4353 * config/tc-i370.c (md_apply_fix3): Remove *valP fudges and code
4354 to subtract abs sym.
4355 * config/tc-i370.h: Remove ifdef OBJ_ELF tests.
4356 (MD_APPLY_SYM_VALUE): Define.
4357 (MD_PCREL_FROM_SECTION): Tweak param name.
4358 * config/tc-i386.c (tc_i386_fix_adjustable): Remove weak, extern tests.
4359 (md_apply_fix3): Test fx_addsy, not fx_pcrel.
4360 (i386_force_relocation): New function.
4361 * config/tc-i386.h (TC_COFF_FIX2RTYPE): Tweak param name.
4362 (TC_VALIDATE_FIX): Likewise.
4363 (TC_FIX_ADJUSTABLE): Don't define.
4364 (MD_APPLY_SYM_VALUE): Define.
4365 (TC_FORCE_RELOCATION <elf version>): Call i386_force_relocation.
4366 (i386_force_relocation): Declare.
4367 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4368 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4369 (TC_FORCE_RELOCATION <coff version>): Call S_FORCE_RELOC.
4370 * config/tc-i860.c (md_apply_fix3): Don't cast valP pointer type.
4371 * config/tc-i860.h (MD_APPLY_SYM_VALUE): Define.
4372 (EXTERN_FORCE_RELOC): Define.
4373 * config/tc-i960.c (reloc_callj): Remove declaration. Return false.
4374 (md_apply_fix3): Don't cast valP pointer type. Move code here from
4375 old fixup_segment. No need to test fx_pcrel before setting fx_done.
4376 (i960_validate_fix): Remove add_symbolPP arg and add_symbolP macro.
4377 Use fx_addsy instead of add_symbolP, as_bad_where instead of as_bad.
4378 Remove #if 0 code. Invert return boolean.
4379 * config/tc-i960.h (TC_COUNT_RELOC): Tweak param name.
4380 (TC_COFF_FIX2RTYPE, TC_ADJUST_RELOC_COUNT, TC_VALIDATE_FIX): Likewise.
4381 (tc_headers_hook, tc_coff_fix2rtype): Remove declaration.
4382 (tc_coff_sizemachdep): Prototype.
4383 (i960_handle_align): Likewise.
4384 (i960_validate_fix): Adjust declaration.
4385 (reloc_callj): Likewise.
4386 (EXTERN_FORCE_RELOC): Define.
4387 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4388 (TC_FORCE_RELOCATION_ABS): Define.
4389 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4390 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4391 (TC_FIX_ADJUSTABLE): Don't define.
4392 (MD_APPLY_SYM_VALUE): Define.
4393 * config/tc-ia64.c (ia64_force_relocation): Call S_FORCE_RELOC.
4394 * config/tc-ia64.h (MD_APPLY_SYM_VALUE): Define.
4395 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4396 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4397 * config/tc-ip2k.c (ip2k_force_relocation): Call S_FORCE_RELOC.
4398 * config/tc-ip2k.h (MD_APPLY_FIX3): Don't define.
4399 (MD_APPLY_SYM_VALUE): Define.
4400 (EXTERN_FORCE_RELOC): Define.
4401 (TC_FORCE_RELOCATION): Tweak param name.
4402 * config/tc-m32r.c (m32r_force_relocation): Call S_FORCE_RELOC.
4403 (m32r_fix_adjustable): Don't test extern, weak.
4404 * config/tc-m32r.h (MD_PCREL_FROM_SECTION): Tweak param name.
4405 (MD_APPLY_SYM_VALUE): Define.
4406 (obj_fix_adjustable): Don't define.
4407 (tc_fix_adjustable): Define.
4408 (tc_frob_file): Don't define.
4409 (tc_frob_file_before_fix): Define.
4410 (EXTERN_FORCE_RELOC): Define.
4411 * config/tc-m68hc11.c (tc_gen_reloc): Set addend to zero. Adjust
4412 BFD_RELOC_VTABLE_ENTRY address.
4413 (tc_m68hc11_force_relocation): Call S_FORCE_RELOC.
4414 (tc_m68hc11_fix_adjustable): Don't test relaxable_symbol.
4415 (md_apply_fix3): Remove *valP fudges and code to subtract abs sym.
4416 Remove duplicated fx_done code.
4417 * config/tc-m68hc11.h (MD_APPLY_SYM_VALUE): Define.
4418 (EXTERN_FORCE_RELOC): Define.
4419 * config/tc-m68k.c (tc_m68k_fix_adjustable): Don't test
4421 * config/tc-m68k.h (TC_COFF_FIX2RTYPE): Tweak param name.
4422 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4423 (TC_FIX_ADJUSTABLE): Don't define.
4424 (EXTERN_FORCE_RELOC): Define.
4425 (MD_APPLY_SYM_VALUE): Define.
4426 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4427 * config/tc-mcore.c (md_apply_fix3): Don't cast valP pointer type.
4428 Remove fx_addsy tests.
4429 (mcore_force_relocation): Call S_FORCE_RELOC.
4430 (mcore_fix_adjustable): Don't test fx_addsy.
4431 * config/tc-mcore.h (MD_PCREL_FROM_SECTION): Tweak param name.
4432 (EXTERN_FORCE_RELOC): Define.
4433 (obj_fix_adjustable): Don't define.
4434 (tc_fix_adjustable): Define.
4435 (MD_APPLY_SYM_VALUE): Define.
4436 * config/tc-mips.c (enum mips_pic_level): Move to tc-mips.h.
4437 (mips_pic): No longer static.
4438 (mips_force_relocation): Call S_FORCE_RELOC.
4439 (mips_fix_adjustable): Remove extern, weak tests.
4440 * config/tc-mips.h (enum mips_pic_level): Declare.
4441 (mips_pic): Declare.
4442 (tc_frob_file): Don't define.
4443 (tc_frob_file_before_fix): Define this instead.
4444 (EXTERN_FORCE_RELOC): Define.
4445 * config/tc-mmix.c (md_apply_fix3): Replace real_reg_section tests
4446 with reg_section tests. Set fx_done instead of calling
4447 symbol_clear_used_in_reloc on bad relocs.
4448 (tc_gen_reloc): Zero fx_addsy on bad relocs.
4449 (mmix_force_relocation): Remove weak sym test. Call S_FORCE_RELOC.
4450 (mmix_adjust_symtab): Simplify list handling. Abort on any
4452 * config/tc-mmix.h (tc_fix_adjustable): Remove weak tests. Check
4453 BFD_RELOC_MMIX_LOCAL.
4454 (tc_frob_symbol): Keep user defined syms in reg_section. Don't punt.
4455 (EXTERN_FORCE_RELOC): Define.
4456 (MD_PCREL_FROM_SECTION): Tweak param name.
4457 (tc_frob_file): Don't define.
4458 (tc_frob_file_before_fix): Define this instead.
4459 * config/tc-mn10300.c (mn10300_force_relocation): Call S_FORCE_RELOC.
4460 Remove SEC_CODE checks.
4461 (mn10300_fix_adjustable): Remove extern and weak tests.
4462 * config/tc-mn10300.h (EXTERN_FORCE_RELOC): Define.
4463 (TC_FORCE_RELOCATION): Tweak param name.
4464 (obj_fix_adjustable): Don't define.
4465 (TC_FORCE_RELOCATION_SUB_SAME): Define to handle SEC_CODE.
4466 * config/tc-ns32k.h (TC_FIX_DATA_PRINT): Tweak param name.
4467 * config/tc-openrisc.c (openrisc_force_relocation): Call S_FORCE_RELOC.
4468 (openrisc_fix_adjustable): Don't test fx_addsy.
4469 * config/tc-openrisc.h (MD_APPLY_SYM_VALUE): Define.
4470 (obj_fix_adjustable): Don't define.
4471 (tc_fix_adjustable): Define this instead.
4472 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4473 * config/tc-or32.c (md_apply_fix3): Don't cast valP pointer type.
4474 (tc_gen_reloc): Don't fiddle with BFD_RELOC_VTABLE_INHERIT relocs.
4475 Adjust the address for BFD_RELOC_VTABLE_ENTRY, not the addend.
4476 * config/tc-or32.h (EXTERN_FORCE_RELOC): Define.
4477 (MD_APPLY_SYM_VALUE): Define.
4478 * config/tc-pj.c (md_apply_fix3): Don't cast valP pointer type.
4479 Don't subtract symbol value.
4480 * config/tc-pj.h (md_pcrel_from): Tweak param name.
4481 (EXTERN_FORCE_RELOC): Define.
4482 (TC_FORCE_RELOCATION): Call S_FORCE_RELOC.
4483 (MD_APPLY_SYM_VALUE): Define.
4484 (obj_fix_adjustable): Don't define.
4485 (tc_fix_adjustable): Define this instead.
4486 * config/tc-ppc.c (ppc_frob_symbol <coff version>): Ignore absolute
4488 (ppc_force_relocation <coff version>): Call S_FORCE_RELOC.
4489 (ppc_force_relocation <elf version>): New.
4490 (ppc_fix_adjustable <elf version>): Remove extern and weak tests.
4491 (md_apply_fix3): Don't subtract symbol values for ELF. Update
4492 comments. Don't subtract fx_subsy as that is already done.
4493 * config/tc-ppc.h (tc_fix_adjustable): Tweak param name.
4494 (MD_PCREL_FROM_SECTION): Likewise.
4495 (TC_FORCE_RELOCATION): Define for both ELF and XCOFF as calling
4496 ppc_force_relocation.
4497 (TC_FORCE_RELOCATION_SECTION): Delete.
4498 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4499 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4500 (MD_APPLY_SYM_VALUE): Define.
4501 * config/tc-s390.c: #include "dwarf2dbg.h".
4502 (s390_insn): Remove excess parens.
4503 (tc_s390_fix_adjustable): Remove extern, weak, SEC_MERGE tests.
4504 (tc_s390_force_relocation): Call S_FORCE_RELOC.
4505 (md_apply_fix3): Add ATTRIBUTE_UNUSED on "seg". Abort when fx_subsy
4506 non-NULL. Don't subtract off fx_addsy value.
4507 * config/tc-s390.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4508 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4509 (TC_FIX_ADJUSTABLE): Don't define.
4510 (MD_APPLY_SYM_VALUE): Define.
4511 * config/tc-sh.c (SWITCH_TABLE_CONS): Move to tc-sh.h.
4512 (SWITCH_TABLE): Likewise.
4513 (sh_force_relocation): Call S_FORCE_RELOC.
4514 (sh_fix_adjustable): Remove "return 1" cases handled by the default.
4515 Replace TC_RELOC_RTSYM_LOC_FIXUP with reloc type tests.
4516 (md_apply_fix3 <case BFD_RELOC_32_PLT_PCREL>): Simplify,
4517 fx_addnumber is zero on entry. Save val in fx_addnumber.
4518 (tc_gen_reloc): Don't subtract fx_subsy.
4519 * config/tc-sh.h (struct fix): Move.
4520 (obj_fix_adjustable): Don't define.
4521 (tc_fix_adjustable): Define this instead.
4522 (TC_FIX_ADJUSTABLE): Don't define.
4523 (MD_APPLY_SYM_VALUE): Define.
4524 (SWITCH_TABLE_CONS): Define.
4525 (SWITCH_TABLE): Define.
4526 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4527 (TC_VALIDATE_FIX_SUB): Define.
4528 (MD_PCREL_FROM_SECTION): Tweak param name.
4529 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4530 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4531 (TC_FORCE_RELOCATION_SUB_ABS): Define.
4532 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4533 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4534 (TC_FORCE_RELOCATION_SUB_SAME): Define.
4535 (TC_VALIDATE_FIX_SUB): Define.
4536 (MD_PCREL_FROM_SECTION): Tweak param name.
4537 * config/tc-sparc.c (md_apply_fix3): Don't subtract off symbol value.
4538 (tc_gen_reloc): Use S_FORCE_RELOC.
4539 (elf32_sparc_force_relocation): Call S_FORCE_RELOC.
4540 * config/tc-sparc.h (TC_FORCE_RELOCATION <coff version>): Remove.
4541 (TC_FORCE_RELOCATION_ABS): Define this instead.
4542 (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4543 (TC_FORCE_RELOCATION_LOCAL): Define this instead.
4544 (tc_fix_adjustable): Remove extern and weak tests. Use S_FORCE_RELOC.
4545 (MD_APPLY_SYM_VALUE): Define.
4546 (TC_FIX_DATA_PRINT): Tweak param name.
4547 * config/tc-tic30.c (USE_STDOUT): Don't define.
4548 (md_parse_option): Remove stupid debug code.
4549 (tc_gen_reloc): Don't use fx_addnumber.
4550 * config/tc-v850.c (v850_fix_adjustable): Remove extern and weak tests.
4551 (v850_force_relocation): Remove weak test. Call S_FORCE_RELOC.
4552 * config/tc-v850.h (obj_fix_adjustable): Don't define.
4553 (tc_fix_adjustable): Define this instead.
4554 (TC_FIX_ADJUSTABLE): Don't define.
4555 (MD_APPLY_SYM_VALUE): Define this instead.
4556 (TC_FORCE_RELOCATION, MD_PCREL_FROM_SECTION): Tweak param name.
4557 * config/tc-vax.h (TC_RELOC_RTSYM_LOC_FIXUP): Don't define.
4558 (TC_FIX_ADJUSTABLE): Don't define.
4559 (MD_APPLY_SYM_VALUE): Define this instead.
4560 (tc_fix_adjustable): Remove extern and weak tests.
4561 * config/tc-w65.h (struct fix): Forward declare.
4562 * config/tc-xstormy16.c (xstormy16_force_relocation): Call
4564 (xstormy16_fix_adjustable): Remove extern and weak tests. Don't
4565 call xstormy16_force_relocation; Instead test for FPTR16 reloc.
4566 (xstormy16_md_apply_fix3): Remove *valP fudges and code to subtract
4568 * config/tc-xstormy16.h (MD_APPLY_FIX3): Don't define.
4569 (MD_APPLY_SYM_VALUE): Define.
4570 (obj_fix_adjustable): Don't define.
4571 (tc_fix_adjustable): Define this instead.
4572 (MD_PCREL_FROM_SECTION): Remove duplicate. Tweak param name.
4574 2002-09-04 Alan Modra <amodra@bigpond.net.au>
4576 * config/tc-ppc.c (ppc_frob_symbol): Formatting, warning fix.
4577 (ppc_fix_adjustable <coff version>): Cleanup.
4579 * config/tc-ppc.c (PPC_HIGHER, PPC_HIGHEST): Fix warning.
4580 (md_parse_option): No -a64 without BFD64.
4581 (ppc_set_cpu): Select appropriate cpu when ppc_obj64.
4582 (ppc_arch): Use bfd_mach_rs6k for bfd_arch_rs6000.
4584 2002-09-04 Nick Clifton <nickc@redhat.com>
4586 * config/tc-ppc.c (md_begin): Do not insert non-BookE32
4587 instructions into the hash table if the target cpu is the BookE32.
4589 2002-08-31 Hans-Peter Nilsson <hp@bitrange.com>
4591 * read.c (do_align): Use ATTRIBUTE_UNUSED_LABEL for label, not
4594 2000-08-28 Catherine Moore <clm@redhat.com>
4596 * tc-v850.c (v850_relax): Declare.
4597 (v850_longcode): New routine.
4598 (v850_handle_align): New routine.
4599 (md_pseudo_table): Add longcall and longjump.
4600 (md_parse_option): Check for relax option.
4601 (tc_gen_reloc): Handle BFD_RELOC_V850_LONGCALL,
4602 BFD_RELOC_V850_LONGJUMP, and BFD_RELOC_V850_ALIGN.
4603 (md_apply_fix3): Likewise.
4604 (v850_force_relocation): Likewise.
4605 (v850_comm): Change the current section.
4606 (md_assemble): Ensure that the correct value is put in the
4608 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
4609 v850_zbss, v850_rosdata, v850_rozdata): Fix section book keeping.
4610 Remove redundant v850ea support.
4611 * tc-v850.h (HANDLE_ALIGN): Define.
4612 (v850_handle_align): Declare.
4613 * doc/c-v850.c: Document -mrelax, .longcall and .longjump.
4615 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
4617 * configure.in: Add tic4x-coff* and c4x-coff*-coff-coff targets.
4618 * configure: Regenerate.
4619 * NEWS: Mention new port.
4621 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
4623 * config/obj-coff.c: Add sdef definition.
4624 * config/obj-coff.h: Add tic4x include file and set
4626 * config/tc-tic4x.c: New file.
4627 * config/tc-tic4x.h: New file.
4629 2002-08-28 Alan Modra <amodra@bigpond.net.au>
4631 * write.c (BFD_FAST_SECTION_FILL): Remove unused macro.
4632 (TC_ADJUST_RELOC_COUNT): Tweak param name.
4633 (TC_FORCE_RELOCATION, TC_FORCE_RELOCATION_SECTION): Likewise.
4634 (TC_FIX_ADJUSTABLE, MD_PCREL_FROM_SECTION): Likewise.
4635 (RELOC_ENUM): Define.
4636 (fix_new_internal): Use RELOC_ENUM.
4637 (fix_new, fix_new_exp): Likewise.
4638 (adjust_reloc_syms): Comment. Remove unnecessary tests on sym != NULL.
4639 Replace gotos with continue.
4640 (write_relocs): Formatting. Avoid symbol loops in
4641 RELOC_EXPANSION_POSSIBLE case too. Report bfd_reloc_outofrange
4642 errors, and error number in other cases.
4643 (fixup_segment): Remove param names from prototype. Rename
4644 "this_segment_type" to "this_segment". Update linkrelax comment.
4645 Remove "size, "place" and "where" local vars. Formatting. Update
4646 "no symbol" comment. Remove #if 0 and #if 1.
4648 * app.c (do_scrub_chars): Don't test IGNORE_NONSTANDARD_ESCAPES. Tidy.
4650 2002-08-27 Alan Modra <amodra@bigpond.net.au>
4652 * dwarf2dbg.c: Always include dwarf2dbg.h.
4653 (dwarf2_directive_file): Adjust dummy version args.
4654 * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED.
4655 * expr.c (clean_up_expression <O_subtract>): Allow subtraction
4656 when symbol values differ.
4657 * read.c (do_align): Add ATTRIBUTE_UNUSED to label.
4658 (pseudo_set <O_subtract>): Remove unnecessary segment test.
4659 * config/obj-bout.c (obj_pseudo_table): Warning fix.
4661 2002-08-26 Alan Modra <amodra@bigpond.net.au>
4663 * config/tc-w65.c (md_section_align): Fix typo.
4664 (md_parse_option): Return 0, not 1.
4666 2002-08-22 Nick Clifton <nickc@redhat.com>
4668 * doc/as.texinfo (Section): Note that if '@' is a comment
4669 character then another symbol is used to prefix the section's
4672 2002-08-22 Christian Groessler <chris@groessler.org>
4674 * config/tc-z8k.c (get_operands): Adjust ptr variable also in
4677 2002-08-12 Graeme Peterson <gp@qnx.com>
4679 * configure.in: Add support for sh-**-nto* target.
4680 * configure: Regenerate.
4682 2002-08-21 Nitin Gupta <niting@noida.hcltech.com>
4684 * config/tc-h8300.h (TC_LINKRELAX_FIXUP): Define.
4686 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
4688 * config/tc-ppc.c (ppc_cleanup): Do something only if format
4690 (ppc_apuinfo_section_add): Define only if format is ELF.
4691 (md_assemble): Emit APUinfo section only if format is ELF.
4694 2002-08-21 Alan Modra <amodra@bigpond.net.au>
4696 * config/tc-arc.c (md_pseudo_table <dwarf2_directive_file>): Cast.
4697 * config/tc-frv.c: Likewise.
4698 * config/tc-hppa.c: Likewise.
4699 * config/tc-ia64.c: Likewise.
4700 * config/tc-ip2k.c: Likewise.
4701 * config/tc-m68hc11.c: Likewise.
4702 * config/tc-m68k.c: Likewise.
4703 * config/tc-mmix.c: Likewise.
4704 * config/tc-mn10300.c: Likewise.
4705 * config/tc-sh.c: Likewise.
4706 * config/tc-sparc.c: Likewise.
4707 * config/tc-v850.c: Likewise.
4709 2002-08-20 Richard Sandiford <rsandifo@redhat.com>
4711 * config/tc-mips.c (macro2): Implement rotates by zero using shifts
4714 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4716 From matthew green <mrg@redhat.com>
4718 * config/tc-ppc.c (PPC_OPCODE_CLASSIC): Enable this everywhere
4719 PPC_OPCODE_PPC is, except for BookE architectures.
4720 (md_parse_option): Add support for -mspe.
4721 (md_show_usage): Add -mspe.
4722 (md_parse_option): Add support for -me500 and
4723 -me500x2 to generate code for Motorola e500 core complex.
4724 (md_show_usage): Add -me500 and -me500x2.
4726 (PPC_APUINFO_ISEL, PPC_APUINFO_PMR, PPC_APUINFO_RFMCI,
4727 PPC_APUINFO_CACHELCK, PPC_APUINFO_SPE, PPC_APUINFO_EFS,
4728 PPC_APUINFO_BRLOCK): New macros.
4730 (ppc_cleanup): New function.
4731 (ppc_apuinfo_section_add): New function.
4733 (md_assemble): Collect info and write the APUinfo section.
4735 * config/tc-ppc.h (md_cleanup): Define.
4736 (ppc_cleanup): Export.
4737 (ELF_TC_SPECIAL_SECTIONS): Add .PPC.EMB.apuinfo section.
4739 2002-08-17 Stan Cox <scox@redhat.com>
4741 * config/obj-elf.c (obj_elf_change_section): Make non-static.
4742 config/tc-mips.c (s_change_section): New function to support
4743 IRIX .section pseudo-op.
4745 2002-08-16 Nick Clifton <nickc@redhat.com>
4747 * config/tc-v850.c (md_assemble): Fix assembling of "callt 0x3f".
4749 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
4751 * config/tc-mips.c (macro_build_jalr): Make sure we generate
4752 the fix-up against on the right frag.
4753 (s_cpsetup): Likewise. Parse third argument as expression, to
4754 handle global symbols and forward/backward labels correctly.
4756 2002-08-14 Nick Clifton <nickc@redhat.com>
4758 * read.c (stringer): Catch attempts to create strings in the abs
4761 * config/tc-alpha.c: Fix compiling for COFF targets.
4762 Some minor formatting tidyups.
4764 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4766 * config/tc-m68hc11.h (MD_PCREL_FROM_SECTION): Remove.
4767 (TC_HANDLES_FX_DONE): Define to let md_apply_fix3 set fx_done flag
4768 according to the reloc.
4769 (tc_fix_adjustable, tc_m68hc11_fix_adjustable): Define.
4770 (TC_FORCE_RELOCATION): Define.
4771 (tc_m68hc11_force_relocation): Declare.
4773 * config/tc-m68hc11.c (md_pseudo_table): Add relax command.
4774 (s_m68hc11_relax): New function for relax group.
4775 (build_insn, build_jump_insn): Emit a M68HC11_RL_JUMP reloc at
4776 beginning of jump instruction.
4777 (md_pcrel_from): Rename from md_pcrel_from_section and fix
4778 address computation.
4779 (tc-gen_reloc): Update.
4780 (md_estimate_size_before_relax): Create the BFD_RELOC_16_PCREL as
4782 (tc_m68hc11_force_relocation): New function, handle new relocs.
4783 (tc_m68hc11_fix_adjustable): New to make sure there are enough
4784 reloc for the linker relax pass.
4785 (md_apply_fix3): Handle M68HC11_RL_JUMP, M68HC11_RL_GROUP
4788 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4790 * config/tc-m68hc11.c (m68hc11_elf_final_processing): New function.
4791 (md_pseudo_table): Add .mode, .far and .interrupt pseudo op.
4792 (s_m68hc11_mode): New function for .mode pseudo op.
4793 (s_m68hc11_mark_symbol): New function for .far and .interrupt
4795 * config/tc-m68hc11.h (elf_tc_final_processing): Define.
4796 (m68hc11_elf_final_processing): Declare.
4798 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4800 * config/tc-m68hc11.c (md_begin): Take into account additional
4801 page operand for call instruction.
4802 (print_opcode_format): Likewise.
4803 (check_range): Likewise for page range checking.
4804 (get_operand): Don't skip a possible comma in operands.
4805 (fixup8): Generate BFD_RELOC_M68HC11_PAGE reloc.
4806 (fixup16): Likwise with BFD_RELOC_M68HC11_LO16.
4807 (fixup24): New to handle call reloc.
4808 (build_insn): Handle missing page operand for call instruction.
4810 (md_apply_fix3): Take into account new relocs.
4811 (get_operand): Fix the mode for indexed indirect addressing.
4812 (build_indexed_byte): Fix post index byte for indexed indirect mode.
4814 2002-08-12 Richard Sandiford <rsandifo@redhat.com>
4816 * config/tc-mips.c (mips_ip): Don't work out the value of
4817 constant %hi()s here.
4819 2002-08-10 Alan Modra <amodra@bigpond.net.au>
4821 * config/tc-i386.c (tc_i386_fix_adjustable): Test OUTPUT_FLAVOR
4822 for ELF, and don't bother checking ELF relocs when non-ELF.
4823 (i386_immediate): Allow absolute_section expressions for aout.
4824 (i386_displacement): Likewise. Also test bfd_is_com_section.
4825 (md_estimate_size_before_relax): Test OUTPUT_FLAVOR for ELF.
4826 (md_apply_fix3): Hack for bfd_install_relocation when fx_pcrel,
4827 not when fx_addsy. Remove dead code.
4829 2002-08-09 Graeme Peterson <gp@qnx.com>
4831 * configure.in: Add support for ppc-*-nto* target.
4832 * configure: Regenerate.
4834 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4836 * config/tc-i386.h: Reorganize.
4838 2002-08-09 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4840 * config/tc-mips.c (macro): Handle a register plus a 16-bit
4841 immediate offset in "dla" and "la" expansions.
4843 2002-08-09 Alan Modra <amodra@bigpond.net.au>
4845 * configure.in: bfd_gas=yes for all i386 targets. Formatting.
4846 Remove "bfd_gas=yes" from target table when covered later.
4847 Consolidate some entries.
4848 * configure: Regenerate
4850 2002-08-09 Jakub Jelinek <jakub@redhat.com>
4852 * config/tc-i386.c (output_insn): Save frag_now and frag_now_fix ()
4853 at start of insn, pass it to output_disp and output_imm.
4854 (output_disp): Added arguments. If _GLOBAL_OFFSET_TABLE_ is seen
4855 in displacement for R_386_32 reloc, use R_386_GOTPC and compute
4857 (output_imm): Added arguments. Compute properly addend for
4859 (md_apply_fix3): Remove R_386_GOTPC handling.
4861 2002-08-06 George France <france@handhelds.org>
4863 * config/tc-alpha.c (cpu_types): Enabled ev67, ev68, -m21264a
4864 and m21264b processor names and cpu types.
4865 * doc/c-alpha.texi: Documented new types.
4867 2002-08-06 Alan Modra <amodra@bigpond.net.au>
4869 * config/tc-ppc.c (md_apply_fix3): Adjust 16 bit XCOFF reloc offset.
4871 2002-08-01 Richard Sandiford <rsandifo@redhat.com>
4873 * config/tc-mips.c (tc_gen_reloc): Extend GP-relative addend
4874 handling to BFD_RELOC_MIPS16_GPREL.
4876 2002-08-01 Nick Clifton <nickc@redhat.com>
4878 * config/tc-arm.c (add_to_lit_pool): Ensure that offset to literal
4879 pool is computed using signed arithmetic so that proper sign
4880 extension is performed if X_add_number is a 64-bit integer.
4882 2002-08-01 H.J. Lu <hjl@gnu.org>
4883 Daniel Jacobowitz <drow@mvista.com>
4885 * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced
4886 .debug_line section unless it has line information.
4888 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
4890 * config/tc-ns32k.h (md_pcrel_adjust): Supply prototype.
4891 * config/tc-ns32k.c (convert_iif, md_parse_option, md_show_usage):
4892 Allow default displacement size to be an option "--disp-size-default".
4893 (md_number_to_disp): Make error messages include value. Use %d to
4894 print integers, not %s.
4895 (fix_new_ns32k): Conditionally set fx_no_overflow so we don't
4896 get duplicate messages sometimes.
4897 (convert_iif): Grow frag to max possible instruction size. Avoid
4898 creating unnecessary fixes.
4899 (md_number_to_field) Add prototype.
4900 (encode_operand, parse, convert_iif, md_fix_pcrel_adjust): Add
4901 prototypes and make static.
4902 (struct addr_mode): Make mode and scaled_mode explicitly signed.
4903 (evaluate_expr): Use resultP argument instead of exprP global.
4904 (get_addr_mode): Quiten compiler warnings.
4905 (encode_operand): eliminate unused variables. Quiten compiler
4906 warnings. Eliminate nul character in format strings.
4907 (parse): argc is unsigned.
4908 (reloc): Type cast index to quieten compiler.
4909 (md_pcrel_adjust, md_apply_fix3): Remove unused variable.
4910 (md_convert_frag): Note unused parameters. Remove unused
4912 (md_create_long_jump, md_create_short_jump,
4913 md_undefined_symbol_name, md_section_align, tc_gen_reloc): Note
4916 2002-07-31 Nick Clifton <nickc@redhat.com>
4918 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
4919 of the PDP-11 and 2.11BSD a.out support.
4921 2002-07-31 Momchil Velikov <velco@fadata.bg>
4923 * config/tc-v850.c (md_assemble): Fix range check for immediate
4926 2002-07-30 Chris Demetriou <cgd@broadcom.com>
4928 * config/tc-mips.c (mips_cpu_info_table): Clean up entries related
4929 to Broadcom SB-1 core support.
4931 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
4933 * config/tc-mips.c (mips_target_format): Fix formatting.
4934 Add recognition of n32 ABI formats.
4936 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4938 * tc-mips.c (load_address): Don't clobber $at when loading a
4939 64-bit address in non-PIC code if noat is in effect.
4942 2002-07-30 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4944 * config/tc-mips.c (macro): Use codes 6 and 7 in trap instructions
4945 used in division/multiply macro expansions similarly to how they
4946 are used in the variants with break instructions.
4949 2002-07-30 Graeme Peterson <gp@qnx.com>
4951 * configure.in: Add support for arm-*-nto target.
4952 * configure: Regenerate.
4954 2002-07-30 Nick Clifton <nickc@redhat.com>
4956 * config/tc-arm.c (struct literal_pool): Add fields to allow
4957 multiple literal pools to be maintained.
4958 (find_literal_pool): New function.
4959 (find_or_make_literal_pool): New function.
4960 (add_to_literal_pool): Use find_or_make_literal_pool.
4961 (arm_s_text, arm_s_data, arm_s_section): Remove - no longer
4963 (s_ltorg): Use find_literal_pool.
4964 (arm_cleanup): Dump all literal pools.
4965 * doc/c-arm.texi: Document new behaviour of only dumping literal
4968 2002-07-26 Alan Modra <amodra@bigpond.net.au>
4970 * config/tc-ppc.c (ppc_set_cpu): Use PPC_OPCODE_64 as the default
4971 rather than PPC_OPCODE_32 for powerpc64*.
4973 2002-07-25 Nick Clifton <nickc@redhat.com>
4975 * po/es.po: Updated Spanish translation.
4976 * po/fr.po: Updated French translation.
4978 2002-07-25 Richard Sandiford <rsandifo@redhat.com>
4980 * doc/c-mips.texi: Remove -mcpu. Document -mabi.
4981 * configure.in (MIPS_CPU_STRING_DEFAULT): New configuration macro.
4982 (USE_E_MIPS_ABI_O32, MIPS_DEFAULT_64BIT): New configuration macros.
4983 * configure, config.in: Regenerate.
4984 * config/tc-mips.c (file_mips_abi): Rename to mips_abi.
4985 (mips_set_options): Remove "abi" field.
4986 (mips_opts): Update accordingly. Replace all uses of mips_opts.abi
4989 (mips_arch_string, mips_arch_info): New vars.
4990 (mips_tune_string, mips_tune_info): New vars.
4991 (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New macros.
4992 (HAVE_32BIT_GPRS, HAVE_32BIT_FPRS): Don't check the ABI.
4993 (mips_isa_to_str, mips_cpu_to_str): Remove.
4994 (mips_ip): If the selected architecture is a generic ISA rather
4995 than a processor, only mention the ISA level in error messages.
4996 (OPTION_MCPU): Remove.
4998 (md_longopts): Add -mfp64, remove -mcpu.
4999 (mips_set_option_string): New fn.
5000 (md_parse_option): Make -mipsN update file_mips_isa rather than
5001 mips_opts.isa. Use mips_set_option_string to set -march or -mtune.
5002 Don't let -mgp32 and -mfp32 change the ABI.
5003 (show): Move to end of file. Constify string argument.
5004 (md_show_usage): Move to the end of the file. Read available
5005 architectures from mips_cpu_info_table.
5006 (mips_set_architecture): New fn.
5007 (mips_after_parse_args): Rework. Remove -mcpu handling. -mipsN
5008 is an alias for -march=mipsN. Don't change the ABI based on other
5009 flags. Infer the register size from the ABI as well as the
5010 architecture. Complain about more conflicting arguments.
5011 Unify logic with GCC.
5012 (s_mipsset): Don't change the ABI.
5013 (mips_elf_final_processing): Check USE_E_MIPS_ABI_O32.
5014 (mips_cpu_info_table): Remove Generic-MIPS* entries, keeping just
5015 "mipsN"-type entries. Remove entries that vary only in the
5016 manufacturer's prefix, or that have "000" replaced by "k".
5017 Remove TARGET_CPU entries. Make r2000 entry use CPU_R3000.
5018 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
5019 (mips_parse_cpu): New fn.
5020 (mips_cpu_info_from_name, mips_cpu_info_from_cpu): Remove.
5021 (mips_cpu_info_from_isa): Minor formatting tweak.
5023 2002-07-24 Nick Clifton <nickc@redhat.com>
5025 * po/sv.po: Updated Swedish translation.
5026 * po/es.po: Updated Spanish translation.
5028 2002-07-23 Alan Modra <amodra@bigpond.net.au>
5030 * Makefile.am: Run "make dep-am".
5031 * Makefile.in: Regenerate.
5032 * doc/Makefile.in: Regenerate.
5033 * config.in: Regenerate.
5034 * po/POTFILES.in: Regenerate.
5036 2002-07-23 Nick Clifton <nickc@redhat.com>
5038 * po/fr.po: Updated French translation.
5040 2002-07-23 Nick Clifton <nickc@redhat.com>
5042 * CONTRIBUTORS: Ken Raeburn is no longer the maintainer for
5045 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5047 * config/tc-mips.c (mips_need_elf_addend_fixup): Use S_IS_EXTERNAL
5048 instead of S_IS_EXTERN.
5049 (md_estimate_size_before_relax): Likewise.
5050 (mips_fix_adjustable): Likewise.
5052 2002-07-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5054 * config/tc-mips.c (mips_pic_level): Remove IRIX4_PIC.
5056 2002-07-19 Miroslav Tichy <tichm9am@ss1000.ms.mff.cuni.cz>
5057 Nick Clifton <nickc@redhat.com>
5059 * cond.c (s_ifdef): Treat a referenced but not yet defined
5060 symbol as if it were undefined, in exactly the same way as
5063 * doc/as.texinfo: Document that .ifdef, .ifndef and .equiv
5064 consider referenced bug not yet defined symbols to be
5067 2002-07-18 Denis Chertykov <denisc@overta.ru>
5068 Frank Ch. Eigler <fche@redhat.com>
5069 Alan Lehotsky <alehotsky@cygnus.com>
5070 John Healy <jhealy@redhat.com>
5071 Jeff Johnston <jjohnstn@redhat.com>
5073 * configure.in: Add ip2k configuraton.
5074 * configure: Regenerate.
5075 * Makefile.am: Add ip2k configuraton.
5076 * Makefile.in: Regenerate.
5077 * configure: Regenerate.
5078 * Makefile.in: Regenerate.
5079 * config/tc-ip2k.c: New file.
5080 * config/tc-ip2k.h: New files.
5081 * NEWS: Mention new support.
5082 * doc/Makefile.am (CPU_DOCS): Add c-ip2k.texi.
5083 * doc/Makefile.in: Regenerate.
5084 * doc/all.texi: Set IP2K
5085 * doc/as.texinfo: Add IP2K description.
5086 * doc/c-ip2k.texi: New file.
5088 2002-07-19 Nick Clifton <nickc@cambridge.redhat.com>
5090 * NEWS: Reformat to match style of other NEWS files.
5092 2002-07-17 Jan Hubicka <jh@suse.cz>
5094 * tc-i386.c (i386_align_code): Implement x86_64 neutral code fillers.
5096 2002-07-16 Moritz Jodeit <moritz@jodeit.org>
5098 * config/tc-z8k.c (build_bytes): Correct order of memset args.
5100 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
5102 * NEWS: Add 'Changes in 2.13'.
5104 2002-07-15 Matt Fredette <fredette@netbsd.org>
5106 * config/tc-hppa.h (LABELS_WITHOUT_COLONS): Define if TE_NetBSD.
5108 2002-07-12 Alan Modra <amodra@bigpond.net.au>
5110 * config/tc-i386.c (process_suffix): Merge CODE_64BIT JumpByte
5111 case with non CODE_64BIT case. Don't warn on "qword ptr" if
5114 2002-07-11 Alan Modra <amodra@bigpond.net.au>
5116 * config/tc-ppc.c (ppc_elf_frob_symbol): Delete.
5117 (ppc_frob_file_before_adjust): New function.
5118 * config/tc-ppc.h (tc_frob_symbol): Don't define.
5119 (ppc_elf_frob_symbol): Don't declare.
5120 (tc_frob_file_before_adjust): Define.
5121 (ppc_frob_file_before_adjust): Declare.
5123 * config/tc-ppc.c (md_pseudo_table): Warning fix.
5124 (ppc_cpu): Make it unsigned long to agree with struct powerpc_opcode
5127 (ppc_xcoff64): Rename to ppc_obj64.
5128 (md_parse_option <m>): Encode old ppc_size value in ppc_cpu.
5129 (ppc_set_cpu): Set PPC_OPCODE_32 too.
5130 (ppc_arch): Use ppc_obj64 instead of ppc_size to select bfd_mach_ppc64
5132 (ppc_target_format): Use ppc_obj64 to select format.
5133 (md_begin): Adjust for PPC_OPCODE_32/64 in ppc_cpu.
5134 (ppc_insert_operand): Use ppc_obj64 instead of ppc_size.
5135 (ppc_elf_suffix): Likewise. Don't depend on BFD_DEFAULT_TARGET_SIZE.
5136 (tc_frob_symbol): Likewise.
5137 (md_assemble): Use ppc_obj64 instead of ppc_size. Don't depend on
5138 BFD_DEFAULT_TARGET_SIZE.
5140 (ppc_is_toc_sym): Likewise.
5141 (md_apply_fix3): Likewise.
5142 * config/tc-ppc.h (TC_FORCE_RELOCATION): Don't depend on
5143 BFD_DEFAULT_TARGET_SIZE.
5144 (ELF_TC_SPECIAL_SECTIONS): Likewise.
5145 (tc_frob_symbol): Likewise.
5147 2002-07-09 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5149 * config/tc-mips.c (macro_build): Handle MIPS16 insns.
5150 (mips_ip): Likewise.
5152 2002-07-09 Alan Modra <amodra@bigpond.net.au>
5154 * config/tc-i386.c (md_pseudo_table <file>): Warning fix.
5155 (BFD_RELOC_8, BFD_RELOC_8_PCREL): Define for non-BFD.
5156 (md_apply_fix3): Formatting. Remove redundant test.
5157 (tc_gen_reloc): Remove redundant code.
5158 (tc_i386_force_relocation): Delete. Movy body of function to..
5159 * config/tc-i386.h (TC_FORCE_RELOCATION): .. here.
5161 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
5163 * configure.in: Add hppa-*-openbsd* target, change
5164 alpha*-*-openbsd* format to elf, and use elf for sparc-*-openbsd*
5166 * configure: Regenerate.
5168 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5170 * config/tc-mips.c (macro): Shift the 32-bit address range
5171 accessible with a lone "lui" down by 32768.
5173 2002-07-08 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5175 * config/tc-mips.c (load_address): Use non-trapping "daddu"
5176 instead of "dadd" in address calculations.
5179 2002-07-08 Alan Modra <amodra@bigpond.net.au>
5181 * config/tc-i386.c (process_suffix): Remove intel mode movsx and
5183 (md_assemble): Instead, zap the suffix here.
5185 2002-07-03 Nick Clifton <nickc@cambridge.redhat.com>
5187 * NEWS: Remove next release number until the release is actually
5190 2002-07-03 Alan Modra <amodra@bigpond.net.au>
5192 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
5194 * Makefile.in: Regenerate.
5196 2002-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
5198 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent any adjustment
5199 to symbols in merge sections, even non pc-relative ones.
5201 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
5203 * config/tc-m68hc11.h (m68hc11_listing_header): Fix warning.
5205 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
5207 * config/tc-m68hc11.h (ELF_TC_SPECIAL_SECTIONS): New sections
5208 .softregs and .eeprom.
5210 2002-06-28 David O'Brien <obrien@FreeBSD.org>
5212 * NEWS: Note the next release is 2.13.
5214 2002-06-26 Nick Clifton <nickc@cambridge.redhat.com>
5216 * po/tr.po: New translation imported.
5218 2002-06-26 Elias Athanasopoulos <eathan@otenet.gr>
5220 * ecoff.c: (get_tag): Replace strcpy with xstrdup.
5221 (ecoff_directive_def): Likewise.
5222 (ecoff_directive_tag): Likewise.
5223 * listing.c (file_info): Likewise.
5224 * hash.c (what): Likewise.
5226 2002-06-25 H.J. Lu <hjl@gnu.org>
5228 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
5229 * Makefile.in: Regenerated.
5231 2002-06-19 Dhananjay R. Deshpande <dhananjayd@kpit.com>
5233 * config/tc-sh.c (get_specific): Revert 2002-05-01 change.
5234 (assemble_ppi): Generate warning if the same register is used
5235 twice as destination in the same padd / pmuls instruction.
5237 2002-06-18 Dave Brolley <brolley@redhat.com>
5239 From Catherine Moore, Michael Meissner, Richard Sandiford, Dave Brolley
5240 * po/POTFILES.in: Add tc-frv.c, tc-frv.h.
5241 * configure.in: Support frv-*-*.
5242 * Makefile.am (CPU_TYPES): Add frv.
5243 (TARGET_CPU_CFILES): Add tc-frv.c.
5244 (TARGET_CPU_HFILES): Add tc-frv.h.
5245 (DEPTC_frv_coff): New variable.
5246 (DEPTC_frv_elf): New variable.
5247 (DEPOBJ_frv_coff): New variable.
5248 (DEPOBJ_frv_elf): New variable.
5249 (DEP_frv_coff): New variable.
5250 (DEP_frv_elf): New variable.
5251 * tc-frv.c: New file.
5252 * tc-frv.h: New file.
5254 2002-06-17 Catherine Moore <clm@redhat.com>
5256 * config/obj-elf.h (TARGET_SYMBOL_FIELDS): Conditionally define.
5258 2002-06-17 J"orn Rennecke <joern.rennecke@superh.com>
5260 * config/tc-sh.c (assemble_ppi): Initialize reg_n.
5262 2002-06-17 Tom Rix <trix@redhat.com>
5264 * config/tc-i370.h (tc_comment_chars): Define for i370-elf.
5266 2002-06-14 H.J. Lu <hjl@gnu.org>
5267 Daniel Jacobowitz <drow@mvista.com>
5269 * dwarf2dbg.h (dwarf2_directive_file): Return char *.
5270 * dwarf2dbg.c (dwarf2_directive_file): Return filename.
5271 * config/tc-mips.c (s_mips_file): Call s_app_file_string
5272 and new_logical_line for the first .file directive.
5273 * read.c (s_app_file_string): New function.
5274 (s_app_file): Call it.
5275 * read.h (s_app_file_string): Add declaration.
5277 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
5279 * configure.in: Remove MIPS_STABS_ELF.
5280 * configure: Regenerated.
5281 * config.in: Regenerated.
5282 * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug
5284 * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around
5286 (pdr_seg): Declare unconditionally.
5287 (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF.
5288 (s_mips_end): Likewise. Generate stabs function markers.
5289 (s_mips_ent): Generate stabs function markers.
5290 (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not
5292 (s_mips_mask): Likewise.
5293 (mips_flag_mdebug): New.
5294 (md_longopts): Add "mdebug" and "no-mdebug".
5295 (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG.
5296 (mips_after_parse_args): Set mips_flag_mdebug.
5297 * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS.
5299 2002-06-13 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5301 * config/tc-mips.c (md_apply_fix3): Don't subtract the symbol's
5302 value twice for RELA relocations.
5304 2002-06-12 Ben Elliston <bje@redhat.com>
5306 * symbols.c (resolve_symbol_value): Initialise final_val.
5308 * subsegs.c (subsegs_print_statistics): Cast frchp to void *.
5310 2002-06-11 Tom Rix <trix@redhat.com>
5312 * config/tc-ppc.c (ppc_subseg_align): Delete.
5313 (ppc_change_csect): Default csect align is 2.
5314 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Delete
5316 2002-06-09 Marek Michalkiewicz <marekm@amelek.gda.pl>
5318 * config/tc-avr.c (mcu_types): Update.
5320 2002-06-08 Matt Thomas <matt@3am-software.com>
5322 * configure.in (vax-*-netbsdelf*, vax-*-netbsdaout*)
5323 (vax-*-netbsd*): New targets.
5324 * configure: Regenerate.
5325 * config/aout_gnu.h (enum machine_type): Add M_VAX4K_NETBSD.
5326 * config/tc-vax.c: Add support for ELF and PIC.
5327 (flag_want_pic): New flag.
5328 (float_cons): Fix prototype.
5329 (md_apply_fix3): Adjust for BFD_ASSEMBLER.
5330 (md_assemble): Introduce a new is_absolute local, and use it
5331 rather than repeating the test. Make fatal errors actually
5332 fatal by using as_fatal as appropriate. Adjust for BFD_ASSEMBLER.
5333 Add support for ELF. Add support for PIC.
5334 (md_convert_frag): Adjust for BFD_ASSEMBLER.
5335 (tc_aout_fix_to_chars): Only include if OBJ_AOUT and not
5337 (vax_reg_parse): Make the % register prefix mandatory for ELF,
5338 optional for a.out, and not allowed for VMS. Adjust all callers.
5339 (md_create_short_jump): Add ATTRIBUTE_UNUSED to unused arguments.
5340 (md_create_long_jump): Likewise.
5341 (md_undefined_symbol): Likewise.
5342 (md_section_align): Likewise.
5343 (md_shortopts): Allow -k and -K for ELF.
5344 (md_parse_option): Set flag_want_pic if -k or -K.
5345 (tc_headers_hook): New function if OBJ_AOUT and not BFD_ASSEMBLER.
5346 (tc_gen_reloc): New function if BFD_ASSEMBLER.
5347 * config/tc-vax.h (tc_headers_hook): Remove.
5348 (TARGET_FORMAT): Set according to object format and target
5350 (BFD_ARCH, TARGET_ARCH): Define.
5351 (NO_RELOC): Adjust for BFD_ASSEMBLER.
5352 (TC_RELOC_RTSYM_LOC_FIXUP, TC_FIX_ADJUSTABLE)
5353 (tc_fix_adjustable): Define if BFD_ASSEMBLER.
5354 * config/vax-inst.h (VAX_JSB, VAX_CALLS, VAX_CALLG): Define.
5356 2002-06-08 Alan Modra <amodra@bigpond.net.au>
5358 * Makefile.am: Run "make dep-am".
5359 * Makefile.in: Regenerate.
5361 * as.c: Replace CONST with const.
5362 * write.c: Likewise.
5363 * config/obj-coff.c: Likewise.
5364 * config/tc-a29k.c: Likewise.
5365 * config/tc-arm.c: Likewise.
5366 * config/tc-dlx.c: Likewise.
5367 * config/tc-h8300.c: Likewise.
5368 * config/tc-h8500.c: Likewise.
5369 * config/tc-i370.c: Likewise.
5370 * config/tc-i860.c: Likewise.
5371 * config/tc-i960.c: Likewise.
5372 * config/tc-m68hc11.c: Likewise.
5373 * config/tc-m68k.c: Likewise.
5374 * config/tc-m88k.c: Likewise.
5375 * config/tc-mcore.c: Likewise.
5376 * config/tc-mips.c: Likewise.
5377 * config/tc-ns32k.c: Likewise.
5378 * config/tc-pdp11.c: Likewise.
5379 * config/tc-pj.c: Likewise.
5380 * config/tc-s390.c: Likewise.
5381 * config/tc-sh.c: Likewise.
5382 * config/tc-sparc.c: Likewise.
5383 * config/tc-tahoe.c: Likewise.
5384 * config/tc-tic80.c: Likewise.
5385 * config/tc-v850.c: Likewise.
5386 * config/tc-vax.c: Likewise.
5387 * config/tc-w65.c: Likewise.
5388 * config/tc-z8k.c: Likewise.
5390 2002-06-08 Daniel Jacobowitz <drow@mvista.com>
5392 Based on patch from Matt Green:
5393 * config/obj-elf.h (ECOFF_DEBUGGING): Make configurable.
5394 * config/tc-mips.c (s_mips_file): Renamed from s_file.
5395 (s_mips_loc): New function.
5396 (mips_nonecoff_pseudo_table): Call them.
5397 (append_insn): Call dwarf2_emit_insn.
5399 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5401 * config/tc-mips.c (mips_opts): Fix comment, all ASE fields are set
5403 (file_ase_mips16): New veriable.
5404 (mips_eabi64): Remove.
5405 (CPU_HAS_MIPS16): New define.
5406 (CPU_HAS_MDMX): Fix data type.
5407 (md_begin): Code cleanup. Use file_ase_mips16.
5408 (mips_elf_final_processing): Handle mips16 header flag.
5409 Handle EABI flag without intermediate variable.
5411 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5413 * doc/as.texinfo: Update MIPS documentation.
5415 2002-06-08 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5417 * config/tc-mips.c: Add define for $zero register.
5418 (md_begin): Add $zero as alias name for $0.
5419 (insn_uses_reg): Use ZERO define.
5420 (mips_ip): Add $zero as alias name for $0.
5421 (mips16_ip): Likewise.
5422 (s_cplocal): Demand empty rest of input line.
5423 (tc_get_register): Likewise. Add support for $kt0, kt1 register
5424 names. Use ZERO define. Fix input_line_pointer progress.
5426 2002-06-07 Alan Modra <amodra@bigpond.net.au>
5428 * symbols.c: Replace CONST by const throughout.
5429 (symbol_find_exact): Split out from..
5430 (symbol_find_base): ..here.
5431 * symbols.h: Replace CONST by const throughout.
5432 (symbol_find_exact): Declare.
5433 * config/obj-elf.c: #include "struc-symbol.h".
5434 (elf_frob_file): If group name matches an exported symbol, use that
5435 symbol for the signature and ".group" as the section name.
5437 2002-06-06 J"orn Rennecke <joern.rennecke@superh.com>
5439 * config/tc-sh.c (parse_at): @(symbol,pc) is A_DISP_PC again,
5442 2002-06-06 Daniel Jacobowitz <drow@mvista.com>
5444 * tc-mips.c (mips_after_parse_args): Always set mips_opts.ase_mips3d
5445 and mips_opts.ase_mdmx if they are uninitialized.
5447 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
5449 * gas/config/tc-hppa.c (pa_ip): Replace "L$0\001" with FAKE_LABEL_NAME.
5450 (hppa_force_relocation): Check if a stub just before the start symbol
5451 of the last call_info is reachable before forcing relocation. Fix
5454 2002-06-04 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5456 * config/tc-mips.c (mips_after_parse_args): New function.
5457 (md_begin): Move processing of defaults to mips_after_parse_args.
5458 config/tc-mips.h (md_after_parse_args): Define.
5460 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5462 * configure.in (sh5*): Set cpu_type to sh64 and endian to big.
5463 (sh5le*, sh64le*): Set cpu_type to sh64 and endian to little.
5464 (sh5*-*-netbsd*, sh64*-*-netbsd*): New targets.
5465 * configure: Regenerate.
5466 * config/tc-sh64.c (sh64_target_format): Add support for NetBSD
5469 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
5471 * config/tc-sh64.h (MD_PCREL_FROM_SECTION): Undef before redefining.
5473 2002-06-04 Alan Modra <amodra@bigpond.net.au>
5475 * config/obj-elf.c (obj_elf_change_section): Set and check elf
5476 linkonce flag. Print all warnings.
5477 (obj_elf_section): Parse ",comdat" for groups.
5478 (elf_frob_file): Set SEC_LINK_ONCE on COMDAT groups. Check
5479 consistency of comdat flag.
5481 2002-06-02 Richard Henderson <rth@redhat.com>
5483 * config/tc-alpha.c (alpha_adjust_symtab_relocs): Fix thinko
5484 with LITERALs without sequence numbers.
5486 2002-06-01 Richard Henderson <rth@redhat.com>
5488 * config/tc-alpha.c: Move LITUSE constants to "elf/alpha.h".
5489 Rename them LITUSE_ALPHA_*.
5491 2002-05-31 Shrinivas Atre <ShrinivasA@kpit.com>
5493 * config/tc-h8300.c (get_operand): Allow stm.l and ldm.l insns to
5494 accept parentheses enclosed register lists.
5496 2002-05-31 Alan Modra <amodra@bigpond.net.au>
5498 * Makefile.am: Run "make dep-am".
5499 * Makefile.in: Regenerate.
5500 * po/POTFILES.in: Regenerate.
5502 2002-05-31 Graeme Peterson <gp@qnx.com>
5504 * configure.in: Add i386-*-nto-qnx*.
5505 * configure: Regenerate.
5507 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5509 * config/tc-mips.c (mips_ip): Use unsigned long values for
5512 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5514 * config/tc-mips.c (s_cpsetup): Fix initialization of
5515 mips_cpreturn_register and mips_cpreturn_offset.
5517 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5519 * config/tc-mips.c (s_cpsetup): Fix comment.
5521 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5523 * config/tc-mips.c (md_begin): Add $ra as alias name for $31.
5524 (mips_ip): Likewise.
5525 (mips16_ip): Likewise.
5526 (tc_get_register): Likewise.
5528 2002-05-30 Chris G. Demetriou <cgd@broadcom.com>
5529 Ed Satterthwaite <ehs@broadcom.com>
5531 * config/tc-mips.c (mips_set_options): New "ase_mdmx" member.
5532 (mips_opts): Initialize "ase_mdmx" member.
5533 (file_ase_mdmx): New variable.
5534 (CPU_HAS_MDMX): New macro.
5535 (md_begin): Initialize mips_opts.ase_mdmx and file_ase_mdmx
5536 based on command line options and configuration defaults.
5537 (macro_build): Note in comment that use of MDMX in macros is
5538 not currently allowed.
5539 (validate_mips_insn): Add support for the "O", "Q", "X", "Y", and
5540 "Z" MDMX operand types.
5541 (mips_ip): Accept MDMX instructions if mips_opts.ase_mdmx is set,
5542 and add support for the "O", "Q", "X", "Y", and "Z" MDMX operand
5544 (OPTION_MDMX, OPTION_NO_MDMX, md_longopts, md_parse_option):
5545 Add support for "-mdmx" and "-no-mdmx" options.
5546 (OPTION_ELF_BASE): Move to accommodate new options.
5547 (s_mipsset): Support ".set mdmx" and ".set nomdmx".
5548 (mips_elf_final_processing): Set MDMX ASE ELF header flag if
5549 file_ase_mdmx was set.
5550 * doc/as.texinfo: Document -mdmx and -no-mdmx options.
5551 * doc/c-mips.texi: Likewise, and document ".set mdmx" and ".set
5554 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5556 * config/tc-mips.c (OPTION_NO_M7000_HILO_FIX): Rename to
5557 OPTION_MNO_7000_HILO_FIX. Add alternate "mno-fix7000"
5558 command line switch conforming to gcc conventions.
5559 * doc/c-mips.texi: Document -mno-fix7000 instead of no-mfix-7000.
5561 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5563 * config/tc-mips.c (macro_build_jalr): New Function.
5564 (md_begin): NewABI uses big GOTs.
5565 (macro_build): Recognize BFD_RELOC_MIPS_GOT_DISP,
5566 BFD_RELOC_MIPS_GOT_PAGE, BFD_RELOC_MIPS_GOT_OFST as valid.
5567 (load_address): Add some NewABI PIC support.
5569 (md_apply_fix): Special handling for BFD_RELOC_MIPS_JALR.
5570 (tc_gen_reloc): Don't encode NewABI vtables in REL relocations.
5572 2002-05-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5574 * config/tc-mips.c (load_address): Use mips_gp_register instead
5575 of hardcoded value. Remove dbl parameter, use HAVE_32BIT_ADDRESSES
5577 (macro): Use mips_gp_register instead of hardcoded value.
5579 2002-05-30 Richard Henderson <rth@redhat.com>
5581 * expr.h (operatorT): Add O_md17..O_md32.
5582 * config/tc-alpha.c (O_lituse_tlsgd, O_lituse_tlsldm, O_tlsgd,
5583 O_tlsldm, O_gotdtprel, O_dtprelhi, O_dtprello, O_dtprel, O_gottprel,
5584 O_tprelhi, O_tprello, O_tprel): New.
5585 (USER_RELOC_P, alpha_reloc_op_tag, debug_exp): Include them.
5586 (DUMMY_RELOC_LITUSE_TLSGD, DUMMY_RELOC_LITUSE_TLSLDM): New.
5587 (LITUSE_TLSGD, LITUSE_TLSLDM): New.
5588 (struct alpha_reloc_tag): Add master, saw_tlsgd, saw_tlsld,
5589 saw_lu_tlsgd, saw_lu_tlsldm. Make multi_section_p a bit field.
5590 (md_apply_fix3): Handle TLS relocations.
5591 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
5592 (alpha_adjust_symtab_relocs): Sort LITERAL relocs after the
5593 associated TLS reloc. Check lituse_tls relocs match up.
5594 (emit_insn): Handle TLS relocations.
5597 * doc/c-alpha.texi: Add docs for tls relocations.
5599 2002-05-30 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5601 * config/tc-mips.c (mips_gprel_offset): New variable.
5602 (s_gpvalue): Use it.
5604 2002-05-30 Diego Novillo <dnovillo@redhat.com>
5606 * gas/config/tc-d10v.c (check_resource_conflict): Only check
5607 write-write conflicts.
5608 (md_assemble): Reformat introductory comment.
5609 (parallel_ok): Prevent packing only if the first
5610 instruction cannot be packed.
5612 2002-05-30 Jason Eckhardt <jle@redhat.com>
5613 Tom Rix <trix@redhat.com>
5615 * config/tc-d10v.c (build_insn): Check for immediates.
5617 2002-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5619 * config/tc-mips.c: Replace GP in comments by $gp.
5620 (mips_big_got): Initialize.
5621 (mips_trap): Initialize.
5622 (load_address): Use mips_gp_register instead of hardcoded value.
5623 Remove dbl parameter, use HAVE_32BIT_ADDRESSES instead.
5624 (macro): Use mips_gp_register instead of hardcoded value.
5625 (macro2): Change load_address calls.
5626 (md_pcrel_from): Comment formatting.
5627 (s_cpload): Use mips_gp_register instead of hardcoded value.
5628 (s_cprestore): Likewise. Comment formatting.
5629 (s_gpword): Fix data type.
5630 (s_cpadd): Use mips_gp_register instead of hardcoded value.
5631 (nopic_need_relax): Replace GP in comments by $gp.
5632 (mips_elf_final_processing): Better comment.
5634 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
5636 * configure.in: Add DLX configuraton
5637 * Makefile.am: Add DLX configuraton
5638 * configure: Regenerate.
5639 * Makefile.in: Regenerate.
5640 * config/tc-dlx.c: New file.
5641 * config/tc-dlx.h: New files.
5642 * NEWS: Mention new support.
5644 2002-05-27 Nick Clifton <nickc@cambridge.redhat.com>
5646 * config/obj-coff.c (write_object_file): Add missing semicolon.
5648 2002-05-26 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5650 * config/tc-mips.c (mips_emit_delays): Replace magic constant for RA
5651 by the define. Remove superfluous check of mips_opts.mips16.
5652 (append_insn): Likewise. Canonicalize variable increments.
5653 (macro_build): Canonicalize variable increments.
5654 (macro_build_lui): Likewise.
5655 (load_register): Likewise.
5656 (load_address): Move pointer initialization.
5657 (macro): Move pointer to a more local scope. Canonicalize variable
5658 increments. Better comments. Replace magic constant for RA by the
5660 (macro2): Replace magic constant for RA by the define. Canonicalize
5661 variable increments.
5662 (mips_ip): Canonicalize variable increments.
5663 (mips16_ip): Replace magic constant for RA by the define.
5664 (my_getSmallParser): Canonicalize variable increments/decrements.
5665 (my_getPercentOp): Likewise.
5666 (my_getSmallExpression): Likewise.
5667 (s_align): Likewise.
5668 (s_mipsset): Likewise.
5669 (s_cpsetup): Likewise.
5670 (s_insn): Remove superfluous check of mips_opts.mips16.
5671 (s_mips_stab): Likewise.
5672 (mips_handle_align): Canonicalize variable increments.
5673 (s_mips_ent): Likewise.
5674 (s_mips_end): Add comment.
5676 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
5678 * configure.in: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
5679 * configure: Regenerate.
5681 2002-05-25 Alan Modra <amodra@bigpond.net.au>
5683 * Makefile.am (OBJS): Depend on ansidecl.h and fopen-same.h.
5684 * Makefile.in: Regenerate.
5685 * dep-in.sed: Reorder to match OBJS in Makefile.am.
5686 * configure.in (ALL_OBJ_DEPS): Add symcat.h when need_bfd.
5687 * configure: Regenerate.
5688 * as.h: Use #include "" instead of <> for local header files.
5689 * flonum-konst.c: Likewise.
5690 * flonum-mult.c: Likewise.
5692 * listing.c: Likewise.
5693 * config/tc-ia64.h: Likewise.
5694 * config/tc-v850.h: Likewise.
5696 2002-05-24 TAMURA Kent <kent@netbsd.org>
5698 * configure.in: Add a target for i386-netbsdpe.
5699 * configure: Regenerate.
5701 2002-05-23 Jakub Jelinek <jakub@redhat.com>
5703 * config/obj-elf.c (elf_common): Renamed from obj_elf_common.
5704 (obj_elf_common): Call elf_common.
5705 (obj_elf_tls_common): New function.
5706 (elf_pseudo_tab): Support .tls_common.
5707 (special_sections): Add .tdata and .tbss.
5708 (obj_elf_change_section): Set SEC_THREAD_LOCAL for SHF_TLS
5710 (obj_elf_parse_section_letters): Support T in section flags (SHF_TLS).
5711 (obj_elf_parse_section_letters): Include T in error message.
5712 * config/tc-ppc.c (ppc_section_letter): Likewise.
5713 * config/tc-alpha.c (alpha_elf_section_letter): Likewise.
5714 (tc_gen_reloc): Handle SEC_THREAD_LOCAL the same way as
5716 * config/tc-sparc.c (md_apply_fix3): Likewise.
5717 * config/tc-i386.c (tc_i386_fix_adjustable): Add TLS relocs.
5718 Define them if not BFD_ASSEMBLER.
5719 (lex_got): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF, @DTPOFF
5721 (md_apply_fix3): Add TLS relocs.
5722 * config/tc-ia64.c (enum reloc_func): Add FUNC_DTP_MODULE,
5723 FUNC_DTP_RELATIVE, FUNC_TP_RELATIVE, FUNC_LT_DTP_MODULE,
5724 FUNC_LT_DTP_RELATIVE, FUNC_LT_TP_RELATIVE.
5725 (pseudo_func): Support @dtpmod(), @dtprel() and @tprel().
5726 (ia64_elf_section_letter): Include T in error message.
5727 (md_begin): Support TLS operators.
5728 (md_operand): Likewise.
5729 (ia64_gen_real_reloc_type): Support TLS relocs.
5730 * write.c (adjust_reloc_syms): Don't change symbols in
5731 SEC_THREAD_LOCAL sections to STT_SECTION + addend.
5733 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5735 * config/tc-arm.c (md_apply_fix3): For the Thumb BLX reloc
5736 round the relocation up rather than down.
5738 2002-05-23 Nick Clifton <nickc@cambridge.redhat.com>
5740 * config/obj-coff.c (obj_coff_section): Silently ignore an 'a'
5742 * doc/as.texinfo: Document that the COFF version of .section
5743 ignores the 'a' flag.
5745 2002-05-23 Alan Modra <amodra@bigpond.net.au>
5747 * config/tc-alpha.c (assemble_tokens): Protect use of
5748 ALPHA_RELOC_TABLE with #ifdef RELOC_OP_P.
5750 * write.c (size_seg): Check adjustment to last frag.
5751 (SUB_SEGMENT_ALIGN): If HANDLE_ALIGN defined, pad out last frag to
5753 * config/obj-coff.c (SUB_SEGMENT_ALIGN): Likewise.
5754 * config/obj-ieee.c (SUB_SEGMENT_ALIGN): Likewise.
5755 (write_object_file): Invoke md_do_align if available, and use
5756 frag_align_code on text sections.
5757 * config/obj-vms.h (SUB_SEGMENT_ALIGN): Now two args.
5758 * config/tc-m88k.h (SUB_SEGMENT_ALIGN): Likewise.
5759 * config/tc-ppc.h (SUB_SEGMENT_ALIGN): Likewise.
5760 * config/tc-sh.h (SUB_SEGMENT_ALIGN): Likewise.
5761 * config/tc-i386.h (SUB_SEGMENT_ALIGN): Likewise. Define for
5764 2002-05-22 H.J. Lu <hjl@gnu.org>
5766 * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file
5769 2002-05-22 Nick Clifton <nickc@cambridge.redhat.com>
5771 * config/tc-arm.c (arm_s_section): Enable for COFF builds as well
5774 2002-05-22 H.J. Lu <hjl@gnu.org>
5776 * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol
5777 for one .loc for compiler.
5779 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5781 * config/tc-mips.c (macro): Relax warning, it's toot strict for
5784 2002-05-22 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5786 * config/tc-mips.c (macro2): Add 64 bit drol, dror macros.
5787 Optimize the rotate by zero case.
5789 2002-05-21 Nick Clifton <nickc@cambridge.redhat.com>
5791 * configure.in: Remove accidental enabling of bfd_gas=yes for
5793 * configure: Regenerate.
5795 2002-05-18 Kazu Hirata <kazu@cs.umass.edu>
5797 * app.c: Fix formatting.
5799 * ehopt.c: Likewise.
5801 * input-file.c: Likewise.
5802 * listing.c: Likewise.
5803 * macro.h: Likewise.
5804 * stabs.c: Likewise.
5805 * symbols.c: Likewise.
5807 2002-05-17 Alan Modra <amodra@bigpond.net.au>
5809 * config/obj-generic.c: Delete file.
5810 * config/obj-generic.h: Likewise.
5812 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
5814 * config/tc-avr.c (mcu_types): Update for new devices.
5816 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5818 * config/tc-mips.c (macro): Warn about wrong la/dla use.
5820 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5822 * config/tc_mips.c (s_cpsetup): Fix completely bogus code which had
5823 worked sometimes by accident. Fix copy&paste comment.
5825 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5827 * config/tc-mips.c (md_begin): Fix .reginfo and .MIPS.option section
5828 alignment for NewABI. Let n32 use .reginfo. Remove useless casts.
5829 (mips_elf_final_processing): Let n32 use .reginfo.
5831 2002-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5833 * config/tc-mips.c (append_insn): Fix too small range of variable.
5835 2002-05-14 Nick Clifton <nickc@cambridge.redhat.com>
5837 * config/tc-arm.c (arm_cleanup): Remove redundant call to
5838 listing_prev_line().
5840 2002-05-13 Nick Clifton <nickc@cambridge.redhat.com>
5842 * config/tc-arm.c (md_assemble): Remove redundant call to
5845 * dwarf2dbg.c (dwarf2_emit_insn): Do not reset
5848 * stabs.c (s_stab_generic): Fix grammatical error in warning
5851 2002-05-13 Alan Modra <amodra@bigpond.net.au>
5853 * write.c (subsegs_finish): Don't specially align last subseg.
5855 2002-05-11 Nick Clifton <nickc@cambridge.redhat.com>
5857 * stabs.c (s_stab_generic): Warn about a description field that is
5860 * config/obj-coff.c: Fix compile time warnings when compiling
5861 without BFD_ASSEMBLER defined.
5864 * config/tc-sh.c (md_pcrel_from): Define for use with sh-hms
5866 (md_pcrel_from_section): Use md_pcrel_from().
5868 2002-05-11 Bruno Haible <bruno@clisp.org>
5870 * dwarf2dbg.c (dwarf2_emit_insn): Use the 'current' struct filled
5871 by dwarf2_directive_loc, instead of calling dwarf2_where.
5873 2002-05-11 Kazu Hirata <kazu@cs.umass.edu>
5875 * config/obj-coff.h: Fix formatting.
5876 * config/tc-mcore.c: Likewise.
5877 * config/tc-mn10300.c: Likewise.
5878 * config/tc-openrisc.c: Likewise.
5879 * config/tc-or32.c: Likewise.
5880 * config/tc-pdp11.c: Likewise.
5881 * config/tc-ppc.c: Likewise.
5882 * config/tc-ppc.h: Likewise.
5883 * config/tc-sh64.c: Likewise.
5884 * config/tc-sh.c: Likewise.
5885 * config/tc-tic54x.c: Likewise.
5886 * config/tc-xstormy16.c: Likewise.
5887 * config/tc-xstormy16.h: Likewise.
5889 2002-05-09 Kazu Hirata <kazu@cs.umass.edu>
5891 * config/obj-coff.c: Fix formatting.
5892 * config/obj-elf.c: Likewise.
5893 * config/tc-alpha.c: Likewise.
5894 * config/tc-arm.c: Likewise.
5895 * config/tc-d10v.c: Likewise.
5896 * config/tc-d30v.c: Likewise.
5897 * config/tc-h8300.c: Likewise.
5898 * config/tc-hppa.c: Likewise.
5900 2002-05-09 Alan Modra <amodra@bigpond.net.au>
5902 * config/tc-i386.c (md_estimate_size_before_relax) Don't lose
5903 reloc when no_cond_jump_promotion.
5905 2002-05-08 Jim Wilson <wilson@redhat.com>
5907 * config/tc-i960.c (md_estimate_size_before_relax): Return size of
5908 current variable part of frag.
5910 2002-05-08 Kazu Hirata <kazu@cs.umass.edu>
5912 * config/tc-mmix.c: Fix formatting.
5913 * config/tc-mmix.h: Likewise.
5915 2002-05-08 Alan Modra <amodra@bigpond.net.au>
5917 * configure: Regenerate.
5919 2002-05-07 Kazu Hirata <kazu@cs.umass.edu>
5921 * config/tc-m68k.c: Fix formatting.
5923 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
5925 * Makefile.am: Honour DESTDIR.
5926 * Makefile.in: Regenerate.
5928 2002-05-06 Kazu Hirata <kazu@cs.umass.edu>
5930 * config/tc-ia64.c: Fix formatting.
5931 * config/tc-ia64.h: Likewise.
5933 2002-05-04 Kazu Hirata <kazu@cs.umass.edu>
5935 * config/tc-mips.c: Fix formatting.
5936 * config/tc-s390.c: Likewise.
5937 * config/tc-s390.h: Likewise.
5939 2002-05-03 Alexandre Oliva <aoliva@redhat.com>
5941 * config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
5942 information for instructions.
5944 2002-05-02 Kazu Hirata <kazu@cs.umass.edu>
5946 * as.h: Fix formatting.
5949 * dwarf2dbg.c: Likewise.
5950 * frags.h: Likewise.
5952 * macro.c: Likewise.
5954 * stabs.c: Likewise.
5955 * symbols.c: Likewise.
5957 2002-05-02 Alan Modra <amodra@bigpond.net.au>
5959 * app.c (mri_pseudo): Only declare for TC_M68K.
5961 * config/tc-ppc.c (mapping): Map sectoff to BFD_RELOC_16_BASEREL.
5962 (ppc_elf_validate_fix): Replace BFD_RELOC_32_BASEREL with
5963 BFD_RELOC_16_BASEREL.
5964 (md_assemble): Likewise.
5965 (md_apply_fix3): Likewise.
5967 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
5969 * config/tc-arm.c (thumb_add_sub): Do not convert a subtract of
5970 zero into an add of zero - it is not the same.
5972 2002-05-01 Arati Dikey <aratid@kpit.com>
5974 * tc-sh.c (get_specific): Generate warning if the same
5975 destination register is used in parallel instructions.
5977 2002-05-01 Andrew Macleod <amacleod@cygnus.com>
5979 * config/tc-i386.c (extra_symbol_chars): Add '[' to the list.
5981 2002-05-01 Alan Modra <amodra@bigpond.net.au>
5983 * write.c (cvt_frag_to_fill): Set fr_offset to zero on .org
5984 backwards to prevent cascading errors.
5986 2002-04-30 Mark Mitchell <mark@codesourcery.com>
5988 * configure.in: Add support for powerpc-*-windiss.
5989 * configure: Regenerated.
5991 2002-04-28 Alan Modra <amodra@bigpond.net.au>
5993 * config/tc-s390.c (md_parse_option): Formatting.
5995 * config/tc-i386.c: Formatting fixes, add missing space in error
5998 2002-04-24 Christian Groessler <chris@groessler.org>
6000 * config/tc-z8k.c (build_bytes): Add support for new cases:
6001 CLASS_IGNORE and ARG_NIM4.
6002 (md_assemble): Prevent destruction of input_line_pointer if
6003 get_operands returns failure.
6005 2002-04-24 Chris G. Demetriou <cgd@broadcom.com>
6007 * config/tc-mips.c (macro_build): Do _not_ allow MIPS-3D
6008 instructions to be generated by macros.
6010 2002-04-24 Andreas Schwab <schwab@suse.de>
6012 * config/tc-i386.c (output_jump, output_disp)
6013 (md_estimate_size_before_relax): Don't set fx_pcrel_adjust any
6015 (md_apply_fix3): Remember addend value for rela relocations.
6016 (tc_gen_reloc): Correctly compute pc-relative relocation addend.
6018 2002-04-22 Chris Demetriou <cgd@broadcom.com>
6020 * config/tc-mips.c (macro_build): Add close-parenthesis missing
6021 from previous change.
6023 2002-04-22 Eric Christopher <echristo@redhat.com>
6025 * config/tc-mips.c (macro_build): Add warning if macro instructions
6026 are expanded into a branch delay slot.
6028 2002-04-17 Geoffrey Keating <geoffk@redhat.com>
6030 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate line
6031 numbers, gdb relies on them to detect the start of the prologue.
6033 2002-04-17 Martin Schwidefsky <schwidefsky@de.ibm.com>
6035 * config/tc-s390.c (tc_s390_fix_adjustable): Prevent adjustments to
6036 symbols in merge sections.
6038 2002-04-16 Alan Modra <amodra@bigpond.net.au>
6040 * as.c (main): Don't reference _bfd_chunksize.
6042 2002-04-15 Tom Rix <trix@redhat.com>
6044 * config/tc-d10v.c (d10v_fix_adjustable): Prevent adjustments to
6045 symbols in merge sections.
6047 2002-04-11 Richard Sandiford <rsandifo@redhat.com>
6049 * doc/invoke.texi (TC_LARGEST_EXPONENT_IS_NORMAL): Document.
6050 * config/atof-ieee.c (TC_LARGEST_EXPONENT_IS_NORMAL): Add an
6051 argument for the precision.
6052 (gen_to_words): Update accordingly.
6054 2002-04-10 Alan Modra <amodra@bigpond.net.au>
6056 * as.c (parse_args <OPTION_VERSION>): Use VERSION is
6057 BFD_VERSION_STRING unavailable.
6058 * config/tc-i386.c (INLINE): Define (for non-BFD assembler).
6060 2002-04-09 J"orn Rennecke <joern.rennecke@superh.com>
6062 * config/tc-sh.h (TC_FIX_ADJUSTABLE): Disable adjusting if
6063 symbol_used_in_reloc_p is true.
6065 * config/tc-sh.c (md_apply_fix3): Don't zero relocations on big
6068 2002-04-04 Alan Modra <amodra@bigpond.net.au>
6070 * dep-in.sed: Cope with absolute paths.
6071 * Makefile.am (dep.sed): Subst TOPDIR.
6073 * Makefile.in: Regenerate.
6075 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6077 * config/tc-mips.c (mips16_macro_build): Cast type mismatch.
6078 (mips_ip): Remove unused variable.
6079 (md_apply_fix3): Cast signed/unsignes mismatches. Replace
6080 unsigned char with bfd_byte.
6081 (s_file): Remove unused variable.
6082 (s_mips_ent): Likewise.
6084 2002-04-03 Tom Rix <trix@redhat.com>
6086 * config/tc-d10v.c (d10v_insert_operand): Fix warning in as_bad_where.
6088 (find_opcode): Fix warning in as_warn.
6089 * config/tc-d10v.h: Update Copyright.
6091 2002-04-03 Alan Matsuoka <alanm@redhat.com>
6092 Tom Rix <trix@redhat.com>
6094 From Jeff Knaggs <jknaggs@redhat.com>
6095 * config/tc-d10v.c (check_resource_conflict): New function to
6096 check for resource conflicts.
6098 From Jason Eckhardt <jle@redhat.com>
6099 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
6101 * config/tc-d10v.c (find_opcode): Emit a warning if one of the
6102 reserved control registers is used.
6103 * config/tc-d10v.c (build_insn): Check for unresolved imm4 or
6106 From 2001-03-28 Diego Novillo <dnovillo@redhat.com>
6107 * tc-d10v.c (parallel_ok): Prevent packing only if the first
6108 instruction cannot be packed.
6110 From 2001-03-30 Diego Novillo <dnovillo@redhat.com>
6111 * gas/config/tc-d10v.c (check_resource_conflict): Only check
6112 write-write conflicts.
6113 (md_assemble): Reformat introductory comment.
6114 * opcodes/d10v-opc.c (d10v_opcodes): `btsti' does not modify its
6117 2002-04-03 Alan Modra <amodra@bigpond.net.au>
6119 * symbols.c (resolve_symbol_value <O_uminus, O_bit_not,
6120 O_logical_not>): Derive final_seg from add_symbol.
6121 <O_multiply..O_logical_or>: More final_seg twiddles.
6123 2002-04-01 Jessica Han <jessica@cup.hp.com>
6125 * config/tc-ia64.c (ia64_cons_fix_new): Handle 8 byte iplt reloc
6128 2002-03-27 Andreas Schwab <schwab@suse.de>
6130 * config/tc-i386.c (output_jump): Set fx_pcrel_adjust to size of
6131 field for pc-relative fixups.
6132 (output_disp): Likewise.
6133 (md_estimate_size_before_relax): Likewise.
6134 (tc_gen_reloc): Subtract fx_pcrel_adjust instead of fx_size for
6135 pc-relative fixups in 64bit mode.
6137 2002-03-22 Alan Modra <amodra@bigpond.net.au>
6139 * config/te-aix5.h: Typo fix.
6141 2002-03-21 Alan Modra <amodra@bigpond.net.au>
6143 * Makefile.am: Run "make dep-am".
6144 * Makefile.in: Regenerate.
6145 * doc/Makefile.in: Regenerate.
6147 2002-03-20 Albert Chin-A-Young <china@thewrittenword.com>
6149 * config/tc-arm.c (vfp_dp_reg_required_here): Fix typo
6150 (vfp_sp_reg_pos -> vfp_dp_reg_pos).
6152 2002-03-18 Alexandre Oliva <aoliva@redhat.com>
6154 * config/tc-mips.c (md_estimate_size_before_relax): Do not modify
6155 the EXTENDED bit here; report the estimate according to the
6158 2002-03-18 Tom Rix <trix@redhat.com>
6160 * configure.in: Add AIX 5 support.
6161 * config/tc-ppc.c (ppc_target_format): Add AIX 5 64 bit target.
6162 * config/te-aix5.h: New file. AIX 5 support.
6163 * configure: Regenerate.
6165 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
6167 * po/fr.po: Updated version.
6169 2002-03-16 Andreas Jaeger <aj@suse.de>
6171 * doc/c-mips.texi (Machine Dependencies): Add new node.
6173 2002-03-15 Chris G. Demetriou <cgd@broadcom.com>
6175 * config/tc-mips.c (mips_set_options): New "ase_mips3d" member.
6176 (mips_opts): Initialize "ase_mips3d" member.
6177 (file_ase_mips3d): New variable.
6178 (CPU_HAS_MIPS3D): New macro.
6179 (md_begin): Initialize mips_opts.ase_mips3d and file_ase_mips3d
6180 based on command line options and configuration defaults.
6181 (macro_build, mips_ip): Accept MIPS-3D instructions if
6182 mips_opts.ase_mips3d is set.
6183 (OPTION_MIPS3D, OPTION_NO_MIPS3D, md_longopts, md_parse_option):
6184 Add support for "-mips3d" and "-no-mips3d" options.
6185 (OPTION_ELF_BASE): Move to accommodate new options.
6186 (s_mipsset): Support ".set mips3d" and ".set nomips3d".
6187 (mips_elf_final_processing): Add a comment indicating that a
6188 MIPS-3D ASE ELF header flag should be set, when one exists.
6189 * doc/as.texinfo: Document -mips3d and -no-mips3d options.
6190 * doc/c-mips.texi: Likewise, and document ".set mips3d" and ".set
6191 nomips3d" directives.
6193 2002-03-14 Hans-Peter Nilsson <hp@bitrange.com>
6195 * config/tc-mmix.c (md_estimate_size_before_relax): Don't consider
6196 a weak symbol in same section to be within reach.
6198 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
6200 * po/fr.po: Updated version.
6202 2002-03-12 Andreas Schwab <schwab@suse.de>
6204 * config/tc-ia64.c (fixup_unw_records): Clear region when seeing a
6205 body record so that an error is given for misplaced .save
6208 2002-03-09 Alan Modra <amodra@bigpond.net.au>
6210 * config/tc-i386.h (REX_OPCODE): Define.
6211 (REX_MODE64, REX_EXTX, REX_EXTY, REX_EXTZ): Define.
6212 (rex_byte): typedef to int.
6213 * config/tc-i386.c: Group prototypes and vars together.
6214 Formatting fixes. Remove occurrences of "register" keyword.
6217 (mode_from_disp_size): Add INLINE keyword to prototype.
6218 (fits_in_signed_byte): Likewise.
6219 (fits_in_unsigned_byte): Likewise.
6220 (fits_in_unsigned_word): Likewise.
6221 (fits_in_signed_word): Likewise.
6222 (fits_in_unsigned_long): Likewise.
6223 (fits_in_signed_long): Likewise.
6224 (type_names): Constify.
6225 (intel_float_operand): Constify param.
6226 (add_prefix): Use REX_OPCODE.
6227 (md_assemble): Likewise. Modify for changed rex_byte.
6228 (parse_insn): Split out of md_assemble.
6229 (parse_operands): Likewise.
6230 (swap_operands): Likewise.
6231 (optimize_imm): Likewise.
6232 (optimize_disp): Likewise.
6233 (match_template): Likewise.
6234 (check_string): Likewise.
6235 (process_suffix): Likewise.
6236 (check_byte_reg): Likewise.
6237 (check_long_reg): Likewise.
6238 (check_qword_reg): Likewise.
6239 (check_word_reg): Likewise.
6240 (finalize_imm): Likewise.
6241 (process_operands): Likewise.
6242 (build_modrm_byte): Likewise.
6243 (output_insn): Likewise.
6244 (output_branch): Likewise.
6245 (output_jump): Likewise.
6246 (output_interseg_jump): Likewise.
6247 (output_disp): Likewise.
6248 (output_imm): Likewise.
6250 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
6252 * doc/as.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
6254 2002-03-06 Alan Modra <amodra@bigpond.net.au>
6256 * config/tc-i386.c (tc_gen_reloc): Don't attempt to handle 8 byte
6257 relocs except when BFD64.
6259 * write.c (number_to_chars_bigendian): Don't abort when N is
6260 larger than sizeof (VAL).
6261 (number_to_chars_littleendian): Likewise.
6263 2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
6265 * config/tc-hppa.c (md_apply_fix3): Add cast.
6266 (hppa_fix_adjustable): Adjust list of selectors using e_lrsel and
6269 2002-03-05 Paul Koning <pkoning@equallogic.com>
6271 * tc-pdp11.c: Use VAX float format support for PDP-11 target.
6272 (parse_ac5): New function for parsing float regs in float operand.
6273 (parse_expression): Remove attempt to make literals be octal.
6274 (parse_op_no_deferred): Support float literals.
6275 (parse_op): Reject attempts to refer to float regs.
6276 (parse_fop): New function, like parse_op but for float operand.
6277 (md_assemble): Add cases to parse float operands. Also fix
6278 IMM3, IMM6, IMM8 cases to pick up the operand from the right spot.
6280 2002-03-04 H.J. Lu <hjl@gnu.org>
6282 * config/obj-elf.c (special_section): Add .init_array,
6283 .fini_array and .preinit_array.
6285 * config/tc-ia64.h (ELF_TC_SPECIAL_SECTIONS): Remove
6286 .init_array and .fini_array.
6288 2002-03-01 Jakub Jelinek <jakub@redhat.com>
6290 * config/obj-elf.c (elf_copy_symbol_attributes): Don't copy
6292 (obj_frob_symbol): Copy visibility.
6294 2002-02-28 Jakub Jelinek <jakub@redhat.com>
6296 * config/tc-alpha.c (s_alpha_text): Use obj_elf_text for OBJ_ELF, not
6298 (s_alpha_data): Use obj_elf_data for OBJ_ELF, not s_data.
6300 2002-02-27 Nick Clifton <nickc@cambridge.redhat.com>
6302 * po/es.po: Updated.
6304 2002-02-26 Chris Demetriou <cgd@broadcom.com>
6306 * config/tc-mips.c (mips_need_elf_addend_fixup): For embedded-PIC
6307 only, undo the changes made on 2001-06-08, with the
6308 effect being that common or extern symbols are
6309 adjusted for embedded-PIC, but weak symbols are not.
6310 (md_estimate_size_before_relax: Likewise, with the effect
6311 that extern symbols are treated the same as weak symbols
6312 only if not embedded-PIC.
6313 (mips_fix_adjustable) Likewise, with the effect that
6314 weak or extern symbols are not adjusted for embedded-PIC.
6315 (md_apply_fix3): Tweak so that the case where value is zero
6316 is handled more correctly for embedded-PIC code.
6318 2002-02-26 Nick Clifton <nickc@cambridge.redhat.com>
6320 * doc/as.texinfo (Overview): Add missing @ifset IA64
6322 * configure.in (LINGUAS): Add es.po.
6323 * configure: Regenerate.
6324 * po/es.po: New file.
6326 2002-02-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6328 * config/tc-mips.c (set_at): Fix handling of 64bit register loads.
6329 (macro): Likewise. Fix la/dla address expansions for EMBEDDED_PIC
6330 and NO_PIC cases. Code cleanup.
6331 (macro2): Fix handling of 64bit register loads.
6333 2002-02-25 David Mosberger <davidm@hpl.hp.com>
6335 * doc/as.texinfo: Add entry for IA64.
6336 * doc/c-ia64.texi: New file.
6338 2002-02-25 Alan Modra <amodra@bigpond.net.au>
6340 * config/tc-hppa.c: Update copyright date.
6342 * doc/c-ppc.texi (PowerPC-Opts): Add -mpower4, -maltivec and -m7400
6343 Remove references to chip manufacturers.
6344 * config/tc-ppc.c (md_parse_option): Handle -mpower4 option.
6346 (md_show_usage): Remove references to chip manufacturers. Mention
6348 (md_begin): Test power4 opcode flag bits.
6350 2002-02-22 David Mosberger <davidm@hpl.hp.com>
6352 * config/tc-ia64.c (dot_restore): Issue error message of epilogue
6353 count exceeds prologue count.
6354 (md_show_usage): Describe -mconstant-gp and -mauto-pic.
6355 (unwind.label_prologue_count): New member.
6357 Based on a patch by Hans Boehm <hboehm@hpl.hp.com>:
6359 (get_saved_prologue_count): New function.
6360 (save_prologue_count): New function.
6361 (free_saved_prologue_count): New function.
6362 (dot_label_state): Record state label by calling save_prologue_count().
6363 (dot_copy_state): Restore prologue count by calling
6364 get_saved_prologue_count().
6365 (generate_unwind_image): Free up list of saved prologue
6366 counts by calling free_saved_prologue_counts().
6368 2002-02-22 Nick Clifton <nickc@cambridge.redhat.com>
6370 * config/tc-tic54x.c: Add missing prototypes and remove ANSI style
6371 function declarations.
6373 2002-02-21 Nick Clifton <nickc@cambridge.redhat.com>
6375 * NEWS: Note that GASP is now deprecated.
6376 * Makefile.am: Do not build gasp-new by default.
6377 * Makefile.in: Regenerate.
6378 * doc/Makefile.am: Do not install gasp.info.
6379 * doc/Makefile.in: Regenerate.
6380 * gas/gasp.texi: Note that gasp is now deprecated.
6382 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
6384 * NEWS: Mark 2.12 branch.
6386 2002-02-19 Tom Tromey <tromey@redhat.com>
6388 * config/tc-xstormy16.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
6390 2002-02-19 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6392 * config/tc-mips.c (md_parse_option): Complain about invalid -mabi
6395 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
6397 * config/tc-s390.c (md_parse_option): Add switches -m31 and -m64.
6398 Make bit size independent of architecture switch.
6399 (md_begin): Add warning for -m64 with -Aesa.
6400 (s390_md_end): Use renamed architecture defines.
6402 2002-02-18 Daniel Jacobowitz <drow@mvista.com>
6404 * config/obj-coff.h: Check !target_big_endian, not shl, for coff-sh.
6406 2002-02-16 Nick Clifton <nickc@cambridge.redhat.com>
6408 * doc/as.texinfo (Machine Dependencies): Fix typo: MMIX used
6411 2002-02-15 Chris Demetriou <cgd@broadcom.com>
6413 * config/tc-mips.c (md_estimate_size_before_relax): Really
6414 make sure we treat weak like extern only for ELF. (Fixes
6415 patch from 2001-07-25.)
6417 2002-02-15 Ben Elliston <bje@redhat.com>
6419 * doc/as.texinfo: Add duplicate directory entry so that "info gas"
6422 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
6424 * NEWS: Mention support for MMIX.
6426 2002-02-13 Chris Demetriou <cgd@broadcom.com>
6428 * config/tc-mips.c (mips_need_elf_addend_fixup): Restructure into
6429 a sequence of indpendent 'if' statements for easier debugging
6430 and future modification.
6432 2002-02-13 Matt Fredette <fredette@netbsd.org>
6434 * config/tc-m68k.c (md_show_usage): No longer display a
6435 hard-coded "68020" for the default CPU, instead display the
6436 canonical name of the true, configured default CPU.
6437 (m68k_elf_final_processing): Mark objects for sub-68020
6438 CPUs with the new EF_M68000 flag.
6440 2002-02-13 Andreas Schwab <schwab@suse.de>
6442 * config/tc-i386.c (tc_i386_fix_adjustable): Don't adjust
6443 pc-relative relocations to merge sections in 64-bit mode.
6445 2002-02-13 Ben Elliston <bje@redhat.com>
6447 * NEWS: Document floating point number handling in gasp.
6448 * gasp.c: Include <assert.h> and "xregex.h".
6449 (is_flonum): New function.
6450 (chew_flownum): Likewise.
6451 (change_base): Consume flonums from the input, where possible.
6452 * doc/gasp.texi (Constants): Document floating point numbers.
6454 2002-02-12 John David Anglin <dave@hiauly1.hia.nrc.ca>
6456 * config/tc-hppa.c (hppa_fix_adjustable): Don't adjust final types
6457 that implicitly use LR and RR selectors.
6459 2002-02-12 Alexandre Oliva <aoliva@redhat.com>
6461 * config/tc-mn10300.c (other_registers): Added `epsw'. Mark `pc'
6462 and `epsw' as available on AM33 and above only.
6463 (other_register_name): Add logic to handle machine type encoded in
6466 2002-02-11 Tom Rix <trix@redhat.com>
6468 * config/tc-ppc.c (md_apply_fix3): Check for insert fop invalid for
6471 2002-06-11 Alexandre Oliva <aoliva@redhat.com>
6473 * config/tc-sparc.c (U0x80000000, U0xffffffff): New constants.
6476 2002-02-11 Jan Hubicka <jh@suse.cz>
6478 * i386.c (md_assemble): Support 32bit address prefix.
6479 (i386_displacement): Likewise.
6480 (i386_index_check): Accept 32bit addressing in 64bit mode.
6482 2002-02-11 Alexandre Oliva <aoliva@redhat.com>
6484 * config/tc-sh.c (dot): Removed unused function.
6486 2002-02-11 Alan Modra <amodra@bigpond.net.au>
6488 * Makefile.am: "make dep-am".
6489 * Makefile.in: Regenerate.
6490 * aclocal.m4: Regenerate.
6491 * config.in: Regenerate.
6492 * configure: Regenerate.
6493 * doc/Makefile.in: Regenerate.
6495 2002-02-10 Richard Henderson <rth@redhat.com>
6497 * doc/c-alpha.texi: New file.
6498 * doc/Makefile.am (CPU_DOCS): Add it.
6499 * doc/all.texi, doc/as.texinfo: Add hooks for Alpha.
6501 2002-02-09 Richard Henderson <rth@redhat.com>
6503 * config/tc-alpha.c (O_samegp): New.
6504 (USER_RELOC_P): Include it.
6505 (alpha_reloc_op_tag, debug_exp, find_macro_match): Add it.
6506 (md_apply_fix3): Handle BFD_RELOC_ALPHA_BRSGP.
6507 (alpha_force_relocation, alpha_fix_adjustable): Likewise.
6508 (alpha_validate_fix): New.
6509 * config/tc-alpha.h (TC_VALIDATE_FIX): New.
6511 2002-02-09 Hans-Peter Nilsson <hp@axis.com>
6513 * doc/c-cris.texi: New.
6514 * doc/all.texi: @set CRIS.
6515 * doc/as.texinfo: Ditto. Add CRIS gas manpage option overview.
6516 Include c-cris.texi.
6517 * doc/Makefile.am (CPU_DOCS): Add c-cris.texi
6518 * doc/Makefile.in: Regenerate.
6520 2002-02-08 Chris Demetriou <cgd@broadcom.com>
6522 * config/tc-mips.c (IS_SEXT_32BIT_NUM): New macro to
6523 determine if a number is a sign-extended 32-bit number.
6524 (load_register): Use IS_SEXT_32BIT_NUM.
6525 (macro): Check if load/store macro handling is using a
6526 constant 32-bit address on 64-bit address systems, and if
6527 so optimize the generation of that address.
6529 2002-02-08 Richard Henderson <rth@redhat.com>
6531 * config/tc-alpha.c (alpha_force_relocation): Don't assert that
6532 we've eliminated all foreign relocation types yet.
6533 (alpha_fix_adjustable): Likewise.
6535 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
6537 Contribute sh64-elf.
6538 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
6539 Stephen Clarke <Stephen.Clarke@st.com>
6540 * doc/c-sh64.texi: Fix citation of SH64 architecture manual.
6541 2002-01-31 Alexandre Oliva <aoliva@redhat.com>
6542 * config/tc-sh.c (md_relax_table): Added default sizes for
6543 non-PC-relative UNDEF_MOVI, and relaxation sequences for
6544 MOVI_16, MOVI_32 and MOVI_48.
6545 * config/tc-sh64.c (shmedia_md_apply_fix3): Fix warning.
6546 (shmedia_md_convert_frag): Handle non-PC-relative UNDEF_MOVI
6548 (shmedia_md_estimate_size_before_relax): Remove redundant
6549 blocks. Set fragP->fr_var even if relaxation type unchanged.
6550 Retain UNDEF_MOVI until expression decays to number.
6551 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
6552 * config/tc-sh64.c (shmedia_init_reloc): Handle new SHmedia PIC
6553 relocation types. Take fixP->fx_addnumber into account too.
6554 (shmedia_md_apply_fix): Likewise.
6555 (shmedia_md_convert_frag): Likewise.
6556 (shmedia_build_Mytes): Likewise.
6557 (sh64_consume_datalabel): Complain about nested datalabel.
6558 Support PIC relocs. Call sh_parse_name.
6559 * config/tc-sh64.h (TC_RELOC_RTSYM_LOC_FIXUP): Extend definition
6560 in tc-sh.h to SHmedia reloc types.
6561 * config/tc-sh.c (SH64PCRELPLT, MOVI_PLT, MOVI_GOTOFF,
6562 MOVI_GOTPC): New relaxation constants.
6563 (md_relax_table): Introduce relaxation directives for PIC-related
6565 (sh_PIC_related_p): Handle datalabel.
6566 (sh_check_fixup): Choose SH5 PIC relocations.
6567 (sh_cons_fix_new): Added BDF_RELOC_64.
6568 (md_apply_fix3, sh_parse_name): Handle GOTPLT.
6569 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
6570 * config/tc-sh64.c (sh64_max_mem_for_rs_align_code): If the
6571 current ISA is SHmedia, get 7 bytes.
6572 2001-11-28 Nick Clifton <nickc@cambridge.redhat.com>
6573 * config/tc-sh.c (md_apply_fix3): Treat shmedia_md_apply_fix3 as a
6575 * config/tc-sh64.c (shmedia_apply_fix): Rename to
6576 shmedia_apply_fix3 and make void.
6577 2001-05-17 Alexandre Oliva <aoliva@redhat.com>
6578 * config/tc-sh64.c (s_sh64_abi): Remove unused arguments passed to
6580 2001-04-12 Alexandre Oliva <aoliva@redhat.com>
6581 * config/tc-sh64.h (md_parse_name): Take &c as argument.
6582 2001-03-14 DJ Delorie <dj@redhat.com>
6583 * doc/Makefile.am (CPU_DOCS): Added c-sh64.texi
6584 * doc/Makefile.in(CPU_DOCS): Ditto.
6585 * doc/c-sh64.texi: New file.
6586 * doc/as.texinfo: Add SH64 support.
6587 2001-03-13 DJ Delorie <dj@redhat.com>
6588 * config/tc-sh64.c (shmedia_get_operands): Rename A_RESV_Fx to
6589 A_REUSE_PREV so that its purpose is more obvious.
6590 (shmedia_build_Mytes): Ditto.
6591 2001-03-07 DJ Delorie <dj@redhat.com>
6592 * config/tc-sh64.c (sh64_vtable_entry): New, strip datalabels
6594 (sh64_vtable_inherit): Ditto.
6595 (strip_datalabels): New, strip "datalabel" from given line.
6596 * config/tc-sh.c (md_pseudo_table): Add sh64-specific vtable
6598 2001-03-06 Hans-Peter Nilsson <hpn@cygnus.com>
6599 * config/tc-sh64.c (shmedia_md_assemble): Move dwarf2_emit_insn
6601 (shmedia_build_Mytes): ... to here.
6602 2001-03-06 DJ Delorie <dj@redhat.com>
6603 * config/tc-sh.c: Remove sh64-specific uaquad now that there
6605 2001-01-21 Hans-Peter Nilsson <hpn@cygnus.com>
6606 * config/tc-sh64.h (DWARF2_LINE_MIN_INSN_LENGTH): Override.
6607 * config/tc-sh64.c (shmedia_md_assemble): Offset recorded insn
6608 address by one in call to dwarf2_emit_insn.
6609 2001-01-13 Hans-Peter Nilsson <hpn@cygnus.com>
6610 Implement ".abi" pseudo and correct .cranges descriptors. Correct
6611 alignment handling broken by imported changes.
6612 * config/tc-sh64.h (HANDLE_ALIGN): Override definition in tc-sh.h.
6613 (sh64_handle_align): Declare.
6614 (MAX_MEM_FOR_RS_ALIGN_CODE): Override definition in tc-sh.h.
6615 (sh64_max_mem_for_rs_align_code): Declare.
6616 (enum sh64_isa_values): Moved here from tc-sh64.c.
6617 (md_do_align): Define.
6618 (sh64_do_align): Declare.
6619 (struct sh64_tc_frag_data): New.
6620 (TC_FRAG_TYPE): Change to struct sh64_tc_frag_data. Users
6622 (TC_FRAG_INIT): Change to set new datatype.
6623 (struct sh64_segment_info_type): Rename member
6624 last_flushed_location to last_contents_mark. All users changed.
6625 (md_elf_section_change_hook, TC_CONS_FIX_NEW): Do not define.
6626 (shmedia_elf_new_section, sh64_tc_cons_fix_new): Do not prototype.
6627 * config/tc-sh.c (md_pseudo_table): Add ".abi".
6628 (sh_elf_cons) [HAVE_SH64]: Call sh64_update_contents_mark instead
6629 of unsetting seen_insn.
6630 (md_assemble) [HAVE_SH64] <before new SHcompact sequence>: Also
6631 call sh64_update_contents_mark.
6632 (sh_handle_align): Remove HAVE_SH64-conditioned code.
6633 * config/tc-sh64.c (sh64_isa_mode): Correct type from boolean to
6634 enum sh64_isa_values.
6635 (sh64_set_contents_type): Drop segT parameter. All callers changed.
6636 (emitting_crange): Boolean guard moved to file scope from function
6637 scope in sh64_set_contents_type.
6639 (sh64_update_contents_mark): New; most split out from
6640 sh64_flush_pending_output.
6641 (shmedia_md_end): Call sh64_update_contents_mark. Set
6642 sh64_isa_mode to sh64_isa_sh5_guard unless sh64_isa_unspecified.
6643 (sh64_do_align): New function.
6644 (sh64_max_mem_for_rs_align_code): New function.
6645 (sh64_handle_align): Rename from shmedia_do_align. Make
6646 non-static. Add head comment. Emit zero bytes for n bytes modulo
6647 four. Change return-type to void.
6648 (shmedia_elf_new_section): Remove.
6649 (shmedia_md_assemble): Call sh64_update_contents_mark.
6650 (s_sh64_mode): Ditto. Do not call md_flush_pending_output. Make
6651 new frag. Call sh64_update_contents_mark after making the new
6653 (sh64_flush_pending_output): Just call sh64_update_contents_mark
6654 and sh_flush_pending_output.
6655 (sh64_flag_output): Also call md_flush_pending_output, but add
6656 condition on not emitting_crange.
6657 (sh64_tc_cons_fix_new): Remove.
6658 2001-01-12 Nick Clifton <nickc@redhat.com>
6659 * config/tc-sh64.c (shmedia_do_align): Fix to work with new
6660 alignment handling scheme imported from sourceware.
6661 2001-01-12 Hans-Peter Nilsson <hpn@cygnus.com>
6662 * config/tc-sh64.h (TARGET_FORMAT): Define.
6663 (sh64_target_format): Prototype.
6664 * config/tc-sh64.c (sh64_target_mach): New function.
6665 2001-01-07 Hans-Peter Nilsson <hpn@cygnus.com>
6666 * config/tc-sh64.c (shmedia_md_end): When equating a symbol, use
6667 zero_address_frag instead of copying the frag of the symbol.
6668 (shmedia_frob_file_before_adjust): Ditto.
6669 (shmedia_md_apply_fix) <case BFD_RELOC_SH_IMM_MEDLOW16>: Cast mask
6670 to valueT to remove signedness.
6671 (shmedia_md_convert_frag): Add parameter final. Rename parameter
6672 headers to output_bfd. Do not evaluate symbols if final is false;
6674 (shmedia_md_estimate_size_before_relax) <case C (MOVI_IMM_32,
6675 UNDEF_MOVI) et al>: If symbol cannot be modified to be PC-relative
6676 to the current frag, call shmedia_md_convert_frag to emit fixups
6677 and make frag_wane neutralize the frag. Update comments.
6678 * config/tc-sh.c (md_convert_frag): Change caller of
6679 shmedia_md_convert_frag.
6680 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
6681 * config/tc-sh64.h: Tweak comments and correct formatting.
6682 * config/tc-sh64.c: Ditto.
6683 (shmedia_md_convert_frag) <PT/PTA/PTB 32, 48 and 64 bit
6684 expansion, MOVI pcrel expansion>: Fix thinko calculating offset
6685 for the no-relocation case.
6686 (shmedia_check_limits): Fix range check being off-by-one for PTA.
6687 * config/tc-sh.c: Ditto. Add proper comments to #ifdef/#ifndef
6689 (SH64PCREL16_F): Increment for proper max-PTA handling. Update
6691 (SH64PCREL16_M, MOVI_16_M): Correct range thinko.
6692 (SH64PCREL48_M, MOVI_48_M): Similar; don't count in length of
6694 (SH64PCREL32_M, MOVI_32_M): Ditto; handle overflowing expression.
6696 2001-01-05 Hans-Peter Nilsson <hpn@cygnus.com>
6697 * config/tc-sh64.c (shmedia_md_apply_fix) <second switch, case
6698 BFD_RELOC_SH_PT_16>: Set lowest bit in field to be relocated to 1.
6699 (shmedia_md_convert_frag) <case C (SH64PCREL16_32, SH64PCREL16) et
6700 al>: Set lowest bit of field to relocate to 1 and rest to empty,
6701 if reloc is emitted.
6702 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6703 New options plus bugfixes.
6704 * config/tc-sh.c (md_longopts): New options "-no-expand" and
6706 (md_parse_option): Handle new options.
6707 (md_show_usage): Add blurb for new options.
6708 * config/tc-sh64.c (SHMEDIA_BFD_RELOC_PT): New macro.
6709 (sh64_expand, sh64_pt32): New variables.
6710 (shmedia_init_reloc): Handle BFD_RELOC_SH_PT_16.
6711 (shmedia_md_apply_fix): Hold original fixP->fx_r_type in
6712 orig_fx_r_type. Change SHMEDIA_BFD_RELOC_PT into
6713 BFD_RELOC_SH_PT_16. Handle BFD_RELOC_SH_PT_16 as pc-relative.
6714 <resolved previously-pc-relative relocs>: Handle
6715 SHMEDIA_BFD_RELOC_PT and BFD_RELOC_SH_PT_16.
6716 (shmedia_md_convert_frag) <case C (SH64PCREL16PT_64, SH64PCREL16),
6717 case C (SH64PCREL16PT_32, SH64PCREL16)>: Modify to PTB if operand
6718 points to SHcompact code.
6719 <case C (SH64PCREL16_32, SH64PCREL16), case C (SH64PCREL16_64,
6720 SH64PCREL16)>: Check that ISA of what operand points at and
6721 PTA/PTB matches, or emit error.
6722 (shmedia_check_limits): Handle BFD_RELOC_SH_PT_16 and
6723 SHMEDIA_BFD_RELOC_PT.
6724 (shmedia_immediate_op): If pcrel, emit fixup also for constant
6726 (shmedia_build_Mytes) <case A_IMMS16>: Also check sh64_expand in
6727 condition for MOVI expansion.
6728 <case A_PCIMMS16BY4>: Handle expansion to 32 bits only, if
6729 sh64_pt32. Emit only a BFD_RELOC_SH_PT_16 fixup if not
6731 <case A_PCIMMS16BY4_PT>: Likewise, but emit a SHMEDIA_BFD_RELOC_PT
6733 (sh64_target_format): Error-check setting of sh64_pt32 and
6734 sh64_expand. Fix typo in check for sh64_shcompact_const_crange.
6735 (shmedia_md_pcrel_from_section): Handle BFD_RELOC_SH_PT_16 and
6736 SHMEDIA_BFD_RELOC_PT as coming from SHmedia code.
6737 2000-12-31 Hans-Peter Nilsson <hpn@cygnus.com>
6738 * config/tc-sh64.c: Improve comments.
6739 (shmedia_md_convert_frag): Remove inactive is_pt_variant code. Do
6740 not say the linker will check correctness of PTA/PTB expansion.
6741 (shmedia_md_end): Make non-static.
6742 * config/tc-sh64.h (md_end): Define to shmedia_md_end. Add
6744 * config/tc-sh.c (sh_finalize): Remove.
6745 * config/tc-sh.h (md_end): Do not define.
6746 Remove prototype for sh_finalize.
6747 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
6748 * config/tc-sh64.c (shmedia_frob_section_type): Use a struct
6749 sh64_section_data container when storing section type in tdata
6750 field in elf_section_data.
6751 * config/tc-sh.c (sh_elf_final_processing): Change from EF_SH64 to
6753 * Makefile.am: Update dependencies.
6754 * Makefile.in: Regenerate.
6755 2000-12-22 Hans-Peter Nilsson <hpn@cygnus.com>
6756 * config/tc-sh64.c (shmedia_md_assemble): Don't protect
6757 dwarf2_emit_insn call with test on debug_type.
6758 2000-12-19 Hans-Peter Nilsson <hpn@cygnus.com>
6759 * config/tc-sh64.c (sh64_set_contents_type): Make contents-type
6760 CRT_SH5_ISA32 sticky for 64-bit.
6761 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
6762 Generate .crange sections when switching ISA mode or emitting
6763 constants in same section as code.
6764 * config/tc-sh64.c: Reformat structure definitions.
6765 (sh64_end_of_assembly, sh64_mix, sh64_shcompact_const_crange): New
6767 (sh64_set_contents_type): Rename from sh64_init_section. Rewrite
6768 to emit a .cranges descriptor when contents type changes. Only
6769 emit error if changing contents type and -no-mix is in effect.
6770 (sh64_emit_crange, sh64_flush_last_crange, sh64_flag_output,
6771 sh64_flush_pending_output, sh64_tc_cons_fix_new): New functions.
6772 (shmedia_md_end): Set sh64_end_of_assembly. Pass
6773 sh64_flush_last_crange over sections.
6774 When checking main symbol of datalabel symbol, check for
6775 STO_SH5_ISA32, not ISA type of section in definition.
6776 (shmedia_frob_file_before_adjust): Check main symbol for
6777 STO_SH5_ISA32; don't check ISA type of section in definition.
6778 (shmedia_frob_section_type): Adjust for .cranges; set section flag
6779 to SHF_SH5_ISA32_MIXED or SHF_SH5_ISA32 according to whether
6780 .cranges entries have been output.
6781 (shmedia_elf_new_section): Just call md_flush_pending_output.
6782 (shmedia_md_assemble): Do not emit a BFD_RELOC_SH_SHMEDIA_CODE
6783 fix. Do not set tc_segment_info_data.in_code for section. Call
6784 sh64_set_contents_type for SHmedia code.
6785 (s_sh64_mode): Do not call sh64_init_section or set seen_insn to
6786 false. Call md_flush_pending_output.
6787 (sh64_target_format): Check that -no-mix and
6788 -shcompact-const-crange are used in sane combination with other
6790 (shmedia_md_pcrel_from_section): Check type of fix for how to
6792 (sh64_consume_datalabel): Check symbol for having STO_SH5_ISA32,
6793 not ISA type of section in definition.
6794 * config/tc-sh64.h (struct sh64_segment_info_type): Rewrite to
6795 hold contents-type state.
6796 (md_flush_pending_output): Redefine to sh64_flush_pending_output.
6797 (sh64_flush_pending_output): Declare.
6798 (TC_CONS_FIX_NEW): Define to sh64_tc_cons_fix_new.
6799 (sh64_tc_cons_fix_new): Declare.
6800 * config/tc-sh.c (sh_elf_cons) [HAVE_SH64]: Unset seen_insn and
6801 call sh64_flag_output.
6802 (md_assemble) [HAVE_SH64]: Do not emit BFD_RELOC_SH_CODE. Just
6803 call sh64_set_contents_type to mark SHcompact code and set
6805 (md_longopts): New options "-no-mix" and
6806 "-shcompact-const-crange".
6807 (md_parse_option): Handle new options.
6808 (md_show_usage): Add blurb for new options.
6809 (md_number_to_chars) [HAVE_SH64]: Call sh64_flag_output.
6810 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
6811 * config/tc-sh64.c: Delete investigated and obsolete fixme:s.
6812 (sh64_last_insn_frag): New.
6813 (shmedia_md_convert_frag): Use tc_frag_data field of incoming frag
6814 to get frag for insn opcode for generating fixups; do not assume it
6816 (shmedia_build_Mytes): Set sh64_last_insn_frag after growing frag
6818 * config/tc-sh64.h (ELF_TC_SPECIAL_SECTIONS): Define for .cranges
6820 (TC_FRAG_TYPE): Define as fragS *.
6821 (TC_FRAG_INIT): Define to set tc_frag_data to sh64_last_insn_frag.
6822 (sh64_last_insn_frag): Declare.
6823 (sh64_consume_datalabel): Fix typo; check for seginfo != NULL,
6824 not == NULL before dereferencing.
6825 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
6826 Get rid of BFD section flag and EF_SH64_ABI64.
6827 * config/tc-sh64.c (shmedia_frob_section_type): Use
6828 elf_section_data (sec)->tdata, not a specific BFD section flag, to
6829 communicate the section as containing SHmedia code. Describe why.
6830 * config/tc-sh.c (sh_elf_final_processing): Tweak comment. Set
6831 EF_SH64 regardless of ABI.
6832 * config/tc-sh64.c (shmedia_md_apply_fix): Decapitalize "invalid"
6833 in error message. Handle resolved expressions for
6834 BFD_RELOC_SH_IMMS10, BFD_RELOC_SH_IMMS10BY2,
6835 BFD_RELOC_SH_IMMS10BY4 and BFD_RELOC_64.
6836 (shmedia_check_limits): Handle BFD_RELOC_64.
6837 (sh64_adjust_symtab): Do not decrement the GAS symbol value for
6838 a STO_SH5_ISA32 symbol, only the BFD value.
6839 2000-12-11 Ben Elliston <bje@redhat.com>
6840 * config/tc-sh64.c: Call dwarf2_emit_insn, not the defunct
6841 dwarf2_generate_asm_lineno.
6842 2000-12-11 Hans-Peter Nilsson <hpn@cygnus.com>
6843 Handle PC-relative MOVI expansions with assembler relaxation.
6844 Generate PC-relative relocs from 16-bit PC-relative expressions.
6845 * config/tc-sh64.c (SHMEDIA_MD_PCREL_FROM_FIX): Break out from...
6846 (shmedia_md_pcrel_from_section): ...here.
6847 (shmedia_md_apply_fix): Handle fixups for 16-bit operands that has
6848 turned completely resolved. Adjust relocation type for 16-bit
6849 immediate operands that has turned PC-relative. Adjust back for
6850 MD_PCREL_FROM_SECTION being applied twice.
6851 (shmedia_md_convert_frag): Always emit reloc for expression with
6852 global or weak symbol. Handle relaxation result for PC-relative
6854 (shmedia_md_estimate_size_before_relax): An expression with a weak
6855 or global symbol can not be relaxed. Break out tests for
6856 relaxable symbol into variable sym_relaxable.
6857 <cases C (MOVI_IMM_64, UNDEF_MOVI) and C (MOVI_IMM_32,
6858 UNDEF_MOVI)>: Break out any PC-relative expression and change
6860 (shmedia_build_Mytes): CSE &operands->operands[j] into variable
6862 <case A_IMMS16>: Fix typo for initial minor relaxation type of
6863 MOVI expansion. If X_op_symbol of the immediate expression is
6864 set, make an expression symbol for the argument to frag_var.
6865 * config/tc-sh.c (MOVI_IMM_32_PCREL, MOVI_IMM_64_PCREL): New
6867 (END): Adjust for new relaxations.
6868 (md_relax_table): Add entries for new relaxations.
6869 2000-12-07 Ben Elliston <bje@redhat.com>
6870 * config/tc-sh64.c (shmedia_parse_reg): Initialize variable len.
6871 2000-12-07 Hans-Peter Nilsson <hpn@cygnus.com>
6872 * config/tc-sh64.c (shmedia_md_convert_frag): Correct all MOVI and
6873 SHORI operand offsets in PT/PTA/PTB expansions.
6874 2000-12-05 Hans-Peter Nilsson <hpn@cygnus.com>
6875 Implement DataLabel semantics.
6876 * config/tc-sh.c (sh_frob_file) [HAVE_SH64]: Call
6877 shmedia_frob_file_before_adjust.
6878 * config/tc-sh64.c [! OBJ_ELF]: Emit #error.
6879 (DATALABEL_SUFFIX): Define.
6880 (shmedia_md_end) <before adjusting STO_SH5_ISA32 symbols>: Walk
6881 symbol list to update "datalabel" symbols to their main symbol
6883 (shmedia_frob_file_before_adjust): New.
6884 (sh64_adjust_symtab): For remaining datalabel symbols, set to
6885 undefined and set STT_DATALABEL.
6886 (sh64_frob_label): Initialize TC symbol field.
6887 (sh64_consume_datalabel): Actually implement semantics. New
6888 parameter operandf, call it instead of expression.
6889 (sh64_exclude_symbol): New.
6890 * config/tc-sh64.h (md_parse_name): Pass on the function operand
6891 to sh64_consume_datalabel.
6892 (tc_symbol_new_hook): Define to tc_frob_symbol.
6893 (TC_SYMFIELD_TYPE): Define to symbolS *.
6894 (tc_frob_symbol): Define to call sh64_exclude_symbol.
6895 2000-12-01 Hans-Peter Nilsson <hpn@cygnus.com>
6896 * config/tc-sh64.c (shmedia_init_reloc): Tweak comment for default
6898 (shmedia_md_assemble): Call dwarf2_generate_asm_lineno if
6899 generating dwarf2 debug information.
6900 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
6901 * config/tc-sh64.c (sh64_target_format): Use elf64-sh64l and
6902 elf64-sh64 for the 64-bit ABI.
6903 * config/tc-sh.c (md_show_usage): Tweak usage output for -abi=*
6905 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
6906 * config/tc-sh.c: Remove conditionalizing on HAVE_SH64 for
6908 2000-11-27 Hans-Peter Nilsson <hpn@cygnus.com>
6909 * config/tc-sh64.c: Tweak comments, formatting and error messages.
6910 (enum sh64_abi_values): New type.
6911 (enum sh64_isa_values): New type.
6912 (sh64_isa_mode): Replace shmedia_mode. All referers changed.
6913 (seen_shcompact_mode, seen_shmedia_mode): Delete.
6914 (sh64_abi): Replace shmedia_64.
6915 (shmedia_md_convert_frag) <C (MOVI_IMM_64, MOVI_64),
6916 C (MOVI_IMM_32, MOVI_32)>: Correct register number handling.
6917 (s_sh64_mode): Check validity for this target.
6918 (sh64_target_format): Initialize defaults for ISA and ABI.
6919 Fallback to old object format if no SH64 ISA or ABI has been
6921 * config/tc-sh.c (md_parse_option): Check combinations for errors.
6922 (sh_elf_final_processing): Change to have EF_SH64_ABI64 for 64-bit
6923 ABI and EF_SH64 for 32-bit ABI, if SH64 options are specified.
6924 * config/tc-sh64.h: Fix typo in comment.
6925 2000-11-25 Hans-Peter Nilsson <hpn@cygnus.com>
6926 * config/tc-sh64.c (shmedia_md_estimate_size_before_relax)
6927 <PT fixups for absolute values>: Size will be longest, not
6929 (shmedia_md_convert_frag): Disable PTB-warning machinery. Correct
6930 all MOVI and SHORI operand offsets in PT/PTA/PTB expansions.
6931 * config/tc-sh.c (parse_reg) [HAVE_SH64]: Add local variables l0
6932 and l1 to hold lowercase of two first characters. Change all
6933 remaining TO_LOWER to tolower.
6934 * config/tc-sh64.c (TO_LOWER): Delete.
6935 (shmedia_find_cooked_opcode): Use tolower, not TO_LOWER.
6936 (md_parse_name): Define.
6937 (sh64_consume_datalabel): Declare.
6938 (DOLLAR_DOT): Define.
6939 * config/tc-sh64.c (shmedia_parse_exp): New.
6940 (sh64_consume_datalabel): New; just ignoring datalabel semantics.
6941 (shmedia_parse_reg): Remove const from src
6943 (shmedia_get_operands): Ditto for args parameter and ptr variable.
6944 (shmedia_md_assemble): Ditto for op_end variable.
6945 (shmedia_get_operand): Ditto for ptr parameter and src variable.
6946 Use shmedia_parse_exp, not parse_exp.
6947 * config/tc-sh64.c (shmedia_parse_reg): Add shmedia_arg_type
6948 parameter. All callers changed.
6949 (shmedia_get_operand): Add shmedia_arg_type parameter. All
6951 (shmedia_parse_reg): Put first two character in local variables.
6952 Use tolower, not TO_LOWER. If no register is found and argtype
6953 indicates a control register, scan shmedia_creg_table
6955 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
6956 * Makefile.am (CPU_TYPES): Add sh64.
6957 (TARGET_CPU_CFILES): Add config/tc-sh64.c.
6958 (TARGET_CPU_HFILES): Add config/tc-sh64.h.
6959 Regenerate dependencies.
6960 * Makefile.in: Regenerate.
6961 * configure.in: Add support for sh64-*-elf*.
6962 * configure: Regenerate.
6963 * config/tc-sh64.h: New.
6964 * config/tc-sh64.c: New.
6965 * config/tc-sh.c (md_pseudo_table) [HAVE_SH64]: New pseudos
6966 .mode, .isa and .uaquad.
6967 [HAVE_SH64] (SH64PCREL16_32, SH64PCREL16_64, SH64PCREL16PT_32,
6968 SH64PCREL16PT_64, MOVI_IMM_32, MOVI_IMM_64): Define.
6969 [HAVE_SH64] (END): Define as 10.
6970 [HAVE_SH64] (UNDEF_SH64PCREL, SH64PCREL16, SH64PCREL32,
6971 SH64PCREL48, SH64PCREL64, UNDEF_MOVI, MOVI_16, MOVI_32, MOVI_48,
6973 [HAVE_SH64] (SH64PCREL16_F, SH64PCREL16_M, SH64PCREL16_LENGTH,
6974 SH64PCREL32_F, SH64PCREL32_M, SH64PCREL32_LENGTH, SH64PCREL48_F,
6975 SH64PCREL48_M, SH64PCREL48_LENGTH, SH64PCREL64_LENGTH,
6976 MOVI_16_LENGTH, MOVI_32_LENGTH, MOVI_48_LENGTH, MOVI_64_LENGTH):
6978 (md_relax_table) [HAVE_SH64]: Provide relaxations for SHmedia.
6979 (md_begin) [HAVE_SH64]: Call shmedia_md_begin.
6980 (parse_reg) [HAVE_SH64]: Parse register names case-insensitive.
6981 (md_assemble) [HAVE_SH64]: Call shmedia_md_assemble if assembling
6982 SHmedia instructions. Handle state-change after switching to
6984 (md_longopts) [HAVE_SH64]: New options --isa=* and --abi=*.
6985 (md_parse_option) [HAVE_SH64]: Parse new options.
6986 (md_show_usage) [HAVE_SH64]: Show usage of new options.
6987 (md_convert_frag) [HAVE_SH64] <default>: Call
6988 shmedia_md_convert_frag instead of abort.
6989 (sh_force_relocation) [HAVE_SH64]: Also force relocation for
6990 BFD_RELOC_SH_SHMEDIA_CODE.
6991 (sh_elf_final_processing) [HAVE_SH64]: Set flags identifying
6992 SHcompact or SHmedia code.
6993 (md_apply_fix) [HAVE_SH64] <default>: Return result from calling
6994 shmedia_md_apply_fix instead of abort.
6995 (md_estimate_size_before_relax) [HAVE_SH64] <default>: Return
6996 result from calling shmedia_md_estimate_size_before_relax instead
6998 (sh_do_align) [HAVE_SH64]: If shmedia_mode, let shmedia_do_align
7000 (tc_gen_reloc) [HAVE_SH64]: For unrecognized relocs, call
7001 shmedia_init_reloc and do nothing more if it returns non-zero.
7002 (sh_finalize) [HAVE_SH64]: Call shmedia_md_end.
7003 * po/POTFILES.in: Regenerate.
7004 * po/gas.pot: Regenerate.
7006 2002-02-06 Alexandre Oliva <aoliva@redhat.com>
7008 * config/tc-sh.c (parse_at): Install the correct version of
7011 * config/tc-sh.c (md_apply_fix3) <BFD_RELOC_32_PLT_PCREL>: Don't
7012 assume fixP->fx_subsy is non-NULL.
7014 2002-02-04 Alexandre Oliva <aoliva@redhat.com>
7016 * config/tc-sh.c (parse_at): Set arg type of @(expr,pc) to
7017 A_DISP_PC_ABS, and adjust it by -4.
7018 (get_specific): Accept A_DISP_PC_ABS where A_DISP_PC is
7020 (build_Mytes): Mark PCRELIMM fix-ups as pc-relative only if
7021 the operand type is not A_DISP_PC_ABS.
7023 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
7025 * config/tc-mmix.c (tc_gen_reloc): Don't try and take the value of
7026 common and weak symbols. Handle common and weak symbols as
7027 undefined symbols with regards to GREG handling and merging.
7028 (mmix_frob_file): Ditto.
7030 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
7032 * configure.in (hppa-*-netbsd*): New target.
7033 * configure: Regenerate.
7034 * config/tc-hppa.h: Also define WARN_COMMENTS if TE_NetBSD.
7036 2002-02-02 Alan Modra <amodra@bigpond.net.au>
7038 * config/tc-v850.c: Add missing prototypes amd use old-style
7039 function definitions.
7040 (AREA_ZDA, AREA_SDA, AREA_TDA): Delete.
7041 (sdata_section tdata_section, zdata_section, sbss_section,
7042 tbss_section, zbss_section, rosdata_section, rozdata_section,
7043 scommon_section, tcommon_section, zcommon_section,
7044 call_table_data_section, call_table_text_section): Delete.
7045 (v850_sdata, v850_tdata, v850_zdata, v850_sbss, v850_tbss,
7046 v850_zbss, v850_bss, v850_rosdata, v850_rozdata,
7047 v850_call_table_data, v850_call_table_text): Delete.
7048 (struct v850_seg_entry): New.
7049 (v850_seg_table): New.
7050 (SDATA_SECTION TDATA_SECTION, ZDATA_SECTION, SBSS_SECTION,
7051 TBSS_SECTION, ZBSS_SECTION, BSS_SECTION, ROSDATA_SECTION,
7052 ROZDATA_SECTION, SCOMMON_SECTION, TCOMMON_SECTION, ZCOMMON_SECTION,
7053 CALL_TABLE_DATA_SECTION, CALL_TABLE_TEXT_SECTION): Define.
7056 (v850_comm): Use do_v850_seg and v850_seg_table. Simplify
7057 recording of alignment.
7058 (md_pseudo_table): Use v850_seg.
7059 (md_begin): Don't init .call_table_data and .call_table_text here.
7060 Set v850_seg_table bss entry.
7062 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
7064 Support on-demand global register allocation by passing on
7065 base-plus-offset relocs to the linker.
7066 * config/tc-mmix.c: Tweak and fix typos in comments.
7067 (allocate_undefined_gregs_in_linker): New variable.
7068 (OPTION_LINKER_ALLOCATED_GREGS): New option macro.
7069 (md_longopts): Add --linker-allocated-gregs.
7070 (md_parse_option) <case 'x'>: Imply --linker-allocated-gregs.
7071 <case OPTION_LINKER_ALLOCATED_GREGS>: New.
7072 (md_show_usage): Update text for -x. Add text for
7073 --linker-allocated-gregs.
7074 (tc_gen_reloc): Derive default value for addend from val and
7075 baddsy. Use addsec and bfd_is_abs_section in more places. Don't
7076 emit error for BFD_RELOC_MMIX_BASE_PLUS_OFFSET without suitable
7077 GREG if allocate_undefined_gregs_in_linker.
7078 * doc/as.texinfo (Overview) <Target MMIX options>: Add
7079 --linker-allocated-gregs.
7080 * doc/c-mmix.texi (MMIX-Opts): Add blurb about
7081 --linker-allocated-gregs. Mention that it's implied by -x.
7082 (MMIX-Pseudos) <GREG>: Mention when and how a GREG can be omitted.
7083 (MMIX-mmixal): Clarify dated comparison and location of MMIXware.
7085 * config/tc-mmix.h (md_parse_name): Use ISUPPER, not isupper.
7087 2002-02-01 Alan Modra <amodra@bigpond.net.au>
7089 * Makefile.am: Run "make dep-am"
7090 * Makefile.in: Regenerate.
7092 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
7094 * config/tc-or32.c: New file.
7095 * config/tc-or32.h: New file.
7096 * configure.in: Add support for or32 targets.
7097 * configure: Regenerate.
7098 * config/obj-coff.c: Add support for or32 targets.
7099 * config/obj-coff.h: Add support for or32 targets.
7100 * Makefile.am: Add support for or32 targets.
7101 * Makefile.in: Regenerate.
7102 * NEWS: Mention support for OpenRISC.
7103 * doc/Makefile.in: Regenerate.
7104 * po/POTFILES.in: Regenerate.
7105 * po/gas.pot: Regenerate.
7107 2002-01-30 Richard Sandiford <rsandifo@redhat.com>
7109 * config/tc-sh.c (parse_reg): Fix end-of-word check for is, ix, iy
7112 2002-01-29 Chris Demetriou <cgd@broadcom.com>
7114 * config/tc-mips.c (tc_gen_reloc): Arrange for
7115 BFD_RELOC_PCREL_HI16_S relocations to be output relative to
7116 their LO16 parts, even for ELF.
7118 2002-01-29 Daniel Jacobowitz <drow@mvista.com>
7120 * config/tc-i386.c: Protect definitions of true and false
7123 2002-01-28 Jakub Jelinek <jakub@redhat.com>
7125 * config/obj-elf.c (elf_frob_file_before_adjust): Remove symbols
7126 made because of .weak, if they are neither defined nor used in any
7129 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
7131 * configure: Regenerated.
7133 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
7135 * doc/Makefile.am (install): Depend on install-info.
7136 * doc/Makefile.in: Regenerate.
7138 2002-01-26 Nick Clifton <nick@redhat.com>
7140 * po/fr.po: Updated version
7142 2002-01-24 Kazu Hirata <kazu@hxi.com>
7144 * config/tc-h8300.c (check_operand): Don't print a warning
7145 when a valid 24-bit address is given to a 16-bit address
7148 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
7150 * config/tc-sh.c (sh_elf_suffix): Removed.
7151 (sh_PIC_related_p, sh_check_fixup, sh_cons_fix_new,
7152 sh_end_of_match, sh_parse_name): New functions.
7153 (sh_elf_cons): Simplify.
7154 (parse_exp): Reject misplaced PIC operands.
7155 (md_undefined_symbol): Simplify.
7156 (sh_fix_adjustable): Let @GOTOFF be adjusted.
7157 (md_apply_fix3): Write @PLT and @GOTOFF addends in place.
7158 (tc_gen_reloc): Move fixp subsy absolute value into addnumber.
7159 Complain if subsy remains at the end.
7160 * config/tc-sh.h (sh_parse_name, sh_cons_fix_new): Declare.
7161 (md_parse_name, TC_CONS_FIX_NEW, O_PIC_reloc): Define.
7163 2002-01-22 Alexandre Oliva <aoliva@redhat.com>
7165 * config/tc-mn10300.c (xr_registers): Move `pc'...
7166 (other_registers): ... here.
7168 2002-01-22 Alan Modra <amodra@bigpond.net.au>
7170 * Makefile.am: Run "make dep-am".
7171 * Makefile.in: Regenerate.
7172 * gas/po/POTFILES.in: Regenerate.
7174 2002-01-21 DJ Delorie <dj@redhat.com>
7176 * config/obj-coff.c (obj_coff_init_stab_section): Make the
7177 stabstr_name allocation permanent, as it will be referenced from
7180 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
7182 * configure.in (ia64-*-netbsd*): New target.
7183 * configure: Regenerate.
7185 2002-01-21 Hans-Peter Nilsson <hp@bitrange.com>
7187 * doc/as.texinfo (Overview) <Target ARM options>: Add missing {}
7189 <Detailed description, ARM options>: Ditto.
7190 * doc/c-arm.texi (ARM Options): Ditto.
7192 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7194 * tc-arm.c (do_xsc_mia, do_xsc_mar, do_xsc_mra): Renamed from
7195 do_mia, do_mar and do_mra respectively.
7196 (do_mav_*): Renamed from do_c_*.
7197 (mav_reg_required_here, mav_parse_offset): Renamed from
7198 cirrus_reg_required_here and cirrus_parse_offset respectively.
7199 (MAV_MODE?): Renamed from CIRRUS_MODE?.
7201 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7202 Keith Walker <keith.walker@arm.com>
7204 * tc-arm.c (ARM_EXT_V5J, ARM_ARCH_V5TEJ): Define.
7205 (insns): Add pattern for bxj instruction.
7206 (do_bxj): New function.
7207 (arm_cpus): Add arm926ej.
7208 (arm_archs): Add armv5tej.
7210 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7212 * doc/c-arm.texi: Add new fpe options to list of supported flags.
7214 2002-01-19 Keith Walker <keith.walker@arm.com>
7216 * tc-arm.c (arm_fpus): Add fpe2 and fpe3.
7218 2002-01-18 Richard Earnshaw <rearnsha@arm.com>
7220 * NEWS: Mention new ARM command-line options and VFP support.
7222 * config/tc-arm.c (ARM_CEXT_XSCALE): Replaces ARM_EXT_XSCALE. All
7224 (ARM_CEXT_MAVERICK): Similarly.
7225 (ARM_ANY): Now means any core instruction.
7226 (CPU_DEFAULT): Default to ARM_ANY.
7227 (uses_apcs_26, atcps, support_interwork, uses_apcs_float)
7228 (pic_code): Declare for all object types. Make type int.
7229 (legacy_cpu, legacy_fpu, mcpu_cpu_opt, mcpu_fpu_opt, march_cpu_opt)
7230 (march_fpu_opt, mfpu_opt): Declare.
7231 (md_longopts): Tidy up conditional definitions.
7232 (arm_opts, arm_cpus, arm_archs, arm_fpus, arm_extensions)
7233 (arm_long_opts): New tables.
7234 (arm_parse_cpu, arm_parse_arch, arm_parse_fpu): New functions.
7235 (arm_parse_extension): New function.
7236 (md_parse_option): Rewrite using new table-driven system.
7237 (md_show_usage): Use new table-driven system.
7238 (md_begin): Calculate cpu_variant from command line option data.
7239 * doc/as.texinfo (ARM ISA options): Docuement new ARM-specific
7240 command-line options.
7241 * doc/c-arm.texi: Likewise.
7243 2002-01-18 Andreas Jaeger <aj@suse.de>
7245 * as.c (parse_args): Update year.
7247 2002-01-17 Timothy Wall <twall@alum.mit.edu>
7249 * config/tc-tic54x.c (encode_address): Add a more informative
7250 warning about incorrect syntax.
7252 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
7254 * po/gas.pot: Regenerate.
7256 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
7258 * macro.c (get_any_string): Add no-c-format comment to prevent
7259 confusion when translating string.
7260 * gasp.c (get_any_string): Add no-c-format comment to prevent
7261 confusion when translating string.
7263 2002-01-16 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7264 Johannes Stezenbach <js@convergence.de>
7265 * config/tc-mips.c (percent_op): Ensure longer percent_op's are
7266 matched before the shorter ones.
7267 (my_getSmallParser): Fix handling of nested parentheses in
7268 percent_op's. Code cleanup.
7269 (my_getPercentOp): New function, code from my_getSmallParser.
7270 (my_getSmallExpression): Fix handling of closing parentheses.
7271 Code cleanup. Better comments.
7273 2002-01-16 Nick Clifton <nickc@redhat.com>
7275 po/tr.po: New file: Turkish translation.
7276 configure.in (LINGUAS): Add "tr".
7277 configure: Regenerate.
7279 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
7281 Support for VFP instructions
7282 * tc-arm.c (CP_WB_OK, CP_NO_WB): New defines.
7283 (cp_address_required_here): New argument wb_ok. When false, do not
7284 accept write-back forms of addressing. Change all callers.
7285 (FPU_VFP_EXT_NONE, FPU_VFP_EXT_V1xD, FPU_VFP_VFP_V1)
7286 (FPU_VFP_EXT_V2): Define.
7287 (FPU_ARCH_VFP, FPU_ARCH_VFP_V1xD, FPU_ARCH_VFP_V1, FPU_ARCH_VFP_V2):
7288 Define in terms of above.
7289 (vfp_dp_reg_pos, vfp_sp_reg_pos, vfp_ldstm_type): New enums.
7290 (vfp_reg): New struct.
7291 (vfp_regs): New array of registers.
7292 (insns): Add VFP instructions.
7293 (sn_table): New array of VFP single-precision register names.
7294 (dn_table): New array of VFP double-precision register names.
7295 (all_reg_maps): Add the new register tables.
7296 (arm_reg_type): Add new values for above. Increase RET_TYPE_MAX.
7297 (vfp_sp_reg_required_here, vfp_dp_reg_required_here, do_vfp_sp_monadic)
7298 (do_vfp_dp_monadic, do_vfp_sp_dyadic, do_vfp_dp_dyadic)
7299 (do_vfp_reg_from_sp, do_vfp_sp_reg2, do_vfp_sp_from_reg)
7300 (do_vfp_reg_from_dp, do_vfp_reg2_from_dp, do_vfp_dp_from_reg)
7301 (do_vfp_dp_from_reg2, vfp_psr_parse, vfp_psr_required_here)
7302 (do_vfp_reg_from_ctrl, do_vfp_ctrl_from_reg, do_vfp_sp_ldst)
7303 (do_vfp_dp_ldst, vfp_sp_reg_list, vfp_dp_reg_list, vfp_sp_ldstm)
7304 (vfp_dp_ldstm, do_vfp_sp_ldstmia, do_vfp_sp_ldstmdb, do_vfp_ldstmia)
7305 (do_vfp_dp_ldstmdb, do_vfp_xp_ldstmia, do_vfp_xp_ldstmdb)
7306 (do_vfp_sp_compare_z, do_vfp_dp_compare_z, do_vfp_dp_sp_cvt)
7307 (do_vfp_sp_dp_cvt): New functions.
7308 (md_begin): Set soft-float flag for appropriate VFP work.
7309 (md_atof): Handle VFP-format doubles.
7310 (md_parse_option): Handle VFP command-line options.
7311 (md_show_usage): Display VFP command-line options.
7313 2002-01-15 Richard Earnshaw <rearnsha@arm.com>
7315 * tc-arm.c (md_parse_option): Tidy up setting of cpu_variant for
7316 various command line options.
7318 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
7320 * config/tc-xstormy16.c: (xstormy16_fix_adjustable): Do not fix
7322 (xstormy16_md_apply_fix3): Do not return a value.
7324 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
7326 * tc-arm.c (md_longopts): On targets that aren't bi-endian, support
7327 the -EL/-EB option that matches the target's endianness.
7328 (md_parse_option): Likewise.
7330 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
7332 * tc-arm.c (md_longopts): Fix misplaced #endif -- the -oabi option
7333 is not dependent on ARM_BI_ENDIAN.
7335 2002-01-14 Richard Earnshaw <rearnsha@arm.com>
7337 * tc-arm.c (all error messages): Normalize capitalization of messages.
7339 * tc-arm.h (md_operand): Delete define.
7340 * tc-arm.c (in_my_get_expression): New static variable.
7341 (my_get_expression): Set and clear it.
7342 (md_operand): New function. If called from my_get_expression
7343 put the error in inst.error.
7344 (output_inst): Now takes argument of instruction being assembled.
7345 Print it out with any error message.
7346 (do_ldst, do_ldstv4, thumb_load_store): Fault attempt to use a store
7348 (end_of_line): Don't update inst.error if it is already set.
7350 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
7352 * tc-arm.c (do_ldst): Fix handling an immediate expression pseudo
7353 op that can be translated into a mvn instruction.
7355 2002-01-11 Steve Ellcey <sje@cup.hp.com>
7357 * gas/config/tc-ia64.h (MD_FLAGS_DEFAULT): New Macro for
7358 setting default md.flags.
7359 (SHT_INIT_ARRAY): New elf special section used by HP-UX.
7360 (SHT_FINI_ARRAY): New elf special section used by HP-UX.
7361 * gas/config/tc-ia64.c (setup_unwind_header): Add support
7362 for 32 bit unwind info blocks.
7363 (generate_unwind_image): Add support for different types
7364 of unwind images (32 bits and/or big-endian).
7365 (ia64_init): Use MD_FLAGS_DEFAULT to set md.flags.
7366 (ia64_target_format): Add support for hpux target formats.
7367 (ia64_gen_real_reloc_type): Add support for FUNC_IPLT_RELOC.
7368 (ia64_elf_section_type): Add support for SHT_INIT_ARRAY and
7369 SHT_FINI_ARRAY elf section types.
7371 2002-01-10 Richard Earnshaw <rearnsha@arm.com>
7373 * tc-arm.c (struct reg_entry): Move before prototypes.
7374 (int_register, cp_register, fp_register): Delete.
7375 (reg_table): Delete. Replaced with ...
7376 (rn_table, cp_table, cn_table, fn_table, mav_mvf_table)
7377 (mav_mvd_table, mav_mvfx_table, mav_mvdx_table, mav_mvax_table)
7378 (mav_dspsc_table): ... one table per register set.
7379 (arm_reg_hsh): Delete.
7380 (struct reg_map): New structure.
7381 (all_reg_maps): New array.
7382 (enum arm_reg_type): New enums.
7383 (build_reg_hsh): New function.
7384 (insert_reg_alias): Use hash table passed by caller. Adjust all
7386 (create_register_alias): New function, split out from ...
7387 (md_assemble): ... here.
7388 (md_begin): Build new register hash tables.
7389 (arm_reg_parse): New argument for the hash table to search. Adjust all
7391 (arm_reg_parse_any): New function.
7392 (co_proc_number): Look up the processor number in the processor hash
7394 (cirrus_regtype): Delete.
7395 (cirrus_register, cirrus_mvf_register, cirrus_mvd_register)
7396 (cirrus_mvfx_register, cirrus_mvdx_register, cirrus_mvax_register)
7397 (ARM_EXT_MAVERICKsc_register): Delete.
7398 (do_c_binops_1, do_c_binops_2, do_c_binops_3): Delete.
7399 (do_c_binops_1[a-o], do_c_binops_2[a-c], do_c_binops_3[a-d]): New
7401 (do_c_triple_4, do_c_triple_5): Delete.
7402 (do_c_triple_4[ab], do_c_triple_5[a-h]): New functions.
7403 (do_c_quad_6): Delete.
7404 (do_c_quad_6[ab]): New functions.
7405 (do_c_binops, do_c_triple, do_c_quad, do_c_shift, do_c_ldst): Rework
7406 arguments to use new register parsing methods.
7407 (cirrus_reg_required_here): Likewise.
7408 (insns): Reclassify cirrus maverick worker functions.
7409 (cirrus_valid_reg): Delete.
7411 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
7413 * configure.in (sh*le): Set cpu_type=sh and endian=little.
7414 (sh*-*-netbsdelf*): New target.
7415 * configure: Regenerate.
7416 * tc-sh.h: Update copyright years.
7417 (TARGET_FORMAT): Add version for TE_NetBSD.
7419 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
7421 * read.c (emit_expr): Do not allow 'size' or 'nbytes' to go
7424 2002-01-06 Alan Modra <amodra@bigpond.net.au>
7426 * config/tc-m68k.h (md_prepare_relax_scan): Rewrite.
7427 * config/tc-m68k.c (md_relax_table): Add md_prepare_relax_scan comment.
7429 2002-01-05 Daniel Jacobowitz <drow@mvista.com>
7431 * tc-mips.c (mips_cprestore_valid): New flag.
7432 (mips_frame_reg_valid): New flag.
7433 (macro) [M_JAL_2]: Check both flags.
7434 [M_JAL_A]: Likewise.
7435 (s_cprestore): Set mips_cprestore_valid.
7436 (tc_get_register): If setting mips_frame_reg, set
7437 mips_frame_reg_valid and clear mips_cprestore_valid.
7438 (s_mips_ent): Clear both flags.
7439 (s_mips_end): Clear both flags.
7441 2002-01-05 Alan Modra <amodra@bigpond.net.au>
7443 * write.c (write_object_file): Make use of bfd_section_list_remove.
7444 * config/obj-ecoff.c (ecoff_frob_file): Likewise.
7445 * config/tc-mmix.c (mmix_frob_file): Likewise.
7447 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
7449 * configure.in (i386-*-netbsdelf*): Collapse target into...
7450 (i386-*-netbsd*): ...this. Add support for x86-64.
7451 * configure: Regenerated.
7453 2002-01-03 matthew green <mrg@redhat.com>
7455 * config/tc-ppc.c (md_parse_option): BookE is not Motorola specific.
7457 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
7459 * config/tc-m68k.c (md_estimate_size_before_relax): Test for a
7462 For older changes see ChangeLog-0001
7468 version-control: never