From: Svante Signell Date: Sat, 12 Jan 2019 21:17:56 +0000 (+0000) Subject: gnu.h (TARGET_THREAD_SSP_OFFSET): Define. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d5d3edddf70a8683c10e000817e8d2cd5b8c974;p=gcc.git gnu.h (TARGET_THREAD_SSP_OFFSET): Define. * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define. (TARGET_CAN_SPLIT_STACK): Define. (TARGET_THREAD_SPLIT_STACK_OFFSET): Define. From-SVN: r267886 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7126508a3a4..a2735a5e4c9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-01-12 Svante Signell + + * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define. + (TARGET_CAN_SPLIT_STACK): Define. + (TARGET_THREAD_SPLIT_STACK_OFFSET): Define. + 2019-01-05 Jan Hubicka * params.def (inline-unit-growth): Set to 40. diff --git a/gcc/config/i386/gnu.h b/gcc/config/i386/gnu.h index 69d9e5fee27..9d1dcde1c99 100644 --- a/gcc/config/i386/gnu.h +++ b/gcc/config/i386/gnu.h @@ -37,11 +37,14 @@ along with GCC. If not, see . #ifdef TARGET_LIBC_PROVIDES_SSP -/* Not supported yet. */ -# undef TARGET_THREAD_SSP_OFFSET - -/* Not supported yet. */ -# undef TARGET_CAN_SPLIT_STACK -# undef TARGET_THREAD_SPLIT_STACK_OFFSET +/* 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