[Openmp-commits] [openmp] r228727 - Added comment on format of local labels in asm code

Andrey Churbanov Andrey.Churbanov at intel.com
Tue Feb 10 11:31:17 PST 2015


Author: achurbanov
Date: Tue Feb 10 13:31:17 2015
New Revision: 228727

URL: http://llvm.org/viewvc/llvm-project?rev=228727&view=rev
Log:
Added comment on format of local labels in asm code

Modified:
    openmp/trunk/runtime/src/z_Linux_asm.s

Modified: openmp/trunk/runtime/src/z_Linux_asm.s
URL: http://llvm.org/viewvc/llvm-project/openmp/trunk/runtime/src/z_Linux_asm.s?rev=228727&r1=228726&r2=228727&view=diff
==============================================================================
--- openmp/trunk/runtime/src/z_Linux_asm.s (original)
+++ openmp/trunk/runtime/src/z_Linux_asm.s Tue Feb 10 13:31:17 2015
@@ -69,6 +69,8 @@ KMP_PREFIX_UNDERSCORE($0):
 .endmacro
 # else // defined __APPLE__ && defined __MACH__
 #  define KMP_PREFIX_UNDERSCORE(x) x  // no extra underscore for Linux* OS symbols
+// Format labels so that they don't override function names in gdb's backtraces
+// MIC assembler doesn't accept .L syntax, the L works fine there (as well as on OS X*)
 # if __MIC__ || __MIC2__
 #  define KMP_LABEL(x) L_##x          // local label
 # else





More information about the Openmp-commits mailing list