[Bug target/34299] [avr] ICE on function attribute syntax for main()
eric dot weddington at atmel dot com
gcc-bugzilla@gcc.gnu.org
Thu Jan 10 18:26:00 GMT 2008
------- Comment #4 from eric dot weddington at atmel dot com 2008-01-10 17:56 -------
(In reply to comment #3)
> __attribute__((signal, naked))
> void __vector_42(void)
> {
> static unsigned char x;
>
> x++;
> }
>
> still triggers the ICE:
However, if there is a function prototype, and the attributes are placed on the
prototype, there is no bug:
__attribute__((signal, naked))
void __vector_42(void);
void __vector_42(void)
{
static unsigned char x;
x++;
}
Is it really a bug?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34299
More information about the Gcc-bugs
mailing list