[llvm-commits] [llvm-gcc-4.0] r41904 - /llvm-gcc-4.0/trunk/gcc/config/darwin.h

Evan Cheng evan.cheng at apple.com
Wed Sep 12 17:53:29 PDT 2007


Author: evancheng
Date: Wed Sep 12 19:53:28 2007
New Revision: 41904

URL: http://llvm.org/viewvc/llvm-project?rev=41904&view=rev
Log:
Only ignore -mdynamic-no-pic and -static for x86-64. Not true for ppc64.

Modified:
    llvm-gcc-4.0/trunk/gcc/config/darwin.h

Modified: llvm-gcc-4.0/trunk/gcc/config/darwin.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/config/darwin.h?rev=41904&r1=41903&r2=41904&view=diff

==============================================================================
--- llvm-gcc-4.0/trunk/gcc/config/darwin.h (original)
+++ llvm-gcc-4.0/trunk/gcc/config/darwin.h Wed Sep 12 19:53:28 2007
@@ -1720,12 +1720,20 @@
      darwin_objc_llvm_implicit_target_global_var_section(decl) : 0)
 const char *darwin_objc_llvm_implicit_target_global_var_section(tree);
 
+#if defined (TARGET_386)
 #define LLVM_SET_TARGET_OPTIONS(argvec)              \
   if (!TARGET_64BIT)                                 \
     if (flag_pic)                                    \
       argvec.push_back ("--relocation-model=pic");   \
     else if (!MACHO_DYNAMIC_NO_PIC_P)                \
       argvec.push_back ("--relocation-model=static")
+#else /* defined (TARGET_386) */
+#define LLVM_SET_TARGET_OPTIONS(argvec)              \
+  if (flag_pic)                                      \
+    argvec.push_back ("--relocation-model=pic");     \
+  else if (!MACHO_DYNAMIC_NO_PIC_P)                  \
+    argvec.push_back ("--relocation-model=static")
+#endif /* defined (TARGET_386) */
 #endif
 /* APPLE LOCAL end LLVM */
 





More information about the llvm-commits mailing list