On Sat, May 28, 2011 at 11:18:13AM +0300, Janne Blomqvist wrote:
>
> Regtested on x86_64-unknown-linux-gnu, Ok for trunk?
>
> 2011-05-28 Janne Blomqvist
>
> PR libfortran/19155
> * io/read.c (convert_real): Check for invalid input by comparing
> endptr instead of EINVAL.
>
Hi,
Steve Ellcey reported that gfortran.dg/pr19155.f fails on HP-UX 11.31
because on that target strtod sets errno to EINVAL for invalid input,
whereas many other implementations such as glibc does not.
The problem is that C99 says nothing about setting errno to EINVAL for
invalid input, and POSI