From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 979F43A4700B; Fri, 6 Nov 2020 05:52:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 979F43A4700B From: "zhendong.su at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi85NzczN10gTmV3OiBJQ0Ug?= =?UTF-8?B?YXQgLU9zIGFuZCBhYm92ZTogdHJlZSBjaGVjazogZXhwZWN0ZWQgY2xhc3Mg?= =?UTF-8?B?4oCYdHlwZeKAmSwgaGF2ZSDigJhleGNlcHRpb25hbOKAmSAoZXJyb3JfbWFy?= =?UTF-8?B?aykgaW4gdXNlbGVzc190eXBlX2NvbnZlcnNpb25fcCwgYXQgZ2ltcGxlLWV4?= =?UTF-8?B?cHIuYzo4OA==?= Date: Fri, 06 Nov 2020 05:52:19 +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: 11.0 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 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: Fri, 06 Nov 2020 05:52:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97737 Bug ID: 97737 Summary: ICE at -Os and above: tree check: expected class =E2=80=98type=E2=80=99, have =E2=80=98exceptional=E2=80= =99 (error_mark) in useless_type_conversion_p, at gimple-expr.c:88 Product: gcc Version: 11.0 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: --- Related to the fixed PR 97725.=20 [521] % gcctk -v Using built-in specs. COLLECT_GCC=3Dgcctk COLLECT_LTO_WRAPPER=3D/local/suz-local/software/local/gcc-trunk/libexec/gcc= /x86_64-pc-linux-gnu/11.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --prefix=3D/local/suz-local/software/local/gcc-trunk --enable-languages=3Dc= ,c++ --disable-werror --enable-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 11.0.0 20201106 (experimental) [master revision 6483f05989e:058c571d79e:32ee472864ada44ef05b2a3b087b8ce413bee282] (GCC)=20 [522] %=20 [522] % gcctk -O1 -c small.c [523] %=20 [523] % gcctk -Os -c small.c during GIMPLE pass: evrp small.c: In function =E2=80=98d=E2=80=99: small.c:13:1: internal compiler error: tree check: expected class =E2=80=98= type=E2=80=99, have =E2=80=98exceptional=E2=80=99 (error_mark) in useless_type_conversion_p, at= gimple-expr.c:88 13 | } | ^ 0x5fdd79 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) ../../gcc-trunk/gcc/tree.c:9802 0x9bbf87 tree_class_check(tree_node*, tree_code_class, char const*, int, ch= ar const*) ../../gcc-trunk/gcc/tree.h:3436 0x9bbf87 useless_type_conversion_p(tree_node*, tree_node*) ../../gcc-trunk/gcc/gimple-expr.c:88 0xd3b622 verify_gimple_comparison ../../gcc-trunk/gcc/tree-cfg.c:3477 0xd52240 verify_gimple_in_cfg(function*, bool) ../../gcc-trunk/gcc/tree-cfg.c:5397 0xc019ae execute_function_todo ../../gcc-trunk/gcc/passes.c:2039 0xc02892 execute_todo ../../gcc-trunk/gcc/passes.c:2093 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. [524] %=20 [524] % cat small.c int a =3D 1, b, c; void d() { int e =3D 1; L1: b =3D e; L2: e =3D e / a; if (!(e || c || e - 1)) goto L1; if (!b) goto L2; }=