From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-3.4 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 55EEA1F8C6 for ; Sat, 31 Jul 2021 19:02:04 +0000 (UTC) Received: from localhost ([::1]:41848 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9uFG-0007v5-V5 for normalperson@yhbt.net; Sat, 31 Jul 2021 15:02:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45412) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9uEy-0007b9-V5 for bug-gnulib@gnu.org; Sat, 31 Jul 2021 15:01:44 -0400 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:37092) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9uEw-000651-Bo for bug-gnulib@gnu.org; Sat, 31 Jul 2021 15:01:44 -0400 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 076231600F6 for ; Sat, 31 Jul 2021 12:01:41 -0700 (PDT) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 8zL_JR76ZArP; Sat, 31 Jul 2021 12:01:39 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8301E1600F3; Sat, 31 Jul 2021 12:01:39 -0700 (PDT) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pk0m_jiVttJu; Sat, 31 Jul 2021 12:01:39 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 5DA25160083; Sat, 31 Jul 2021 12:01:39 -0700 (PDT) From: Paul Eggert To: bug-gnulib@gnu.org Subject: [PATCH 2/6] manywarnings: document GCC 11 warnings Date: Sat, 31 Jul 2021 12:01:19 -0700 Message-Id: <20210731190124.279622-2-eggert@cs.ucla.edu> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210731190124.279622-1-eggert@cs.ucla.edu> References: <20210731190124.279622-1-eggert@cs.ucla.edu> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Paul Eggert Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: "bug-gnulib" * 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 =20 + 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=3D -Warray-bounds=3D<0,2> handled specially by gl_MANYWARN_ALL_GCC +-Warray-parameter enabled by -Wall +-Warray-parameter=3D<0,2> enabled by -Wall -Warray-temporaries fortran -Wassign-intercept objc/objc++ -Wattribute-alias covered by -Wattribute-alias=3D2 @@ -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=3D[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=3D FIXME: choose something sane? @@ -252,6 +270,7 @@ -Wstring-compare enabled by -Wextra -Wstringop-overflow covered by -Wstringop-overflow=3D2 -Wstringop-overflow=3D<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=3D 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++ --=20 2.31.1