------- Comment #2 from pinskia at gcc dot gnu dot org  2007-04-03 06:19 -------
>it is being set before being used within a loop that will always execute at 
>least 16 times. 
And the compiler does not know it can be executed at least once as -Os
-fno-tree-dominator-opts turns off jump threading and header loop copy (though
I am thinking about a special loop header copy for -Os is needed for cases
where the loop header goes conditionally down to nothing).

The reason why the warning is gone in 4.3.0 is because it is able to figure out
in this case f will always be zero.

PR 17506 is the bug about the uninitialized warning being in the wrong place.

So I think I can close this as a dup of bug 17506

*** This bug has been marked as a duplicate of 17506 ***


-- 

pinskia at gcc dot gnu dot org changed:

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


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

Reply via email to