diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2024-08-21 17:47:17 -0700 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2024-08-21 17:47:17 -0700 |
| commit | 54081b7e4a315cdbe1017eeded9e2cf861ecc0b4 (patch) | |
| tree | d7a4ed030ea94cd06ff903d648901fbe339a55bd /flang/runtime/stop.cpp | |
| parent | ee572ed4ac2d9e2ff37217d6bedc20f530a5d3af (diff) | |
| parent | 64e464349bfca0d90e07f6db2f710d4d53cdacd4 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/vitalybuka/spr/main.asandarwin-simplify-test
Created using spr 1.3.4
[skip ci]
Diffstat (limited to 'flang/runtime/stop.cpp')
| -rw-r--r-- | flang/runtime/stop.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/flang/runtime/stop.cpp b/flang/runtime/stop.cpp index 98324da1d91e..cfb36b408402 100644 --- a/flang/runtime/stop.cpp +++ b/flang/runtime/stop.cpp @@ -26,21 +26,31 @@ static void DescribeIEEESignaledExceptions() { #endif if (excepts) { std::fputs("IEEE arithmetic exceptions signaled:", stderr); +#ifdef FE_DIVBYZERO if (excepts & FE_DIVBYZERO) { std::fputs(" DIVBYZERO", stderr); } +#endif +#ifdef FE_INEXACT if (excepts & FE_INEXACT) { std::fputs(" INEXACT", stderr); } +#endif +#ifdef FE_INVALID if (excepts & FE_INVALID) { std::fputs(" INVALID", stderr); } +#endif +#ifdef FE_OVERFLOW if (excepts & FE_OVERFLOW) { std::fputs(" OVERFLOW", stderr); } +#endif +#ifdef FE_UNDERFLOW if (excepts & FE_UNDERFLOW) { std::fputs(" UNDERFLOW", stderr); } +#endif std::fputc('\n', stderr); } } |
