[all-commits] [llvm/llvm-project] 0bf525: [clang-cl] Add _M_FP_* #defines for floating point...

David Majnemer via All-commits all-commits at lists.llvm.org
Mon Aug 22 13:04:55 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0bf525bf902e3cd2072ddac82069f28e6d01fdc5
      https://github.com/llvm/llvm-project/commit/0bf525bf902e3cd2072ddac82069f28e6d01fdc5
  Author: David Majnemer <david.majnemer at gmail.com>
  Date:   2022-08-22 (Mon, 22 Aug 2022)

  Changed paths:
    M clang/lib/Basic/Targets/OSTargets.cpp

  Log Message:
  -----------
  [clang-cl] Add _M_FP_* #defines for floating point modes

This keeps clang compatible with MSVC defines for the FP environment.
These defines are used by the CRT and other libraries to interrogate
what to expect. Perhaps most importantly, they feed into the definition
of float_t and double_t which may result in ODR violations between MSVC
and clang.




More information about the All-commits mailing list