This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/83390] New: valgrind error in lra_eliminate_regs_1


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83390

            Bug ID: 83390
           Summary: valgrind error in lra_eliminate_regs_1
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]