From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2122) id DB84D3858D1E; Mon, 19 Dec 2022 15:56:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DB84D3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671465402; bh=3xS3eSaJXljdWVEZUTYkNmPqCVYbDq5bsLovihgpbCk=; h=From:To:Subject:Date:From; b=mF0XDIILZMrw4w3bYvHdT9Di/6KAMLpzXUuWRgdXFbnHaLBGFgxNN3e/oh2f6i4LK xEGM/gVpIA8t+/DU/EHAdq+q8ZaXuJAR5H73AjglICWXp2xW2X7B/oTMZb/dlrr5SS HCppoJ0CGmdHcmTCCSSEMGBHMKzKntOuLk22c9jY= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jason Merrill To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-4795] build: add -Wconditionally-supported to strict_warn [PR64867] X-Act-Checkin: gcc X-Git-Author: Jason Merrill X-Git-Refname: refs/heads/master X-Git-Oldrev: ec459469f8a75d96a9b26694554efcc900d411de X-Git-Newrev: 263c22a95bc9a0d80c4873c0291b0f938cea7310 Message-Id: <20221219155642.DB84D3858D1E@sourceware.org> Date: Mon, 19 Dec 2022 15:56:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:263c22a95bc9a0d80c4873c0291b0f938cea7310 commit r13-4795-g263c22a95bc9a0d80c4873c0291b0f938cea7310 Author: Jason Merrill Date: Mon Dec 5 10:00:31 2022 -0500 build: add -Wconditionally-supported to strict_warn [PR64867] The PR (which isn't resolved by this commit) pointed out to me that GCC should build with -Wconditionally-supported to support bootstrapping with a C++11 compiler that makes different choices. PR c++/64867 gcc/ChangeLog: * configure.ac (strict_warn): Add -Wconditionally-supported. * configure: Regenerate. Diff: --- gcc/configure.ac | 2 +- gcc/configure | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/configure.ac b/gcc/configure.ac index 5efbf11793c..b91f54ce05b 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -580,7 +580,7 @@ ACX_PROG_CC_WARNING_OPTS( m4_quote(m4_do([-Wstrict-prototypes -Wmissing-prototypes ], [])), [c_loose_warn]) ACX_PROG_CXX_WARNING_OPTS( - m4_quote(m4_do([-Wmissing-format-attribute ], + m4_quote(m4_do([-Wmissing-format-attribute ], [-Wconditionally-supported ], [-Woverloaded-virtual])), [strict_warn]) ACX_PROG_CC_WARNING_OPTS( m4_quote(m4_do([-Wold-style-definition -Wc++-compat])), [c_strict_warn]) diff --git a/gcc/configure b/gcc/configure index 61b3cedbe69..921aad60712 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7215,7 +7215,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu strict_warn= save_CXXFLAGS="$CXXFLAGS" -for real_option in -Wmissing-format-attribute -Woverloaded-virtual; do +for real_option in -Wmissing-format-attribute -Wconditionally-supported -Woverloaded-virtual; do # Do the check with the no- prefix removed since gcc silently # accepts any -Wno-* option on purpose case $real_option in