From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6AB0F3858C36; Wed, 15 Feb 2023 23:04:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6AB0F3858C36 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676502290; bh=HCZbAP4VgCFBgaKEo0fL6rK9qNcomjsY5fI/xmYtnaE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uOq2CBlgxWf6Cqw5KN0J0cnkWscYQ+uju2ncfqGTX+/Sl6tmRL1sJLDo7Y1ChXJr9 UMmnMlqOwWtPbjRf9csqbp4vg7Udv+ekmdOTuGgyL+yi5US5q4fOBAH05T37ApRC94 M50JVcA1tIZN5O1cbca6TXDmBQGzFoWX77HPwPR4= 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: Wed, 15 Feb 2023 23:04:49 +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.isobsolete 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 Martin Uecker changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #54458|0 |1 is obsolete| | --- Comment #7 from Martin Uecker --- Created attachment 54473 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54473&action=3Dedit patch against trunk This patch should be better. It is a FE only change. It stores uses a LANG_= FLAG for each type to store whether it is a VM type which is set during construction. This should be very efficient. The existing (previously usele= ss) lang hook then also communicates this information to the middle end. The variably_modified_p function in tree.cc now does unnecessary work for C, ma= ybe this could be avoided.=