This is the mail archive of the gcc@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]

ARM and __attribute__ long_call error


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


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