This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/83390] valgrind error in lra_eliminate_regs_1
- From: "vmakarov at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Feb 2018 21:37:04 +0000
- Subject: [Bug c/83390] valgrind error in lra_eliminate_regs_1
- Auto-submitted: auto-generated
- References: <bug-83390-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83390
--- Comment #8 from Vladimir Makarov <vmakarov at gcc dot gnu.org> ---
(In reply to David Binderman from comment #0)
> A build of today's gcc trunk with valgrind produces this:
>
> ==8995== Conditional jump or move depends on uninitialised value(s)
> ==8995== at 0xA39BBE: lra_eliminate_regs_1 (lra-eliminations.c:403)
> ==8995== by 0xA39BBE: eliminate_regs_in_insn(rtx_insn*, bool, bool, long)
> (lra-eliminations.c:1114)
> ==8995== by 0xA3A147: process_insn_for_elimination
> (lra-eliminations.c:1396)
> ==8995== by 0xA3A147: lra_eliminate(bool, bool) (lra-eliminations.c:1459)
>
> svn blame gives us
>
> 222223 vmakarov if (CONST_INT_P (XEXP (x, 1)) && INTVAL (XEXP (x,
> 1)) == -offset)
>
> I suspect local variable offset isn't correct.
>
> Configure lines are
>
> ../trunk/configure --prefix=/home/dcb/gcc/results.255572.valgrind \
> --disable-bootstrap \
> --disable-multilib \
> --disable-werror \
> --enable-checking=valgrind \
> --enable-languages=c,c++,fortran
>
> sed 's/-O2/-O3 -funroll-loops -Wtautological-compare/' < Makefile >
> Makefile.tmp
> mv Makefile.tmp Makefile
>
> svn info tells us current revision number is 255572.
Sorry, I tried to reproduce it according to these instructions (without and
with editing the Makefile) but I've failed.
Could you confirm that it is still the problem in your environment.