This is the mail archive of the gcc@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: memory_address_p


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.


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