Re: C (not C++) compiler plugins

2020-04-24 Thread David Malcolm via Gcc
On Fri, 2020-04-24 at 13:03 -0600, Maurice Smulders via Gcc wrote: > Hello, > > Hugo Landau figured out why it didn't load: > Yes. > > > The reference to cp_global_trees appears to be caused by the below > code, > which only relates to C++. For

Re: C (not C++) compiler plugins

2020-04-24 Thread Maurice Smulders via Gcc
Hello, Hugo Landau figured out why it didn't load: Yes. The reference to cp_global_trees appears to be caused by the below code, which only relates to C++. For C, try commenting it out like this: OUTF ("- !compex/method\n", i); OUT

C (not C++) compiler plugins

2020-04-24 Thread Maurice Smulders via Gcc
Hello, Is it possible to make plugins for the C compiler (not the C++) compiler? I was trying the (old) sample code at https://github.com/hlandau/compex to make a plugin, but the plugin only works with C++. when trying to use the C compiler it complains about gcc -fplugin=/usr/local/lib/compex_g