LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 47190 - Provide way to specify threshold for -Wmisexcept
Summary: Provide way to specify threshold for -Wmisexcept
Status: NEW
Alias: None
Product: clang
Classification: Unclassified
Component: Driver (show other bugs)
Version: trunk
Hardware: PC Linux
: P enhancement
Assignee: Unassigned Clang Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-16 13:58 PDT by David Bolvansky
Modified: 2020-08-16 13:58 PDT (History)
3 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Bolvansky 2020-08-16 13:58:14 PDT
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.