llvm-toolchain/debian/patches/clang-default-to-i686-on-32bit-x86-targets.patch
Sylvestre Ledru 414183fe2a * d/p/clang-default-to-i686-on-32bit-x86-targets.patch:
Set i386 default target CPU to be i686 (same as gcc)
  (Closes: #812803)
* d/p/clang-fix-cmpxchg8-detection-on-i386.patch:
  libcxx atomic tests for old i386 fail with wrong Atomic inline width.
  Needed for libc++
  (See https://llvm.org/bugs/show_bug.cgi?id=19355)
* d/p lldb-addversion-suffix-to-llvm-server-exec.patch:
  Fix the lldb-server call in some cases
2016-11-05 12:17:03 +00:00

16 lines
535 B
Diff

Set i386 default target CPU to be i686 (same as gcc)
Closes: #812803
Index: llvm-toolchain-3.9-3.9/clang/lib/Driver/Tools.cpp
===================================================================
--- llvm-toolchain-3.9-3.9.orig/clang/lib/Driver/Tools.cpp
+++ llvm-toolchain-3.9-3.9/clang/lib/Driver/Tools.cpp
@@ -1898,6 +1898,7 @@ static const char *getX86TargetCPU(const
case llvm::Triple::Haiku:
return "i586";
case llvm::Triple::Bitrig:
+ case llvm::Triple::Linux:
return "i686";
default:
// Fallback to p4.