OSDN Git Service

Fix PR target/9797 and PR c/9853.
[pf3gnuchains/gcc-fork.git] / gcc / stmt.c
index 74d5f3d..ea21a6d 100644 (file)
@@ -4043,6 +4043,8 @@ expand_decl_init (decl)
 
   /* Compute and store the initial value now.  */
 
+  push_temp_slots ();
+
   if (DECL_INITIAL (decl) == error_mark_node)
     {
       enum tree_code code = TREE_CODE (TREE_TYPE (decl));
@@ -4066,6 +4068,7 @@ expand_decl_init (decl)
   /* Free any temporaries we made while initializing the decl.  */
   preserve_temp_slots (NULL_RTX);
   free_temp_slots ();
+  pop_temp_slots ();
 }
 
 /* CLEANUP is an expression to be executed at exit from this binding contour;