diff options
author | Mark Mitchell <mark@codesourcery.com> | 2002-08-27 22:14:51 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2002-08-27 22:14:51 +0000 |
commit | eca7f13c6953706b97f6158dcef99f0566f1fbb5 (patch) | |
tree | ee767505882b4cd0b13a99e8d37e215ba2dcf0f5 /gcc/c-common.c | |
parent | c350f8c1c479aabb1bd0a58f4072381d77daca77 (diff) | |
download | gcc-eca7f13c6953706b97f6158dcef99f0566f1fbb5.zip gcc-eca7f13c6953706b97f6158dcef99f0566f1fbb5.tar.gz gcc-eca7f13c6953706b97f6158dcef99f0566f1fbb5.tar.bz2 |
c-common.c (warn_abi): New variable.
* c-common.c (warn_abi): New variable.
* c-common.h (warn_abi): Likewise.
* c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
(c_common_decode_option): Handle it.
* doc/invoke.texi:P Document -Wabi.
* class.c (layout_virtual_bases): Warn about bugs in G++ that
result in incorrect object layouts.
(layout_class_type): Likewise.
* testsuite/g++.dg/abi/bitfield5.C: New test.
* testsuite/g++.dg/abi/vbase10.C: Likewise.
From-SVN: r56618
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 875cabc..913aec1 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -566,6 +566,11 @@ int flag_permissive; int flag_enforce_eh_specs = 1; +/* Nonzero means warn about things that will change when compiling + with an ABI-compliant compiler. */ + +int warn_abi = 0; + /* Nonzero means warn about implicit declarations. */ int warn_implicit = 1; |