[libgFortran, Patch] PR 34427 - Fix namelist read and thus SPEC 481.wrf

Tobias Burnus burnus@net-b.de
Thu Dec 13 08:52:00 GMT 2007


The following patch fixes reading namelists, which was failing due to my
Inf/NaN patch. Now the following is correctly read:

&nml real_array = 1.0, nan, infinity, infinity = 5 /

Before, libgfortran choked at "=" - or in the SPEC test case on "isfflx;
here, a bad real value was detected, but the characters were not
properly pushed back and thus "isfflx = " was not matched.


Jerry approved this patch in the PR:

> If your patch as-is passes all regression tests and spec its OK to commit.  Its
> very close and we can follow with an update.  Its just a time issue.

Can someone, e.g. H.J. or Richard, check whether the patch indeed fixes
SPEC's 481.wrf?


Unless someone comes with last-minute rejections, I intent to commit
this patch in a few hours.

The patch was bootstrapped and regression tested (gfortran and libgomp
with -m32 and -m64) on x86-64-linux. It also does not fail for some
other programs, which however, do not seem to use namelists.

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inf-fixes.diff
Type: application/unknown
Size: 4639 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20071213/7b848f51/attachment.bin>


More information about the Gcc-patches mailing list