[llvm-bugs] [Bug 24443] New: add -fsanitize-failure-function

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Aug 12 15:05:09 PDT 2015


https://llvm.org/bugs/show_bug.cgi?id=24443

            Bug ID: 24443
           Summary: add -fsanitize-failure-function
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: danalbert at google.com
                CC: chh at google.com, enh at google.com,
                    eugeni.stepanov at gmail.com, llvm-bugs at lists.llvm.org,
                    srhines at google.com
    Classification: Unclassified

Context: https://android-review.googlesource.com/#/c/166402/

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().

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150812/e390ad6a/attachment.html>


More information about the llvm-bugs mailing list