[llvm-commits] [llvm-gcc-4.0] r41902 - /llvm-gcc-4.0/trunk/gcc/config/darwin.h
Evan Cheng
evan.cheng at apple.com
Wed Sep 12 17:18:50 PDT 2007
Author: evancheng
Date: Wed Sep 12 19:18:50 2007
New Revision: 41902
URL: http://llvm.org/viewvc/llvm-project?rev=41902&view=rev
Log:
Mac OS X 64-bit is PIC only. Silently ignore -mdynamic-no-pic and -static.
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=41902&r1=41901&r2=41902&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:18:50 2007
@@ -1721,10 +1721,11 @@
const char *darwin_objc_llvm_implicit_target_global_var_section(tree);
#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")
+ 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")
#endif
/* APPLE LOCAL end LLVM */
More information about the llvm-commits
mailing list