This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: G++ defining _GNU_SOURCE
- To: dje at watson dot ibm dot com
- Subject: Re: G++ defining _GNU_SOURCE
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Thu, 07 Jun 2001 15:38:25 -0700
- Cc: nathan at codesourcery dot com, pedwards at disaster dot jaj dot com, gcc at gcc dot gnu dot org, jason_merrill at redhat dot com
- Organization: CodeSourcery, LLC
- References: <mark@codesourcery.com><200106072228.SAA27298@makai.watson.ibm.com>
>>>>> "David" == David Edelsohn <dje@watson.ibm.com> writes:
David> This is not an AIX problem. This is a problem for any
David> non-glibc2 target.
You mean it's not *only* an AIX problem.
Well, this is even a problem for a GNU/Linux target, too, really, in a
way.
This is a fundamentally missing feature in the library -- the V3
library forces you to pick a certain system library interface, instead
of affording you the usual flexibility.
Until it gets added, all we can do is try to mitigate the damage.
Fortunately, it looks like Phil will come up with something.
Phil, I ould stick with linux.h. Just add _GNU_SOURCE to add targets
that include linux.h and define their own C++ predefines so that we
can be sure that they get it too. That will allow us to remove it
from lang-specs.h. It you feel like doing gnu.h too, that's fine --
but in practice very few people are using the Hurd. GLIBC2 is used on
GNU/Linux and not very many other places, AFAIK.
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com