https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92832
Bug ID: 92832
Summary: valgrind error in incorporate_penalties
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: bootstrap
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
I just tried a valgrind build of gcc revision 279000 and got this:
==2020328== Conditional jump or move depends on uninitialised value(s)
==2020328== at 0x1488041: incorporate_penalties (ipa-cp.c:3174)
==2020328== by 0x1488041: good_cloning_opportunity_p(cgraph_node*, int, int,
profile_count, int) (ipa-cp.c:3230)
==2020328== by 0x14929CA: bool decide_about_value<tree_node*>(cgraph_node*,
int, long, ipcp_value<tree_node*>*, vec<tree_node*, va_heap, vl_ptr>,
vec<ipa_polymorphic_call_context, va_heap, vl_ptr>) (ipa-cp.c:5327)
==2020328== by 0x1494494: decide_whether_version_node (ipa-cp.c:5397)
svn blame says
278893 fxue if (info->node_within_scc && !info->node_is_self_scc)
Configure script is
../trunk/configure --prefix=/home/dcb/gcc/results.279000.valgrind \
--disable-bootstrap \
--disable-multilib \
--disable-werror \
--enable-checking=valgrind \
--enable-languages=c,c++,fortran
sed 's/-O2/-O3/' < Makefile > Makefile.tmp
mv Makefile.tmp Makefile