This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch, libfortran] Fix EXECUTE_COMMAND_LINE error return
- From: Janne Blomqvist <blomqvist dot janne at gmail dot com>
- To: Thomas Koenig <tkoenig at netcologne dot de>
- Cc: "fortran at gcc dot gnu dot org" <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 10 Oct 2017 08:52:53 +0300
- Subject: Re: [patch, libfortran] Fix EXECUTE_COMMAND_LINE error return
- Authentication-results: sourceware.org; auth=none
- References: <5ff7da8c-5fbb-19a7-d602-e3af3d2a12c2@netcologne.de>
On Tue, Oct 10, 2017 at 12:34 AM, Thomas Koenig <tkoenig@netcologne.de> wrote:
> 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.
Ok, thanks for the patch.
--
Janne Blomqvist