r243738 - in /trunk/gcc: ChangeLog cp/ChangeLog...
rguenth@gcc.gnu.org
rguenth@gcc.gnu.org
Fri Dec 16 09:40:00 GMT 2016
Author: rguenth
Date: Fri Dec 16 09:40:03 2016
New Revision: 243738
URL: https://gcc.gnu.org/viewcvs?rev=243738&root=gcc&view=rev
Log:
2016-12-16 Richard Biener <rguenther@suse.de>
PR c++/71694
* langhooks-def.h (lhd_unit_size_without_reusable_padding): Declare.
(LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
(LANG_HOOKS_FOR_TYPES_INITIALIZER): Adjust.
* langhooks.h (struct lang_hooks_for_types): Add
unit_size_without_reusable_padding.
* langhooks.c (lhd_unit_size_without_reusable_padding): New.
* stor-layout.c (finish_bitfield_representative): Use
unit_size_without_reusable_padding langhook to decide on the
last representatives size.
cp/
* cp-objcp-common.h (cp_unit_size_without_reusable_padding): Declare.
(LANG_HOOKS_UNIT_SIZE_WITHOUT_REUSABLE_PADDING): Define.
* cp-objcp-common.c (cp_unit_size_without_reusable_padding): New.
* g++.dg/pr71694.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/pr71694.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-objcp-common.c
trunk/gcc/cp/cp-objcp-common.h
trunk/gcc/langhooks-def.h
trunk/gcc/langhooks.c
trunk/gcc/langhooks.h
trunk/gcc/stor-layout.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-cvs
mailing list