This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [3.3/mainilne] Fix kernel misscopmiilation for hammer
On Tue, Feb 25, 2003 at 11:45:32PM +0100, Jan Hubicka wrote:
> Hmm, I guess problem is that we do not clone constant memory references.
> case MEM:
> /* A MEM is allowed to be shared if its address is constant.
>
> We used to allow sharing of MEMs which referenced
> virtual_stack_vars_rtx or virtual_incoming_args_rtx, but
> that can lose. instantiate_virtual_regs will not unshare
> the MEMs, and combine may change the structure of the address
> because it looks safe and profitable in one context, but
> in some other context it creates unrecognizable RTL. */
> if (CONSTANT_ADDRESS_P (XEXP (x, 0)))
> return x;
Ah hah. Let's nuke this fragment, and make mems not shared always.
r~