Commit d022c55a by Jason Merrill Committed by Jason Merrill

Update -fabi-version default to 11.

	* c-opts.c (c_common_post_options): Update -fabi-version default to 11.

From-SVN: r238388
parent 9ee2cecc
2016-07-15 Jason Merrill <jason@redhat.com>
* c-opts.c (c_common_post_options): Update -fabi-version default to 11.
2016-07-15 Jakub Jelinek <jakub@redhat.com> 2016-07-15 Jakub Jelinek <jakub@redhat.com>
PR c/71858 PR c/71858
......
...@@ -887,15 +887,15 @@ c_common_post_options (const char **pfilename) ...@@ -887,15 +887,15 @@ c_common_post_options (const char **pfilename)
} }
else if (flag_abi_compat_version == -1) else if (flag_abi_compat_version == -1)
{ {
/* Generate compatibility aliases for ABI v8 (5.1) by default. */ /* Generate compatibility aliases for ABI v10 (6.1) by default. */
flag_abi_compat_version flag_abi_compat_version
= (flag_abi_version == 0 ? 8 : 0); = (flag_abi_version == 0 ? 10 : 0);
} }
/* Change flag_abi_version to be the actual current ABI level for the /* Change flag_abi_version to be the actual current ABI level for the
benefit of c_cpp_builtins. */ benefit of c_cpp_builtins. */
if (flag_abi_version == 0) if (flag_abi_version == 0)
flag_abi_version = 10; flag_abi_version = 11;
if (cxx_dialect >= cxx11) if (cxx_dialect >= cxx11)
{ {
......
// This testcase will need to be kept in sync with c_common_post_options. // This testcase will need to be kept in sync with c_common_post_options.
// { dg-options "-fabi-version=0" } // { dg-options "-fabi-version=0" }
#if __GXX_ABI_VERSION != 1010 #if __GXX_ABI_VERSION != 1011
#error "Incorrect value of __GXX_ABI_VERSION" #error "Incorrect value of __GXX_ABI_VERSION"
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment