From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5F85A3896C0A; Sun, 15 Nov 2020 17:30:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F85A3896C0A From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/88101] Implement P0528R3, C++20 cmpxchg and padding bits Date: Sun, 15 Nov 2020 17:30:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: NEW 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: cc 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: Sun, 15 Nov 2020 17:30:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D88101 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek --- Created attachment 49563 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49563&action=3Dedit gcc11-pr88101-wip.patch Here is completely untested WIP of __builtin_clear_padding builtin, so far doesn't handle bit-fields, unions, VLAs and has a couple of other FIXMEs. I'll try to complete this virtually from Baker Island (AoE timezone) tonight before stage1 closes there. Also I'll probably need to remember the origin= ally passed pointer type in e.g. second artificial argument of the builtin (NULL= ), in case already before or during lower pass something would forward propaga= te the argument.=