This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] Add caf_runtime_error to libgfortran/caf/single.c
- From: Daniel Carrera <dcarrera at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches at gcc dot gnu dot org
- Date: Thu, 14 Jul 2011 12:14:07 +0200
- Subject: Re: [Patch, Fortran] Add caf_runtime_error to libgfortran/caf/single.c
- References: <4E1EBB75.4070205@gmail.com> <4E1EBF23.60307@net-b.de>
On 07/14/2011 12:04 PM, Tobias Burnus wrote:
I was wondering - based on the discussion - whether one should remove
the "int error" argument from caf_runtime_error and simply use "exit
(EXIT_FAILURE)" for all exit() calls in mpi.c/single.c, cf.
http://gcc.gnu.org/ml/fortran/2011-07/msg00140.html
But one can also do so as follow up patch.
You are the boss. The message I got from Nick's post is that it doesn't
matter much and that you could even get surprising behaviour because
EXIT_SUCCESS is not required to be zero and EXIT_FAILURE is not required
to be non-zero. But maybe I missed the point. So it's up to you.
Cheers,
Daniel.
--
I'm not overweight, I'm undertall.