This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Hookize (partially) GO_IF_LEGITIMATE_ADDRESS
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Eric Botcazou <ebotcazou at adacore dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 04 May 2009 09:22:08 +0200
- Subject: Re: [PATCH] Hookize (partially) GO_IF_LEGITIMATE_ADDRESS
- References: <20090423130523.GA26164@fencepost.gnu.org> <200905011058.15875.ebotcazou@adacore.com>
Eric Botcazou wrote:
>> * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
>> * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
>> * config/sparc/sparc.c (legitimate_address_p): Rename to...
>> (sparc_legitimate_address_p): ... this, make static.
>
> and return 'bool'. There is also a missing 'static' in the patch.
The prototype is at the top (first hunk) because it has to be above the
TARGET_INITIALIZER. Do you really want static also in the definition?
Paolo