[PATCH] D126364: Fix interaction of pragma FENV_ACCESS with other pragmas

Eli Friedman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 25 11:22:14 PDT 2022


efriedma added a comment.

Could you lay out the expected interaction between "STDC FENV_ACCESS", "clang fp exceptions", "float_control", and "fenv_access"?  If there's some way to map everything to "#pragma clang fp", please lay that out; if that isn't possible, please explain why.

As far as I can tell, "STDC FENV_ACCESS" and "STDC FENV_ROUND" don't directly interact.  FENV_ROUND just overrides the rounding mode for specific floating-point operations; it doesn't impact whether environment access is allowed.  So the call to setRoundingModeOverride seems dubious.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126364



More information about the cfe-commits mailing list