From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 95D0E3858002; Tue, 30 Mar 2021 12:59:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 95D0E3858002 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/99826] GIMPLE FE fails to grok pointer declarators Date: Tue, 30 Mar 2021 12:59:52 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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: --- 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: Tue, 30 Mar 2021 12:59:52 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99826 --- Comment #1 from Richard Biener --- __GIMPLE(ssa) char * foo(char *p) {..} works for the first issue. I failed to make the "late" __GIMPLE spec work = in a straight-forward manner. I guess we might want to change the default dum= ping to prefer the above order. The 2nd issue remains and can be seen as char * foo (char * p) { char * _2; : _2_2 =3D p_1(D); return _2_2; } fixing it in a generic way will likely require exposing more of grokdeclara= tor and eventually generating the SSA name there directly. Limited support is possible of course and the workaround is to declare a decl: char * q; __BB(2): q_2 =3D p_1(D); return q_2; which will work at the expense of creating a decl.=