forked from OSchip/llvm-project
[Driver][Mips] Remove "fp64" directories from the mips-mti-linux-gnu toolchain
directories description. Released version of this toolchain has not separate libraries for -mfp64 command line option. llvm-svn: 213937
This commit is contained in:
parent
da490d2ec1
commit
5116b4a9f9
|
@ -1628,11 +1628,6 @@ static bool isMicroMips(const ArgList &Args) {
|
||||||
return A && A->getOption().matches(options::OPT_mmicromips);
|
return A && A->getOption().matches(options::OPT_mmicromips);
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool isMipsFP64(const ArgList &Args) {
|
|
||||||
Arg *A = Args.getLastArg(options::OPT_mfp64, options::OPT_mfp32);
|
|
||||||
return A && A->getOption().matches(options::OPT_mfp64);
|
|
||||||
}
|
|
||||||
|
|
||||||
struct DetectedMultilibs {
|
struct DetectedMultilibs {
|
||||||
/// The set of multilibs that the detected installation supports.
|
/// The set of multilibs that the detected installation supports.
|
||||||
MultilibSet Multilibs;
|
MultilibSet Multilibs;
|
||||||
|
@ -1732,12 +1727,6 @@ static bool findMIPSMultilibs(const llvm::Triple &TargetTriple, StringRef Path,
|
||||||
.includeSuffix("/sof")
|
.includeSuffix("/sof")
|
||||||
.flag("+msoft-float");
|
.flag("+msoft-float");
|
||||||
|
|
||||||
Multilib FP64 = Multilib()
|
|
||||||
.gccSuffix("/fp64")
|
|
||||||
.osSuffix("/fp64")
|
|
||||||
.includeSuffix("/fp64")
|
|
||||||
.flag("+mfp64");
|
|
||||||
|
|
||||||
Multilib Nan2008 = Multilib()
|
Multilib Nan2008 = Multilib()
|
||||||
.gccSuffix("/nan2008")
|
.gccSuffix("/nan2008")
|
||||||
.osSuffix("/nan2008")
|
.osSuffix("/nan2008")
|
||||||
|
@ -1758,10 +1747,8 @@ static bool findMIPSMultilibs(const llvm::Triple &TargetTriple, StringRef Path,
|
||||||
.FilterOut("/mips16/64")
|
.FilterOut("/mips16/64")
|
||||||
.Either(BigEndian, LittleEndian)
|
.Either(BigEndian, LittleEndian)
|
||||||
.Maybe(SoftFloat)
|
.Maybe(SoftFloat)
|
||||||
.Maybe(FP64)
|
|
||||||
.Maybe(Nan2008)
|
.Maybe(Nan2008)
|
||||||
.FilterOut(".*sof/nan2008")
|
.FilterOut(".*sof/nan2008")
|
||||||
.FilterOut(".*sof/fp64")
|
|
||||||
.FilterOut(NonExistent);
|
.FilterOut(NonExistent);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1892,8 +1879,6 @@ static bool findMIPSMultilibs(const llvm::Triple &TargetTriple, StringRef Path,
|
||||||
addMultilibFlag(CPUName == "mips64r2" || CPUName == "octeon",
|
addMultilibFlag(CPUName == "mips64r2" || CPUName == "octeon",
|
||||||
"march=mips64r2", Flags);
|
"march=mips64r2", Flags);
|
||||||
addMultilibFlag(isMicroMips(Args), "mmicromips", Flags);
|
addMultilibFlag(isMicroMips(Args), "mmicromips", Flags);
|
||||||
addMultilibFlag(isMipsFP64(Args), "mfp64", Flags);
|
|
||||||
addMultilibFlag(!isMipsFP64(Args), "mfp32", Flags);
|
|
||||||
addMultilibFlag(tools::mips::isNaN2008(Args, TargetTriple), "mnan=2008",
|
addMultilibFlag(tools::mips::isNaN2008(Args, TargetTriple), "mnan=2008",
|
||||||
Flags);
|
Flags);
|
||||||
addMultilibFlag(ABIName == "n32", "mabi=n32", Flags);
|
addMultilibFlag(ABIName == "n32", "mabi=n32", Flags);
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue