[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:51:45 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           |   Keywords:
Blocked By:                   |   Blocking:
------------------------------+-----------------------------
 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>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list