diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-27 22:14:51 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-27 22:14:51 +0000 |
commit | 84fb34c4bd4cacff62c788fc6ddf5433a10a8105 (patch) | |
tree | ee767505882b4cd0b13a99e8d37e215ba2dcf0f5 /gcc/c-common.c | |
parent | 1f2f2194f8713b9ff7108e7f2cdc295bff6aef96 (diff) | |
download | gcc-84fb34c4bd4cacff62c788fc6ddf5433a10a8105.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56618 138bc75d-0d04-0410-961f-82ee72b054a4
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 875cabcdc55..913aec19c6b 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; |