aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-08-02 16:44:02 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-08-03 19:59:32 +0100
commit105fe3e0b896998b4a1b5a79ad6526959c2e2e7a (patch)
tree05d5ebb5778314b236ad7bd043c3843fbeaf78b6 /gcc
parent7ddee9cd99beb2c3603bf307d263c6fd9cc05e90 (diff)
downloadgcc-105fe3e0b896998b4a1b5a79ad6526959c2e2e7a.zip
gcc-105fe3e0b896998b4a1b5a79ad6526959c2e2e7a.tar.gz
gcc-105fe3e0b896998b4a1b5a79ad6526959c2e2e7a.tar.bz2
Darwin: Guard two macros in darwin.h.
Work on the Arm64 port shows that these two macros can be declared ahead of the version in darwin.h which needs to override (for X86 and PPC this wasn't needed). gcc/ChangeLog: * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): UNDEF before use. (DEF_MIN_OSX_VERSION): Only define if there's no existing def.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/darwin.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index f528b17..55a5361 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -652,6 +652,7 @@ extern GTY(()) int darwin_ms_struct;
that the name *is* defined in this module, so it doesn't need to
make them indirect. */
+#undef ASM_DECLARE_FUNCTION_NAME
#define ASM_DECLARE_FUNCTION_NAME(FILE, NAME, DECL) \
do { \
const char *xname = NAME; \
@@ -1059,7 +1060,9 @@ extern void darwin_driver_init (unsigned int *,struct cl_decoded_option **);
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
fall-back default. */
+#ifndef DEF_MIN_OSX_VERSION
#define DEF_MIN_OSX_VERSION "10.5"
+#endif
/* Later versions of ld64 support coalescing weak code/data without requiring
that they be placed in specially identified sections. This is the earliest