[PATCH] D89849: Add option 'exceptions' to pragma clang fp

Melanie Blower via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 21 05:54:22 PDT 2020


mibintc added inline comments.


================
Comment at: clang/docs/LanguageExtensions.rst:3223
+    // Preserve floating point exceptions
+    #pragma fp exceptions(strict)
+    z = x + y;
----------------
do you mean pragma clang fp ... 


================
Comment at: clang/lib/Parse/ParsePragma.cpp:3041
+  if (AnnotValue->ExceptionsValue)
+    Actions.setExceptionMode(Tok.getLocation(), *AnnotValue->ExceptionsValue);
   ConsumeAnnotationToken();
----------------
Did you consider adding ActOnPragmaFPExceptions? 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D89849/new/

https://reviews.llvm.org/D89849



More information about the cfe-commits mailing list