Hi,
Could a gatekeeper review this patch?
The bug happens in function Is_Aggregate_Init_Zero_Struct,
which was adapted from AGGINIT::Traverse_Aggregate_Struct.
Some code enclosed by "#ifndef KEY" in the latter
was incorrectly included in the former, leading to the bug.
This patch removes the offending code.
Thanks,
Richard
Index: osprey/wgen/wgen_decl.cxx
===================================================================
--- osprey/wgen/wgen_decl.cxx (revision 3524)
+++ osprey/wgen/wgen_decl.cxx (working copy)
@@ -4183,21 +4183,6 @@
gs_t init;
- gs_t type_binfo, basetypes;
-
- if ((type_binfo = gs_type_binfo(type)) != NULL &&
- (basetypes = gs_binfo_base_binfos(type_binfo)) != NULL) {
-
- gs_t list;
- for (list = basetypes; gs_code(list) != EMPTY; list = gs_operand(list, 1))
{
- gs_t binfo = gs_operand(list, 0);
- gs_t basetype = gs_binfo_type(binfo);
- if (!is_empty_base_class(basetype) || !gs_binfo_virtual_p(binfo)) {
- fld = FLD_next (fld);
- }
- }
- }
-
while (field && gs_tree_code(field) != GS_FIELD_DECL)
field = next_real_field(type, field);
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software
be a part of the solution? Download the Intel(R) Manageability Checker
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel