From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 94BD93858D39; Tue, 28 Mar 2023 21:53:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94BD93858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680040409; bh=lCrSOV62hfFCxY9W46tL2H2xlmjs90aB0kcloADzrNA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u2lkwjgRcw/Xe6PPb3g53u1/ANi95dTScHqUX9SUjI3U2S8XgRbM9h+gqSq8iQn+1 0kOmpSoaXNMdc1f55ssQ1MkbJwU0tQmMD/n+JUjH3aPPhM8/xFeME1sSlKc0wD8izG cWQL+L2gFeKYu0oEfF2fdJUMBowyrPgIJD6WCUAQ= From: "muecker at gwdg dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/104970] [12 Regression] ICE in execute_todo, at passes.cc:2133 since r12-6480-gea19c8f33a3a8d2b Date: Tue, 28 Mar 2023 21:53:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: muecker at gwdg dot de X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: siddhesh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D104970 Martin Uecker changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |muecker at gwdg dot de --- Comment #13 from Martin Uecker --- This fix seem too radical. It now prevents this from working even when ther= e is an explicit attribute but there is also a VLA bound. Also I think it would= be nice if it worked without the explicit attribute at least in the simple cas= es where this should be now problem. __attribute__ ((noinline, access (read_only, 2, 1))) int foo(int n, int buf[n]) { buf[n] =3D 1; return __builtin_dynamic_object_size(buf, 0); } int main() { int n =3D 10; int buf[n]; return foo(n, buf); }=