This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 20 Jul 2012 15:54:08 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-53912-4@http.gcc.gnu.org/bugzilla/>
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).