Hi, is there a way to suppress specific undefined sanitizer warnings, in particular for unsigned integer overflow? Either with a suppression file (similar to TSan) or even better with some in source annotation? Thanks Roland -- ORNL/UT Center for Molecular Biophysics cmb.ornl.gov 865-241-1537, ORNL PO BOX 2008 MS6309 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140517/373ac943/attachment.html>
Sanitize=undefined shouldn't be warning about unsigned overflow. Is well defined. Ignoring signed overflow is probably a bad idea. Llvm actually optimizes on that. On May 17, 2014 1:44 AM, "Roland Schulz" <roland at utk.edu> wrote:> Hi, > > is there a way to suppress specific undefined sanitizer warnings, in > particular for unsigned integer overflow? Either with a suppression file > (similar to TSan) or even better with some in source annotation? > > Thanks > Roland > > -- > ORNL/UT Center for Molecular Biophysics cmb.ornl.gov > 865-241-1537, ORNL PO BOX 2008 MS6309 > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140517/8531ea57/attachment.html>
Hi, is there a way to suppress specific undefined sanitizer warnings, in> particular for unsigned integer overflow? Either with a suppression file > (similar to TSan) or even better with some in source annotation? >You can do so globally by selecting individual checks. Instead of -fsanitize=undefined, you can use -fsanitize=alignment,bool,bounds,enum,... (see the manual <http://clang.llvm.org/docs/UsersManual.html> for a list). I'm not aware of a possibility to do this with blacklist files or at finer granularity, though. Best, Jonas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140519/7f9d8768/attachment.html>