Author: shihui Date: 2011-06-03 20:19:30 -0400 (Fri, 03 Jun 2011) New Revision: 3640
Modified: trunk/osprey/be/com/wn_mp.cxx Log: Fix nystrom alias csig fault when setup onstraint graph for OpenMP lower generated PU. This problem is when creating constraint graph for OpenMP parallel PU. Compilation has sig fault when checking if a WN node can be a pointer. The root cause is WN node has constraint graph node id, however id's corresponding node not in current contraint graph. Because when OpenMP lower clone the parallel PU, it copy the WN_MAP_ALIAS_CGNODE map. Fix is in OpenMP lower, not copy the WN_MAP_ALIAS_CGNODE map. Code review by Sun Chan Modified: trunk/osprey/be/com/wn_mp.cxx =================================================================== --- trunk/osprey/be/com/wn_mp.cxx 2011-06-03 00:47:27 UTC (rev 3639) +++ trunk/osprey/be/com/wn_mp.cxx 2011-06-04 00:19:30 UTC (rev 3640) @@ -2768,8 +2768,14 @@ ("parallel_pu's PU's maptab isn't parallel_pu\n")); Current_Map_Tab = pmaptab; WN_MAP_Set_dont_copy(aa->aliasTagMap(), TRUE); + WN_MAP_Set_dont_copy(WN_MAP_ALIAS_CGNODE, TRUE); Current_Map_Tab = PU_Info_maptab(parallel_pu); } + else { + Current_Map_Tab = pmaptab; + WN_MAP_Set_dont_copy(WN_MAP_ALIAS_CGNODE, TRUE); + Current_Map_Tab = PU_Info_maptab(parallel_pu); + } // use hack to save csymtab using parallel_pu, so we can restore it // later when we lower parallel_pu; this is necessary because the ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel