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:
Fanael Linithien 2018-11-29 03:23:11 +01:00
parent 3deb991f17
commit 62fe8d7620
2 changed files with 14 additions and 0 deletions

View 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";
}
}

View File

@ -54,6 +54,7 @@ remove-test-freezing.diff
impl-path-hurd.diff impl-path-hurd.diff
powerpcspe-add-missing-include-path.diff powerpcspe-add-missing-include-path.diff
x32-fix-driver-search-paths.diff x32-fix-driver-search-paths.diff
clang-baseline-fix-i386.patch
# OpenMP # OpenMP