aboutsummaryrefslogtreecommitdiff
path: root/libgfortran
diff options
context:
space:
mode:
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>2007-09-11 14:53:02 +0000
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>2007-09-11 14:53:02 +0000
commit257fafe0c91f84ad5dca36dcdf28980d512f1fec (patch)
tree411cffb3413cdc079d6c93ef5d10b6fea5fa67ad /libgfortran
parentc47b0cb46626dd1df1aad35c5d1ee9f5be43debe (diff)
downloadgcc-257fafe0c91f84ad5dca36dcdf28980d512f1fec.zip
gcc-257fafe0c91f84ad5dca36dcdf28980d512f1fec.tar.gz
gcc-257fafe0c91f84ad5dca36dcdf28980d512f1fec.tar.bz2
re PR libfortran/33386 (Fortran SELECT statement miscompiles)
PR libfortran/33386 * runtime/select.c (select_string): Initialize default_jump. From-SVN: r128379
Diffstat (limited to 'libgfortran')
-rw-r--r--libgfortran/ChangeLog5
-rw-r--r--libgfortran/runtime/select.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog
index 4c92333..eaf7012 100644
--- a/libgfortran/ChangeLog
+++ b/libgfortran/ChangeLog
@@ -1,3 +1,8 @@
+2007-09-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR libfortran/33386
+ * runtime/select.c (select_string): Initialize default_jump.
+
2007-09-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR libfortran/33307
diff --git a/libgfortran/runtime/select.c b/libgfortran/runtime/select.c
index cecd025..44c3532 100644
--- a/libgfortran/runtime/select.c
+++ b/libgfortran/runtime/select.c
@@ -53,7 +53,7 @@ select_string (select_struct *table, int table_len, const char *selector,
{
select_struct *t;
int i, low, high, mid;
- int default_jump;
+ int default_jump = -1;
if (table_len == 0)
return -1;