[Bug rust/109853] New: WIN64 is a predefined constant on GCC MinGW-w64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109853 Bug ID: 109853 Summary: WIN64 is a predefined constant on GCC MinGW-w64 Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rust Assignee: unassigned at gcc dot gnu.org Reporter: mehdi.chinoune at hotmail dot com CC: dkm at gcc dot gnu.org, gcc-rust at gcc dot gnu.org Target Milestone: --- Building rust on MinGW-w64 fails because rust uses WIN64 as member of ABI enum in gcc/rust/util/rust-abi.h ``` ... enum ABI { UNKNOWN, RUST, INTRINSIC, C, CDECL, STDCALL, FASTCALL, WIN64, SYSV64 }; ... ``` WIN64 is a defined to 1 on MinGW-w64 ``` $ echo | gcc -dM -E - | grep WIN64 #define _WIN64 1 #define __WIN64 1 #define __WIN64__ 1 #define WIN64 1 ``` So, Please consider choosing a different name for Windows ABI. -- You are receiving this mail because: You are on the CC list for the bug. -- Gcc-rust mailing list Gcc-rust@gcc.gnu.org https://gcc.gnu.org/mailman/listinfo/gcc-rust
[Bug rust/109853] WIN64 is a predefined constant by GCC on MinGW-w64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109853 Chinoune changed: What|Removed |Added Summary|WIN64 is a predefined |WIN64 is a predefined |constant on GCC MinGW-w64 |constant by GCC on ||MinGW-w64 -- You are receiving this mail because: You are on the CC list for the bug. -- Gcc-rust mailing list Gcc-rust@gcc.gnu.org https://gcc.gnu.org/mailman/listinfo/gcc-rust
[Bug rust/109853] WIN64 is a predefined constant by GCC on MinGW-w64
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109853 Richard Biener changed: What|Removed |Added Target||mingw-w64 --- Comment #1 from Richard Biener --- Eh. It's of course equally bad to have a predefined macro in the non-implementation namespace (but possibly it's required for MSVC compatibility). -- You are receiving this mail because: You are on the CC list for the bug. -- Gcc-rust mailing list Gcc-rust@gcc.gnu.org https://gcc.gnu.org/mailman/listinfo/gcc-rust