Reland "[flang] GET_COMMAND_ARGUMENT runtime implementation"
authorDiana Picus <diana.picus@linaro.org>
Tue, 28 Sep 2021 12:17:34 +0000 (12:17 +0000)
committerDiana Picus <diana.picus@linaro.org>
Tue, 28 Sep 2021 12:34:07 +0000 (12:34 +0000)
commit37089bae29a92b97e16be4795553b68a6b04ff91
tree7846039b9f5e148c0c5f2d8d22d6cff1c1c47c2d
parenta91145f75af4f00c37d767a9ee408c62655ceb44
Reland "[flang] GET_COMMAND_ARGUMENT runtime implementation"

Recommit https://reviews.llvm.org/D109813 and
https://reviews.llvm.org/D109814.

This implements the second and final entry point for GET_COMMAND_ARGUMENT,
handling the VALUE, STATUS and ERRMSG parameters.

It has a small fix in that we're now using memcpy instead of strncpy
(which was a bad idea to begin with, since we're not actually interested
in a string copy).
flang/include/flang/Runtime/magic-numbers.h
flang/runtime/command.cpp
flang/runtime/stat.cpp
flang/runtime/stat.h
flang/test/Runtime/no-cpp-dep.c
flang/unittests/Runtime/CommandTest.cpp