]> Savannah Git Hosting - gnulib.git/commitdiff
manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
authorJim Meyering <meyering@fb.com>
Sun, 24 Jun 2018 18:31:50 +0000 (11:31 -0700)
committerJim Meyering <meyering@fb.com>
Sun, 24 Jun 2018 23:10:54 +0000 (16:10 -0700)
* 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
build-aux/gcc-warning.spec
m4/manywarnings.m4

index 9db47aa0a4ef513b4e06cdec8ef51146380f9565..232f732ed8548cbcaee91f480000f0710703eeed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2018-06-24  Jim Meyering  <meyering@fb.com>
+
+       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  <bruno@clisp.org>
 
        af_alg tests: Add another test.
index 2ffdb2ba4539785a5e34568bf30e8ea95eab8a17..e2625ea9d79fef5c5a5993ecc38a059a90a20416 100644 (file)
@@ -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++
index 60c0e4051cb2c01375fc1cac431ba2b5e984213e..350c1355d8d545634f587f45255a69be3d729903 100644 (file)
@@ -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 \