Re: gcc plugin problem

2012-07-10 Thread Ludovic Courtès
Hi, mahdi hamzeh skribis: > Thanks. The problem was naming indeed. I managed to recompile gcc with > c compiler only and the problem is gone. The long-term solution for you would be to build your plug-in with g++. See the thread at . Thanks, Lud

Re: gcc plugin problem

2012-07-09 Thread mahdi hamzeh
Thanks. The problem was naming indeed. I managed to recompile gcc with c compiler only and the problem is gone. On Mon, Jul 9, 2012 at 9:35 AM, Ludovic Courtès wrote: > Hi, > > mahdi hamzeh skribis: > >> I compiled and built gcc 4.7.0 myself. I am not sure if I build gcc on >> my machine, it wou

Re: gcc plugin problem

2012-07-09 Thread Ludovic Courtès
Hi, mahdi hamzeh skribis: > I compiled and built gcc 4.7.0 myself. I am not sure if I build gcc on > my machine, it would be compiled as c++. How would I check that? You could run: nm /path/to/libexec/gcc/x86_64-unknown-linux-gnu/4.7.1/cc1 | \ grep loop_optimizer_init and check whether

Re: gcc plugin problem

2012-07-07 Thread mahdi hamzeh
Jonathan, I compiled and built gcc 4.7.0 myself. I am not sure if I build gcc on my machine, it would be compiled as c++. How would I check that? Thanks On Sat, Jul 7, 2012 at 12:03 PM, Jonathan Wakely wrote: > > On 7 July 2012 19:59, mahdi hamzeh wrote: > > Hello, > > > > I am newbie in GCC

Re: gcc plugin problem

2012-07-07 Thread Jonathan Wakely
On 7 July 2012 19:59, mahdi hamzeh wrote: > Hello, > > I am newbie in GCC plugin. I am developing a gcc plugin but I am > struggled with a problem I could not figure out how to deal with. The > problem is following: > > I use a function in the plugin which is defined and specified in a > ".c" file

gcc plugin problem

2012-07-07 Thread mahdi hamzeh
Hello, I am newbie in GCC plugin. I am developing a gcc plugin but I am struggled with a problem I could not figure out how to deal with. The problem is following: I use a function in the plugin which is defined and specified in a ".c" file. The function is "void loop_optimizer_init (unsigned fla