This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
__attribute__((regparm(3)))
- From: horse <june dot tune dot sea at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sun, 3 Mar 2013 10:30:39 +0800
- Subject: __attribute__((regparm(3)))
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