aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2004-09-21 11:22:00 +0200
committerAndreas Tobler <andreast@gcc.gnu.org>2004-09-21 11:22:00 +0200
commitb6ad178e2ee4c3fdcf7e231f51f83aebc107554f (patch)
tree0cd25fcf3f5d7a225e804cdc0a7bbb372358585d
parentdd5d134bc9bc9b234c0dca42d610b098991276d7 (diff)
downloadgcc-b6ad178e2ee4c3fdcf7e231f51f83aebc107554f.zip
gcc-b6ad178e2ee4c3fdcf7e231f51f83aebc107554f.tar.gz
gcc-b6ad178e2ee4c3fdcf7e231f51f83aebc107554f.tar.bz2
decl.c (reshape_init_array): Initialize max_index_cst to fix bootstrap failure.
2004-09-21 Andreas Tobler <a.tobler@schweiz.ch> * decl.c (reshape_init_array): Initialize max_index_cst to fix bootstrap failure. From-SVN: r87798
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/decl.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 6ddc16d..99f3f3e 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
+
+ * decl.c (reshape_init_array): Initialize max_index_cst to fix
+ bootstrap failure.
+
2004-09-20 Mark Mitchell <mark@codesourcery.com>
PR c++/17530
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 282e507..fbd27ce 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -4159,7 +4159,7 @@ reshape_init_array (tree elt_type, tree max_index,
tree *initp, tree new_init)
{
bool sized_array_p = (max_index != NULL_TREE);
- HOST_WIDE_INT max_index_cst;
+ HOST_WIDE_INT max_index_cst = 0;
HOST_WIDE_INT index;
if (sized_array_p)