From 97e9c847f8ac4da66d5c9cc0454a962edabb2a70 Mon Sep 17 00:00:00 2001 From: jason Date: Wed, 1 Jul 2015 18:27:12 +0000 Subject: [PATCH] gcc/c-family/ * c-opts.c (c_common_post_options): Default to C++14. gcc/testsuite/ * lib/target-supports.exp (cxx_default): Set to C++14. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@225272 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/c-family/ChangeLog | 2 ++ gcc/c-family/c-opts.c | 4 ++-- gcc/testsuite/ChangeLog | 4 ++++ gcc/testsuite/lib/target-supports.exp | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index 87c8d9477e3e..bd16a6d536fb 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,5 +1,7 @@ 2015-07-01 Jason Merrill + * c-opts.c (c_common_post_options): Default to C++14. + * c-opts.c (c_common_post_options): Highest ABI level is now 10. 2015-06-30 Edward Smith-Rowland <3dw4rd@verizon.net> diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index 195045e961e6..80481c352ace 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -889,9 +889,9 @@ c_common_post_options (const char **pfilename) if (flag_abi_version == 0) flag_abi_version = 10; - /* Set C++ standard to C++98 if not specified on the command line. */ + /* Set C++ standard to C++14 if not specified on the command line. */ if (c_dialect_cxx () && cxx_dialect == cxx_unset) - set_std_cxx98 (/*ISO*/false); + set_std_cxx14 (/*ISO*/false); if (cxx_dialect >= cxx11) { diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 88a7bc649a4c..940f367567ea 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-07-01 Jason Merrill + + * lib/target-supports.exp (cxx_default): Set to C++14. + 2015-07-01 Tom de Vries PR testsuite/66723 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index fc05e84cbed7..bf512e9f4df6 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5935,7 +5935,7 @@ proc check_effective_target_c++ { } { return 0 } -set cxx_default "c++98" +set cxx_default "c++14" # Check whether the current active language standard supports the features # of C++11/C++14 by checking for the presence of one of the -std flags. # This assumes that the default for the compiler is $cxx_default, and that -- 2.11.4.GIT