This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch g++.dg/cdce3.C test for IA64 HP-UX
On Thu, 18 Sep 2008, Steve Ellcey wrote:
>> Right -- I saw someone added macro NO_GNU_EXTENSION to handle this.
> But we shouldn't have to tell the test about each platform (darwin,
> hpux, freebsd) that doesn't have pow10 individually. The use or non-use
> of -DNO_GNU_EXTENSION should be handled by a dg-require that checks for
> the existence of this function.
Yes, that sounds like the right approach. And *if* we have to specify
platforms, the default should be not to test for GNU extensions, instead
replacing
/* { dg-options "... -DNO_GNU_EXTENSION -lm" { target "*-*-darwin*" } } */
by
/* { dg-options "... -DGNU_EXTENSION -lm" { target "*-*-*-gnu" } } */
or something like that. That is, explicitly list those platforms where
these extensions will be tested.
Xinliang, is this something you could look into?
> Gerald, why is freebsd returning true for large_long_double? Does it
> support long double variables but not have these particular functions?
Yes, exactly. It seems FreeBSD 8 will be nearly complete, but not have
all of these, but released versions basically lack them.
Gerald