[llvm-commits] [compiler-rt] r93788 - in /compiler-rt/trunk/lib: assembly.h ppc/restFP.S ppc/saveFP.S
Daniel Dunbar
daniel at zuster.org
Mon Jan 18 14:19:20 PST 2010
Author: ddunbar
Date: Mon Jan 18 16:19:20 2010
New Revision: 93788
URL: http://llvm.org/viewvc/llvm-project?rev=93788&view=rev
Log:
Add DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED for use in .S files -- restFP and saveFP don't get USER_LABEL_PREFIX prepended for some reason.
Modified:
compiler-rt/trunk/lib/assembly.h
compiler-rt/trunk/lib/ppc/restFP.S
compiler-rt/trunk/lib/ppc/saveFP.S
Modified: compiler-rt/trunk/lib/assembly.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/assembly.h?rev=93788&r1=93787&r2=93788&view=diff
==============================================================================
--- compiler-rt/trunk/lib/assembly.h (original)
+++ compiler-rt/trunk/lib/assembly.h Mon Jan 18 16:19:20 2010
@@ -39,4 +39,9 @@
.private_extern SYMBOL_NAME(name) SEPARATOR \
SYMBOL_NAME(name):
+#define DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(name) \
+ .globl name SEPARATOR \
+ .private_extern name SEPARATOR \
+ name:
+
#endif /* COMPILERRT_ASSEMBLY_H */
Modified: compiler-rt/trunk/lib/ppc/restFP.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ppc/restFP.S?rev=93788&r1=93787&r2=93788&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ppc/restFP.S (original)
+++ compiler-rt/trunk/lib/ppc/restFP.S Mon Jan 18 16:19:20 2010
@@ -19,7 +19,7 @@
// This function should never be exported by a shared library. Each linkage
// unit carries its own copy of this function.
//
-DEFINE_COMPILERRT_PRIVATE_FUNCTION(restFP)
+DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(restFP)
lfd f14,-144(r1)
lfd f15,-136(r1)
lfd f16,-128(r1)
@@ -39,5 +39,5 @@
lfd f30,-16(r1)
lfd f31,-8(r1)
lwz r0,8(r1)
- mtlr r0
+ mtlr r0
blr
Modified: compiler-rt/trunk/lib/ppc/saveFP.S
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ppc/saveFP.S?rev=93788&r1=93787&r2=93788&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ppc/saveFP.S (original)
+++ compiler-rt/trunk/lib/ppc/saveFP.S Mon Jan 18 16:19:20 2010
@@ -17,7 +17,7 @@
// This function should never be exported by a shared library. Each linkage
// unit carries its own copy of this function.
//
-DEFINE_COMPILERRT_PRIVATE_FUNCTION(saveFP)
+DEFINE_COMPILERRT_PRIVATE_FUNCTION_UNMANGLED(saveFP)
stfd f14,-144(r1)
stfd f15,-136(r1)
stfd f16,-128(r1)
More information about the llvm-commits
mailing list