From: Paul Eggert <eggert@cs.ucla.edu>
To: bug-gnulib@gnu.org
Cc: Paul Eggert <eggert@cs.ucla.edu>
Subject: [PATCH 2/6] manywarnings: document GCC 11 warnings
Date: Sat, 31 Jul 2021 12:01:19 -0700 [thread overview]
Message-ID: <20210731190124.279622-2-eggert@cs.ucla.edu> (raw)
In-Reply-To: <20210731190124.279622-1-eggert@cs.ucla.edu>
* build-aux/gcc-warning.spec: Add warnings introduced in GCC 11.
None of them require Gnulib code changes, so this is just
a documentation change.
---
ChangeLog | 5 +++++
build-aux/gcc-warning.spec | 22 ++++++++++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index dbf648571..5a1534844 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2021-07-30 Paul Eggert <eggert@cs.ucla.edu>
+ manywarnings: document GCC 11 warnings
+ * build-aux/gcc-warning.spec: Add warnings introduced in GCC 11.
+ None of them require Gnulib code changes, so this is just
+ a documentation change.
+
limits-h: add BOOL_MAX, BOOL_WIDTH
* doc/posix-headers/limits.texi (limits.h): Document them.
* lib/limits.in.h: Also define CHAR_WIDTH etc. if C2x.
diff --git a/build-aux/gcc-warning.spec b/build-aux/gcc-warning.spec
index 3f7e886c5..c0d49f2a6 100644
--- a/build-aux/gcc-warning.spec
+++ b/build-aux/gcc-warning.spec
@@ -24,18 +24,25 @@
-Wanalyzer-file-leak enabled by -fanalyzer
-Wanalyzer-free-of-non-heap enabled by -fanalyzer
-Wanalyzer-malloc-leak enabled by -fanalyzer
+-Wanalyzer-mismatching-deallocation enabled by -fanalyzer
-Wanalyzer-null-argument enabled by -fanalyzer
-Wanalyzer-null-dereference enabled by -fanalyzer
-Wanalyzer-possible-null-argument enabled by -fanalyzer
-Wanalyzer-possible-null-dereference enabled by -fanalyzer
+-Wanalyzer-shift-count-negative enabled by -fanalyzer
+-Wanalyzer-shift-count-overflow enabled by -fanalyzer
-Wanalyzer-stale-setjmp-buffer implied by -fanalyzer
-Wanalyzer-tainted-array-index FIXME maybe? too much noise
-Wanalyzer-too-complex enabled by -fanalyzer
-Wanalyzer-unsafe-call-within-signal-handler enabled by -fanalyzer
-Wanalyzer-use-after-free enabled by -fanalyzer
-Wanalyzer-use-of-pointer-in-stale-stack-frame enabled by -fanalyzer
+-Wanalyzer-write-to-const enabled by -fanalyzer
+-Wanalyzer-write-to-string-literal enabled by -fanalyzer
-Warray-bounds covered by -Warray-bounds=
-Warray-bounds=<0,2> handled specially by gl_MANYWARN_ALL_GCC
+-Warray-parameter enabled by -Wall
+-Warray-parameter=<0,2> enabled by -Wall
-Warray-temporaries fortran
-Wassign-intercept objc/objc++
-Wattribute-alias covered by -Wattribute-alias=2
@@ -81,6 +88,7 @@
-Wconversion-null c++ and objc++
-Wcoverage-mismatch default
-Wcpp default
+-Wctad-maybe-unsupported c++ and objc++
-Wctor-dtor-privacy c++
-Wdangling-else enabled by -Wparentheses
-Wdeclaration-after-statement needed only for pre-C99, so obsolete
@@ -90,6 +98,8 @@
-Wdeprecated-copy c++ and objc++
-Wdeprecated-copy-dtor c++ and objc++
-Wdeprecated-declarations default
+-Wdeprecated-enum-enum-conversion c++ and objc++
+-Wdeprecated-enum-float-conversion c++ and objc++
-Wdesignated-init default
-Wdiscarded-array-qualifiers default
-Wdiscarded-qualifiers default
@@ -102,6 +112,7 @@
-Wenum-conversion enabled by -Wextra
-Wendif-labels default
-Werror-implicit-function-declaration deprecated
+-Wexceptions c++ and objc++
-Wexpansion-to-defined enabled by -Wextra
-Wextra-semi c++
-Wfloat-conversion FIXME maybe? borderline. some will want this
@@ -144,6 +155,7 @@
-Winteger-division fortran
-Wintrinsic-shadow fortran
-Wintrinsics-std fortran
+-Winvalid-imported-macros c++ and objc++
-Winvalid-memory-model default
-Winvalid-offsetof c++ and objc++
-Wjump-misses-init only useful for code meant to be compiled by a C++ compiler
@@ -159,6 +171,8 @@
-Wmemset-elt-size enabled by -Wall
-Wmemset-transposed-args enabled by -Wall
-Wmisleading-indentation enabled by -Wall
+-Wmismatched-dealloc default
+-Wmismatched-new-delete default, c++ and objc++
-Wmismatched-tags c++ and objc++
-Wmissing-attributes enabled by -Wall
-Wmissing-braces enabled by -Wall
@@ -186,6 +200,8 @@
-Wnonnull-compare enabled by -Wall
-Wnormalized default
-Wnormalized=[none|id|nfc|nfkc] defaults to nfc
+-WNSObject-attribute objc and objc++
+-Wobjc-root-class objc and objc++
-Wodr default
-Wold-style-cast c++ and objc++
-Wold-style-declaration enabled by -Wextra
@@ -211,6 +227,7 @@
-Wproperty-assign-default objc++
-Wprotocol objc++
-Wpsabi default
+-Wrange-loop-construct c++ and objc++
-Wreal-q-constant fortran
-Wrealloc-lhs fortran
-Wrealloc-lhs-all fortran
@@ -241,6 +258,7 @@
-Wsign-promo c++ and objc++
-Wsized-deallocation c++ and objc++
-Wsizeof-array-argument default
+-Wsizeof-array-div enabled by -Wall
-Wsizeof-pointer-div enabled by -Wall
-Wsizeof-pointer-memaccess enabled by -Wall
-Wstack-usage=<byte-size> FIXME: choose something sane?
@@ -252,6 +270,7 @@
-Wstring-compare enabled by -Wextra
-Wstringop-overflow covered by -Wstringop-overflow=2
-Wstringop-overflow=<0,4> defaults to 2
+-Wstringop-overread default
-Wstringop-truncation default
-Wsubobject-linkage c++ and objc++
-Wsuggest-override c++ and objc++
@@ -271,6 +290,7 @@
-Wtraditional obsolescent
-Wtraditional-conversion obsolescent
-Wtrigraphs enabled by -Wall
+-Wtsan default
-Wtype-limits enabled by -Wextra
-Wundeclared-selector objc and objc++
-Wundef FIXME maybe? too many false positives
@@ -294,9 +314,11 @@
-Wuse-without-only fortran
-Wuseless-cast c++ and objc++
-Wvarargs default
+-Wvexing-parse c++ and objc++
-Wvirtual-inheritance c++
-Wvirtual-move-assign c++
-Wvla-larger-than=<number> handled specially by gl_MANYWARN_ALL_GCC
+-Wvla-parameter enabled by -Wall
-Wvolatile c++ and objc++
-Wvolatile-register-var enabled by -Wall
-Wzero-as-null-pointer-constant c++ and objc++
--
2.31.1
next prev parent reply other threads:[~2021-07-31 19:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-31 19:01 [PATCH 1/6] limits-h: add BOOL_MAX, BOOL_WIDTH Paul Eggert
2021-07-31 19:01 ` Paul Eggert [this message]
2021-07-31 19:01 ` [PATCH 3/6] gnulib-common: update for C2x 2020-12-11 draft Paul Eggert
2021-07-31 19:01 ` [PATCH 4/6] gnulib-common: update for gcc -Wmismatched-dealloc Paul Eggert
2021-07-31 19:01 ` [PATCH 5/6] xalloc: add malloc-related function attributes Paul Eggert
2021-07-31 19:01 ` [PATCH 6/6] doc: C2X -> C2x Paul Eggert
2021-08-01 13:38 ` [PATCH 1/6] limits-h: add BOOL_MAX, BOOL_WIDTH Bruno Haible
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210731190124.279622-2-eggert@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=bug-gnulib@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).