https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91349
Bug ID: 91349
Summary: [9 regression] powerpc*-*-freebsd* defines _GNU_SOURCE
Product: gcc
Version: 9.1.0
URL: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=2396
48
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: gerald at pfeifer dot com
CC: amodra at gcc dot gnu.org, amodra at gmail dot com,
andreast at gcc dot gnu.org
Target Milestone: ---
Target: powerpc*-*-freebsd*
This originally was reported on the FreeBSD side as
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239648 .
Between GCC 8 and GCC 9 powerpc*-*-freebsd* started to define _GNU_SOURCE
which is not appropriate on that platform and different behavior from other
FreeBSD platforms.
I believe this was introduced with
https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00921.html
and
* config.gcc (powerpc*-*-freebsd*, powerpc-*-netbsd*),
(powerpc-*-eabisimaltivec*, powerpc-*-eabisim*, powerpc-*-elf*),
(powerpc-*-eabialtivec*, powerpc-*-eabi*, powerpc-*-rtems*),
(powerpc-wrs-vxworks*, powerpc-*-lynxos*, powerpcle-*-elf*),
(powerpcle-*-eabisim*, powerpcle-*-eabi*): Add gnu-user.h to tm_file.
* config/rs6000/freebsd.h (CPLUSPLUS_CPP_SPEC),
(LINK_GCC_C_SEQUENCE_SPEC): Undef.
(ASM_APP_ON, ASM_APP_OFF): Don't define.
* config/rs6000/freebsd64.h (ASM_APP_ON, ASM_APP_OFF): Don't define.
: