From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE5543858C00; Sun, 22 Jan 2023 14:30:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE5543858C00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674397847; bh=M9ZXA0GcLhatFBPw80/xPzJsIXQ0PERE/1rV/WY7RHE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qsBySQNIcbWOGSaw+MW+z7x22eZIL240KLFprrsfdAEUSIoh2z6k2LAIxdaoefi4W OknBat6TIxN52pSJwbmjyJR90+SjkdU1Mls3aEhqAxi8OYuh3AohVZEk1sw6QiKFdV eAPINkeW0h3AGulI6rZlcpnWIy0gOhqcf42wrpEg= From: "muecker at gwdg dot de" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108423] [12/13 Regression] ICE in make_ssa_name_fn with VLA types in arguments and inlining since r12-5338-g4e6bf0b9dd5585df Date: Sun, 22 Jan 2023 14:30:44 +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: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: muecker at gwdg dot de X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D108423 --- Comment #7 from Martin Uecker --- * gimplify_type_size does not recurse into pointer, record, or function typ= es (the later are not mentioned).=20 * the C FE has code to emit fake TYPE_DECLs for pointer types in c-decl.cc/grokdeclarator=20 * In the FE, size expressions in parameters go into pending_sizes and emitt= ed at a start of a function c-decl.cc/store_parm_decls * function.cc/gimplify_parm_type only considers types with non-constant size and otherwise recurses only into pointer types How all this fits together is a bit of mystery to me.=20 Modifying gimplify_parm_type to also recurse into function types seems to f= ix this bug (and PR107557) but I am not sure if this is the right fix. Then th= ere should also be similar missing cases related to records/unions?=