This is the mail archive of the gcc-bugs@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]

[Bug lto/40790] plugin-api.h unconditionally includes stdint.h



------- Comment #3 from ro at techfak dot uni-bielefeld dot de  2009-09-16 14:37 -------
Subject: Re:  plugin-api.h unconditionally includes stdint.h

> ------- Comment #2 from rguenth at gcc dot gnu dot org  2009-09-16 13:20 -------
> Does replacing the #include with
> 
> #ifdef HAVE_STDINT_H
> #include <stdint.h>
> #endif
> 
> #ifdef HAVE_INTTYPES_H
> #include <inttypes.h>
> #endif
> 
> work for you?

The first part won't help on IRIX 6.5, which has <stdint.h>, but it's
unusable in non-C99 mode.  This is fixed (via fixincludes) in recent
versions of gcc, though, which one could require to bootstrap.  But again,
if one bootstraps e.g with MIPSpro cc, it would fail again.

The second part should help for e.g. Tru64 UNIX V5.1B, which has
<inttypes.h>, but not on V4.0F, which lacks it.  What needs to happen, I
think, is a check if some header provides the necessary types and provide
them otherwise.

        Rainer


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40790


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