[cfe-dev] Warning for partially implemented options/pragmas?

Kevin Neal via cfe-dev cfe-dev at lists.llvm.org
Thu Apr 16 13:01:31 PDT 2020

Bug 45329 "segfault with frounding-math" "https://bugs.llvm.org/show_bug.cgi?id=45329" highlights that we are silently allowing people to use options that are unimplemented or only partially implemented.

If use the -frounding-math option on a compile I expect it to work. I do not expect it to trigger an ICE, a crash, or much worse silently not work and produce wrong results.

I propose a warning be printed so that we can avoid issues like bug 45329 in the future. And it needs to be per-target since some targets are closer to supporting this feature than others.

Kevin P. Neal
SAS/C and SAS/C++ Compiler
Compute Services
SAS Institute, Inc.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200416/b6a346a5/attachment.html>

More information about the cfe-dev mailing list