re PR target/34299 ([avr] ICE on function attribute syntax for main())
authorAnatoly Sokolov <aesok@post.ru>
Sun, 15 Mar 2009 13:09:44 +0000 (16:09 +0300)
committerAnatoly Sokolov <aesok@gcc.gnu.org>
Sun, 15 Mar 2009 13:09:44 +0000 (16:09 +0300)
commit2cb4817bd3b8818b7897beff61ada79370515fd5
tree365229bb370e295b089f83525fc4b9d1fd472c32
parent58366b08d75c36e76695b8dedda3aecb38e4dc51
re PR target/34299 ([avr] ICE on function attribute syntax for main())

PR target/34299
* config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
generate a warning if the function name does not begin with
"__vector" and the function has either the 'signal' or 'interrupt'
attribute, from here to ...
(avr_declare_function_name): ...here. New function.
* config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
* config/avr/avr-protos.h (avr_declare_function_name): Declare.

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