aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteven G. Kargl <kargls@comcast.net>2005-11-04 22:18:22 +0000
committerSteven G. Kargl <kargl@gcc.gnu.org>2005-11-04 22:18:22 +0000
commit33de49ea9f44e27b3064c6d47b4315b41ff09416 (patch)
tree616f0d7eb92e4acc82b3bd9fd8a5ba1ffcab0fdb
parent930352c0b7cf78b8c08ac50dde3a18f3e24b645e (diff)
downloadgcc-33de49ea9f44e27b3064c6d47b4315b41ff09416.zip
gcc-33de49ea9f44e27b3064c6d47b4315b41ff09416.tar.gz
gcc-33de49ea9f44e27b3064c6d47b4315b41ff09416.tar.bz2
re PR fortran/24636 (gfortran: STOP without stop-code too noisy, regression w.r.t. g77)
PR fortran/24636 * match.c (gfc_match_stopcode): Set stop_code = -1. * runtime/stop.c (stop_numeric): Use stop_code = -1. From-SVN: r106509
-rw-r--r--gcc/fortran/ChangeLog5
-rw-r--r--gcc/fortran/match.c2
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/runtime/stop.c2
4 files changed, 12 insertions, 2 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 7e8cb39..1aacb20 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-04 Steven G. Kargl <kargls@comcast.net>
+
+ PR fortran/24636
+ * match.c (gfc_match_stopcode): Set stop_code = -1.
+
2005-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR fortran/18452
diff --git a/gcc/fortran/match.c b/gcc/fortran/match.c
index eac5697..8725a5f0 100644
--- a/gcc/fortran/match.c
+++ b/gcc/fortran/match.c
@@ -1405,7 +1405,7 @@ gfc_match_stopcode (gfc_statement st)
gfc_expr *e;
match m;
- stop_code = 0;
+ stop_code = -1;
e = NULL;
if (gfc_match_eos () != MATCH_YES)
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index c3c5a9e..bb8e332 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-04 Steven G. Kargl <kargls@comcast.net>
+
+ PR fortran/24636
+ * runtime/stop.c (stop_numeric): Use stop_code = -1.
+
2005-11-04 Francois-Xavier Coudert <coudert@clipper.ens.fr>
PR libfortran/22298
diff --git a/libgfortran/runtime/stop.c b/libgfortran/runtime/stop.c
index 768d75b..920cc2c 100644
--- a/libgfortran/runtime/stop.c
+++ b/libgfortran/runtime/stop.c
@@ -40,7 +40,7 @@ stop_numeric (GFC_INTEGER_4 code)
show_locus ();
if (code == -1)
- st_printf ("STOP\n");
+ code = 0;
else
st_printf ("STOP %d\n", (int)code);