<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 --- - add -fsanitize-failure-function"
href="https://llvm.org/bugs/show_bug.cgi?id=24443">24443</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>add -fsanitize-failure-function
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</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>-New Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>danalbert@google.com
</td>
</tr>
<tr>
<th>CC</th>
<td>chh@google.com, enh@google.com, eugeni.stepanov@gmail.com, llvm-bugs@lists.llvm.org, srhines@google.com
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Context: <a href="https://android-review.googlesource.com/#/c/166402/">https://android-review.googlesource.com/#/c/166402/</a>
We want to have better error messages for `LOCAL_SANITIZE := integer` (and
friends) without harming performance for the non-failing case. The error
messages from the ubsan runtime mess with optimization, so that won't do.
-ftrap-function affects all __builtin_trap() invocations, so that won't do
either.
-fsanitize-failure-function would alter ubsan code gen to emit calls to the
specified function rather than __builtin_trap().</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>