[RFT/RFA] Fix AIX fallout from PR/19653 patch
Alan Modra
amodra@bigpond.net.au
Wed Apr 5 02:20:00 GMT 2006
On Tue, Apr 04, 2006 at 06:21:06PM +0200, Paolo Bonzini wrote:
> This looks like a latent bug to me, but I have not yet investigate why,
> after the PR/19653 patch, we are requesting legitimization of a (const
> (plus (symbol_ref LC..0) (const_int 4))). I think it is Dale's regclass
> changes, but I'm not sure.
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)" ?
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Gcc-patches
mailing list