This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: tgmath.h
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andreas Jaeger <aj at suse dot de>
- Cc: Geoffrey Keating <gkeating at apple dot com>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 12 Jul 2007 03:07:26 -0400
- Subject: Re: tgmath.h
- References: <20070712015346.B0F766E40EF3@geoffk5.apple.com> <hok5t615bp.fsf@reger.suse.de>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Jul 12, 2007 at 08:52:58AM +0200, Andreas Jaeger wrote:
> > What do people think? Should I try to suppress this on Linux? I'll
> > wait a few days before committing for comments.
>
> glibc has it's own tgmath.h header and I think you should not install it
> on glibc systems,
Yeah, especially when it has GNU extensions in it (e.g. log10 with
-D_GNU_SOURCE can handle also complex arguments, scalb(x, y) is macroized
in the appropriate namespaces, etc.).
The bigger implementation of the macros is a price glibc pays for backwards
compatibility (support for older GCCs).
Jakub