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 bootstrap/53912] [4.7/4.8 Regression] bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32


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

--- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-07-20 15:54:08 UTC ---
That patch can't work properly, on targets where uintptr_t isn't unsigned long
you'll either get warnings from using %lx for it, or it will misbehave if
uintptr_t is even different size.  You either need to cast the argument
cast to uintptr_t afterwards to (unsigned long), or some other type and adjust
%lx to something matching it.  POSIX supports %zx for size_t and %tx for
ptrdiff_t, but uintptr_t doesn't have to match either of those, furthermore we
shouldn't rely on it being supported (unlike %lx).


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