Commit Graph

1986 Commits

Author SHA1 Message Date
Nick Clifton b46c169191 Only run fastcall test for x86 PE targets. 2002-11-07 09:20:10 +00:00
Alexandre Oliva 78e1bb4045 * config/tc-mips.c (macro_build_lui): _gp_disp is not special on
NEWABI, but we should still emit HI16_S for non-PIC n32.
2002-11-07 02:29:32 +00:00
Richard Henderson 66ba4c770b * config/tc-alpha.c (alpha_validate_fix): Move code ...
(alpha_fix_adjustable): ... here.
        * config/tc-alpha.h (TC_VALIDATE_FIX): Remove.
2002-11-07 00:42:19 +00:00
Nick Clifton c9e3887989 Adds support for fastcall symbols as used on Microsoft Windows platforms
(i386)
2002-11-06 19:36:20 +00:00
H.J. Lu aa3d8fdff8 2002-11-05 H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (support_64bit_objects): Check *l before it
	is freed.
2002-11-05 21:53:13 +00:00
Nick Clifton e96c546430 Set SEC_DATA and SEC_LOAD flags for sections marked as 's'. 2002-11-04 16:10:56 +00:00
H.J. Lu 4dd8d67b6a 2002-11-01 H.J. Lu <hjl@gnu.org>
* gas/i386/i386.exp: Add "sub".

	* gas/i386/sub.d: New.
	* gas/i386/sub.s: New.
2002-11-01 20:41:48 +00:00
Alan Modra 4f3cafa2eb * write.c (TC_FORCE_RELOCATION_SUB_ABS): Default to zero.
(TC_FORCE_RELOCATION_SUB_LOCAL): Likewise when DIFF_EXPR_OK.
	* doc/internals.texi (TC_FORCE_RELOCATION_SUB_ABS): Document changed
	default.
2002-11-01 10:42:26 +00:00
Alan Modra 4d0b322074 * dep-in.sed: Fix typo. 2002-11-01 10:35:43 +00:00
Daniel Jacobowitz 54847c7622 * configure.in: Update ARM CPU patterns.
* configure: Regenerated.
2002-10-30 17:05:41 +00:00
Daniel Jacobowitz 3d82a647ca * itbl-lex.l: Use #include <> for generated headers.
* itbl-ops.c: Likewise.
2002-10-30 03:56:39 +00:00
Daniel Jacobowitz b1744eabdd * doc/gasp.texi: Fix typo in deprecation note. 2002-10-28 15:44:08 +00:00
Nick Clifton 8df7094c00 Allow an absolute reference to _GLOBAL_TABLE_OFFSET_ to be converted into
a GOT reloc.
2002-10-23 10:34:18 +00:00
Hans-Peter Nilsson 1cd2bb725b Fix typo in last entry 2002-10-23 05:23:57 +00:00
Hans-Peter Nilsson 3a99b99035 * config/tc-mmix.h (tc_frob_file_before_adjust): Don't declare.
(tc_frob_file_before_adjust): Don't define.
	* config/tc-mmix.c (mmix_frob_local_reloc): Remove unused
	function.
	(mmix_frob_file_before_adjust): Remove ineffective function.
2002-10-23 05:21:09 +00:00
H.J. Lu 3d4a853f67 2002-10-22 H.J. Lu <hjl@gnu.org>
* gas/mips/branch-misc-2.d: Updated.
2002-10-23 03:11:47 +00:00
Hans-Peter Nilsson 1c97116001 * config/tc-cris.c (SIMPLE_EXPR): New macro.
(cris_relax_frag): New function.
	(md_estimate_size_before_relax) <case ENCODE_RELAX
	(STATE_BASE_PLUS_DISP_PREFIX, STATE_UNDF)>: Pass on unresolved
	expressions that will become absolute expressions to relaxation.
	(md_convert_frag) <case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX,
	STATE_WORD)>: Expect only absolute expressions.  Use the symbol
	value, not distance to symbol.
	<case ENCODE_RELAX (STATE_BASE_PLUS_DISP_PREFIX, STATE_BYTE)>:
	Ditto.  Correct placement of fixup.
	(md_assemble): Use SIMPLE_EXPR when dissecting expressions.
	(gen_bdap): Ditto.
	* config/tc-cris.h (cris_relax_frag): Declare.
	(md_relax_frag): Define.
2002-10-22 23:45:40 +00:00
Hans-Peter Nilsson c84e511732 * gas/cris/rd-pcrel1.d, gas/cris/rd-pcrel1.s,
gas/cris/rd-pcrel2.d, gas/cris/rd-pcrel2.s: New tests.
2002-10-22 23:15:59 +00:00
Alan Modra 7ed1d3463e * config/obj-elf.c (special_sections): Use correct types for init
array sections.
	(obj_elf_change_section): Don't mess with init array section type.
2002-10-22 10:56:45 +00:00
Richard Sandiford 631cb423b2 * config/tc-mips.c (mips_need_elf_addend_fixup): Return true
for relocs against symbols in a merged section.

testsuite/
	* gas/mips/elf-rel7.[sd]: New test.
	* gas/mips/mips.exp: Run it.
2002-10-21 14:59:30 +00:00
Alexandre Oliva 6047c971a2 * config/tc-mips.c (md_begin): Add $fcc registers to the symbol
table as register names.
2002-10-19 00:37:50 +00:00
Martin Schwidefsky 75504fede8 * config/tc-s390.c (md_parse_option): Set s390_arch_size to 32
for option -m31.
2002-10-18 07:30:06 +00:00
Alan Modra 0200099915 * expr.c (operand): Add support for n.nn flonums. 2002-10-18 01:56:39 +00:00
Alan Modra 311797d555 * itbl-parse.y (entry): Provide empty action. 2002-10-17 01:29:36 +00:00
Alan Modra 4001ad8ce4 * configure.in (BFDVER_H): Set and subst.
* dep-in.sed: Replace bfdver.h with $(BFDVER_H).
	* Makefile.am: Run "make dep-am".
	(BFDVER_H): Define.
	* configure: Regenerate.
	* Makefile.in: Regenerate.
	* doc/Makefile.in: Regenerate.
2002-10-16 13:27:04 +00:00
Alan Modra 3ca4bdc352 * config/tc-i386.h (EXTERN_FORCE_RELOC): Define.
(MD_APPLY_SYM_VALUE): Define for PE too.
2002-10-15 02:20:53 +00:00
Alan Modra b95d15c6c5 * Makefile.am: Run "make dep-am".
(CPU_OBJ_VALID): sh64 coff is invalid.
	* as.c: #include "bfdver.h".
	* Makefile.in: Regenerate.
	* config.in: Regenerate.
2002-10-14 12:08:47 +00:00
Alan Modra ec266e19eb * config/tc-v850.c (CHECK_): Remove token pasting operator. 2002-10-14 11:28:57 +00:00
Richard Sandiford 8f6847cbf4 * configure.in (mips64vr-elf, mips64vrel-elf): New config.
* configure: Regenerate.
2002-10-14 06:59:06 +00:00
Alexandre Oliva 10181a0dce * config/tc-mips.c (s_gpdword): New function.
(mips_pseudo_table): Add .gpdword.
(mips_need_elf_addend_fixup): never for NEWABI.
(md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
GPREL32 as done.
(s_cpadd): Generate .cpadd on NEWABI.
2002-10-13 21:22:49 +00:00
Alan Modra 49181a6af7 * config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int. 2002-10-12 10:23:17 +00:00
Alexandre Oliva 63d0b39325 * gas/mips/mips.exp: Don't xfail relax.
* gas/mips/relax.s: Increase coverage.
* gas/mips/relax.d: Add expected output.  Use relax.l for as stderr.
* gas/mips/relax.l: New file.
2002-10-12 05:26:56 +00:00
Alexandre Oliva 4a6a3df43d * config/tc-mips.h (mips_relax_frag): Take segment as argument.
(md_relax_frag): Adjust macro.
* config/tc-mips.c (mips_relax_branch): New variable.
(RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
(RELAX_MIPS16_P): Adjust.
(append_insn): Emit branch to non-constant in a frag_var if
branch-relaxation is desirable and possible.
(OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
(OPTION_ELF_BASE): Adjust.
(md_parse_option): Handle new options.
(md_apply_fix3): Update comment on EMBEDDED_PIC conditional
branch relaxation.
(relaxed_branch_length): New function.
(md_estimate_size_before_relax): Handle branch frags.
(mips_relax_frag): Likewise.
(md_convert_frag): Handle branch frags.  Warn if branch is
relaxed.
2002-10-12 05:23:33 +00:00
Kaz Kojima 94a03f18b8 * gas/sh/tlsd.s, gas/sh/tlsd.d: New.
* gas/sh/tlsnopic.s, gas/sh/tlsnopic.d: New.
	* gas/sh/tlspic.s, gas/sh/tlspic.d: New.
	* gas/sh/basic.exp: Add new tests.
2002-10-11 14:42:51 +00:00
Kaz Kojima 9efb3b7baf * config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
emitted.
	(md_apply_fix3): Add TLS relocs.
	(sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
	@DTPOFF.
2002-10-11 14:34:46 +00:00
Alan Modra 3e02c1cc58 * config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
(md_estimate_size_before_relax): Likewise for 8 bit branches.
2002-10-11 00:25:32 +00:00
Joern Rennecke ac62e7a368 * config/tc-sh.c (assemble_ppi): Initialize reg_x / reg_y / reg_n
inside loop.
2002-10-10 13:37:32 +00:00
Stephen Clarke 42bf09b2b1 * gas/elf.exp: Don't run for sh64*-*-linux*, because it sets the
lsb in SHmedia code addresses.
* gas/sh/basic.exp: Force SHcompact for sh64*-*-linux* to enable
recognition of SH-1/2/3/4 instructions.
(proc do_fp): Do not run dsp tests for sh64*-*-linux*.
* gas/sh/sh64/abi-32.d: Adjust expected output to include
sh64*-*-linux* formats too.
* gas/sh/sh64/abi-64.d, gas/sh/sh64/basic-1.d,
gas/sh/sh64/case-1.d, gas/sh/sh64/case-noexp-1.d,
gas/sh/sh64/crange1-1.d, gas/sh/sh64/crange1-2.d,
gas/sh/sh64/crange2-1.d, gas/sh/sh64/crange2-2.d,
sh/sh64/crange2-noexp-1.d, gas/sh/sh64/crange3-1.d,
gas/sh/sh64/crange4-1.d, gas/sh/sh64/crange5-1.d,
gas/sh/sh64/creg-1.d, gas/sh/sh64/creg-2.d, gas/sh/sh64/datal-2.d,
gas/sh/sh64/datal32-1.d, gas/sh/sh64/datal32-3.d,
gas/sh/sh64/datal64-1.d, gas/sh/sh64/datal64-3.d,
gas/sh/sh64/endian-1.d, gas/sh/sh64/endian-2.d,
gas/sh/sh64/err-noexp-cmd1.s, gas/sh/sh64/immexpr32-1.d,
gas/sh/sh64/immexpr32-2.d, gas/sh/sh64/immexpr64-1.d,
gas/sh/sh64/immexpr64-2.d, gas/sh/sh64/lineno.d,
gas/sh/sh64/localcom-1.d, gas/sh/sh64/mix-1.d,
gas/sh/sh64/mix-noexp-1.d, gas/sh/sh64/movi-3.d,
gas/sh/sh64/movi32-1.d, gas/sh/sh64/movi32-2.d,
gas/sh/sh64/movi32-noexp-2.d, gas/sh/sh64/movi64-1.d,
gas/sh/sh64/movi64-2.d, gas/sh/sh64/movi64-3.d,
gas/sh/sh64/movi64-noexp-2.d, gas/sh/sh64/pt-1.d,
gas/sh/sh64/pt-noexp-1.d, gas/sh/sh64/pt32-1.d,
gas/sh/sh64/pt32-noexp-2.d, gas/sh/sh64/pt64-1.d,
gas/sh/sh64/pt64-32-1.d, gas/sh/sh64/pt64-32-2.d,
gas/sh/sh64/pt64-noexp-2.d, gas/sh/sh64/ptc32-1.d,
gas/sh/sh64/ptc32-noexp-1.d, gas/sh/sh64/ptc64-1.d,
gas/sh/sh64/ptc64-32-1.d, gas/sh/sh64/ptc64-noexp-1.d,
gas/sh/sh64/ptext32-1.d, gas/sh/sh64/ptext32-noexp-1.d,
gas/sh/sh64/ptext64-1.d, gas/sh/sh64/ptext64-32-1.d,
gas/sh/sh64/ptext64-noexp-1.d, gas/sh/sh64/rel32-1.d,
gas/sh/sh64/rel32-2.d, gas/sh/sh64/rel32-3.d,
gas/sh/sh64/rel32-4.d, gas/sh/sh64/rel32-5.d,
gas/sh/sh64/rel64-1.d, gas/sh/sh64/rel64-2.d,
gas/sh/sh64/rel64-3.d, gas/sh/sh64/rel64-4.d,
gas/sh/sh64/rel64-5.d, gas/sh/sh64/relax-1.d,
gas/sh/sh64/relax-2.d, gas/sh/sh64/relax-3.d,
gas/sh/sh64/shift32-1.d, gas/sh/sh64/shift32-3.d,
gas/sh/sh64/shift32-noexp-3.d, gas/sh/sh64/shift64-1.d,
gas/sh/sh64/shift64-2.d, gas/sh/sh64/shift64-3.d,
gas/sh/sh64/shift64-noexp-3.d, gas/sh/sh64/syntax-1.d,
gas/sh/sh64/syntax-2.d, gas/sh/sh64/ua32-1.d,
gas/sh/sh64/ua64-1.d: Likewise.
2002-10-09 19:40:42 +00:00
Stephen Clarke f61dfddf2d * config/tc-sh64.c (sh64_target_format): Add support for sh64
Linux environment.
2002-10-09 19:07:43 +00:00
Chris Demetriou 21bd8c3134 2002-10-03 Chris Demetriou <cgd@broadcom.com>
* gas/mips/mips-no-jalx.l: Make error message regexps accomodate
        tools which target a specific CPU by default.
2002-10-03 23:53:09 +00:00
Kaz Kojima 28602ebff6 * contig/tc-sh.c (sh_local_pcrel): New.
(sh_force_relocation): Use sh_local_pcrel.
	(md_pcrel_from_section): Check the relocation type whether it
	should be resolved locally. Use S_FORCE_RELOC.
	* testsuite/gas/sh/pcrel2.d: Check code also.
2002-10-03 04:58:28 +00:00
Stephen Clarke 7a68fea6e1 * gas/sh/sh64/ptc32-noexp-1.d: Adjust for changes to *ABS*
symbol generation.
* gas/sh/sh64/ptc64-noexp-1.d: Likewise.
2002-10-03 00:56:06 +00:00
Alan Modra 97724570fe * config/tc-mips.h (TC_FORCE_RELOCATION_SUB_SAME): Define.
(TC_FORCE_RELOCATION): Tidy arg.
2002-10-01 06:15:33 +00:00
H.J. Lu f11b4434cc 2002-09-30 H.J. Lu <hjl@gnu.org>
* gas/mips/mips.exp: Undo the last change.
2002-10-01 04:37:47 +00:00
H.J. Lu 28e0c55ddc 2002-09-30 H.J. Lu <hjl@gnu.org>
* gas/mips/vr4120.d: Use "#pass" instead of "#..." to skip the
	rest of output.
2002-10-01 00:12:26 +00:00
H.J. Lu 5d42dcdf5f 2002-09-30 H.J. Lu <hjl@gnu.org>
* gas/mips/mips.exp: Set xfail on empic, empic2, empic3_g1 and
	empic3_g2 on Linux/mips.
2002-09-30 21:12:24 +00:00
H.J. Lu 17c06574e8 2002-09-30 H.J. Lu <hjl@gnu.org>
* gas/mips/vr4120.d: Pass -m mips:4120 to objdump.
2002-09-30 20:59:11 +00:00
Richard Sandiford 60b63b728f [gas/]
* doc/c-mips.texi: Add entries for -march=vr4120,vr4130,vr4181,
	vr5400 and vr5500.  Add entry for -mfix-vr4122-bugs.
	* config/tc-mips.c (CPU_HAS_DROR, CPU_HAS_ROR): New macros.
	(hilo_interlocks): True for CPU_VR5500.
	(gpr_interlocks, cop_interlocks): True for CPU_VR5400 and CPU_VR5500.
	(mips_fix_vr4122_bugs): New.
	(append_insn): Work around 4122 errors if mips_fix_vr4122_bugs.
	(mips_emit_delays): Likewise.
	(macro2) [M_DROLI]: Use dror or dror32 if CPU_HAS_DROR.
	[M_ROLI]: Likewise ror if CPU_HAS_ROR.
	(validate_mips_insn, mips_ip): Handle '[', ']', 'e' and '%'.
	(OPTION_FIX_VR4122, OPTION_NO_FIX_VR4122): New options.
	(md_longopts): Add -mfix-vr4122-bugs and -no-mfix-vr4122-bugs.
	(OPTION_ELF_BASE): Bump.
	(md_parse_option): Handle the new options.
	(mips_cpu_info_table): Add entries for vr4120, vr4130, vr4181,
	vr5400 and vr5500.

[gas/testsuite/]
	* gas/mips/mips4100.[sd]: Move dmadd16 and madd16 checks to...
	* gas/mips/vr4111.[sd]: ...this new test.
	* gas/mips/vr4120.[sd],
	* gas/mips/vr4122.[sd],
	* gas/mips/vr5400.[sd],
	* gas/mips/vr5500.[sd]: New tests.
	* mips.exp: Run them.
2002-09-30 12:04:54 +00:00
H.J. Lu 7a49a8c2b4 2002-09-29 H.J. Lu <hjl@gnu.org>
* config/tc-mips.c (md_apply_fix3): Subtract the symbol value
	twice if howto->pcrel_offset is true.
2002-09-30 06:32:00 +00:00
Jason Thorpe 04ff5cb5c7 * config/tc-vax.c (md_estimate_size_before_relax): Only try to
convert undefined references to GOT32/PLT32 if PIC code is
requested.  Fix comment.
2002-09-28 20:01:43 +00:00