re PR libfortran/25594 (LAPACK regression in schkbl.f)

2005-12-31  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libgfortran/25594
	PR libgfortran/25419
	* io/list_read.c (list_formatted_read_scalar): Test for comma to return
	a null value (default). Revert patch of 25419 on 2005-12-28.

From-SVN: r109211
This commit is contained in:
Jerry DeLisle 2006-01-01 02:45:22 +00:00
parent cfcbf84624
commit a7c633eaef
2 changed files with 17 additions and 1 deletions

View file

@ -1,3 +1,10 @@
2005-12-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25594
PR libgfortran/25419
* io/list_read.c (list_formatted_read_scalar): Test for comma to return
a null value (default). Revert patch of 25419 on 2005-12-28.
2005-12-28 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libgfortran/25139

View file

@ -1353,7 +1353,16 @@ list_formatted_read_scalar (st_parameter_dt *dtp, bt type, void *p, int kind,
{ /* Found a null value. */
eat_separator (dtp);
dtp->u.p.repeat_count = 0;
goto cleanup;
/* eat_separator sets this flag if the separator was a comma */
if (dtp->u.p.comma_flag)
goto cleanup;
/* eat_separator sets this flag if the separator was a \n or \r */
if (dtp->u.p.at_eol)
finish_separator (dtp);
else
goto cleanup;
}
}