[patch, libfortran] Fix EXECUTE_COMMAND_LINE error return

Thomas Koenig tkoenig@netcologne.de
Mon Oct 9 21:34:00 GMT 2017


Hello world,

currently, EXECUTE_COMMAND_LINE aborts the program if the called program
is not found, if cmdstat is present, but cmdmsg isn't. This is a 6/7/8
regression.

This patch fixes the issue by simply removing the erronous call to
runtime_error.

Regression-tested.  OK for all affected branches?

Regards

	Thomas

2017-10-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR libfortran/82233
         * intrinsics/execute_command_line.c (execute_command_line):
         No call to runtime_error if cmdstat is present.

2017-10-10  Thomas Koenig  <tkoenig@gcc.gnu.org>

         PR libfortran/82233
         * gfortran.dg/execute_command_line_3.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p1.diff
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171009/24a54c22/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: execute_command_line_3.f90
Type: text/x-fortran
Size: 1010 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20171009/24a54c22/attachment-0001.bin>


More information about the Fortran mailing list