This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/5] Remove a few hurdles of compiling with clang
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 17 Jun 2017 23:23:55 +0200
- Subject: Re: [PATCH 0/5] Remove a few hurdles of compiling with clang
- Authentication-results: sourceware.org; auth=none
- References: <1497124689-11842-1-git-send-email-simon.marchi@ericsson.com>
On 2017-06-10 21:58, Simon Marchi wrote:
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(-)
This is now pushed in.
Simon