This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: ARM and __attribute__ long_call error
void __attribute__ ((long_call)) pig(void)
{
}
Ok thanks, with such change to the definition the file compiles.
I didn't know one can attribute definitions too, and info gcc says:
"
The keyword `__attribute__' allows you to specify special attributes
when making a declaration.
"
So I supposed that for any function that has an attribute you need an explicit function
declaration stating that, and then the definition as usual.
Jani