diff options
author | Jason Merrill <jason@redhat.com> | 2022-12-05 10:00:31 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-12-19 10:56:33 -0500 |
commit | 263c22a95bc9a0d80c4873c0291b0f938cea7310 (patch) | |
tree | 8060d56d0c0d522c41c682e6112a1f6160c0aaf0 /gcc | |
parent | ec459469f8a75d96a9b26694554efcc900d411de (diff) | |
download | gcc-263c22a95bc9a0d80c4873c0291b0f938cea7310.zip gcc-263c22a95bc9a0d80c4873c0291b0f938cea7310.tar.gz gcc-263c22a95bc9a0d80c4873c0291b0f938cea7310.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/configure | 2 | ||||
-rw-r--r-- | gcc/configure.ac | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/configure b/gcc/configure index 61b3ced..921aad6 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 diff --git a/gcc/configure.ac b/gcc/configure.ac index 5efbf11..b91f54c 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]) |