From 63e719c9c3be133432d02ddb1274dbf57e6a8857 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 24 Jun 2018 11:31:50 -0700 Subject: [PATCH] manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi * build-aux/gcc-warning.spec: Add them here, each with an explanation. * m4/manywarnings.m4: Remove them. Otherwise, building coreutils, I would see this: cc1: error: deprecated command line option '-Wchkp' [-Werror] cc1: error: -Wabi won't warn about anything [-Werror=abi] cc1: note: -Wabi warns about differences from the most up-to-date ABI,\ which is also used by default cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7 --- ChangeLog | 12 ++++++++++++ build-aux/gcc-warning.spec | 2 ++ m4/manywarnings.m4 | 2 -- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9db47aa0a4..232f732ed8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2018-06-24 Jim Meyering + + manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi + * build-aux/gcc-warning.spec: Add them here, each with an explanation. + * m4/manywarnings.m4: Remove them. + Otherwise, building coreutils, I would see this: + cc1: error: deprecated command line option '-Wchkp' [-Werror] + cc1: error: -Wabi won't warn about anything [-Werror=abi] + cc1: note: -Wabi warns about differences from the most up-to-date ABI,\ + which is also used by default + cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7 + 2018-06-24 Bruno Haible af_alg tests: Add another test. diff --git a/build-aux/gcc-warning.spec b/build-aux/gcc-warning.spec index 2ffdb2ba45..e2625ea9d7 100644 --- a/build-aux/gcc-warning.spec +++ b/build-aux/gcc-warning.spec @@ -3,6 +3,7 @@ --extra-warnings alias for -Wextra -Wabi-tag c++ -Wabi= c++ +-Wabi this is now a no-op -Waggregate-return obsolescent -Waliasing fortran -Walign-commons fortran @@ -30,6 +31,7 @@ -Wcatch-value c++ -Wcatch-value=<0,3> c++ -Wcharacter-truncation fortran +-Wchkp deprecated -Wclass-memaccess c++ -Wcompare-reals fortran -Wconditionally-supported c++ and objc++ diff --git a/m4/manywarnings.m4 b/m4/manywarnings.m4 index 60c0e4051c..350c1355d8 100644 --- a/m4/manywarnings.m4 +++ b/m4/manywarnings.m4 @@ -113,7 +113,6 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)], gl_manywarn_set= for gl_manywarn_item in -fno-common \ -W \ - -Wabi \ -Waddress \ -Waggressive-loop-optimizations \ -Wall \ @@ -128,7 +127,6 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)], -Wcast-align=strict \ -Wcast-function-type \ -Wchar-subscripts \ - -Wchkp \ -Wclobbered \ -Wcomment \ -Wcomments \ -- 2.39.5