From ac6ecec4b328daf0583a125d647f9a5836fa0023 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Wed, 30 Dec 2020 18:03:24 +0000 Subject: [PATCH] Darwin, Simplify headers 2/5 : Move spec for STACK_CHECK_STATIC_BUILTIN. We now need a modern (C++11) toolchain to bootstrap GCC, so there's no need to skip the stack protect for Darwin < 9. gcc/ChangeLog: * config/darwin9.h (STACK_CHECK_STATIC_BUILTIN): Move from here.. * config/darwin.h (STACK_CHECK_STATIC_BUILTIN): .. to here. --- gcc/config/darwin.h | 3 +++ gcc/config/darwin9.h | 3 --- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 524a9c9..0eabd3f 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -1080,6 +1080,9 @@ extern void darwin_driver_init (unsigned int *,struct cl_decoded_option **); #undef SUPPORTS_INIT_PRIORITY #define SUPPORTS_INIT_PRIORITY 0 +#undef STACK_CHECK_STATIC_BUILTIN +#define STACK_CHECK_STATIC_BUILTIN 1 + /* When building cross-compilers (and native crosses) we shall default to providing an osx-version-min of this unless overridden by the User. 10.5 is the only version that fully supports all our archs so that's the diff --git a/gcc/config/darwin9.h b/gcc/config/darwin9.h index 6576d38..125a35e 100644 --- a/gcc/config/darwin9.h +++ b/gcc/config/darwin9.h @@ -31,6 +31,3 @@ along with GCC; see the file COPYING3. If not see #undef DEF_MIN_OSX_VERSION #define DEF_MIN_OSX_VERSION "10.5" - -#undef STACK_CHECK_STATIC_BUILTIN -#define STACK_CHECK_STATIC_BUILTIN 1 -- 2.7.4