[PATCH] Set the default ISA for OpenBSD/mips64 to MIPS III
Brad Smith
brad at comstyle.com
Fri Jan 2 19:28:39 PST 2015
Set the default ISA used for OpenBSD/mips64 to MIPS III.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
Index: lib/Driver/Tools.cpp
===================================================================
--- lib/Driver/Tools.cpp (revision 225109)
+++ lib/Driver/Tools.cpp (working copy)
@@ -977,6 +977,10 @@
DefMips64CPU = "mips64r6";
}
+ // MIPS3 is the default for mips64*-unknown-openbsd.
+ if (Triple.getOS() == llvm::Triple::OpenBSD)
+ DefMips64CPU = "mips3";
+
if (Arg *A = Args.getLastArg(options::OPT_march_EQ,
options::OPT_mcpu_EQ))
CPUName = A->getValue();
More information about the cfe-commits
mailing list