Author: yug Date: 2012-04-27 03:37:16 -0400 (Fri, 27 Apr 2012) New Revision: 3918
Modified: trunk/osprey/wgen/wgen_misc.h trunk/osprey/wgen/wgen_spin_symbol.cxx Log: fix for bug967. avoid compiler generated names invade to user program namespace. Code Review: Gautam Chakrabarti Modified: trunk/osprey/wgen/wgen_misc.h =================================================================== --- trunk/osprey/wgen/wgen_misc.h 2012-04-26 07:51:19 UTC (rev 3917) +++ trunk/osprey/wgen/wgen_misc.h 2012-04-27 07:37:16 UTC (rev 3918) @@ -170,6 +170,8 @@ return s; } +#define TVAR_PREFIX ".anon_" + #endif #endif Modified: trunk/osprey/wgen/wgen_spin_symbol.cxx =================================================================== --- trunk/osprey/wgen/wgen_spin_symbol.cxx 2012-04-26 07:51:19 UTC (rev 3917) +++ trunk/osprey/wgen/wgen_spin_symbol.cxx 2012-04-27 07:37:16 UTC (rev 3918) @@ -1607,7 +1607,7 @@ else if (gs_decl_name (decl_node)) name = (char *) gs_identifier_pointer (gs_decl_name (decl_node)); else { - sprintf(tempname, "anon%d", ++anon_count); + sprintf(tempname, TVAR_PREFIX "%d", ++anon_count); name = tempname; } ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Open64-devel mailing list Open64-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/open64-devel