This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: GDB now builds as a C++ program by default
- From: Pedro Alves <palves at redhat dot com>
- To: Bob Rossi <bob at brasko dot net>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 24 May 2016 12:52:51 +0100
- Subject: Re: GDB now builds as a C++ program by default
- Authentication-results: sourceware.org; auth=none
- References: <571808F3 dot 8060505 at redhat dot com> <20160524114349 dot GA12826 at linux>
On 05/24/2016 12:43 PM, Bob Rossi wrote:
> On Wed, Apr 20, 2016 at 11:55:47PM +0100, Pedro Alves wrote:
>> I'm happy to report that GDB git master now defaults to building with
>> a C++ compiler.
>
> Do you have a time frame for when GDB will be required to use C++
> to compile?
>
I'd like to do that soon after the next release, around June/July,
making the next release the last one that supports building gdb
with a C compiler.
> Looking at https://sourceware.org/gdb/wiki/cxx-conversion, I see
> that you will require C++ 98 or 03. Will you enforce that when
> compiling?
If you mean with a "-std=" switch, I don't plan to.
> I ask because I work on CGDB, a GDB front end, and it's written in C so
> that it can be compiled anywhere that GDB can. I'd like to transition
> CGDB to C++ but only want to do so after GDB is and using the same C++
> standard features.
Thanks,
Pedro Alves