On Tue, Dec 11, 2012 at 2:04 PM, Ulrich Weigand Ulrich.Weigand@de.ibm.com wrote:
This does look exactly like: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54684
which was indeed a bug in optimize_unreachable, fixed by Richard Biener: http://gcc.gnu.org/ml/gcc-patches/2012-09/msg01634.html
Can you verify whether this patch fixes your problem?
Yes, it does indeed. Good spot!
We'll have to backport the fix to Linaro GCC as well.
Put that in my own patchset on top of all the Linaro patches and it seems to work smoothly now. Trying a full toolchain build with all those changes now...
Also, if you don't mind, could you open a Launchpad bug to track this issue? Thanks!
Done: https://bugs.launchpad.net/gcc-linaro/+bug/1088898
Thanks, Robert