re PR libfortran/32456 (IO error message should show Unit/Filename)
authorJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 24 Jun 2007 22:56:21 +0000 (22:56 +0000)
committerJerry DeLisle <jvdelisle@gcc.gnu.org>
Sun, 24 Jun 2007 22:56:21 +0000 (22:56 +0000)
commit87557722c87bd2ef0905ff061e7b0f990626ec5e
tree02b1685a81931b1ab370a868e2b201861e6a069c
parenta49c5793d5df1c90f00aa0419b1f218bb4983fd9
re PR libfortran/32456 (IO error message should show Unit/Filename)

2007-06-24  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/32456
* runtime/error.c (show_locus): Update to emit the unit number
and file name involved with the error.  Use new function
filename_from_unit.
* libgfortran.h (filename_from_unit): Declare new function.
* io/unit.c (init_units): Set the unit file name for stdin, stdout,
and stderr for use later in error reporting.
(filename_from_unit): Add this new function.

From-SVN: r125989
libgfortran/ChangeLog
libgfortran/io/unit.c
libgfortran/libgfortran.h
libgfortran/runtime/error.c