Help with gimple_build_call

2010-03-22 Thread ashish jain
Hi, I am writing a pass in which I need to insert a call to a library function. Specifically I need to call the function "pthread_mutex_lock" from the library "pthread". I am working on GIMPLE, specifically after the "build_cfg" pass. Looking around the documentation, what I found is I will have

Re: Gcc plugin: error: ‘LAST_AND_UNUSED_RTX_CODE’ undeclared

2010-02-27 Thread ashish jain
der files somehow made all the errors disappear. Thanks, Ashish Jain The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

Gcc plugin: error: ‘LAST_AND_UNUSED_RTX_CODE’ undeclared

2010-02-26 Thread ashish jain
Hi, I am trying to write a simple gcc plugin and am getting the following errors. In file included from /home/aj/gcc/trunk/gcc/rtl.h:49, from /home/aj/gcc/testcode/plugin/ctla_gcc_plugin.c:22: