mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Apply feedback from previous patch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41774 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user