aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/error.c6
2 files changed, 4 insertions, 6 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index ed6419d..9e22baa 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,4 +1,8 @@
2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
+
+ * error.c (show_locus): Remove always-false test.
+
+2007-03-26 Brooks Moses <brooks.moses@codesourcery.com>
* lang.opt: Minor edits to descriptions.
diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c
index 89cd4a9..7348847 100644
--- a/gcc/fortran/error.c
+++ b/gcc/fortran/error.c
@@ -233,12 +233,6 @@ show_locus (locus *loc, int c1, int c2)
if (cmax > terminal_width - 5)
offset = cmax - terminal_width + 5;
- /* TODO: Is there a good reason for the following apparently-redundant
- check, and the similar ones in the single-locus cases below? */
-
- if (offset < 0)
- offset = 0;
-
/* Show the line itself, taking care not to print more than what can
show up on the terminal. Tabs are converted to spaces, and
nonprintable characters are converted to a "\xNN" sequence. */