------- 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

Reply via email to