This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: status of GCC & C++


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]