-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[flang] Add runtime and lowering implementation for extended intrinsic PUTENV #134412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
modified: flang-rt/include/flang-rt/runtime/environment.h modified: flang-rt/lib/runtime/environment.cpp
modified: flang-rt/include/flang-rt/runtime/environment.h modified: flang-rt/lib/runtime/environment.cpp
modified: flang-rt/lib/runtime/command.cpp modified: flang-rt/lib/runtime/environment.cpp modified: flang/include/flang/Optimizer/Builder/IntrinsicCall.h modified: flang/include/flang/Optimizer/Builder/Runtime/Command.h modified: flang/include/flang/Runtime/command.h modified: flang/lib/Evaluate/intrinsics.cpp modified: flang/lib/Optimizer/Builder/IntrinsicCall.cpp modified: flang/lib/Optimizer/Builder/Runtime/Command.cpp
modified: flang-rt/lib/runtime/command.cpp modified: flang-rt/lib/runtime/environment.cpp modified: flang/include/flang/Optimizer/Builder/IntrinsicCall.h modified: flang/lib/Optimizer/Builder/IntrinsicCall.cpp
modified: flang/docs/Intrinsics.md
new file: test/Lower/Intrinsics/putenv-func.f90 new file: test/Lower/Intrinsics/putenv-sub.f90 new file: test/Semantics/putenv.f90
✅ With the latest revision this PR passed the C/C++ code formatter. |
std::int32_t UnsetEnv( | ||
const char *name, std::size_t name_length, | ||
const Terminator &terminator); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SetEnv()
and UnsetEnv()
could be used by the rest flang-rt, if necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lowering LGTM
Fix formatting and ship it; thank you! |
Implement extended intrinsic PUTENV, both function and subroutine forms. Add PUTENV documentation to flang/docs/Intrinsics.md. Add functional and semantic unit tests.