Re: __attribute__((regparm(3)))

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/3/3 horse <june.tune.sea@xxxxxxxxx>:
> hi:
>
>   If I add __attribute__((regparm(3))) infront of function declaration, like this :
>
>      int do_signal(int a,int b) __attribute__((regparm(3)));
>
>   then , at .c file , define this function like this :
>
>   int do_signal(int a,int b)
>     {
>             .......
>     }
>
>   when compiling ,it report this : error: conflicting types for ‘do_signal’;
>   if I erase "__attribute__((regparm(3)))",it can be through compilation.
>
>   But it is needed to add "__attribute__((regparm(3)))",how can I do ?
>
> thanks

Try this:


__attribute__((regparm(3))) int do_signal(int a, int b)
{
  ......
}



Best regards,
jasonwucj



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux