On 11 August 2014 11:45, <daniel@xxxxxxxxxxxxxxxxxxxxxxx> wrote: > I do not know GCC internals so I cannot estimate effort for such > modification. I thought that this will not be so hard, but looks that is is > not so easy. "Make the C compiler have an option to act like the C++ compiler" is basically an entire new language that is halfway between C and C++. That's a huge amount of work and testing, which you're asking other people to do because it is too difficult for you to fix your code. > BTW, I realized that there may be an easier way to do such validation in GCC > - write information about each function prototype (found where function is > implemented) and each function call to object files (e.g. as debug data or > in other format), and use it to perform validation in linker. What do you > think about this? That sounds more realistic (and would be useful to people using C, not your suggested C-with-mangling) but I it's still many weeks of work by many people, so you don't have to spend a month fixing your code. Even if it happened, it wouldn't be available in released versions of GCC and the linker for months, so it is not going to help you find "some temporary solution to use now".