summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/error.c')
-rw-r--r--gcc/fortran/error.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c
index d028d5a2b3a..3c0d5c891ee 100644
--- a/gcc/fortran/error.c
+++ b/gcc/fortran/error.c
@@ -127,7 +127,13 @@ show_locus (int offset, locus * loc)
lb = loc->lb;
f = lb->file;
- error_printf ("In file %s:%d\n", f->filename, lb->linenum);
+ error_printf ("In file %s:%d\n", f->filename,
+#ifdef USE_MAPPED_LOCATION
+ LOCATION_LINE (lb->location)
+#else
+ lb->linenum
+#endif
+ );
for (;;)
{
OpenPOWER on IntegriCloud