Re: [PATCH 0/5] Remove a few hurdles of compiling with clang

Simon Marchi
2017-06-17T21:23:56Z

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