https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124406
Bug ID: 124406
Summary: [16 Regression] LTO profiledbootstrap fails on
s390x-linux due to coverage mismatch
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: rguenth at gcc dot gnu.org
Target Milestone: ---
I see
[24961s]
/home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/./prev-gcc/xg++
-B/home/abuild/rpmbuild/
BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/./prev-gcc/
-B/usr/s390x-suse-linux/bin/ -nostdinc++ -B/home/abuild/rpm
build/BUILD/gcc16-16.0.1+git7922
-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/prev-s390x-suse-linux/libstdc++-v3/src/.libs
-B/home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/prev-s390x-suse-linux/libstdc++-v3/libsupc++/.libs
-I/home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/prev-s390x-suse-linux/libstdc++-v3/include/s390x-suse-linux
-I/home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/prev-s390x-suse-linux/libstdc++-v3/include
-I/home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/libstdc++-v3/libsupc++
-L/home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/prev-s390x-suse-linux/libstdc++-v3/src/.libs
-L/home/abuild/rpmbuild/BUILD/gcc16-16.0.1+git7922-build/gcc-16.0.1+git7922/obj-s390x-suse-linux/prev-s390x-suse-linux/libstdc++-v3/libsupc++/.libs
-fPIC -c -O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3
-fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g -fprofile-use
-fprofile-reproducible=parallel-runs -flto=jobserver -DIN_GCC
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall
-Wno-error=narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute
-Wconditionally-supported -Woverloaded-virtual -pedantic -Wno-long-long
-Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -fPIC -I. -I.
-I../../gcc -I../../gcc/. -I../../gcc/../include -I../../gcc/../libcpp/include
-I../../gcc/../libcody -I../../gcc/../libdecnumber
-I../../gcc/../libdecnumber/dpd -I../libdecnumber -I../../gcc/../libbacktrace
-o ipa-icf.o -MT ipa-icf.o -MMD -MP -MF ./.deps/ipa-icf.TPo
../../gcc/ipa-icf.cc
[24961s] ../../gcc/ipa-icf.cc: In member function
‘ipa_icf::sem_item_optimizer::process_cong_reduction()’:
[24961s] ../../gcc/ipa-icf.cc:3207:1: error: the control flow of function
‘ipa_icf::sem_item_optimizer::process_cong_reduction()’ does not match its
profile data (counter ‘arcs’) [-Werror=coverage-mismatch]
[24961s] 3207 | sem_item_optimizer::process_cong_reduction (void)
[24961s] | ^~~~~~~~~~~~~~~~~~
[24961s] ../../gcc/ipa-icf.cc:3207:1: error: the control flow of function
‘ipa_icf::sem_item_optimizer::process_cong_reduction()’ does not match its
profile data (counter ‘time_profiler’) [-Werror=coverage-mismatch]
[24961s] ../../gcc/ipa-icf.cc: At top level:
[24961s] ../../gcc/ipa-icf.cc:3728:1: warning: Missing counts for called
function ipa_icf::sem_item_optimizer::process_cong_reduction()/5177
[24961s] 3728 | }
[24961s] | ^
[24961s] cc1plus: some warnings being treated as errors
[24961s] make[3]: *** [Makefile:1218: ipa-icf.o] Error 1
when configuring as
[ 43s] + ../configure 'CFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g'
'CXXFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g' 'XCFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g'
'TCFLAGS= -O2 -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g' 'GDCFLAGS= -O2 -funwind-tables
-fasynchronous-unwind-tables -fstack-clash-protection -g' --prefix=/usr
--infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib64
--libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,obj-c++,ada,go,d,jit,m2,algol68
--enable-host-shared --enable-checking=yes --disable-werror
--with-gxx-include-dir=/usr/include/c++/16
--with-libstdcxx-zoneinfo=/usr/share/zoneinfo --enable-ssp --disable-libssp
--disable-libvtv --enable-cet=auto --disable-libcc1 --enable-plugin
--with-bugurl=https://bugs.opensuse.org/ '--with-pkgversion=SUSE Linux'
--with-slibdir=/lib64 --with-system-zlib --enable-libstdcxx-allocator=new
--disable-libstdcxx-pch --enable-libphobos
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-linker-build-id --enable-linux-futex --enable-gnu-indirect-function
--disable-multilib --program-suffix=-16 --without-system-libunwind
--with-tune=zEC12 --with-arch=z196 --with-long-double-128
--enable-decimal-float --with-build-config=bootstrap-lto-lean
--enable-link-serialization --build=s390x-suse-linux --host=s390x-suse-linux
and building with
[ 46s] + setarch s390x -R make -Oline profiledbootstrap 'STAGE1_CFLAGS=-g
-O2' 'BOOT_CFLAGS=-O2 -Wall -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=3 -f
stack-protector-strong -funwind-tables -fasynchronous-unwind-tables
-fstack-clash-protection -Werror=return-type -g' -j4