This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c
- From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 24 Oct 2012 13:25:28 +0000
- Subject: [Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c
- Auto-submitted: auto-generated
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.