[llvm-bugs] [Bug 47190] New: Provide way to specify threshold for -Wmisexcept

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Aug 16 13:58:14 PDT 2020


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

            Bug ID: 47190
           Summary: Provide way to specify threshold for -Wmisexcept
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Driver
          Assignee: unassignedclangbugs at nondot.org
          Reporter: david.bolvansky at gmail.com
                CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
                    richard-llvm at metafoo.co.uk

Nowdays, -Wmisexpect warns too much uselessly, eg.:

../lib/decompress/zstd_decompress_block.c:874:17: warning: Potential
performance regression from use of __builtin_expect(): Annotation was correct
on 90.49% (1747623 / 1931364) of profiled executions. [-Wmisexpect]

It would be great to provide way to specify threshold to stop this warning.

For example, with -Wmisexpect=70 we would not warn for case above.

-- 
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/20200816/9d39e33a/attachment.html>


More information about the llvm-bugs mailing list