https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125316
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zsojka at seznam dot cz
--- Comment #2 from Zdenek Sojka <zsojka at seznam dot cz> ---
Created attachment 65860
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65860&action=edit
reduced testcase
$ x86_64-pc-linux-gnu-gcc -Os -fauto-profile testcase.c
testcase.c:7:1: error: cannot open profile file fbdata.afdo
7 | }
| ^
during GIMPLE pass: feedback_fnsplit
testcase.c: In function 'foo':
testcase.c:7:1: internal compiler error: tree check: expected ssa_name, have
var_decl in visit_bb, at ipa-split.cc:952
0x2f604af internal_error(char const*, ...)
/repo/gcc-trunk/gcc/diagnostic-global-context.cc:787
0x9777b2 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
/repo/gcc-trunk/gcc/tree.cc:9246
0x2d41c99 tree_check(tree_node*, char const*, int, char const*, tree_code)
/repo/gcc-trunk/gcc/tree.h:3837
0x2d41c99 visit_bb
/repo/gcc-trunk/gcc/ipa-split.cc:952
0x2d41c99 find_split_points
/repo/gcc-trunk/gcc/ipa-split.cc:1092
0x2d42927 execute_split_functions
/repo/gcc-trunk/gcc/ipa-split.cc:1958
0x2d42a68 execute_feedback_split_functions
/repo/gcc-trunk/gcc/ipa-split.cc:2026
0x2d42a68 execute
/repo/gcc-trunk/gcc/ipa-split.cc:2058
/mnt/main-repo/repo/gcc-trunk/binary-trunk-20261016083925-gfb0ef8d42a4-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/17.0.0/cc1
-quiet -iprefix
/mnt/main-repo/repo/gcc-trunk/binary-trunk-20261016083925-gfb0ef8d42a4-checking-yes-rtl-df-extra-amd64/bin/../lib/gcc/x86_64-pc-linux-gnu/17.0.0/
testcase.c -quiet -dumpdir a- -dumpbase testcase.c -dumpbase-ext .c
-mtune=generic -march=x86-64 -Os -fauto-profile -o /tmp/ccIePeJH.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.