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

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);