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: PR 34995: EXTRA_MEMORY_CONSTRAINTs and constant addresses


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


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