This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Emacs and GFortran
Steve, you are being silly. The change is not invasive, hard, or
causes a burden for gfortran developers. The `GNU error style
message' works perfectly well with multi-line messages, as was shown
with g77.
Index: gcc/fortran/error.c
===================================================================
--- gcc/fortran/error.c (revision 117956)
+++ gcc/fortran/error.c (working copy)
@@ -134,7 +134,7 @@
lb = loc->lb;
f = lb->file;
- error_printf ("In file %s:%d\n", f->filename,
+ error_printf ("%s:%d:\n", f->filename,
#ifdef USE_MAPPED_LOCATION
LOCATION_LINE (lb->location)
#else
The above will make things parsable by things that parse GNU style
error messages. You could even make it backward compatible with the
current format which gcc/testsuite/lib/gfortran-dg.exp expects by
simply adding "FILE:LINENO:" above the "In file" message, much like
g77 did!
Sighs...