aboutsummaryrefslogtreecommitdiff
path: root/gcc/selftest.h
diff options
context:
space:
mode:
authorTobias Burnus <tobias@codesourcery.com>2023-01-18 23:31:41 +0100
committerTobias Burnus <tobias@codesourcery.com>2023-01-18 23:31:41 +0100
commit8e2c6e7b426b6c9c13076208b2e176d4aa1432f1 (patch)
tree895eb89bcced2c39e53532507b1ed4a1302a9a27 /gcc/selftest.h
parent0f85ae6591c92b161693073c0931c7ca1d5d0c5a (diff)
downloadgcc-8e2c6e7b426b6c9c13076208b2e176d4aa1432f1.zip
gcc-8e2c6e7b426b6c9c13076208b2e176d4aa1432f1.tar.gz
gcc-8e2c6e7b426b6c9c13076208b2e176d4aa1432f1.tar.bz2
libfortran: Fix execute_command_line for Windows
On Windows, 'system' is called - that fails with -1 if the command interpreter could not be started; on POSIX systems, if the child process could not be started by the shell, exit(127)/_exit(127) is called/returned. On Windows, cmd.exe (and also the PowerShell) return errorlevel 9009. libgfortran/ChangeLog: * intrinsics/execute_command_line.c (execute_command_line): On Windows, regard system()'s return value of 9009 as EXEC_INVALIDCOMMAND.
Diffstat (limited to 'gcc/selftest.h')
0 files changed, 0 insertions, 0 deletions