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 tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55054

             Bug #: 55054
           Summary: -Wuninitialized warning in tree-ssa-loop-ivcanon.c
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: mpolacek@gcc.gnu.org


Building gcc on x86_64 with gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2) says:

/home/marek/src/gcc/gcc/tree-ssa-loop-ivcanon.c: In function âbool
canonicalize_loop_induction_variables(loop*, bool, unroll_level, bool, bool*,
bitmap)â:
/home/marek/src/gcc/gcc/tree-ssa-loop-ivcanon.c:518:46: warning: ân_unrollâ may
be used uninitialized in this function [-Wuninitialized]
/home/marek/src/gcc/gcc/tree-ssa-loop-ivcanon.c:404:26: note: ân_unrollâ was
declared here

Just setting n_unroll to 0 is enough.


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