r276173 - in /trunk/gcc/ada: ChangeLog gcc-inte...
aoliva@gcc.gnu.org
aoliva@gcc.gnu.org
Fri Sep 27 01:59:00 GMT 2019
Author: aoliva
Date: Fri Sep 27 01:59:55 2019
New Revision: 276173
URL: https://gcc.gnu.org/viewcvs?rev=276173&root=gcc&view=rev
Log:
set DECL_SIZE_UNIT for zero-sized fields
Zero-sized fields do not get processed by finish_record_type: they're
removed from the field list before and reinserted after, so their
DECL_SIZE_UNIT remains unset, causing the translation of assignment
statements with use_memset_p, in quite unusual circumstances, to use a
NULL_TREE as the memset length. This patch sets DECL_SIZE_UNIT for
the zero-sized fields, that don't go through language-independent
layout, in language-specific layout.
for gcc/ada/ChangeLog
* gcc-interface/decl.c (components_to_record): Set
DECL_SIZE_UNIT for zero-sized fields.
Modified:
trunk/gcc/ada/ChangeLog
trunk/gcc/ada/gcc-interface/decl.c
More information about the Gcc-cvs
mailing list