This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
ARM and __attribute__ long_call error
- From: Jani Monoses <jani at iv dot ro>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 07 Jun 2005 18:08:07 +0300
- Subject: 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