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/65629] New: valgrind error in move_spill_restore


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

            Bug ID: 65629
           Summary: valgrind error in move_spill_restore
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com

Created attachment 35183
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35183&action=edit
C source code

The attached code, when compiled by gcc trunk dated 20150329
under valgrind, and flag -O2, does this

==20644== Conditional jump or move depends on uninitialised value(s)
==20644==    at 0xA08BDC: move_spill_restore (ira-color.c:3396)
==20644==    by 0xA08BDC: color (ira-color.c:4736)
==20644==    by 0xA08BDC: ira_color() (ira-color.c:4848)
==20644==    by 0x9E92BF: ira (ira.c:5267)

ira-color.c:3396 is

       || (hard_regno = ALLOCNO_HARD_REGNO (a)) < 0


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