http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57386
--- Comment #12 from Michael Meissner <meissner at linux dot vnet.ibm.com> --- On Thu, Dec 12, 2013 at 12:22:13AM +0000, meissner at linux dot vnet.ibm.com wrote: > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57386 > > --- Comment #9 from Michael Meissner <meissner at linux dot vnet.ibm.com> --- > On Wed, Dec 11, 2013 at 04:37:20PM +0000, dje at gcc dot gnu.org wrote: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57386 > > > > --- Comment #8 from David Edelsohn <dje at gcc dot gnu.org> --- > > Mike, can you apply the patch to the 4.8 branch? > > > > Thanks, David > > Note, the patch no longer applies to the trunk due to adding a PTImode case. > I'll test both gcc 4.8/trunk with the patch for both. > > Sorry for breaking this, and went unresponsive. I tested this patch lifted from the bugzilla, and it does fix the problem for GCC 4.8. I'm also including the appropriate patch for GCC 4.9 (different due to the surrounding code being different). While there are other problems with SPE in GCC 4.9, I feel this patch is safe to apply. I have bootstraped the patch on a power7 running linux powerpc64 and there were no regressions between the unpatched gcc 4.8 and the build with the patch attached. I have verified that the bug is fixed when I build a SPE compiler with the patch attached for the GCC 4.8 patch. I have also bootstraped the GCC 4.9 patch on a power7 running linux powerpc64. As I write this message, I haven't done the make check regression test, but I will do that shortly. Are these patches ok to apply? I can apply just the 4.8 patch or both the 4.8 and 4.9 patches. 2013-12-12 Roland Stigge <sti...@antcom.de> Michael Meissner <meiss...@linux.vnet.ibm.com> * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p): Only check TFmode for SPE constants. Don't check TImode or TDmode.