This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: tgmath.h


gkeating@apple.com (Geoffrey Keating) writes:

> This patch provides a tgmath.h which works with GCC.
>
> I've arranged the patch so that it provides this on all systems.  I
> think this is best, because:
> - on Linux, the tgmath.h in glibc is equivalent but larger;
> - on Darwin, the compiler is expected to provide a tgmath.h, because
>   the file is entirely compiler-specific, so using tgmath.h won't work
>   on Darwin with FSF GCC unless one is provided; and
> - on other OSs I expect that either there's no system tgmath.h or it's
>   not suitable for GCC
> - on OSs which don't provide the full set of C99 math functions,
>   everything will can work will still work.
>
> I'm running a bootstrap and a C testrun now; in Apple's tree this has
> also been validated using Plum-Hall.
>
> 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,

Andreas
-- 
 Andreas Jaeger, Director Platform / openSUSE, aj@suse.de
  SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg)
   Maxfeldstr. 5, 90409 Nürnberg, Germany
    GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]