Issue |
128239
|
Summary |
clang should warn if fp exception functions are called without appropriate flags/pragmas
|
Labels |
clang:diagnostics
|
Assignees |
|
Reporter |
efriedma-quic
|
We regularly get users complaining that fetestexcept()/feenableexcept()/etc. don't work properly. We document that you need to use appropriate flags or `#pragma STDC FENV_ACCESS`. But it's hard to find if you don't know what you're looking for.
clang should be able to detect calls to those functions and print a warning. (This won't catch 100% of cases, but it's low-hanging fruit.)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs