This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++ Warnings on trunk
- From: Ben Elliston <bje at au1 dot ibm dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: NightStrike <nightstrike at gmail dot com>, "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>, Kai Tietz <ktietz70 at googlemail dot com>, Kai Tietz <Kai dot Tietz at onevision dot com>, "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>
- Date: Thu, 10 Jul 2008 09:50:40 +1000
- Subject: Re: C++ Warnings on trunk
- References: <b609cb3b0807080932w38b4fc7ft99fcf02b6a734aa5@mail.gmail.com> <m3myksxqv1.fsf@google.com>
> In this case, I argue that this code is always compiled with a C
> compiler, and should never be compiled by a C++ compiler. Therefore,
> I believe it is wrong for this code to be compiled with the
> -Wc++-compat warning enabled. This should be fixed somewhere in the
> configure script and/or Makefile.
I agree. Aren't there some potential nasty problems here with the
shared libgcc being compiled with a C++ compiler and the ABI changing
one day? (The C ABI, could, too, but it's much less likely.)
Ben