diff options
author | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-23 09:22:17 +0000 |
---|---|---|
committer | mmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-09-23 09:22:17 +0000 |
commit | 221c4c52c37fe406e61c82361601c39ab4ec1241 (patch) | |
tree | 1a0a4c88a7ec146d17c908d2c4246c6c718372b8 /gcc/c-opts.c | |
parent | fefb85cc0369fd0d389260d2adb1090ebd58d71b (diff) | |
download | gcc-221c4c52c37fe406e61c82361601c39ab4ec1241.tar.gz |
* c-common.c (flag_abi_version): New variable.
* c-common.h (flag_abi_version): Declare it.
* c-opts.c (missing_arg): Add -fabi-version.
(c_common_decode_option): Process -fabi-version.
* doc/invoke.texi (-fabi-version): Document it.
(-Wabi): Add information about bit-fields in unions.
* cp/class.c (layout_virtual_bases): Do not round the size of the
type to a multiple of the alignment before laying out virtual bases.
(layout_class_type): Correct handling of bit-fields that are wider
than their type inside unions. Round the size of the type to a
even number of bytes when computing the size without virtual
bases.
* cp/cp-tree.h (abi_version_at_least): New macro.
* g++.dg/abi/bitfield6.C: New test.
* g++.dg/abi/bitfield7.C: New test.
* g++.dg/abi/bitfield8.C: New test.
* g++.dg/abi/vbase11.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57432 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-opts.c')
-rw-r--r-- | gcc/c-opts.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/c-opts.c b/gcc/c-opts.c index ce4b910d03b..4d9e3d2dcf6 100644 --- a/gcc/c-opts.c +++ b/gcc/c-opts.c @@ -188,6 +188,7 @@ static void sanitize_cpp_opts PARAMS ((void)); OPT("Wwrite-strings", CL_ALL, OPT_Wwrite_strings) \ OPT("ansi", CL_ALL, OPT_ansi) \ OPT("d", CL_ALL | CL_JOINED, OPT_d) \ + OPT("fabi-version=", CL_CXX | CL_JOINED, OPT_fabi_version) \ OPT("faccess-control", CL_CXX, OPT_faccess_control) \ OPT("fall-virtual", CL_CXX, OPT_fall_virtual) \ OPT("falt-external-templates",CL_CXX, OPT_falt_external_templates) \ @@ -342,6 +343,7 @@ missing_arg (opt_index) { case OPT_Wformat_eq: case OPT_d: + case OPT_fabi_version: case OPT_fbuiltin_: case OPT_fdump: case OPT_fname_mangling: @@ -1014,6 +1016,10 @@ c_common_decode_option (argc, argv) warning ("switch \"%s\" is no longer supported", argv[0]); break; + case OPT_fabi_version: + flag_abi_version = read_integral_parameter (arg, argv[0], 1); + break; + case OPT_faccess_control: flag_access_control = on; break; |