You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Revert "Revert "[flang] Fix execute_command_line cmdstat is not set when error occurs" (#96365)" (#96774)
The fix broke llvm-test-suite, so it was reverted previously. With test
fixes added in llvm/llvm-test-suite#137, it
should now pass the tests
This reverts commit 4356356.
Copy file name to clipboardExpand all lines: flang/docs/Intrinsics.md
+10-9Lines changed: 10 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -893,16 +893,17 @@ used in constant expressions have currently no folding support at all.
893
893
##### `CMDSTAT`:
894
894
895
895
- Synchronous execution:
896
-
- -2: No error condition occurs, but `WAIT` is present with the value `false`, and the processor does not support asynchronous execution.
897
-
- -1: The processor does not support command line execution.
896
+
- -2: `ASYNC_NO_SUPPORT_ERR` - No error condition occurs, but `WAIT` is present with the value `false`, and the processor does not support asynchronous execution.
897
+
- -1: `NO_SUPPORT_ERR` - The processor does not support command line execution. (system returns -1 with errno `ENOENT`)
898
+
- 0: `CMD_EXECUTED` - Command executed with no error.
898
899
-\+ (positive value): An error condition occurs.
899
-
- 1: Fork Error (occurs only on POSIX-compatible systems).
900
-
- 2: Execution Error (command exits with status -1).
901
-
- 3: Invalid Command Error (determined by the exit code depending on the system).
902
-
- On Windows: exit code is 1.
903
-
- On POSIX-compatible systems: exit code is 127 or 126.
904
-
-4: Signal error (either stopped or killed by signal, occurs only on POSIX-compatible systems).
905
-
- 0: Otherwise.
900
+
- 1: `FORK_ERR` - Fork Error (occurs only on POSIX-compatible systems).
901
+
- 2: `EXECL_ERR` - Execution Error (system returns -1 with other errno).
0 commit comments