From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 446423857805; Mon, 25 Apr 2022 11:46:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 446423857805 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libgomp/105358] [12 Regression] scan* fails on targets without aligned memory allocators. Date: Mon, 25 Apr 2022 11:46:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libgomp X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org 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: 12.0 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 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: Mon, 25 Apr 2022 11:46:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105358 --- Comment #7 from Iain Sandoe --- (In reply to Jakub Jelinek from comment #5) > Or is the problem mainly in code like > #define INLINE_ORDERED_TEAM_IDS_OFF \ > ((offsetof (struct gomp_work_share, inline_ordered_team_ids) \ > + __alignof__ (long long) - 1) & ~(__alignof__ (long long) - 1)) > if (size > (sizeof (struct gomp_work_share) > - INLINE_ORDERED_TEAM_IDS_OFF)) > where if struct gomp_work_share's size equal to inline_ordered_team_ids > isn't a multiple of 8 sizeof (struct gomp_work_share) - > INLINE_ORDERED_TEAM_IDS_OFF wraps around? right - I suspect that could be the case because sizeof (struct gomp_work_share) is not a multiple of 8.=