diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-06-20 22:11:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-06-20 22:11:12 +0000 |
commit | e3db4daa166d9ce7995555642129a8323b8c263a (patch) | |
tree | 8ad4cbd1a9e5898d0579a547e6198bccbf3aec30 /lib/Target/CBackend/CBackend.cpp | |
parent | dd58343857eea0ecc90b2601d7908e054cd4f667 (diff) |
__i386__, __i386, etc. are not defined for x86-64. Use __x86_64__.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28881 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend/CBackend.cpp')
-rw-r--r-- | lib/Target/CBackend/CBackend.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp index 692232b78e..7fdc06008d 100644 --- a/lib/Target/CBackend/CBackend.cpp +++ b/lib/Target/CBackend/CBackend.cpp @@ -937,7 +937,8 @@ static void generateCompilerSpecificCode(std::ostream& Out) { Out << "#define CODE_FOR_MAIN() /* Any target-specific code for main()*/\n"; // On X86, set the FP control word to 64-bits of precision instead of 80 bits. Out << "#if defined(__GNUC__) && !defined(__llvm__)\n" - << "#if defined(i386) || defined(__i386__) || defined(__i386)\n" + << "#if defined(i386) || defined(__i386__) || defined(__i386) || " + << "defined(__x86_64__)\n" << "#undef CODE_FOR_MAIN\n" << "#define CODE_FOR_MAIN() \\\n" << " {short F;__asm__ (\"fnstcw %0\" : \"=m\" (*&F)); \\\n" |