diff options
author | Jason Merrill <jason@redhat.com> | 2018-10-03 11:56:29 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2018-10-03 11:56:29 -0400 |
commit | bedf03a298f87b43f02eaee57542fbd10228ec08 (patch) | |
tree | b89298bfa67ef964fcefa62e3d8b27bfd7807c1d /libvtv/scripts | |
parent | 749c0e1d8b2c8dbc54af3365af506b3e1986e754 (diff) | |
download | gcc-bedf03a298f87b43f02eaee57542fbd10228ec08.zip gcc-bedf03a298f87b43f02eaee57542fbd10228ec08.tar.gz gcc-bedf03a298f87b43f02eaee57542fbd10228ec08.tar.bz2 |
Implement P0840, language support for empty objects.
The [[no_unique_address]] attribute on a non-static data member
enables the equivalent of the empty base optimization.
gcc/cp/
* tree.c (handle_no_unique_addr_attribute): New.
(cxx_attribute_table): Add [[no_unique_address]].
* class.c (field_poverlapping_p): New.
(layout_class_type): Check it. Adjust DECL_SIZE of potentially
overlapping fields.
(layout_empty_base_or_field): Rename from layout_empty_base, handle
FIELD_DECL as well.
(build_base_field, record_subobject_offsets): Adjust.
c-family/
* c-lex.c (c_common_has_attribute): Add no_unique_address.
From-SVN: r264813
Diffstat (limited to 'libvtv/scripts')
0 files changed, 0 insertions, 0 deletions