From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 353B93858C00; Sun, 14 May 2023 12:22:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 353B93858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684066922; bh=bW0PUdhtd7mfINw5jbSj6QO3ZRZKokr6DAPFycu5BDo=; h=From:To:Subject:Date:From; b=L1Ny2/ddm0VO7SM1u531VakRTIsdhU6etvba18Oj++6ft4lUgf4ykISKdreWkNPpD G1NGP+u/+aL4CANnFjrzBLfZZaEx64LzrPQqXRHRTpmvCWTgEmK+PYTvQnPhALvn9C KRc+KIwK8yQpUiJ2Z8y0IzjKA0doww4wI5rIfFyg= From: "mehdi.chinoune at hotmail dot com" To: gcc-rust@gcc.gnu.org Subject: [Bug rust/109853] New: WIN64 is a predefined constant on GCC MinGW-w64 Date: Sun, 14 May 2023 12:22:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rust X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mehdi.chinoune at hotmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109853 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 e= num 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. --=20 You are receiving this mail because: You are on the CC list for the bug.=