This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Gcc Plugin: error: âFIRST_PSEUDO_REGIST ERâ undeclared
- From: Ian Lance Taylor <iant at google dot com>
- To: Aravinda <aravindakidambi at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 05 May 2009 07:47:38 -0700
- Subject: Re: Gcc Plugin: error: âFIRST_PSEUDO_REGIST ERâ undeclared
- References: <26eb53620905041408gb911858ybf19a85a15c133a0@mail.gmail.com>
Aravinda <aravindakidambi@gmail.com> writes:
> Im compiling a simple gcc plugin and am getting the below error.
I think that for the time being it is OK to ask questions about
compiling plugins on the gcc@gcc.gnu.org mailing list. More of the
plugin developers read gcc@. Of course it's always OK to ask questions
on gcc-help@ as well. (Don't send a message to both mailing lists,
though.)
> 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)
You have to #include "tm.h". A lot of gcc header files assume that that
has already bee done.
Ian