Jani Monoses
2005-06-07 15:08:07 UTC
Hello
trying to compile the following simple source file using arm-elf-gcc 4.0
void pig(void) __attribute__ ((long_call));
void pig(void)
{
}
yields:
error: conflicting types for 'pig'
error: previous declaration of 'pig' was here
The same with gcc3.3. With other function attributes (isr, section, naked etc.) it works fine.
Aren't attributes supposed to be part of the functin declaration only? What am I missing?
For now I am passing -mlong-call on the command line but with that I cannot get the
granularity I want as with __attribute__.
thanks
Jani
trying to compile the following simple source file using arm-elf-gcc 4.0
void pig(void) __attribute__ ((long_call));
void pig(void)
{
}
yields:
error: conflicting types for 'pig'
error: previous declaration of 'pig' was here
The same with gcc3.3. With other function attributes (isr, section, naked etc.) it works fine.
Aren't attributes supposed to be part of the functin declaration only? What am I missing?
For now I am passing -mlong-call on the command line but with that I cannot get the
granularity I want as with __attribute__.
thanks
Jani