-
- Downloads
c-common.c (flag_abi_version): New variable.
* 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. From-SVN: r57432
Showing
- gcc/ChangeLog 9 additions, 0 deletionsgcc/ChangeLog
- gcc/c-common.c 15 additions, 0 deletionsgcc/c-common.c
- gcc/c-common.h 15 additions, 0 deletionsgcc/c-common.h
- gcc/c-opts.c 6 additions, 0 deletionsgcc/c-opts.c
- gcc/cp/ChangeLog 10 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/class.c 27 additions, 5 deletionsgcc/cp/class.c
- gcc/cp/cp-tree.h 6 additions, 0 deletionsgcc/cp/cp-tree.h
- gcc/doc/invoke.texi 24 additions, 2 deletionsgcc/doc/invoke.texi
- gcc/testsuite/ChangeLog 7 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/abi/bitfield6.C 14 additions, 0 deletionsgcc/testsuite/g++.dg/abi/bitfield6.C
- gcc/testsuite/g++.dg/abi/bitfield7.C 7 additions, 0 deletionsgcc/testsuite/g++.dg/abi/bitfield7.C
- gcc/testsuite/g++.dg/abi/bitfield8.C 20 additions, 0 deletionsgcc/testsuite/g++.dg/abi/bitfield8.C
- gcc/testsuite/g++.dg/abi/vbase11.C 12 additions, 0 deletionsgcc/testsuite/g++.dg/abi/vbase11.C
Loading
Please register or sign in to comment