This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 0/6] Add -Wunused-but-set-parameter and -Wunused-but-set-variable
- From: Pedro Alves <palves at redhat dot com>
- To: Yao Qi <qiyaoltc at gmail dot com>, Tom Tromey <tom at tromey dot com>
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>
- Date: Thu, 21 Jul 2016 11:38:13 +0100
- Subject: Re: [RFA 0/6] Add -Wunused-but-set-parameter and -Wunused-but-set-variable
- Authentication-results: sourceware.org; auth=none
- References: <1465248812-23902-1-git-send-email-tom@tromey.com> <CAH=s-POD0ONLxHsoMFooOibZ58TB_UjW85GXioaM5_koQ2FBCA@mail.gmail.com>
On 06/28/2016 04:02 PM, Yao Qi wrote:
> On Mon, Jun 6, 2016 at 10:33 PM, Tom Tromey <tom@tromey.com> wrote:
>> I built and regression tested this using --enable-targets=all on
>> x86-64 Fedora 23. However, I could not update the various nat-*
>> files, so there are probably unfixed warnings lurking there.
>
> Can you use cross compiler to cross build native gdb to catch these warnings?
> otherwise, once this patch series go in, gdb build on host other than linux may
> be broken.
The worse that can happen is a warning becomes a build error
due to -Werror. Since people can always use --disable-werror
to work around it, and that is enabled by default in releases, I
don't think a temporary -Werror build break on master is a major
problem.
What would you say would be a sufficient set of hosts to test before
enabling a warning?
Testing all supported hosts and all architectures would be unfeasible,
naturally.
I'd think it'd be acceptable to just build on a couple of the
more common hosts, in the name of forward progress.
Cross testing for mingw should be easy (Fedora has a cross mingw toolchain
in the main repo). Then there's the GCC compile farm; that could be used
to cover AIX and some BSD.
Any commonly-used host we miss, the buildbot should detect a problem promptly.
Hosts that don't have build slaves set up naturally have to rely on someone
interested in them building gdb regularly. If there's no one doing
that and the build goes broken for long before someone notices, that
just indicates that not many people actually care about the port, and so
shouldn't we.
Thanks,
Pedro Alves