[all-commits] [llvm/llvm-project] 6d3b77: Set 'rounding_mode' to 'tonearest' with '#pragma S...

Zahira Ammarguellat via All-commits all-commits at lists.llvm.org
Wed Apr 12 03:45:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6d3b779792fbf9ec5cc119f1812655da01020b7a
      https://github.com/llvm/llvm-project/commit/6d3b779792fbf9ec5cc119f1812655da01020b7a
  Author: Zahira Ammarguellat <Zahira.Ammarguellat at intel.com>
  Date:   2023-04-12 (Wed, 12 Apr 2023)

  Changed paths:
    M clang/lib/Sema/SemaAttr.cpp
    M clang/test/CodeGen/pragma-fenv_access.c

  Log Message:
  -----------
  Set 'rounding_mode' to 'tonearest' with '#pragma STDC FENV_ACCESS OFF'.

In strict mode the 'roundin_mode' is set to 'dynamic'. Using this pragma to
get out of strict mode doesn't have any effect on the 'rounding_mode'.
See https://godbolt.org/z/zoGTf4j1G
This patch fixes that.

Differential Revision: https://reviews.llvm.org/D147733




More information about the All-commits mailing list