This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: memory_address_p
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- To: Ranjit Singh <ranjit_singh_007 at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 25 Sep 2002 19:45:40 +1000
- Subject: Re: memory_address_p
- References: <20020925083430.98371.qmail@web13002.mail.yahoo.com>
On 25-Sep-2002, Ranjit Singh <ranjit_singh_007@yahoo.com> wrote:
> int
> memory_address_p (mode, addr)
> enum machine_mode mode ATTRIBUTE_UNUSED;
> rtx addr;
> {
> if (GET_CODE (addr) == ADDRESSOF)
> return 1;
>
> GO_IF_LEGITIMATE_ADDRESS (mode, addr, win);
...
> 1. The argument "mode" is stated to be
> ATTRIBUTE_UNUSED,
> but isn't it used via
> GO_IF_LEGITIMATE_ADDRESS ?
GO_IF_LEGITIMATE_ADDRESS is a macro which is defined differently for
different targets. Probably there is (or once was) some target
for which the macro expands to something which does not reference "mode".
It's OK for something to be marked with ATTRIBUTE_UNUSED even if it
is actually used.
--
Fergus Henderson <fjh@cs.mu.oz.au> | "I have always known that the pursuit
The University of Melbourne | of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh> | -- the last words of T. S. Garp.