[RTEMS Project] #4078: GCC C++ compiler for powerpc defines _GNU_SOURCE as a built-in
RTEMS trac
trac at rtems.org
Mon Sep 14 06:52:17 UTC 2020
#4078: GCC C++ compiler for powerpc defines _GNU_SOURCE as a built-in
-----------------------------+------------------------------
Reporter: Sebastian Huber | Owner: Sebastian Huber
Type: defect | Status: assigned
Priority: normal | Milestone: 6.1
Component: arch/powerpc | Version: 6
Severity: normal | Resolution:
Keywords: | Blocked By:
Blocking: |
-----------------------------+------------------------------
Description changed by Sebastian Huber:
Old description:
> For example:
>
> powerpc-rtems6-g++ -E -P -v -dD empty.cc 2>&1 | grep GNU_SOURCE
>
> Yields:
>
> /opt/rtems/6/libexec/gcc/powerpc-rtems6/10.2.1/cc1plus -E -quiet -v -P
> -D_GNU_SOURCE -Dmpc750 empty.cc -dD
> #define _GNU_SOURCE 1
>
> This is a GCC configuration bug. The reason is that the RTEMS GCC
> configuration includes gnu-user.h.
New description:
For example:
powerpc-rtems6-g++ -E -P -v -dD empty.cc 2>&1 | grep GNU_SOURCE
Yields:
{{{
/opt/rtems/6/libexec/gcc/powerpc-rtems6/10.2.1/cc1plus -E -quiet -v -P
-D_GNU_SOURCE -Dmpc750 empty.cc -dD
#define _GNU_SOURCE 1
}}}
This is a GCC configuration bug. The reason is that the RTEMS GCC
configuration includes gnu-user.h.
--
--
Ticket URL: <http://devel.rtems.org/ticket/4078#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list