From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B86D3858D39; Sun, 4 Jun 2023 21:24:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B86D3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685913868; bh=iP7HdN/M3WEG7Ao7zv5R8X9GFPR8lcbxHrKY6Eplwvc=; h=From:To:Subject:Date:From; b=iZD5C863t8hOh3DKj/h4aPm43snT8dCFW2W8zcw5KW8tgkFPRr/KK/nwByor4SCdD wPNhVSnxeViW0pWpSPDBVlwpM1zk+bvfjzQq2SplNE0Qc2djOLNqNl8neZ5IBiZ+Q3 8BV2K7PEoMYndkEI3QE2YsEjx4yXeRpgLdLbv0w0= From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110116] New: ICE on valid code at -O3 on x86_64-linux-gnu: verify_gimple failed Date: Sun, 04 Jun 2023 21:24:27 +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=3D110116 Bug ID: 110116 Summary: ICE on valid code at -O3 on x86_64-linux-gnu: verify_gimple 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/MTsfTocn7 [635] % 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 --disable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 14.0.0 20230604 (experimental) [master r14-924-gd709841ae0f] (G= CC) [636] % [636] % gcctk -O3 small.c small.c: In function =E2=80=98main=E2=80=99: small.c:6:21: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations] 6 | for (b =3D 1; b; b++) | ~^~ small.c:6:17: note: within this loop 6 | for (b =3D 1; b; b++) | ^ small.c:4:5: error: type mismatch in binary expression 4 | int main() { | ^~~~ vector(4) char vector(4) char vector(4) unsigned char _73 =3D vect__48.34_68 & vect__6.22_19; during GIMPLE pass: reassoc small.c:4:5: internal compiler error: verify_gimple failed 0x100327e verify_gimple_in_cfg(function*, bool, bool) ../../gcc-trunk/gcc/tree-cfg.cc:5652 0xe98674 execute_function_todo ../../gcc-trunk/gcc/passes.cc:2098 0xe98bcb execute_todo ../../gcc-trunk/gcc/passes.cc:2152 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. [637] % [637] % cat small.c unsigned char a[5]; int b, d; char c; int main() { if (d) { for (b =3D 1; b; b++) c &=3D d =3D 1; for (; d < 5; d++) c &=3D a[d]; } return 0; }=