From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4350B3858C5E; Tue, 14 Feb 2023 08:34:30 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4350B3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676363670; bh=wGQwIPAp3Cy6jn5y2mLcEVR+qaE85vPVHsznRErf3eA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ZsoFGhCTv9DTdqIylqSqowNznGZAnULcNdW9TdTbZHNPRW9fiQA1pa+WdMzPpEy0H 2pcYlmgi0t9Emtkm0LFyhKMQLNhIPkUM596U/2y+3fq9QVOFIvJj6WU398TUbip4r9 BmKeV4ndzpFal0Z8996Eiew90XSZ4xwb+nfxGEBw= From: "muecker at gwdg dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108375] [10/11/12/13 Regression] Some variably modified types not detected as such Date: Tue, 14 Feb 2023 08:34:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: muecker at gwdg dot de 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: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108375 --- Comment #6 from Martin Uecker --- Created attachment 54458 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54458&action=3Dedit preliminary patch against trunk Here is a preliminary patch. It takes a bit from type_common to cache negat= ive results for records / unions (i.e. not a vm-type). Performance might be ok, although I think an approach where the FE sets the bit for records which are known to be variaby modified and all others are not might be preferable.=