[RFT/RFA] Fix AIX fallout from PR/19653 patch

Alan Modra amodra@bigpond.net.au
Wed Apr 5 14:48:00 GMT 2006


On Wed, Apr 05, 2006 at 09:12:06AM +0200, Paolo Bonzini wrote:
> 
> >This part of the pr19653 reload.c patch looks wrong to me.
> >@@ -1885,7 +1894,11 @@
> > 
> >   /* Narrow down the reg class, the same way push_reload will;
> >      otherwise we might find a dummy now, but push_reload won't.  */
> >-  class = PREFERRED_RELOAD_CLASS (in, class);
> >+  {
> >+    enum reg_class preferred_class = PREFERRED_RELOAD_CLASS (in, class);
> >+    if (class != NO_REGS)
> >+      class = preferred_class;
> >+  }
> >
> >"if (preferred_class != NO_REGS)" ?
> I agree and will bootstrap/regtest the obvious fix on 
> i686-pc-linux-gnu.  However, fixing this does not bring AIX in better shape.

Committed after bootstrap and regression test on powerpc-linux and
x86_64-linux.  Roger Sayle also agreed on irc that the fix was
more-or-less obvious.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Gcc-patches mailing list