Commit c26cc9a6 by Jerry DeLisle

re PR libfortran/36094 (Runtime error show_locus not working correctly)

2008-05-01  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR libfortran/36094
	* runtime/error.c (show_locus): Provide modified error message when
	filename has not yet been associated with a unit number.
	* io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.

From-SVN: r134876
parent 7cbb32e7
2008-05-01 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/36094
* runtime/error.c (show_locus): Provide modified error message when
filename has not yet been associated with a unit number.
* io/open.c (encoding_opt[]): Comment out "utf-8" option and add TODO.
2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 2008-04-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
* intrinsics/selected_char_kind.c: New file. * intrinsics/selected_char_kind.c: New file.
......
...@@ -107,7 +107,7 @@ static const st_option decimal_opt[] = ...@@ -107,7 +107,7 @@ static const st_option decimal_opt[] =
static const st_option encoding_opt[] = static const st_option encoding_opt[] =
{ {
{ "utf-8", ENCODING_UTF8}, /* TODO { "utf-8", ENCODING_UTF8}, */
{ "default", ENCODING_DEFAULT}, { "default", ENCODING_DEFAULT},
{ NULL, 0} { NULL, 0}
}; };
......
...@@ -202,6 +202,11 @@ show_locus (st_parameter_common *cmp) ...@@ -202,6 +202,11 @@ show_locus (st_parameter_common *cmp)
(int) cmp->line, cmp->filename, cmp->unit, filename); (int) cmp->line, cmp->filename, cmp->unit, filename);
free_mem (filename); free_mem (filename);
} }
else
{
st_printf ("At line %d of file %s (unit = %d)\n",
(int) cmp->line, cmp->filename, cmp->unit);
}
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment