Disconnect -Wabi=<n> from -fabi-compat-version=<n>.
authorJason Merrill <jason@redhat.com>
Tue, 22 Sep 2015 15:18:26 +0000 (11:18 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 22 Sep 2015 15:18:26 +0000 (11:18 -0400)
commita75f15742ab04d48fb599c9b6523ffbe8f5d837c
tree44c7e77abec314f6ccab830cf576cb24d797c18e
parent8013b816cc8b2de17db1a5115f4df482f0acbc6d
Disconnect -Wabi=<n> from -fabi-compat-version=<n>.

gcc/c-family/
* c-common.h (abi_compat_version_crosses): New.
(warn_abi_version): Declare.
* c-common.c: Define it.
* c-opts.c (c_common_post_options): Handle it.
flag_abi_compat_version defaults to 8.
gcc/cp/
* mangle.c (abi_warn_or_compat_version_crosses): New.
Use it instead of abi_version_crosses.
(mangle_decl): Deal with -fabi-compat-version and -Wabi separately.

From-SVN: r228017
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c-family/c-common.h
gcc/c-family/c-opts.c
gcc/cp/ChangeLog
gcc/cp/mangle.c
gcc/doc/invoke.texi