https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95494
Bug ID: 95494 Summary: [11 regression] Several -fprofile-use tests FAIL Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: ro at gcc dot gnu.org CC: marxin at gcc dot gnu.org Target Milestone: --- Target: sparc-sun-solaris2.11 Between 20200601 (e41b988cc5af34e9c1a3d37b717fbfcc52d7ff90) and 20200602 (d3b6767dce45a7100e4cc32d2986a55f09a2cce2), several -fprofile-use tests started to FAIL on 32-bit Solaris/SPARC only: +FAIL: g++.dg/tree-prof/pr35545.C compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: g++.dg/tree-prof/pr35545.C execution, -fprofile-use -D_PROFILE_USE /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C: In member function 'virtual int B::foo()': /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C:16:15: warning: profile for function 'virtual int B::foo()' not found in profile data [-Wmissing-profile] /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C: In member function 'virtual int A::foo()': /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/tree-prof/pr35545.C:6:15: warning: profile for function 'virtual int A::foo()' not found in profile data [-Wmissing-profile] +FAIL: gcc.dg/tree-prof/indir-call-prof-2.c compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: gcc.dg/tree-prof/indir-call-prof-2.c execution, -fprofile-use -D_PROFILE_USE /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c: In function 'sub1': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c:10:1: warning: profile for function 'sub1' not found in profile data [-Wmissing-profile] /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c: In function 'add1': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-2.c:4:1: warning: profile for function 'add1' not found in profile data [-Wmissing-profile] +FAIL: gcc.dg/tree-prof/indir-call-prof-topn.c compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: gcc.dg/tree-prof/indir-call-prof-topn.c execution, -fprofile-use -D_PROFILE_USE /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-topn.c: In function 'two': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-topn.c:14:1: warning: profile for function 'two' not found in profile data [-Wmissing-profile] /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-topn.c: In function 'one': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof-topn.c:8:1: warning: profile for function 'one' not found in profile data [-Wmissing-profile] +FAIL: gcc.dg/tree-prof/indir-call-prof.c compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: gcc.dg/tree-prof/indir-call-prof.c execution, -fprofile-use -D_PROFILE_USE /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c: In function 'setp': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c:17:6: warning: profile for function 'setp' not found in profile data [-Wmissing-profile] /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c: In function 'a2': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c:8:12: warning: profile for function 'a2' not found in profile data [-Wmissing-profile] /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c: In function 'a1': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/indir-call-prof.c:3:12: warning: profile for function 'a1' not found in profile data [-Wmissing-profile] +FAIL: gcc.dg/tree-prof/pr59003.c compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: gcc.dg/tree-prof/pr59003.c execution, -fprofile-use -D_PROFILE_USE /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/pr59003.c: In function 'foo': /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/pr59003.c:9:10: error: corrupted value profile: stringops profile counter (28246016 out of 100001) inconsistent with basic-block count (100001) +FAIL: gcc.dg/tree-prof/val-prof-2.c scan-ipa-dump profile "Transformation done: div/mod by constant 256" +FAIL: gcc.dg/tree-prof/val-prof-6.c compilation, -fprofile-use -D_PROFILE_USE +UNRESOLVED: gcc.dg/tree-prof/val-prof-6.c execution, -fprofile-use -D_PROFILE_USE /vol/gcc/src/hg/master/local/gcc/testsuite/gcc.dg/tree-prof/val-prof-6.c:8:3: error: corrupted value profile: stringops profile counter (28246016 out of 1000) inconsistent with basic-block count (1000) All of 64-bit Solaris/SPARC, 32 and 64-bit Solaris/x86 are still ok. It seems highly probably that this was caused by changeset: 233568:8312a62869f6 user: Martin Liska <mli...@suse.cz> date: Fri Jan 31 13:10:14 2020 +0100 files: gcc/coverage.c gcc/doc/gcov-dump.texi gcc/gcov-dump.c gcc/gcov-io.h gcc/ipa-profile.c gcc/profile.c gcc/value-prof.c libgcc/libgcov-driver.c libgcc/libgcov-merge.c libgcc/libgcov-profiler.c libgcc/libgcov.h description: Make TOPN counter dynamically allocated. the only pertinent patch in that revision range.