ARM and __attribute__ long_call error

Jani Monoses jani@iv.ro
Tue Jun 7 15:27:00 GMT 2005


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



More information about the Gcc mailing list