[Bug target/103635] size_t and uintptr_t have wrong sizes with x86_64-w64-mingw32-g++ -mabi=sysv
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Dec 12 03:07:56 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103635
--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(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 int uintptr_t;
>
> Both are "unsigned long long" for -mabi=ms.
#define __SIZE_TYPE__ long long unsigned int
...
# 29 "/usr/x86_64-w64-mingw32/usr/include/corecrt.h" 3 4
#define _CRTNOALIAS
#define _CRTRESTRICT
#define _SIZE_T_DEFINED
#undef size_t
__extension__ typedef unsigned long long size_t;
#define _SSIZE_T_DEFINED
#undef ssize_t
__extension__ typedef long long ssize_t;
---- CUT -----
Did you attach the wrong file?
More information about the Gcc-bugs
mailing list