From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 349AF3858C2D; Sun, 6 Aug 2023 23:20:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 349AF3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691364021; bh=0j1XY+AuCt0eUAIC05wpIYv9hMTBwdemnwuVS3pFY00=; h=From:To:Subject:Date:From; b=vKjyGssWoudk05SS0s+f4+7nrkYPQsWmHQ3EgG7E3eVxubf3usJ/1IpUpqOT5R3S6 7AwKKml7OYk/fiyFaMNKvyhDQbSt9yNs4V87Wjp8cj/Wx4IBW1TH+uvzV5y81KYnkY yZwz2kd+BICqTjU/wkG1ldV87+mPCsfIZSjlCqBY= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110924] New: ICE on valid code at -O{s,2,3} on x86_64-linux-gnu: verify_ssa failed Date: Sun, 06 Aug 2023 23:20:20 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zhendong.su at inf dot ethz.ch 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D110924 Bug ID: 110924 Summary: ICE on valid code at -O{s,2,3} on x86_64-linux-gnu: verify_ssa failed Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- It appears to be a recent regression. Compiler Explorer: https://godbolt.org/z/z9oPe5bnx [608] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/home/suz/suz-local/software/local/gcc-trunk/bi= n/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --enable-checking=3Dyes --prefix=3D/local/suz-local/software/local/gcc-trunk --enable-sanitizers --enable-languages=3Dc,c++ --disable-werror --enable-mu= ltilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20230805 (experimental) (GCC) [609] % [609] % gcctk -O2 small.c small.c: In function =E2=80=98main=E2=80=99: small.c:8:5: error: stmt with wrong VUSE 8 | int main() { | ^~~~ # VUSE <.MEM_11> e.3_2 =3D e; expected .MEM_12 during GIMPLE pass: sink small.c:8:5: internal compiler error: verify_ssa failed 0x124c54d verify_ssa(bool, bool) ../../gcc-trunk/gcc/tree-ssa.cc:1203 0xed05e5 execute_function_todo ../../gcc-trunk/gcc/passes.cc:2095 0xed0a3b execute_todo ../../gcc-trunk/gcc/passes.cc:2142 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. [610] % [610] % cat small.c int a[1], b, c, d, e, f, g; void h(int i, int j) { int *k =3D 0; if (*k) h(0, 0); g =3D i && d; } int main() { if (c) goto l; if (!a) while (1) { f =3D 1; while (f) h(b && main(), e); while (1) ; l:; } return 0; }=