This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29702] RFE: Column number in error messages.
- From: "brooks at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Nov 2006 03:44:37 -0000
- Subject: [Bug fortran/29702] RFE: Column number in error messages.
- References: <bug-29702-13350@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from brooks at gcc dot gnu dot org 2006-11-15 03:44 -------
Subject: Bug 29702
Author: brooks
Date: Wed Nov 15 03:44:18 2006
New Revision: 118840
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=118840
Log:
PR fortran/29702
* fortran/error.c (show_loci): Move column-offset calculation to
show_locus.
(show_locus): Remove blank lines before "Included in"
lines, clean up code, calculate column-offsets, print
column number is error-header lines as appropriate.
(error_integer): (new function) Print integer to error
buffer.
(error_print): Use error_integer, avoid possible buffer
overflows from buggy error formats.
* testsuite/lib/gfortran-dg.exp (gfortran-dg-test): Ignore column
numbers in error message headers.
Modified:
branches/gcc-4_2-branch/gcc/fortran/ChangeLog
branches/gcc-4_2-branch/gcc/fortran/error.c
branches/gcc-4_2-branch/gcc/testsuite/ChangeLog
branches/gcc-4_2-branch/gcc/testsuite/lib/gfortran-dg.exp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29702