This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix subreg in memory addresses regression
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 22 Jan 2004 14:40:43 -0800
- Subject: Re: Fix subreg in memory addresses regression
- References: <20040122203827.GJ25810@kam.mff.cuni.cz>
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~