From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 67A803858D33; Thu, 4 May 2023 20:18:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 67A803858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683231483; bh=6gTnAkKPJ3gAlhGWDUlZWJZo9EQAAqdxt9vfBiA+EYg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PwP/QZBoHQTBRYO5OG5OP26WhYJ7xt5xgS4mjclxuBHI6ab/D3pr9C1mHQHLUmYTW J/FP0Rc+ExezOp15YdjTTjzNeCcUDVYcvrhLJcfxUnAI5HMbY88WQUYmYvquvLLtFC M/6gzfGBJQP9vXgf/4mYC0rlH9EnhUZJS1JqDzMM= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109741] alignas(64) in libstdc++-v3/src/c++11/shared_ptr.cc Date: Thu, 04 May 2023 20:18:03 +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: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 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=3D109741 --- Comment #14 from Jonathan Wakely --- Libstdc++ doesn't work on "every possible architecture", just the ones GCC supports. I am 100% confident that alignas(void*) is wrong for every architecture GCC supports, and I'm pretty confident alignof(max_align_t) is wrong for all of them too (since that's either 8 or 16). I'm also confident that 64 is a good choice for nearly all targets GCC supports. 64 is much less wrong than any of your suggestions, and is right for most G= CC targets.=