This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 0/5] Remove a few hurdles of compiling with clang
- From: Simon Marchi <simon dot marchi at ericsson dot com>
- To: <gdb-patches at sourceware dot org>
- Cc: Simon Marchi <simon dot marchi at ericsson dot com>
- Date: Sat, 10 Jun 2017 21:58:04 +0200
- Subject: [PATCH 0/5] Remove a few hurdles of compiling with clang
- Authentication-results: sourceware.org; auth=none
- Authentication-results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=ericsson.com;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
It is currently possible to build with clang by jumping through a few hoops and
compiling without -Werror, but it is not pretty. There is a _ton_ of warnings.
clang often gives some good and relevant warnings (e.g. [1]), so it would be
useful to get the number to a reasonnable level to be able to see those that
are actually relevant. I started to work on the lowest hanging fruits and the
changes that should not be too controversial.
[1] https://sourceware.org/ml/gdb-patches/2017-06/msg00252.html
Simon Marchi (5):
gdb: Pass -x c++ to the compiler
gdb: Use -Werror when checking for (un)supported warning flags
gdb: Add -Wno-mismatched-tags
linux-low: Remove usage of "register" keyword
Add ATTRIBUTE_PRINTF to trace_start_error
gdb/Makefile.in | 2 +-
gdb/configure | 7 ++++---
gdb/gdbserver/Makefile.in | 2 +-
gdb/gdbserver/configure | 13 +++++++------
gdb/gdbserver/linux-low.c | 16 ++++++++--------
gdb/nat/fork-inferior.h | 2 +-
gdb/warning.m4 | 7 ++++---
7 files changed, 26 insertions(+), 23 deletions(-)
--
2.7.4