public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Gcc Plugin: error: ‘FIRST_PSEUDO_REGISTER’ undeclared
@ 2009-05-04 21:09 Aravinda
  2009-05-05 14:47 ` Ian Lance Taylor
  0 siblings, 1 reply; 3+ messages in thread
From: Aravinda @ 2009-05-04 21:09 UTC (permalink / raw)
  To: gcc-help

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gcc Plugin: error: ‘FIRST_PSEUDO_REGISTER’ undeclared
  2009-05-04 21:09 Gcc Plugin: error: ‘FIRST_PSEUDO_REGISTER’ undeclared Aravinda
@ 2009-05-05 14:47 ` Ian Lance Taylor
  2009-05-06 21:09   ` Aravinda
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Lance Taylor @ 2009-05-05 14:47 UTC (permalink / raw)
  To: Aravinda; +Cc: gcc-help

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Gcc Plugin: error: ‘FIRST_PSEUDO_REGISTER’ undeclared
  2009-05-05 14:47 ` Ian Lance Taylor
@ 2009-05-06 21:09   ` Aravinda
  0 siblings, 0 replies; 3+ messages in thread
From: Aravinda @ 2009-05-06 21:09 UTC (permalink / raw)
  To: Ian Lance Taylor; +Cc: gcc-help

Thanks a lot. That worked.

On Tue, May 5, 2009 at 10:47 AM, Ian Lance Taylor <iant@google.com> wrote:
> 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
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-05-06 21:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-04 21:09 Gcc Plugin: error: ‘FIRST_PSEUDO_REGISTER’ undeclared Aravinda
2009-05-05 14:47 ` Ian Lance Taylor
2009-05-06 21:09   ` Aravinda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).