PR target/46278
commitf9efb148202308a4cd1b704ca2e159033eb32ed9
authorgjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2011 15:42:33 +0000 (14 15:42 +0000)
committergjl <gjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 Oct 2011 15:42:33 +0000 (14 15:42 +0000)
tree91b3c432bb96e3b99e5406a18369fc6373642fb4
parentf71d4102215f33df3719816788f1668220359092
PR target/46278
* doc/invoke.texi (AVR Options): Document -mstrict-X.
* config/avr/avr.opt (-mstrict-X): New option.
(avr_strict_X): New variable reflecting -mstrict-X.
* config/avr/avr.c (avr_reg_ok_for_addr_p): Add parameter
outer_code and pass it down to avr_regno_mode_code_ok_for_base_p.
(avr_legitimate_address_p): Pass outer_code to
avr_reg_ok_for_addr_p and use that function in case PLUS.
(avr_mode_code_base_reg_class): Depend on avr_strict_X.
(avr_regno_mode_code_ok_for_base_p): Ditto, and depend on outer_code.
(avr_option_override): Disable -fcaller-saves if -mstrict-X is on.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179993 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.opt
gcc/doc/invoke.texi