From patchwork Fri May 10 15:42:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 32634 Received: (qmail 28593 invoked by alias); 10 May 2019 15:42:34 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 28585 invoked by uid 89); 10 May 2019 15:42:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy=HContent-Transfer-Encoding:8bit X-HELO: rock.gnat.com Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 10 May 2019 15:42:33 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id 6D7651179BB; Fri, 10 May 2019 11:42:31 -0400 (EDT) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 4vPRN3GZh3Bu; Fri, 10 May 2019 11:42:31 -0400 (EDT) Received: from murgatroyd.Home (97-122-168-123.hlrn.qwest.net [97.122.168.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by rock.gnat.com (Postfix) with ESMTPSA id 191521179BA; Fri, 10 May 2019 11:42:31 -0400 (EDT) From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [PATCH] Add new GCC 9 warnings to warnings.m4 Date: Fri, 10 May 2019 09:42:28 -0600 Message-Id: <20190510154228.22889-1-tromey@adacore.com> MIME-Version: 1.0 GCC 9 has a few new warnings that aren't enabled in the gdb build by default: -Wdeprecated-copy, -Winit-list-lifetime, and -Wredundant-move. This patch enables them all. Tested by rebuilding with a new GCC (git master) on x86-64 Fedora 29. gdb/ChangeLog 2019-05-10 Tom Tromey * configure: Rebuild. * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy, -Winit-list-lifetime, -Wredundant-move. gdb/gdbserver/ChangeLog 2019-05-10 Tom Tromey * configure: Rebuild. --- gdb/ChangeLog | 6 ++++++ gdb/configure | 5 ++++- gdb/gdbserver/ChangeLog | 4 ++++ gdb/gdbserver/configure | 5 ++++- gdb/warning.m4 | 5 ++++- 5 files changed, 22 insertions(+), 3 deletions(-) diff --git a/gdb/configure b/gdb/configure index 15a96afcca8..7f8143e1c99 100755 --- a/gdb/configure +++ b/gdb/configure @@ -15436,7 +15436,10 @@ build_warnings="-Wall -Wpointer-arith \ -Wsuggest-override \ -Wimplicit-fallthrough=3 \ -Wduplicated-cond \ --Wshadow=local" +-Wshadow=local \ +-Wdeprecated-copy \ +-Winit-list-lifetime \ +-Wredundant-move" case "${host}" in *-*-mingw32*) diff --git a/gdb/gdbserver/configure b/gdb/gdbserver/configure index 1ddbd6b27e0..8b6d33e8154 100755 --- a/gdb/gdbserver/configure +++ b/gdb/gdbserver/configure @@ -7271,7 +7271,10 @@ build_warnings="-Wall -Wpointer-arith \ -Wsuggest-override \ -Wimplicit-fallthrough=3 \ -Wduplicated-cond \ --Wshadow=local" +-Wshadow=local \ +-Wdeprecated-copy \ +-Winit-list-lifetime \ +-Wredundant-move" case "${host}" in *-*-mingw32*) diff --git a/gdb/warning.m4 b/gdb/warning.m4 index 98eb4ce7878..e79e3e34b61 100644 --- a/gdb/warning.m4 +++ b/gdb/warning.m4 @@ -46,7 +46,10 @@ build_warnings="-Wall -Wpointer-arith \ -Wsuggest-override \ -Wimplicit-fallthrough=3 \ -Wduplicated-cond \ --Wshadow=local" +-Wshadow=local \ +-Wdeprecated-copy \ +-Winit-list-lifetime \ +-Wredundant-move" case "${host}" in *-*-mingw32*)