summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-21 09:22:00 +0000
committerandreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4>2004-09-21 09:22:00 +0000
commit9e1e92b161ba754552efb08d97af084edf06ce6d (patch)
tree0cd25fcf3f5d7a225e804cdc0a7bbb372358585d
parentb1e0564adf04390f2921195e8bc37d6cd22bfa2d (diff)
downloadppe42-gcc-9e1e92b161ba754552efb08d97af084edf06ce6d.tar.gz
ppe42-gcc-9e1e92b161ba754552efb08d97af084edf06ce6d.zip
2004-09-21 Andreas Tobler <a.tobler@schweiz.ch>
* decl.c (reshape_init_array): Initialize max_index_cst to fix bootstrap failure. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@87798 138bc75d-0d04-0410-961f-82ee72b054a4
-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 6ddc16d3be8..99f3f3e07b0 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 282e5072dad..fbd27cee0db 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)
OpenPOWER on IntegriCloud