From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 882443849ACC; Wed, 10 Apr 2024 19:15:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 882443849ACC DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712776528; bh=+HsjphWCcUFJFV3TgDqXSSevuztkChjitXiW3zmn/nY=; h=From:To:Subject:Date:From; b=aYk6eEInmc87LeSW3bNCZwYwmJiNhR7rMh6rldgKiewZYKMRsucJLN4UMeyeBJYoV R1OgbRxT1LshwCXRKnlqEtJAb7cElmIKTjxwhFBV0D6yNctTebO8OQwqdPeBiygkGs i7ZMNlaEj+eFinywLqVad6Bug2WM1BswqhIuVlZA= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/114681] New: ICE: in as_a, at is-a.h:255 with -O -fnon-call-exceptions -fno-exceptions -fcondition-coverage Date: Wed, 10 Apr 2024 19:15:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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 keywords bug_severity priority component assigned_to reporter target_milestone cf_gcchost cf_gcctarget attachments.created 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=3D114681 Bug ID: 114681 Summary: ICE: in as_a, at is-a.h:255 with -O -fnon-call-exceptions -fno-exceptions -fcondition-coverage Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 57923 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D57923&action=3Dedit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -fnon-call-exceptions -fno-exceptions -fcondition-coverage testcase.c during IPA pass: inline testcase.c: In function 'foo': testcase.c:14:3: internal compiler error: in as_a, at is-a.h:255 14 | bar (); | ^~~~~~ 0x83b2a0 geh_filter const* as_a(gimple con= st*) /repo/gcc-trunk/gcc/is-a.h:255 0x83ee63 gcond* as_a(gimple*) /repo/gcc-trunk/gcc/hash-set.h:64 0x83ee63 copy_bb /repo/gcc-trunk/gcc/tree-inline.cc:2096 0x15a31aa copy_cfg_body /repo/gcc-trunk/gcc/tree-inline.cc:3087 0x15a31aa copy_body /repo/gcc-trunk/gcc/tree-inline.cc:3340 0x15a810e expand_call_inline /repo/gcc-trunk/gcc/tree-inline.cc:5143 0x15a9a49 gimple_expand_calls_inline /repo/gcc-trunk/gcc/tree-inline.cc:5343 0x15a9a49 optimize_inline_calls(tree_node*) /repo/gcc-trunk/gcc/tree-inline.cc:5515 0x12426bb inline_transform(cgraph_node*) /repo/gcc-trunk/gcc/ipa-inline-transform.cc:792 0x13d14f6 execute_one_ipa_transform_pass /repo/gcc-trunk/gcc/passes.cc:2334 0x13d14f6 execute_all_ipa_transforms(bool) /repo/gcc-trunk/gcc/passes.cc:2397 0xfcea7d cgraph_node::expand() /repo/gcc-trunk/gcc/cgraphunit.cc:1838 0xfcea7d cgraph_node::expand() /repo/gcc-trunk/gcc/cgraphunit.cc:1798 0xfcfdfa expand_all_functions /repo/gcc-trunk/gcc/cgraphunit.cc:2028 0xfcfdfa symbol_table::compile() /repo/gcc-trunk/gcc/cgraphunit.cc:2404 0xfd2977 symbol_table::compile() /repo/gcc-trunk/gcc/cgraphunit.cc:2315 0xfd2977 symbol_table::finalize_compilation_unit() /repo/gcc-trunk/gcc/cgraphunit.cc:2589 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=3D/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-g= cc COLLECT_LTO_WRAPPER=3D/repo/gcc-trunk/binary-trunk-r14-9885-20240410075703-= g109f1b28fc9-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc= /x86_64-pc-linux-gnu/14.0.1/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=3Dc,c++ --enable-valgrind-annotations --disable-nls --enable-checking=3Dyes,rtl,df,= extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=3Dx86_64-pc-linux-gnu --host=3Dx86_64-pc-linux-gnu --target=3Dx86_64-pc-linux-gnu --with-ld=3D/usr/bin/x86_64-pc-linux-gnu-ld --with-as=3D/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=3D/repo/gcc-trunk//binary-trunk-r14-9885-20240410075703-g109f1b28f= c9-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.1 20240410 (experimental) (GCC)=