Hello! 2014-12-15 Uros Bizjak <ubiz...@gmail.com>
* config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Move from here ... * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): ... and here ... * config/i386/gnu-user-common.h (TARGET_CAN_SPLIT_STACK): ... to here. Bootstrapped and regtested on x86_64-linux-gnu {,-m32}, including go. Will commit tomorrow to mainline if there are no objections. Uros.
Index: config/i386/gnu-user-common.h =================================================================== --- config/i386/gnu-user-common.h (revision 218753) +++ config/i386/gnu-user-common.h (working copy) @@ -64,3 +64,9 @@ /* Static stack checking is supported by means of probes. */ #define STACK_CHECK_STATIC_BUILTIN 1 + +/* We only build the -fsplit-stack support in libgcc if the + assembler has full support for the CFI directives. */ +#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE +#define TARGET_CAN_SPLIT_STACK +#endif Index: config/i386/gnu-user.h =================================================================== --- config/i386/gnu-user.h (revision 218753) +++ config/i386/gnu-user.h (working copy) @@ -154,11 +154,6 @@ /* i386 glibc provides __stack_chk_guard in %gs:0x14. */ #define TARGET_THREAD_SSP_OFFSET 0x14 -/* We only build the -fsplit-stack support in libgcc if the - assembler has full support for the CFI directives. */ -#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE -#define TARGET_CAN_SPLIT_STACK -#endif /* We steal the last transactional memory word. */ #define TARGET_THREAD_SPLIT_STACK_OFFSET 0x30 #endif Index: config/i386/gnu-user64.h =================================================================== --- config/i386/gnu-user64.h (revision 218753) +++ config/i386/gnu-user64.h (working copy) @@ -85,11 +85,6 @@ #define TARGET_THREAD_SSP_OFFSET \ (TARGET_64BIT ? (TARGET_X32 ? 0x18 : 0x28) : 0x14) -/* We only build the -fsplit-stack support in libgcc if the - assembler has full support for the CFI directives. */ -#if HAVE_GAS_CFI_PERSONALITY_DIRECTIVE -#define TARGET_CAN_SPLIT_STACK -#endif /* We steal the last transactional memory word. */ #define TARGET_THREAD_SPLIT_STACK_OFFSET \ (TARGET_64BIT ? (TARGET_X32 ? 0x40 : 0x70) : 0x30)