http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46050
Uros Bizjak changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46050
--- Comment #3 from Witold Baryluk 2010-10-17
12:18:15 UTC ---
Created attachment 22069
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22069
Move initializations patch of incr and cond (against gcc-4.6-20101009)
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46050
--- Comment #2 from Witold Baryluk 2010-10-17
12:16:25 UTC ---
Not exactly your patch. In true-branch of if, there is no assigment to incr (so
error is correct).
But moving else assigments, before if, resolves problem. Modified patch agains
snap
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46050
--- Comment #1 from Uros Bizjak 2010-10-16 16:23:14
UTC ---
Created attachment 22063
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22063
move some initializations
Does attached patch fix the failure for you?