From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 91FAC385828E; Fri, 17 Feb 2023 23:35:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 91FAC385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676676927; bh=nWqB55MjmrmnM/DjurJicVQSj44+vUYQ+Q4nDm5N2AA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wvokTJg27tlMi8nGKjkPnMzIuz1dTG63NCmKxJLc+xpOdPQfn/Pfmk6n7F4YXxmFp Ma2tHbPvtG9lQ+N+BhhXcNTVLmdus/2Fg0Bnlq3ffp9R1VhdzssDFsD0wm++YVxBun E2lVsuFedxJDPyNZpJ/llSeMtG7gxwPx8Sy2Tbis= From: "pdimov at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108836] std::mutex disappears in single-threaded libstdc++ builds Date: Fri, 17 Feb 2023 23:35:27 +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: normal X-Bugzilla-Who: pdimov at gmail 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: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108836 --- Comment #4 from Peter Dimov --- A compromise between no mutex at all, and a mutex that is silently a no-op, could be a no-op mutex with [[deprecated]] members, although the atomic_fla= g is probably better.=