This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/34299] [avr] ICE on function attribute syntax for main()



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]