aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ada/ChangeLog4
-rw-r--r--gcc/ada/gcc-interface/utils.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 553702c..828f031 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-11 Alexandre Oliva <aoliva@redhat.com>
+
+ * gcc-interface/utils.c (update_pointer_to): Initialize last.
+
2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/ada-tree.h: Fix formatting nits.
diff --git a/gcc/ada/gcc-interface/utils.c b/gcc/ada/gcc-interface/utils.c
index ebb7025..0416db3 100644
--- a/gcc/ada/gcc-interface/utils.c
+++ b/gcc/ada/gcc-interface/utils.c
@@ -3461,7 +3461,7 @@ update_pointer_to (tree old_type, tree new_type)
{
tree new_ptr = TYPE_MAIN_VARIANT (TYPE_POINTER_TO (new_type));
tree new_obj_rec = TYPE_OBJECT_RECORD_TYPE (new_type);
- tree array_field, bounds_field, new_ref, last;
+ tree array_field, bounds_field, new_ref, last = NULL_TREE;
gcc_assert (TYPE_IS_FAT_POINTER_P (ptr));