This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] PATCH Fix PR 18537


On Sun, Mar 06, 2005 at 10:20:27PM -0500, Andrew Pinski wrote:
> 
> On Mar 6, 2005, at 10:15 PM, Steve Kargl wrote:
> 
> >Is there anyway to make dg actually accept a human readable string?
> >The only way I've gotten dg to work is with a warning of the form
> >
> >Warning: PR18537.f90:8: nonstandard tab character
> 
> I rather see "filename:linenumber:columnnumber warning warningtext" 
> which is consistent with the reset of the front-ends.
> 

columnnumber isn't possible with the current implementation of
load_line() in scanner.c.  If a tab character appears in columns
1 to 6, then load_line replaces it with spaces upto the first 6
characters.  For the old folks out there, this is the old punch
card behavior of fixed-format input.  All other tabs in the line
are unchanged.  Another counter would be necessary to count the
actual column location.

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]