This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,AVR]: Housekeeping avr_legitimate_address_p
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc-patches at gcc dot gnu dot org, Eric Weddington <eric dot weddington at atmel dot com>
- Date: Tue, 11 Oct 2011 19:51:12 +0400
- Subject: Re: [Patch,AVR]: Housekeeping avr_legitimate_address_p
- References: <4E9402DF.4080906@gjlay.de>
2011/10/11 Georg-Johann Lay <avr@gjlay.de>:
> This is bit of code cleanup and move macro code from avr.h to functions in avr.c.
>
> There's no change in functionality. Passed without regressions.
>
> Ok?
>
> Johann
>
> Â Â Â Â* config/avr/avr-protos.h (avr_mode_code_base_reg_class): New
> Â Â Â Âprototype.
> Â Â Â Â(avr_regno_mode_code_ok_for_base_p): New prototype.
> Â Â Â Â* config/avr/avr.h (BASE_REG_CLASS): Remove.
> Â Â Â Â(REGNO_OK_FOR_BASE_P): Remove.
> Â Â Â Â(REG_OK_FOR_BASE_NOSTRICT_P): Remove.
> Â Â Â Â(REG_OK_FOR_BASE_STRICT_P): Remove.
> Â Â Â Â(MODE_CODE_BASE_REG_CLASS): New define.
> Â Â Â Â(REGNO_MODE_CODE_OK_FOR_BASE_P): New define.
>
> Â Â Â Â* config/avr/avr.c (avr_mode_code_base_reg_class): New function.
> Â Â Â Â(avr_regno_mode_code_ok_for_base_p): New function.
> Â Â Â Â(avr_reg_ok_for_addr_p): New static function.
> Â Â Â Â(avr_legitimate_address_p): Use it. ÂBeautify.
>
Approved.
Denis.