[llvm] [Flang][runtime] Fix RENAME intrinsic, remove trailing blanks (PR #159123)
Michael Klemm via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 17 01:23:30 PDT 2025
================
@@ -65,8 +65,20 @@ void RTDEF(Rename)(const Descriptor &path1, const Descriptor &path2,
char *pathDst{EnsureNullTerminated(
path2.OffsetElement(), path2.ElementBytes(), terminator)};
+ // Trim trailing blanks
----------------
mjklemm wrote:
I do agree with that sentiment, but this implements the semantics of GFortran with this PR: https://gcc.gnu.org/onlinedocs/gfortran/RENAME.html.
https://github.com/llvm/llvm-project/pull/159123
More information about the llvm-commits
mailing list