diff options
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); } } |
