This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: cast pointers to size_t (was Re: TYPE_HASH change)
- To: fjh at cs dot mu dot oz dot au, gcc-patches at gcc dot gnu dot org, rth at redhat dot com
- Subject: Re: Patch: cast pointers to size_t (was Re: TYPE_HASH change)
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Date: Sat, 18 Aug 2001 14:18:49 -0400 (EDT)
> From: Fergus Henderson <fjh@cs.mu.oz.au>
>
> For example, one such conflict was that we were checking for these
> types in <stdint.h>, and Solaris 2.X.Y did not have <stdint.h>, so we
> were declaring the types ourselves, but Solaris 2.X.Y did have
> <inttypes.h> and #includes that file from <sys/types.h>, which
> conflicted with our definitions of intptr_t etc.
The solution to this kind of problem is to make sure that the set of
include files used during configuration is the same as those used
during compilation. E.g. many of gcc's autoconf tests for include
file declarations include system.h plus other stuff for just this
reason.
--Kaveh
--
Kaveh R. Ghazi Engagement Manager / Project Services
ghazi@caip.rutgers.edu Qwest Internet Solutions