[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-12 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #12 from Jonathan Wakely --- Arguably sysv ABI on Windows is a distinct target, and you need to provide your own libc for it.

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-12 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 Andrew Pinski changed: What|Removed |Added Status|WAITING |UNCONFIRMED Ever confirmed|1

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-12 Thread mark at harmstone dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #10 from Mark Harmstone --- Created attachment 51977 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51977=edit corecrt.h >From the file: #ifndef _SIZE_T_DEFINED #define _SIZE_T_DEFINED #undef size_t #ifdef _WIN64

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #9 from Andrew Pinski --- (In reply to Mark Harmstone from comment #8) > Created attachment 51976 [details] > preprocessed source Can you attach /usr/x86_64-w64-mingw32/usr/include/corecrt.h ? because I suspect it is bug there:

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-11 Thread mark at harmstone dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #8 from Mark Harmstone --- Created attachment 51976 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51976=edit preprocessed source Sorry!

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #7 from Andrew Pinski --- (In reply to Mark Harmstone from comment #6) > Created attachment 51973 [details] > preprocessed source > > Thanks Andrew, attached. > > Relevant bits: > typedef unsigned int size_t; > typedef unsigned

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-11 Thread mark at harmstone dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #6 from Mark Harmstone --- Created attachment 51973 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51973=edit preprocessed source Thanks Andrew, attached. Relevant bits: typedef unsigned int size_t; typedef unsigned int

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-09 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 Andrew Pinski changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-09 Thread mark at harmstone dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #4 from Mark Harmstone --- Thanks, but I mentioned just to illustrate that this isn't purely a hypothetical bug.

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #3 from Jonathan Wakely --- There's an explicit instantiation declaration at the end of the header, which means the entire thing is externally defined in libstdc++.so and the only code that gets instantiated in your own translation

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-09 Thread mark at harmstone dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #2 from Mark Harmstone --- (In reply to Jonathan Wakely from comment #1) > (In reply to Mark Harmstone from comment #0) > > The practical problem this causes is that you can't #include on > > mingw with -mabi=sysv, > > I don't

[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv

2021-12-09 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635 --- Comment #1 from Jonathan Wakely --- (In reply to Mark Harmstone from comment #0) > The practical problem this causes is that you can't #include on > mingw with -mabi=sysv, I don't think that's going to work anyway, is it? I would expect