From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 97747385702C; Fri, 18 Dec 2020 14:56:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97747385702C From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/98362] bad file data on Windows for C++ 20 module Date: Fri, 18 Dec 2020 14:56:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur at live dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: nathan at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Dec 2020 14:56:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98362 --- Comment #5 from cqwrteur --- Created attachment 49798 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49798&action=3Dedit Compilation Working patch. Tested on both x86_64-linux-gnu and mingw-w64-x86_64-windows10 This also adds the support for O_CLOEXEC on Windows with the O_NOINHERIT fl= ag. No longer uses HOST_HAS_O_CLOEXEC macro generated by the autotool. Directly checking O_CLOEXEC macro on that platform. There is a new bug for libstdc++ before I could test whether module works on windows, but this patch does not break compilation.=