Gcc Plugin: error: ‘FIRST_PSEUDO_REGISTER’ undeclared

Aravinda aravindakidambi@gmail.com
Mon May 4 21:09:00 GMT 2009


Hi,

Im compiling a simple gcc plugin and am getting the below error.
I cant figure out whats wrong, but looks like, my Makefile is not
right. Can you please tell me what is wrong ?

[aravinda@localhost backup]$ make
/usr/src/svninstall/bin/gcc -B/usr/src/svnbuild/gcc
-I/usr/src/svnbuild/gcc -I. -I/usr/src/gcc-svn/gcc
-I/usr/src/gcc-svn/include -I/usr/src/gcc-svn/libcpp/include -I
-DIN_GCC -fPIC -shared second.c -lm -o test.so
In file included from /usr/src/gcc-svn/gcc/basic-block.h:28,
                from second.c:10:
/usr/src/gcc-svn/gcc/hard-reg-set.h: In function ‘hard_reg_set_iter_set’:
/usr/src/gcc-svn/gcc/hard-reg-set.h:545: error:
‘FIRST_PSEUDO_REGISTER’ undeclared (first use in this function)
/usr/src/gcc-svn/gcc/hard-reg-set.h:545: error: (Each undeclared
identifier is reported only once
/usr/src/gcc-svn/gcc/hard-reg-set.h:545: error: for each function it
appears in.)
/usr/src/gcc-svn/gcc/hard-reg-set.h: At top level:
/usr/src/gcc-svn/gcc/hard-reg-set.h:583: error:
‘FIRST_PSEUDO_REGISTER’ undeclared here (not in a function)
/usr/src/gcc-svn/gcc/hard-reg-set.h:649: error: ‘N_REG_CLASSES’
undeclared here (not in a function)
In file included from /usr/src/gcc-svn/gcc/basic-block.h:31,
                from second.c:10:
/usr/src/gcc-svn/gcc/function.h:231: error: expected
specifier-qualifier-list before ‘CUMULATIVE_ARGS’
/usr/src/gcc-svn/gcc/function.h:683: error: expected ‘)’ before ‘*’ token
/usr/src/gcc-svn/gcc/function.h:685: error: expected ‘)’ before ‘*’ token
make: *** [all] Error 1

Thanks & Regards,
Aravinda



More information about the Gcc-help mailing list