mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-24 16:52:42 +00:00
Fix Clang baseline violation
Upstream Clang on i386 defaults to -march=pentium4, which violates the current i386 baseline, so change it to default to the current baseline.
This commit is contained in:
parent
3deb991f17
commit
62fe8d7620
13
debian/patches/clang-baseline-fix-i386.patch
vendored
Normal file
13
debian/patches/clang-baseline-fix-i386.patch
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
--- a/clang/lib/Driver/ToolChains/Arch/X86.cpp
|
||||
+++ b/clang/lib/Driver/ToolChains/Arch/X86.cpp
|
||||
@@ -105,8 +105,8 @@ const char *x86::getX86TargetCPU(const ArgList &Args,
|
||||
case llvm::Triple::Haiku:
|
||||
return "i586";
|
||||
default:
|
||||
- // Fallback to p4.
|
||||
- return "pentium4";
|
||||
+ // Fallback to i686.
|
||||
+ return "i686";
|
||||
}
|
||||
}
|
||||
|
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -54,6 +54,7 @@ remove-test-freezing.diff
|
||||
impl-path-hurd.diff
|
||||
powerpcspe-add-missing-include-path.diff
|
||||
x32-fix-driver-search-paths.diff
|
||||
clang-baseline-fix-i386.patch
|
||||
|
||||
# OpenMP
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user