This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/18712] [4.0 Regression] ICE: vector VEC(basic_block) push domain error, in insert_phi_nodes_for at tree-into-ssa.c:1049


------- Additional Comments From steven at gcc dot gnu dot org  2004-11-29 10:21 -------
Try this. 
 
Index: tree-into-ssa.c 
=================================================================== 
RCS file: /cvs/gcc/gcc/gcc/tree-into-ssa.c,v 
retrieving revision 2.33 
diff -u -3 -p -r2.33 tree-into-ssa.c 
--- tree-into-ssa.c     25 Nov 2004 22:31:08 -0000      2.33 
+++ tree-into-ssa.c     29 Nov 2004 10:21:04 -0000 
@@ -1017,7 +1017,7 @@ insert_phi_nodes_for (tree var, bitmap * 
 
   EXECUTE_IF_SET_IN_BITMAP (def_map->def_blocks, 0, bb_index, bi) 
     { 
-      VEC_quick_push (basic_block, work_stack, BASIC_BLOCK (bb_index)); 
+      VEC_safe_push (basic_block, work_stack, BASIC_BLOCK (bb_index)); 
     } 
 
   /* Pop a block off the worklist, add every block that appears in 
@@ -1046,7 +1046,7 @@ insert_phi_nodes_for (tree var, bitmap * 
        { 
          basic_block bb = BASIC_BLOCK (dfs_index); 
 
-         VEC_quick_push (basic_block, work_stack, bb); 
+         VEC_safe_push (basic_block, work_stack, bb); 
          bitmap_set_bit (phi_insertion_points, dfs_index); 
        } 
     } 
 

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18712


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]