This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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]

[PATCH 0/1] Build GDB as a C++ program by default


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


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