gcc plugin problem

2012-07-07 Thread mahdi hamzeh
es wrong since at run-time, I receive "undefined symbol: loop_optimizer_init". I tried to compile my plugin with different optimization options (without O, -O2, -O3) but I still get this error. Can anybody please guide me or give me a reference to figure out how to solve this problem? I app

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, > > >

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

GCC internal API access in plugin

2012-07-13 Thread mahdi hamzeh
tioned function and structures are not defined in any plugin header file and I am new in plugin development. I tried hard to find a reference or discussion but it was not successful. Any help or reference is highly appreciated. -- Mahdi Hamzeh Graduate Research Associate School of Computing, Inf