Commit 5d7de335 by Brooks Moses Committed by Brooks Moses

error.c (show_locus): Remove "In file" from error messages.

* fortran/error.c (show_locus): Remove "In file" from error messages.
* testsuite/lib/gfortran-dg.exp (gfortran-dg-test): Remove expected "In file" from error 
messages.

From-SVN: r118450
parent 502e2a2d
2006-11-02 Brooks Moses <brooks.moses@codesourcery.com>
* error.c (show_locus): Remove "In file" from error messages.
2006-10-31 Geoffrey Keating <geoffk@apple.com> 2006-10-31 Geoffrey Keating <geoffk@apple.com>
* trans-decl.c (gfc_generate_constructors): Update for removal * trans-decl.c (gfc_generate_constructors): Update for removal
......
...@@ -134,7 +134,7 @@ show_locus (int offset, locus * loc) ...@@ -134,7 +134,7 @@ show_locus (int offset, locus * loc)
lb = loc->lb; lb = loc->lb;
f = lb->file; f = lb->file;
error_printf ("In file %s:%d\n", f->filename, error_printf ("%s:%d\n", f->filename,
#ifdef USE_MAPPED_LOCATION #ifdef USE_MAPPED_LOCATION
LOCATION_LINE (lb->location) LOCATION_LINE (lb->location)
#else #else
......
2006-11-02 Brooks Moses <brooks.moses@codesourcery.com>
* lib/gfortran-dg.exp (gfortran-dg-test): Remove expected "In file"
from error messages.
2006-11-02 Mike Stump <mrs@apple.com> 2006-11-02 Mike Stump <mrs@apple.com>
* obj-c++.dg/const-str-9.mm: Don't run on 64-bit. * obj-c++.dg/const-str-9.mm: Don't run on 64-bit.
...@@ -26,23 +26,23 @@ proc gfortran-dg-test { prog do_what extra_tool_flags } { ...@@ -26,23 +26,23 @@ proc gfortran-dg-test { prog do_what extra_tool_flags } {
set output_file [lindex $result 1] set output_file [lindex $result 1]
# gfortran error messages look like this: # gfortran error messages look like this:
# In file [name]:[line] # [name]:[line]
# #
# some code # some code
# 1 # 1
# Error: Some error at (1) and (2) # Error: Some error at (1)
# or # or
# In file [name]:[line] # [name]:[line]
# #
# some code # some code
# 1 # 1
# In file [name]:[line2] # [name]:[line2]
# #
# some other code # some other code
# 2 # 2
# Error: Some error at (1) and (2) # Error: Some error at (1) and (2)
# or # or
# In file [name]:[line] # [name]:[line]
# #
# some code and some more code # some code and some more code
# 1 2 # 1 2
...@@ -59,7 +59,7 @@ proc gfortran-dg-test { prog do_what extra_tool_flags } { ...@@ -59,7 +59,7 @@ proc gfortran-dg-test { prog do_what extra_tool_flags } {
# Note that these regexps only make sense in the combinations used below. # Note that these regexps only make sense in the combinations used below.
# Note also that is imperative that we first deal with the form with # Note also that is imperative that we first deal with the form with
# two loci. # two loci.
set locus_regexp " In file (\[^\n\]*)\n\n\[^\n\]*\n\[^\n\]*\n" set locus_regexp " (\[^\n\]*)\n\n\[^\n\]*\n\[^\n\]*\n"
set diag_regexp "(\[^\n\]*)\n" set diag_regexp "(\[^\n\]*)\n"
set two_loci "$locus_regexp$locus_regexp$diag_regexp" set two_loci "$locus_regexp$locus_regexp$diag_regexp"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment