<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Option -fno-math-builtin reported by -help, but not supported by clang driver"
href="https://llvm.org/bugs/show_bug.cgi?id=26317">26317</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Option -fno-math-builtin reported by -help, but not supported by clang driver
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Driver
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>jeremy.bennett@embecosm.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15719" name="attach_15719" title="Example program from source tree attached for convenience">attachment 15719</a> <a href="attachment.cgi?id=15719&action=edit" title="Example program from source tree attached for convenience">[details]</a></span>
Example program from source tree attached for convenience
clang --help reports -fno-math-builtin as one of its options:
-fno-math-builtin Disable implicit builtin knowledge of math functions
However the option is not. Taking the clang test test/CodeGen/nomathbuiltin.c
(attached for convenience), we run:
$ clang -fno-math-builtin -c nomathbuiltin.c
clang-3.9: warning: argument unused during compilation: '-fno-math-builtin'
This appears to be an option for CC1 only:
$ clang -cc1 -fno-math-builtin nomathbuiltin.c
Works without error. The option should either be removed from the list reported
by clang --help, or be promoted to be accepted by the top level clang driver
(which would seem more consistent).
Issue identified with commit 7506929a38783ed7038f893c8f1f59f6a4ccfd20,
git-svn-id: <a href="https://llvm.org/svn/llvm-project/cfe/trunk@258290">https://llvm.org/svn/llvm-project/cfe/trunk@258290</a>
91177308-0d34-0410-b5e6-96231b3b80d8</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>