avr.h (machine_function): Add 'is_OS_main' field.
authorAnatoly Sokolov <aesok@post.ru>
Tue, 20 May 2008 21:23:08 +0000 (01:23 +0400)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Tue, 20 May 2008 21:23:08 +0000 (01:23 +0400)
commit9b678d960153d0d2b24ad300a93018ad6e813eda
treed455bc879e35c4b2d758d86cf249ce5132469a48
parentede2e423f8612d5a09c1d34cdf1c5f90763519ba
avr.h (machine_function): Add 'is_OS_main' field.

* config/avr/avr.h (machine_function): Add 'is_OS_main' field.
* config/avr/avr.c (avr_OS_main_function_p): Add new function.
(avr_attribute_table): Add 'OS_main' function attribute.
(avr_regs_to_save, expand_prologue, expand_epilogue): Handle
functions with 'OS_main' attribute.

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