This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java 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: [MinGW] RFC/RFA: Get Partial Stack Traces on Windows


Bryce McKinlay writes:
 > Andrew Haley wrote:
 > > Bryce McKinlay writes:
 > >  > 
 > >  > Hmm, is there some reason we can't just use uintptr_t? Doesn't GCC 
 > >  > ensure it is always available?
 > >
 > > No.  It isn't part of gcc, it's part of whatever C library is being
 > > used, and it's not guaranteed to be there.  It's safer to do it this
 > > way.
 > 
 > We could also do something like:
 > 
 > #if !defined HAVE_UINTPTR_T
 > typedef unsigned int uintptr_t __attribute__((__mode__(__pointer__)));
 > #endif

I suppose we could, but it seems a bit fussy for something we can
define so easily.  I think perhaps we have enough configury already.
As I mentioned to Ranjit, this is turning into someting of a "what
colour shall we paint the bike shed" issue...  :-)

Andrew.


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