Author: yug Date: 2011-12-13 04:04:06 -0500 (Tue, 13 Dec 2011) New Revision: 3850
Modified: trunk/osprey-gcc-4.2.0/gcc/stor-layout.c Log: fix bug929. Don't miss gspin type align field update after the layout is re-calulated by gcc tree. Code Review: Gautum Chakrabarti Modified: trunk/osprey-gcc-4.2.0/gcc/stor-layout.c =================================================================== --- trunk/osprey-gcc-4.2.0/gcc/stor-layout.c 2011-12-09 08:47:48 UTC (rev 3849) +++ trunk/osprey-gcc-4.2.0/gcc/stor-layout.c 2011-12-13 09:04:06 UTC (rev 3850) @@ -1850,8 +1850,16 @@ finish_record_layout (rli, /*free_p=*/true); #ifdef KEY - if (flag_spin_file && gspin_invoked(type)) + if (flag_spin_file && gspin_invoked(type)) { + /* bug929 open64.net. Don't miss the type align field update + after the layout is re-calulated. */ + gs_t align_node; + align_node = __gs (IB_INT); + _gs_n (align_node, TYPE_ALIGN (type)); + gs_set_operand ((gs_t) GS_NODE (type), GS_TYPE_ALIGN, align_node); + gs_x (type); + } #endif } break; ------------------------------------------------------------------------------ Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/ _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel