From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC0353858CDB; Thu, 4 May 2023 17:30:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC0353858CDB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683221435; bh=suzP8cDlzTzUX0g2aKfuTAgKS82zZLOtcurpTUkUD/E=; h=From:To:Subject:Date:From; b=JcIK1ruIz8Zy22N/6dudFvE9HaVYcw2bQFTGuDUAYdEMW7OpPpSh8y0r8mXch7z1n UyxJhj0YWdJ6ZMv/zN0CTDmwzqrsY8QK483lOQgSBBo4Ily7lH2MeTA/prKHBYgK3/ H4QBobrySbgcr7R8KcL3OOqj+HD2WWkOrgpA0IE0= From: "janezz55 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109741] New: alignas(64) in libstdc++-v3/src/c++11/shared_ptr.cc Date: Thu, 04 May 2023 17:30:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: janezz55 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter 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=3D109741 Bug ID: 109741 Summary: alignas(64) in libstdc++-v3/src/c++11/shared_ptr.cc Product: gcc Version: 13.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: janezz55 at gmail dot com Target Milestone: --- This line: struct alignas(64) M : __gnu_cxx::__mutex { }; has been an eyesore for me for a number of years. I propose to change it in= to: struct alignas(std::max_align_t) M : __gnu_cxx::__mutex { }; in which case needs to be #included as well. The magic number 64 alone should be raising some eyebrows and some targets do not support this alignment.=