[PATCH] D88498: [FPEnv] Evaluate initializers in constant rounding mode

Serge Pavlov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Oct 14 04:53:04 PDT 2020


sepavloff updated this revision to Diff 298119.
sepavloff added a comment.

Updated patch

- Reverted check to the previous version, in which it applied to C++ file level variables also.
- Added workaround for constexpr functions. Now they are parsed with constant rounding mode, which allows to use them with option `-frounding-math`.

Setting call-site rounding mode is not implemented yet.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D88498

Files:
  clang/include/clang/Basic/LangOptions.h
  clang/include/clang/Sema/Sema.h
  clang/lib/Parse/ParseDecl.cpp
  clang/lib/Parse/ParseStmt.cpp
  clang/test/AST/const-fpfeatures-strict.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D88498.298119.patch
Type: text/x-patch
Size: 6025 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201014/1d04a6e3/attachment-0001.bin>


More information about the cfe-commits mailing list