[flang][runtime] Catch decimal integer input overflow
authorPeter Klausler <pklausler@nvidia.com>
Fri, 20 May 2022 23:16:09 +0000 (16:16 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Tue, 24 May 2022 21:07:35 +0000 (14:07 -0700)
commitcdd54cbdd937f7473e0ba065ecafc70742f3f1fd
treed1606e0342e6c20aff2b883b5f4e53abb00cd61d
parent0a79113b9e064e50f660ebe6e257bf69ba028026
[flang][runtime] Catch decimal integer input overflow

B/O/Z input overflow is already caught, and real input overflow
is signalled as an IEEE arithmetic exception, but regular decimal
integer overflow was silent.

Differential Revision: https://reviews.llvm.org/D126155
flang/include/flang/Runtime/iostat.h
flang/runtime/edit-input.cpp
flang/runtime/iostat.cpp