diff mbox

Fix bootstrap with release checking

Message ID 20120904151824.GA17995@google.com
State New
Headers show

Commit Message

Diego Novillo Sept. 4, 2012, 3:18 p.m. UTC
PR bootstrap/54479
    	* vec.h (vec_t::copy): Add cast in call to reserve_exact.
diff mbox

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 3d20ebd..c605432 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@ 
+2012-09-04   Diego Novillo  <dnovillo@google.com>
+
+	PR bootstrap/54479
+	* vec.h (vec_t::copy): Add cast in call to reserve_exact.
+
 2012-09-04  Richard Guenther  <rguenther@suse.de>
 
 	* tree-ssa-pre.c (add_to_exp_gen): Adjust.
diff --git a/gcc/vec.h b/gcc/vec.h
index 74a85c7..ac426e9 100644
--- a/gcc/vec.h
+++ b/gcc/vec.h
@@ -699,7 +699,8 @@  vec_t<T>::copy (ALONE_MEM_STAT_DECL)
 
   if (len)
     {
-      new_vec = vec_t<T>::reserve_exact<A> (NULL, len PASS_MEM_STAT);
+      new_vec = vec_t<T>::reserve_exact<A> (static_cast<vec_t<T> *> (NULL),
+					    len PASS_MEM_STAT);
       new_vec->embedded_init (len, len);
       memcpy (new_vec->address (), vec_, sizeof (T) * len);
     }