mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-29 22:30:33 +00:00
__i386__, __i386, etc. are not defined for x86-64. Use __x86_64__.
llvm-svn: 28881
This commit is contained in:
parent
4ff5f3d852
commit
b0bb6dd981
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user