avr.h (AVR_HAVE_8BIT_SP): New macros.
commit164709cfe671e51fcf6c687847549f01a51366c4
authorAnatoly Sokolov <aesok@post.ru>
Sun, 16 Aug 2009 16:22:59 +0000 (16 20:22 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Sun, 16 Aug 2009 16:22:59 +0000 (16 20:22 +0400)
tree0cdb00299fb3e8a4e891564994fd9d7be7ad49c0
parent354ebf88ee1806c4d9b279c765d2d344303ffc66
avr.h (AVR_HAVE_8BIT_SP): New macros.

* config/avr/avr.h (AVR_HAVE_8BIT_SP): New macros.
* config/avr/avr.c (avr_override_options): Initialize
avr_current_arch variable.
(avr_cpu_cpp_builtins): Define __AVR_HAVE_8BIT_SP__ or
__AVR_HAVE_16BIT_SP__ according to the device type.
(expand_prologue, output_movhi): Use AVR_HAVE_8BIT_SP instead of
TARGET_TINY_STACK.
(expand_epilogue): Use correct QI mode frame pointer for tiny stack.
Use AVR_HAVE_8BIT_SP instead of TARGET_TINY_STACK.

From-SVN: r150801
gcc/ChangeLog
gcc/config/avr/avr.c
gcc/config/avr/avr.h