This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Handle endian-swapped record headers & footers on input
ClosedPublic

Authored by klausler on Aug 18 2022, 11:31 AM.

Details

Summary

The runtime I/O library correctly handles endianness conversions on payload
data I/O and on the output of sequential record headers and footers, but
does not swap endianness when required when reading sequential record headers
and footers back in for READ and BACKSPACE statements. Mea culpa. Fix.

Fixes https://github.com/llvm/llvm-project/issues/57126

Diff Detail

Event Timeline

klausler created this revision.Aug 18 2022, 11:31 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 18 2022, 11:31 AM
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Aug 18 2022, 11:31 AM

LGTM, thank you!

vdonaldson accepted this revision.Aug 18 2022, 11:56 AM
This revision is now accepted and ready to land.Aug 18 2022, 11:56 AM