aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-22 14:09:20 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2022-07-25 14:57:06 +0200
commit556b816b820f6749910784cbaca8bb0bb822a970 (patch)
tree694624bf9cff0708eddd91aa3bc08b28fd15bdad
parent613e3b86955ea3b4977490625328708e82bea6fa (diff)
downloadgcc-556b816b820f6749910784cbaca8bb0bb822a970.zip
gcc-556b816b820f6749910784cbaca8bb0bb822a970.tar.gz
gcc-556b816b820f6749910784cbaca8bb0bb822a970.tar.bz2
RTEMS: Do not define _GNU_SOURCE by default
gcc/ChangeLog: * config/rs6000/rtems.h (CPLUSPLUS_CPP_SPEC): Undef.
-rw-r--r--gcc/config/rs6000/rtems.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h
index 8aa41d5..d529e22 100644
--- a/gcc/config/rs6000/rtems.h
+++ b/gcc/config/rs6000/rtems.h
@@ -23,6 +23,9 @@
see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
<http://www.gnu.org/licenses/>. */
+/* Undef gnu-user.h macro we don't want. */
+#undef CPLUSPLUS_CPP_SPEC
+
/* Copy and paste from linux64.h and freebsd64.h */
#ifdef IN_LIBGCC2
#undef TARGET_64BIT