<html>
<head>
<base href="http://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:sbruno@freebsd.org" title="Sean Bruno <sbruno@freebsd.org>"> <span class="fn">Sean Bruno</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [MIPS] Error: unknown pseudo-op: `.nan'"
href="http://bugs.llvm.org/show_bug.cgi?id=32182">bug 32182</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [MIPS] Error: unknown pseudo-op: `.nan'"
href="http://bugs.llvm.org/show_bug.cgi?id=32182#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [MIPS] Error: unknown pseudo-op: `.nan'"
href="http://bugs.llvm.org/show_bug.cgi?id=32182">bug 32182</a>
from <span class="vcard"><a class="email" href="mailto:sbruno@freebsd.org" title="Sean Bruno <sbruno@freebsd.org>"> <span class="fn">Sean Bruno</span></a>
</span></b>
<pre>Ok, I found the knob to turn. Thanks!
Index: lib/Driver/ToolChains/FreeBSD.cpp
===================================================================
--- lib/Driver/ToolChains/FreeBSD.cpp (revision 297391)
+++ lib/Driver/ToolChains/FreeBSD.cpp (working copy)
@@ -316,7 +316,8 @@
// When targeting 32-bit platforms, look for '/usr/lib32/crt1.o' and fall
// back to '/usr/lib' if it doesn't exist.
if ((Triple.getArch() == llvm::Triple::x86 ||
- Triple.getArch() == llvm::Triple::ppc) &&
+ Triple.getArch() == llvm::Triple::ppc ||
+ Triple.getArch() == llvm::Triple::mips) &&
D.getVFS().exists(getDriver().SysRoot + "/usr/lib32/crt1.o"))
getFilePaths().push_back(getDriver().SysRoot + "/usr/lib32");
else
Index: lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- lib/Driver/ToolChains/Gnu.cpp (revision 297391)
+++ lib/Driver/ToolChains/Gnu.cpp (working copy)
@@ -2290,11 +2290,13 @@
return true;
case llvm::Triple::mips64:
case llvm::Triple::mips64el:
- // Enabled for Debian mips64/mips64el only. Other targets are unable to
+ // Enabled for Debian/FreeBSD mips64/mips64el only. Other targets are
unable to
// distinguish N32 from N64.
- if (getTriple().getEnvironment() == llvm::Triple::GNUABI64)
+ if (getTriple().getEnvironment() == llvm::Triple::GNUABI64 ||
+ getTriple().getOS() == llvm::Triple::FreeBSD)
return true;
- return false;
+ else
+ return false;
default:
return false;
}</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>