[PATCH] D65997: Add options rounding and exceptions to pragma fp

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 9 00:29:18 PDT 2019


sepavloff created this revision.
sepavloff added reviewers: anemet, aaron.ballman, kpn, hfinkel, rsmith, rjmccall.
Herald added a project: clang.

Pragma 'clang fp' is extended to support two new options, 'rounding' and
'exceptions'. They allow to specifying floating point environment more
precisely than '#pragma STDC FENV_ACCESS' does. Syntax of the pragma is
described in LanguageExtensions.rst.
The primary goal of this change is to facilitate development of support
for floating point operations in non-default or dynamic environment.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D65997

Files:
  clang/docs/LanguageExtensions.rst
  clang/include/clang/Basic/DiagnosticParseKinds.td
  clang/lib/Parse/ParsePragma.cpp
  clang/test/Parser/pragma-fp.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65997.214321.patch
Type: text/x-patch
Size: 12611 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190809/859a818d/attachment-0001.bin>


More information about the cfe-commits mailing list