From 21671a3d5059b9d55cbc6a98cf879e18678a654c Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 1 Apr 2015 21:57:10 -0400 Subject: midipix target implementation: finalize preliminary biarch support. + set default arch to m32/m64 for the i686- and x86_64- toolchains, respectively. + temporarily disable SEH for the i686-nt32-midipix target; this is needed since the 32-bit PE assembler rejects .seh_proc, meaning that currently we cannot even have 32-bit SEH support as a stub (adding the necessary assembler support should be easy, as it already exists for the 64-bit Windows targets). signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- gcc/config/i386/midipix.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/config/i386/midipix.h') diff --git a/gcc/config/i386/midipix.h b/gcc/config/i386/midipix.h index 765657365..4abcda1f7 100644 --- a/gcc/config/i386/midipix.h +++ b/gcc/config/i386/midipix.h @@ -22,6 +22,12 @@ #include #include "coretypes.h" +#if TARGET_64BIT_DEFAULT +#define MULTILIB_DEFAULTS { "m64" } +#else +#define MULTILIB_DEFAULTS { "m32" } +#endif + /* identify targets */ #define TARGET_NT64 (TARGET_64BIT) @@ -30,7 +36,7 @@ /* target constraints */ #undef TARGET_SEH -#define TARGET_SEH (flag_unwind_tables) +#define TARGET_SEH (TARGET_NT64 && flag_unwind_tables) #undef MAX_OFILE_ALIGNMENT #define MAX_OFILE_ALIGNMENT (8 * (2 * 4096)) -- cgit v1.2.3