[gfortran, patch] PR libfortran/19155

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[gfortran, patch] PR libfortran/19155

FX Coudert
Last corner case of PR libfortran/19155, which still failed on AIX. We
relied on strtod returning either 0 or ERANGE, but it can return
EINVAL too. In that case (it happens when we it is passed an empty
string), we should proceed and not issue an error.

This is a very simple patch, regtested on i686-linux. OK for mainline
and 4.0? (I must admit I was tempted to commit this one as obvious)

pr19155.diff (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [gfortran, patch] PR libfortran/19155

Steve Kargl
On Fri, Jun 17, 2005 at 05:39:03PM +0200, Fran?ois-Xavier Coudert wrote:
> Last corner case of PR libfortran/19155, which still failed on AIX. We
> relied on strtod returning either 0 or ERANGE, but it can return
> EINVAL too. In that case (it happens when we it is passed an empty
> string), we should proceed and not issue an error.
>
> This is a very simple patch, regtested on i686-linux. OK for mainline
> and 4.0? (I must admit I was tempted to commit this one as obvious)

OK.

--
Steve