From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 37148385842D; Wed, 6 Oct 2021 07:40:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 37148385842D From: "aldyh at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug other/102605] address instruction from -fdump-tree-*-gimple doesn't work with -fgimple Date: Wed, 06 Oct 2021 07:40:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: other X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at redhat dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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: Wed, 06 Oct 2021 07:40:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102605 --- Comment #5 from Aldy Hernandez --- > > BTW, the __MEM_REF output from the dumps does not work in -fgimple eith= er. > > More errors. > > Can you share an example? This is from gcc.c-torture/execute/961125-1.c compiled with -fgimple: char * begfield (int tab, char * ptr, char * lim, int sword, int schar); int __GIMPLE (ssa) main () { char * lim; char * s; char * _1; __BB(2): _1 =3D begfield (58, ":ab", &__MEM ((void *)":ab" + _Literal (void *) 3), 1, 1); if (_1 !=3D &__MEM ((void *)":ab" + _Literal (void *) 2)) goto __BB3; else goto __BB4; __BB(3): abort (); __BB(4): exit (0); } $ ./cc1 x.c -quiet -fgimple x.c: In function =E2=80=98main=E2=80=99: x.c:11:55: error: invalid type of =E2=80=98__MEM=E2=80=99 operand 11 | _1 =3D begfield (58, ":ab", &__MEM ((void *)":ab" + _Literal (void *) 3), 1, 1); | ^ x.c:11:60: error: expected =E2=80=98)=E2=80=99 before =E2=80=98+=E2=80=99 t= oken 11 | _1 =3D begfield (58, ":ab", &__MEM ((void *)":ab" + _Literal (void *) 3), 1, 1); | ^~ | ) x.c:12:13: error: expected expression before =E2=80=98&=E2=80=99 token 12 | if (_1 !=3D &__MEM ((void *)":ab" + _Literal (void *) 2= )) | ^ x.c: At top level: x.c:12:67: error: expected identifier or =E2=80=98(=E2=80=99 before =E2=80= =98)=E2=80=99 token 12 | if (_1 !=3D &__MEM ((void *)":ab" + _Literal (void *) 2= )) | ^ x.c:14:3: error: expected identifier or =E2=80=98(=E2=80=99 before =E2=80= =98else=E2=80=99 14 | else | ^~~~ x.c:17:8: error: expected declaration specifiers or =E2=80=98...=E2=80=99 b= efore numeric constant 17 | __BB(3): | ^ x.c:20:8: error: expected declaration specifiers or =E2=80=98...=E2=80=99 b= efore numeric constant 20 | __BB(4): | ^ x.c:23:1: error: expected identifier or =E2=80=98(=E2=80=99 before =E2=80= =98}=E2=80=99 token 23 | } | ^ Thanks for improving all this.=