aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-opts.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2015-07-01 14:27:12 -0400
committerJason Merrill <jason@gcc.gnu.org>2015-07-01 14:27:12 -0400
commite7fa68d55551081342ef3b7eaf1a02639cb57053 (patch)
tree7df17da7f640f78a9fd82ec6f78f29425d655c35 /gcc/c-family/c-opts.c
parenta03c9bf1b18f5cd553da2afb2c520df261c70821 (diff)
downloadgcc-e7fa68d55551081342ef3b7eaf1a02639cb57053.zip
gcc-e7fa68d55551081342ef3b7eaf1a02639cb57053.tar.gz
gcc-e7fa68d55551081342ef3b7eaf1a02639cb57053.tar.bz2
c-opts.c (c_common_post_options): Default to C++14.
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. From-SVN: r225272
Diffstat (limited to 'gcc/c-family/c-opts.c')
-rw-r--r--gcc/c-family/c-opts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c
index 195045e..80481c3 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)
{