[Bug bootstrap/46050] gcc/c-parser.c fails to build with -O2 -finline-functions

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Sun Oct 17 18:01:00 GMT 2010


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

Uros Bizjak <ubizjak at gmail dot com> changed:

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

--- Comment #4 from Uros Bizjak <ubizjak at gmail dot com> 2010-10-17 18:00:58 UTC ---
(In reply to comment #2)
> 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
> snapshot 20101009 attached.
> 
> If you have been genereting against SVN trunk, that it is possible that it is
> already fixed there (as comment in your patch indicates also).

Yeah, my patch was against latest SVN trunk. But anyway, an assignment in both
arms on an if can surely be CSE'd out of the "if" entirely.

So, fixed in latest SVN.



More information about the Gcc-bugs mailing list