Author: fengzhou
Date: 2011-03-04 12:19:02 -0500 (Fri, 04 Mar 2011)
New Revision: 3504

Modified:
   trunk/osprey/be/cg/cgemit.cxx
Log:
Fix bug #730. Print out original symbol name and offset in the comment as well 
when generating assembly code.


Modified: trunk/osprey/be/cg/cgemit.cxx
===================================================================
--- trunk/osprey/be/cg/cgemit.cxx       2011-03-03 21:46:32 UTC (rev 3503)
+++ trunk/osprey/be/cg/cgemit.cxx       2011-03-04 17:19:02 UTC (rev 3504)
@@ -6599,7 +6599,11 @@
               // we are in IPA mode and we are generating a reference to local 
symbol
               // that has been merged into global symtab because of IPA
               EMT_Write_Qualified_Name (Asm_File, basesym);
-              fprintf (Asm_File, " %+lld\n", (INT64) base_ofst);
+              fprintf (Asm_File, " %+lld", (INT64) base_ofst);
+              // now emit comments on this symbol for readability
+              fprintf (Asm_File, " %s ", ASM_CMNT);
+              EMT_Write_Qualified_Name (Asm_File, sym);
+              fprintf (Asm_File, " %+lld\n", (INT64) sym_ofst);
           } else {
               EMT_Write_Qualified_Name (Asm_File, sym);
               fprintf (Asm_File, " %+lld\n", (INT64) sym_ofst);


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
Open64-devel mailing list
Open64-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/open64-devel

Reply via email to