From 556b816b820f6749910784cbaca8bb0bb822a970 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 22 Jul 2022 14:09:20 +0200 Subject: [PATCH] RTEMS: Do not define _GNU_SOURCE by default gcc/ChangeLog: * config/rs6000/rtems.h (CPLUSPLUS_CPP_SPEC): Undef. --- gcc/config/rs6000/rtems.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/rs6000/rtems.h b/gcc/config/rs6000/rtems.h index 8aa41d5448d..d529e22f7de 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 . */ +/* 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