[PATCH] D12181: [sanitizer] Add -fsanitize-trap-function.

Richard Smith via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 20 15:58:24 PDT 2015


rsmith added a comment.

In http://reviews.llvm.org/D12181#229358, @rsmith wrote:

> Can you please give a brief description of the motivation for this change? When would it be appropriate to use this rather than `-ftrap-function`?


I'd still like an answer to this. It's not clear to me what the purpose of this is, and why you'd want a custom runtime hook for sanitizer traps but not other traps. The only time we emit a trap using `-ftrap-function` where there is no corresponding sanitizer is for `__builtin_trap()`; is the intention that you still want a normal trap for that builtin?


http://reviews.llvm.org/D12181





More information about the cfe-commits mailing list