This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/34299] [avr] ICE on function attribute syntax for main()
- From: "eric dot weddington at atmel dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2008 17:56:46 -0000
- Subject: [Bug target/34299] [avr] ICE on function attribute syntax for main()
- References: <bug-34299-15429@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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