This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix subreg in memory addresses regression


On Thu, Jan 22, 2004 at 09:38:27PM +0100, Jan Hubicka wrote:
>     operands[1] = gen_lowpart (Pmode, operands[1]);
>     operands[2] = gen_lowpart (Pmode, operands[2]);
>     operands[3] = gen_lowpart (Pmode, operands[3]);
> +   if (GET_CODE (operands[1]) == SUBREG)
> +     alter_subreg (&operands[1]);
> +   if (GET_CODE (operands[2]) == SUBREG)
> +     alter_subreg (&operands[2]);
> +   if (GET_CODE (operands[3]) == SUBREG)
> +     alter_subreg (&operands[3]);

Either gen_lowpart should do this, or some other common 
function should; repeating this 100 times is silly.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]