aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/CBackend
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-09-07 21:07:57 +0000
committerDale Johannesen <dalej@apple.com>2007-09-07 21:07:57 +0000
commit3afee1964f90a08b920ab9c4505159e4cc7018b5 (patch)
tree4843f59ba2f95f95deee4148045d927d15f05671 /lib/Target/CBackend
parentcbc99c473d2943c4dd58e3766756578b3d2b3483 (diff)
downloadexternal_llvm-3afee1964f90a08b920ab9c4505159e4cc7018b5.zip
external_llvm-3afee1964f90a08b920ab9c4505159e4cc7018b5.tar.gz
external_llvm-3afee1964f90a08b920ab9c4505159e4cc7018b5.tar.bz2
Apply feedback from previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41774 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CBackend')
-rw-r--r--lib/Target/CBackend/CBackend.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Target/CBackend/CBackend.cpp b/lib/Target/CBackend/CBackend.cpp
index ff95e90..0221174 100644
--- a/lib/Target/CBackend/CBackend.cpp
+++ b/lib/Target/CBackend/CBackend.cpp
@@ -1415,16 +1415,6 @@ static void generateCompilerSpecificCode(std::ostream& Out) {
// Output target-specific code that should be inserted into main.
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) || "
- << "defined(__x86_64__)\n"
- << "#undef CODE_FOR_MAIN\n"
- << "#define CODE_FOR_MAIN() \\\n"
- << " {short F;__asm__ (\"fnstcw %0\" : \"=m\" (*&F)); \\\n"
- << " F=(F&~0x300)|0x200;__asm__(\"fldcw %0\"::\"m\"(*&F));}\n"
- << "#endif\n#endif\n";
-
}
/// FindStaticTors - Given a static ctor/dtor list, unpack its contents into