This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/1] Build GDB as a C++ program by default
- From: Pedro Alves <palves at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 18 Apr 2016 18:27:45 +0100
- Subject: [PATCH 0/1] Build GDB as a C++ program by default
- Authentication-results: sourceware.org; auth=none
It's been a long ride, but GDB now builds cleanly as a C++ program on
most supported systems.
There are a few host-specific files that may be missing the occasional
cast, but for all I know, most of the codebase has been converted and
builds cleanly, with no undefined behavior and no hacks.
It's time to try building GDB with a C++ compiler by default, which is
what the the following trivial patch does.
Following the discussion on the gdb@ list, this flips the default on
all hosts, unconditionally.
Note that it's still possible to revert back to building with a C
compiler, by configuring with --enable-build-with-cxx=no. For the
moment, we have a Fedora buildslave specifically set up to catch
C-mode build failures on Fedora, so C-mode breakage should still be
noticed and fixed promptly.
The decision of when to drop C-mode support will be done at some other
moment, possibly only after the next release.
Pedro Alves (1):
Build GDB as a C++ program by default
gdb/build-with-cxx.m4 | 2 +-
gdb/configure | 2 +-
gdb/gdbserver/configure | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
--
2.5.5