This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 34995: EXTRA_MEMORY_CONSTRAINTs and constant addresses
- From: Ian Lance Taylor <iant at google dot com>
- To: Richard Sandiford <rsandifo at nildram dot co dot uk>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 30 Jan 2008 07:48:21 -0800
- Subject: Re: PR 34995: EXTRA_MEMORY_CONSTRAINTs and constant addresses
- References: <874pcva6mm.fsf@firetop.home>
Richard Sandiford <rsandifo@nildram.co.uk> writes:
> gcc/
> PR rtl-optimization/34995
> * reload.c (alternative_allows_const_pool_ref): Take an rtx
> parameter and return a bool. If the rtx parameter is nonnull,
> check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
> (find_reloads): Update call accordingly. Pass the new operand
> if it needed no address reloads, otherwise pass null.
> + if (c == 'm'
> + || c == 'o'
> + || (EXTRA_MEMORY_CONSTRAINT (c, constraint)
> + && (mem == NULL || EXTRA_CONSTRAINT_STR (mem, c, constraint))))
> + return true;
> + return false;
You need to protect the use of EXTRA_CONSTRAINT_STR with #ifdef
EXTRA_CONSTRAINT_STR.
This is OK with that change.
Thanks.
Ian