aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-02 22:10:29 +0000
committerGitHub <noreply@github.com>2021-06-02 22:10:29 +0000
commit324dfb828cec09f7638b48b6e25e4007b45b9cbc (patch)
tree11dcec8b1a25287685106f5c6605ce297258dd33
parent59b417323b25072aff2662f1f54f417f7b7ded61 (diff)
parent6b6fcbb6a4bfcf038a4db952a65d4513ba0f5056 (diff)
downloadgcc-324dfb828cec09f7638b48b6e25e4007b45b9cbc.zip
gcc-324dfb828cec09f7638b48b6e25e4007b45b9cbc.tar.gz
gcc-324dfb828cec09f7638b48b6e25e4007b45b9cbc.tar.bz2
Merge #475
475: rs6000: Override TARGET_RUST_OS_INFO in linux.h r=tschwinge a=glaubitz Like 64-bit PowerPC, 32-bit PowerPC has the issue that TARGET_RUST_OS_INFO is defined in both config/rs6000/sysv4.h and config/rs6000/linux.h which triggers an error directive. Thus, apply the same fix which undefines TARGET_RUST_OS_INFO in linux.h first before redefining it, eliminating the error directive. gcc/ChangeLog: 2021-06-02 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> * config/rs6000/linux.h: Undefine TARGET_RUST_OS_INFO before defining it. Fixes #468 Co-authored-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
-rw-r--r--gcc/config/rs6000/linux.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/rs6000/linux.h b/gcc/config/rs6000/linux.h
index 9660d42..acf830f 100644
--- a/gcc/config/rs6000/linux.h
+++ b/gcc/config/rs6000/linux.h
@@ -59,9 +59,8 @@
} \
while (0)
-#ifdef TARGET_RUST_OS_INFO
-# error "TARGET_RUST_OS_INFO already defined in linux.h (rs6000) - c++ undefines it and redefines it."
-#endif
+/* Override less-specific rs6000/sysv4.h definition. */
+#undef TARGET_RUST_OS_INFO
#define TARGET_RUST_OS_INFO() \
do { \
GNU_USER_TARGET_RUST_OS_INFO(); \