The default CPU on FreeBSD for i386 should be i486, not pentium4.

Patch by Dimitry Andric!

llvm-svn: 126763
This commit is contained in:
Roman Divacky 2011-03-01 18:11:37 +00:00
parent 63657fe995
commit 432f10df68
1 changed files with 5 additions and 0 deletions

View File

@ -726,6 +726,11 @@ void Clang::AddX86TargetArgs(const ArgList &Args,
CPUName = "x86-64"; CPUName = "x86-64";
else if (getToolChain().getArchName() == "i386") else if (getToolChain().getArchName() == "i386")
CPUName = "i486"; CPUName = "i486";
} else if (getToolChain().getOS().startswith("freebsd")) {
if (getToolChain().getArchName() == "x86_64")
CPUName = "x86-64";
else if (getToolChain().getArchName() == "i386")
CPUName = "i486";
} else if (getToolChain().getOS().startswith("netbsd")) { } else if (getToolChain().getOS().startswith("netbsd")) {
if (getToolChain().getArchName() == "x86_64") if (getToolChain().getArchName() == "x86_64")
CPUName = "x86-64"; CPUName = "x86-64";