http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50569
--- Comment #12 from Mikael Pettersson <mikpe at it dot uu.se> 2011-12-11 20:11:14 UTC --- Eric's proposed patch applied on top of gcc-4.7-20111210 fixes both test cases for me on sparc-linux and arm-linux-gnueabi.