[llvm-commits] [llvm-gcc-4.0] r41909 - /llvm-gcc-4.0/trunk/gcc/config/darwin.h
Evan Cheng
evan.cheng at apple.com
Wed Sep 12 18:45:44 PDT 2007
Author: evancheng
Date: Wed Sep 12 20:45:44 2007
New Revision: 41909
URL: http://llvm.org/viewvc/llvm-project?rev=41909&view=rev
Log:
Obviously I can't read my own code.
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=41909&r1=41908&r2=41909&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/config/darwin.h (original)
+++ llvm-gcc-4.0/trunk/gcc/config/darwin.h Wed Sep 12 20:45:44 2007
@@ -1720,13 +1720,13 @@
darwin_objc_llvm_implicit_target_global_var_section(decl) : 0)
const char *darwin_objc_llvm_implicit_target_global_var_section(tree);
+/* Darwin X86-64 only supports PIC code generation. */
#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")
+ if ((TARGET_64BIT) || 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) \
More information about the llvm-commits
mailing list