status of GCC & C++

Marc Glisse marc.glisse@inria.fr
Sun Mar 25 20:29:00 GMT 2012


On Sun, 25 Mar 2012, Basile Starynkevitch wrote:

> On Sun, 25 Mar 2012 20:30:31 +0200
> Basile Starynkevitch <basile@starynkevitch.net> wrote:
>>
>> How can a plugin know that cc1 was compiled with C++ or just with
>> plain C?

nm thefile | grep _Z
(possibly nm -D)

You can also look for --disable-bootstrap or --disable-build-with-cxx in 
the configure options. Or you can just assume that it is built as C++, 
which is the default after all. People who have anything different should 
have asked for it and thus know what to expect.

-- 
Marc Glisse



More information about the Gcc mailing list