emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Emacs and GFortran


From: Alfred M. Szmidt
Subject: Re: Emacs and GFortran
Date: Tue, 31 Oct 2006 17:40:52 +0100 (CET)

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...






reply via email to

[Prev in Thread] Current Thread [Next in Thread]