[all-commits] [llvm/llvm-project] 6e8767: [flang] Adjust _FORTRAN_RUNTIME_IEEE_FENV_T_EXTENT...
Rainer Orth via All-commits
all-commits at lists.llvm.org
Thu Dec 14 13:03:59 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 6e87672150986d931e770ec829699a7930ebeeb2
https://github.com/llvm/llvm-project/commit/6e87672150986d931e770ec829699a7930ebeeb2
Author: Rainer Orth <ro at gcc.gnu.org>
Date: 2023-12-14 (Thu, 14 Dec 2023)
Changed paths:
M flang/runtime/exceptions.cpp
Log Message:
-----------
[flang] Adjust _FORTRAN_RUNTIME_IEEE_FENV_T_EXTENT for Solaris (#74590)
Even after 13e2200fa426faffb62bdaf8b2f1f5699eee1511 (Solaris lacks
`femode_t`, too), the Solaris `flang` build is still broken:
```
/vol/llvm/src/llvm-project/local/flang/runtime/exceptions.cpp:87:5: error: static assertion failed due to requirement 'sizeof(fenv_t) <= sizeof(int) * 8': increase ieee_status_type size
87 | sizeof(fenv_t) <= sizeof(int) * _FORTRAN_RUNTIME_IEEE_FENV_T_EXTENT, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/vol/llvm/src/llvm-project/local/flang/runtime/exceptions.cpp:87:20: note: expression evaluates to '200 <= 32'
87 | sizeof(fenv_t) <= sizeof(int) * _FORTRAN_RUNTIME_IEEE_FENV_T_EXTENT, | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
This patch fixes this by removing the assertion.
Tested on `amd64-pc-solaris2.11` and `sparcv9-sun-solaris2.11`.
More information about the All-commits
mailing list