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: "j at uriah dot heep dot sax dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2008 15:56:26 -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 #3 from j at uriah dot heep dot sax dot de 2008-01-10 15:56 -------
Some bugs appear to re-appear. :-(
While I get
__attribute__((naked))
int main(void)
{
// ...
return 42;
}
to compile with the current compiler, the following piece of code:
__attribute__((signal, naked))
void __vector_42(void)
{
static unsigned char x;
x++;
}
still triggers the ICE:
% avr-gcc -mmcu=attiny2313 -S foo.c
foo.c:3: internal compiler error: in start_function, at c-decl.c:6177
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34299