From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F2C28388CC06; Tue, 11 May 2021 15:24:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F2C28388CC06 From: "cnsun at uwaterloo dot ca" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjLzEwMDUyNV0gTmV3OiBJQ0U6IHRyZWUgY2hlY2s6IGV4?= =?UTF-8?B?cGVjdGVkIGNsYXNzIOKAmHR5cGXigJksIGhhdmUg4oCYZXhjZXB0aW9uYWw=?= =?UTF-8?B?4oCZIChlcnJvcl9tYXJrKSBpbiB1c2VsZXNzX3R5cGVfY29udmVyc2lvbl9w?= =?UTF-8?B?LCBhdCBnaW1wbGUtZXhwci5jOjg3?= Date: Tue, 11 May 2021 15:24:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: tree-ssa X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cnsun at uwaterloo dot ca 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: Tue, 11 May 2021 15:24:17 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100525 Bug ID: 100525 Summary: ICE: 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:87 Product: gcc Version: tree-ssa Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: cnsun at uwaterloo dot ca Target Milestone: --- $ gcc-trunk -v Using built-in specs. COLLECT_GCC=3Dgcc-trunk COLLECT_LTO_WRAPPER=3D/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-lin= ux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /tmp/tmp.FUbEknNORK-gcc-builder/gcc/configure --enable-languages=3Dc,c++,lto --enable-checking-yes --enable-multiarch --prefix=3D/scratch/software/gcc-trunk --disable-bootstrap Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210511 (experimental) [master revision :7db32cac8:aa891c56f25baac94db004e309d1b6e40b770a95] (GCC) $ cat mutant.c __GIMPLE foo() { __builtin_abs(a); } $ gcc-trunk -O0 mutant.c mutant.c:1:1: error: =E2=80=98__GIMPLE=E2=80=99 only valid with =E2=80=98-f= gimple=E2=80=99 1 | __GIMPLE | ^~~~~~~~ mutant.c:2:1: warning: return type defaults to =E2=80=98int=E2=80=99 [-Wimp= licit-int] 2 | foo() { __builtin_abs(a); } | ^~~ mutant.c: In function =E2=80=98foo=E2=80=99: mutant.c:2:23: error: =E2=80=98a=E2=80=99 undeclared (first use in this fun= ction) 2 | foo() { __builtin_abs(a); } | ^ mutant.c:2:23: note: each undeclared identifier is reported only once for e= ach function it appears in during GIMPLE pass: lower mutant.c:2: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:87 2 | foo() { __builtin_abs(a); } | ^~~ 0x7bce07 tree_class_check_failed(tree_node const*, tree_code_class, char const*, int, char const*) /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/tree.c:8724 0x6cb6de tree_class_check(tree_node*, tree_code_class, char const*, int, ch= ar const*) /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/tree.h:3479 0x6cb6de useless_type_conversion_p(tree_node*, tree_node*) /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/gimple-expr.c:87 0xbe57da gimple_builtin_call_types_compatible_p(gimple const*, tree_node*) /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/gimple.c:2723 0x19177b5 lower_stmt /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/gimple-low.c:387 0x19177b5 lower_sequence /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/gimple-low.c:217 0x191766d lower_gimple_bind /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/gimple-low.c:473 0x191852d lower_function_body /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/gimple-low.c:110 0x191852d execute /tmp/tmp.FUbEknNORK-gcc-builder/gcc/gcc/gimple-low.c:195 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=