From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alfred M. Szmidt" Newsgroups: gmane.comp.gcc.fortran,gmane.emacs.devel Subject: Re: Emacs and GFortran Date: Wed, 1 Nov 2006 21:39:31 +0100 (CET) Message-ID: <20061101203931.E775C4401A@Psilocybe.Update.UU.SE> References: <200611011037.12356.wt@atmos.colostate.edu> <20061101180354.GA62686@troutmask.apl.washington.edu> Reply-To: ams@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1162413587 10600 80.91.229.2 (1 Nov 2006 20:39:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 1 Nov 2006 20:39:47 +0000 (UTC) Cc: wt@atmos.colostate.edu, fortran@gcc.gnu.org, emacs-devel@gnu.org Original-X-From: fortran-return-15388-gcgf-fortran=m.gmane.org@gcc.gnu.org Wed Nov 01 21:39:46 2006 Return-path: Envelope-to: gcgf-fortran@gmane.org Original-Received: from sourceware.org ([209.132.176.174]) by ciao.gmane.org with smtp (Exim 4.43) id 1GfMs6-00050f-Dn for gcgf-fortran@gmane.org; Wed, 01 Nov 2006 21:39:38 +0100 Original-Received: (qmail 1508 invoked by alias); 1 Nov 2006 20:39:36 -0000 Original-Received: (qmail 1499 invoked by uid 22791); 1 Nov 2006 20:39:36 -0000 X-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Original-Received: from Psilocybe.Update.UU.SE (HELO Psilocybe.Update.UU.SE) (130.238.19.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Nov 2006 20:39:34 +0000 Original-Received: by Psilocybe.Update.UU.SE (Postfix, from userid 30270) id E775C4401A; Wed, 1 Nov 2006 21:39:31 +0100 (CET) Original-To: Steve Kargl In-reply-to: <20061101180354.GA62686@troutmask.apl.washington.edu> (message from Steve Kargl on Wed, 1 Nov 2006 10:03:54 -0800) Mailing-List: contact fortran-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Post: List-Help: , Original-Sender: fortran-owner@gcc.gnu.org Xref: news.gmane.org gmane.comp.gcc.fortran:15357 gmane.emacs.devel:61571 Archived-At: You will need to audit each and every one to ensure that the messages meet your expectations. You'll then need to fix the testsuite. This is not needed, you are exaggerating beyond belief Steve. Here is another version that is should be backward compatible with the bits that the testsuite parses. This will fix the problem the original user reported; namley allowing programs that parse GNU style error message to jump to the location of the error/warning. It is a simple fix, why can it simply not be applied? Index: error.c =================================================================== --- error.c (revision 117956) +++ error.c (working copy) @@ -134,6 +134,15 @@ lb = loc->lb; f = lb->file; + /* Allow programs that parse GNU style error message catch the + error. */ + error_printf ("%s:%d:\n", f->filename, +#ifdef USE_MAPPED_LOCATION + LOCATION_LINE (lb->location) +#else + lb->linenum +#endif + ); error_printf ("In file %s:%d\n", f->filename, #ifdef USE_MAPPED_LOCATION LOCATION_LINE (lb->location)