aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorPeter Klausler <35819229+klausler@users.noreply.github.com>2024-04-24 15:40:02 -0700
committerGitHub <noreply@github.com>2024-04-24 15:40:02 -0700
commitfa465b479b09b638e95c8b92ecf358c38910f8b0 (patch)
tree0244eb71f83f01a224d7bc2231f3fb4b60fec483 /clang/lib/Frontend/ASTUnit.cpp
parent6fd475fe2e7b15a6f6344430d02c454cf8928a35 (diff)
downloadllvm-fa465b479b09b638e95c8b92ecf358c38910f8b0.zip
llvm-fa465b479b09b638e95c8b92ecf358c38910f8b0.tar.gz
llvm-fa465b479b09b638e95c8b92ecf358c38910f8b0.tar.bz2
[flang][runtime] Improve confusing list-directed REAL(2) output (#89846)
List-directed output editing of REAL values will minimize the number of digits that are emitted by calculating a decimal value that, if read back in to a REAL variable of the same kind, would compare equal. This behavior is causing some confusion when applied to list-directed output of large REAL(2) values. Specifically, the value HUGE(0._2) (which is 0x7bff in hex) is exactly 65504, but is edited to 65500. by list-directed output, which selects F0 editing, minimizes the value to 6.55e4, and then formats it without the exponent. This small patch changes that behavior for cases where the output of digit-minimized F editing has no digits after the decimal point and zeroes need to be emitted before it due to the decimal exponent. Digit minimization is disabled in this case and the exact digits are emitted instead.
Diffstat (limited to 'clang/lib/Frontend/ASTUnit.cpp')
0 files changed, 0 insertions, 0 deletions