aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2020-05-18 14:28:16 -0400
committerJason Merrill <jason@redhat.com>2020-05-18 14:29:18 -0400
commit5329b59a2e13dabbe2038af0fe2e3cf5fc7f98ed (patch)
treeb5c78d4c1858c2bcda7f6fdd7ef5133d978019ec /configure.ac
parente5abd1cb9160619721336ed800779a01548231f1 (diff)
downloadgcc-5329b59a2e13dabbe2038af0fe2e3cf5fc7f98ed.zip
gcc-5329b59a2e13dabbe2038af0fe2e3cf5fc7f98ed.tar.gz
gcc-5329b59a2e13dabbe2038af0fe2e3cf5fc7f98ed.tar.bz2
bootstrap: Update requirement to C++11.
There was general agreement last November that we would move to allowing C++11 features to be used in GCC 11; this patch implements that direction. ChangeLog 2020-05-18 Jason Merrill <jason@redhat.com> * configure.ac: Update bootstrap dialect to -std=c++11. config/ChangeLog 2020-05-18 Jason Merrill <jason@redhat.com> * ax_cxx_compile_stdcxx.m4: Import from autoconf archive with an adjustment to try the default mode. gcc/ChangeLog 2020-05-18 Jason Merrill <jason@redhat.com> * aclocal.m4: Add ax_cxx_compile_stdcxx.m4. * configure.ac: Use AX_CXX_COMPILE_STDCXX(11).
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index c78d9cb..a678013 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1462,10 +1462,10 @@ case "$have_compiler:$host:$target:$enable_bootstrap" in
;;
esac
-# When bootstrapping with GCC, build stage 1 in C++98 mode to ensure that a
-# C++98 compiler can still start the bootstrap.
+# When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
+# C++11 compiler can still start the bootstrap.
if test "$enable_bootstrap:$GXX" = "yes:yes"; then
- CXX="$CXX -std=gnu++98"
+ CXX="$CXX -std=c++11"
fi
# Used for setting $lt_cv_objdir