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]

Re: ARM and __attribute__ long_call error


On Wed, 2005-06-08 at 11:51, Jani Monoses wrote:
> >>Is there anything tricky that prevents an easy implementation?
> > 
> > Yes, internally the routine that's doing the comparison can't
> > distinguish declarations from definitions.  We need to diagnose
> 
> Is the routine arm_comp_type_attributes() in gcc/config/arm/arm.c by any chance?
> 
Yes.

> > conflicting declarations, and also where the *definition* is attributed
> > but the declaration was not.
> 
> How can you attribute the definition? This results in syntax error.
> 
> void pig(void) __attribute__ ((long_call)
> {
> }
> 

void __attribute__ ((long_call)) pig(void)
{
}

R.


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