From 49f0c04c37b2f73dd88ccf5d8fc93c1dcb6ef2c2 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 8 May 2017 14:45:42 -0400 Subject: [PATCH] Bump C++ ABI version. * c-opts.c (c_common_post_options): Update defaults for flag_abi_version and flag_abi_compat_version. From-SVN: r247756 --- gcc/c-family/ChangeLog | 5 +++++ gcc/c-family/c-opts.c | 6 +++--- gcc/testsuite/g++.dg/abi/macro0.C | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/gcc/c-family/ChangeLog b/gcc/c-family/ChangeLog index a1bb25c..e228e84 100644 --- a/gcc/c-family/ChangeLog +++ b/gcc/c-family/ChangeLog @@ -1,3 +1,8 @@ +2017-05-08 Jason Merrill + + * c-opts.c (c_common_post_options): Update defaults for + flag_abi_version and flag_abi_compat_version. + 2017-05-05 David Malcolm * c-common.c (c_cpp_error): Replace report_diagnostic diff --git a/gcc/c-family/c-opts.c b/gcc/c-family/c-opts.c index ea0e01b..ed1b037 100644 --- a/gcc/c-family/c-opts.c +++ b/gcc/c-family/c-opts.c @@ -909,15 +909,15 @@ c_common_post_options (const char **pfilename) } else if (flag_abi_compat_version == -1) { - /* Generate compatibility aliases for ABI v10 (6.1) by default. */ + /* Generate compatibility aliases for ABI v11 (7.1) by default. */ flag_abi_compat_version - = (flag_abi_version == 0 ? 10 : 0); + = (flag_abi_version == 0 ? 11 : 0); } /* Change flag_abi_version to be the actual current ABI level for the benefit of c_cpp_builtins. */ if (flag_abi_version == 0) - flag_abi_version = 11; + flag_abi_version = 12; /* By default, enable the new inheriting constructor semantics along with ABI 11. New and old should coexist fine, but it is a change in what diff --git a/gcc/testsuite/g++.dg/abi/macro0.C b/gcc/testsuite/g++.dg/abi/macro0.C index 5bc2277..30eb029 100644 --- a/gcc/testsuite/g++.dg/abi/macro0.C +++ b/gcc/testsuite/g++.dg/abi/macro0.C @@ -1,6 +1,6 @@ // This testcase will need to be kept in sync with c_common_post_options. // { dg-options "-fabi-version=0" } -#if __GXX_ABI_VERSION != 1011 +#if __GXX_ABI_VERSION != 1012 #error "Incorrect value of __GXX_ABI_VERSION" #endif -- 2.7.4