[llvm-commits] [llvm-gcc-4.0] r43660 - /llvm-gcc-4.0/trunk/gcc/varasm.c
Chris Lattner
sabre at nondot.org
Sat Nov 3 00:00:26 PDT 2007
Author: lattner
Date: Sat Nov 3 02:00:24 2007
New Revision: 43660
URL: http://llvm.org/viewvc/llvm-project?rev=43660&view=rev
Log:
do not emit a warning for:
void setkey(const char *) __asm("_" "setkey" "$UNIX2003");
void setkey(const char *) __asm("_" "setkey" "$UNIX2003");
Modified:
llvm-gcc-4.0/trunk/gcc/varasm.c
Modified: llvm-gcc-4.0/trunk/gcc/varasm.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/varasm.c?rev=43660&r1=43659&r2=43660&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/varasm.c (original)
+++ llvm-gcc-4.0/trunk/gcc/varasm.c Sat Nov 3 02:00:24 2007
@@ -5576,7 +5576,13 @@
const char *
default_strip_name_encoding (const char *str)
{
+ /* APPLE LOCAL begin LLVM */
+#ifndef ENABLE_LLVM
return str + (*str == '*');
+#else
+ return str + (*str == '\1');
+#endif
+ /* APPLE LOCAL end LLVM */
}
/* Assume ELF-ish defaults, since that's pretty much the most liberal
More information about the llvm-commits
mailing list