https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121074
Bug ID: 121074 Summary: [16 Regression] ICE: in gcov_open, at gcov-io.cc:128 with -ftest-coverage -fauto-profile Product: gcc Version: 16.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: gcov-profile 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 Compiler output: $ echo '' | x86_64-pc-linux-gnu-gcc -ftest-coverage -fauto-profile -xc - during IPA pass: afdo_offline <stdin>:1: internal compiler error: in gcov_open, at gcov-io.cc:128 0x2daf0bf internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:517 0xe6298d fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostic.cc:1818 0x7aa611 gcov_open(char const*, int) /repo/gcc-trunk/gcc/gcov-io.cc:128 0x276a994 read_profile /repo/gcc-trunk/gcc/auto-profile.cc:2710 0x2771485 read_autofdo_file() /repo/gcc-trunk/gcc/auto-profile.cc:4032 0x2771485 execute /repo/gcc-trunk/gcc/auto-profile.cc:4218 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. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-20250714174657-r16-2241-gd8680bac95c680-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-20250714174657-r16-2241-gd8680bac95c680-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250714 (experimental) (GCC)