aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-12-30 18:03:24 +0000
committerIain Sandoe <iain@sandoe.co.uk>2021-01-02 19:56:19 +0000
commitac6ecec4b328daf0583a125d647f9a5836fa0023 (patch)
tree2da72defa30ca0f3ec18134339ee541afebd0794
parent896607741f1ea98fc8a35e58e76d67248f6e6211 (diff)
downloadgcc-ac6ecec4b328daf0583a125d647f9a5836fa0023.zip
gcc-ac6ecec4b328daf0583a125d647f9a5836fa0023.tar.gz
gcc-ac6ecec4b328daf0583a125d647f9a5836fa0023.tar.bz2
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.
-rw-r--r--gcc/config/darwin.h3
-rw-r--r--gcc/config/darwin9.h3
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