public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c
@ 2012-10-24 13:25 mpolacek at gcc dot gnu.org
  2012-10-24 13:27 ` [Bug tree-optimization/55054] " mpolacek at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2012-10-24 13:25 UTC (permalink / raw)
  To: gcc-bugs


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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/55054] -Wuninitialized warning in tree-ssa-loop-ivcanon.c
  2012-10-24 13:25 [Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c mpolacek at gcc dot gnu.org
@ 2012-10-24 13:27 ` mpolacek at gcc dot gnu.org
  2012-10-24 14:14 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2012-10-24 13:27 UTC (permalink / raw)
  To: gcc-bugs


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot       |mpolacek at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> 2012-10-24 13:26:38 UTC ---
I have a patch that passed bootstrapping/testing.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/55054] -Wuninitialized warning in tree-ssa-loop-ivcanon.c
  2012-10-24 13:25 [Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c mpolacek at gcc dot gnu.org
  2012-10-24 13:27 ` [Bug tree-optimization/55054] " mpolacek at gcc dot gnu.org
@ 2012-10-24 14:14 ` rguenth at gcc dot gnu.org
  2012-10-24 14:52 ` mpolacek at gcc dot gnu.org
  2012-10-25  7:39 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-24 14:14 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> 2012-10-24 14:14:35 UTC ---
Building with the host compiler?  We generally don't fix warnings if they
are not really bugs for the host compiler ...


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/55054] -Wuninitialized warning in tree-ssa-loop-ivcanon.c
  2012-10-24 13:25 [Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c mpolacek at gcc dot gnu.org
  2012-10-24 13:27 ` [Bug tree-optimization/55054] " mpolacek at gcc dot gnu.org
  2012-10-24 14:14 ` rguenth at gcc dot gnu.org
@ 2012-10-24 14:52 ` mpolacek at gcc dot gnu.org
  2012-10-25  7:39 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2012-10-24 14:52 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> 2012-10-24 14:52:04 UTC ---
Ok, sorry.  Then we should probably close this one as INVALID...


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug tree-optimization/55054] -Wuninitialized warning in tree-ssa-loop-ivcanon.c
  2012-10-24 13:25 [Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c mpolacek at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2012-10-24 14:52 ` mpolacek at gcc dot gnu.org
@ 2012-10-25  7:39 ` mpolacek at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2012-10-25  7:39 UTC (permalink / raw)
  To: gcc-bugs


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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> 2012-10-25 07:39:19 UTC ---
Closing.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-10-25  7:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-24 13:25 [Bug tree-optimization/55054] New: -Wuninitialized warning in tree-ssa-loop-ivcanon.c mpolacek at gcc dot gnu.org
2012-10-24 13:27 ` [Bug tree-optimization/55054] " mpolacek at gcc dot gnu.org
2012-10-24 14:14 ` rguenth at gcc dot gnu.org
2012-10-24 14:52 ` mpolacek at gcc dot gnu.org
2012-10-25  7:39 ` mpolacek at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).