Skip to content

Commit

Permalink
manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
meyering committed Jun 24, 2018
1 parent d27c90a commit 63e719c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 2 additions & 0 deletions build-aux/gcc-warning.spec
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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++
Expand Down
2 changes: 0 additions & 2 deletions m4/manywarnings.m4
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -128,7 +127,6 @@ m4_defun([gl_MANYWARN_ALL_GCC(C)],
-Wcast-align=strict \
-Wcast-function-type \
-Wchar-subscripts \
-Wchkp \
-Wclobbered \
-Wcomment \
-Wcomments \
Expand Down

0 comments on commit 63e719c

Please sign in to comment.