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]

Re: Patch: cast pointers to size_t (was Re: TYPE_HASH change)


 > 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


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