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/22336] [4.1 Regression] ICE Segfault in record_block_change at function.c:5498


------- Additional Comments From laurent at guerby dot net  2005-07-10 19:07 -------
The following patch suggested by Richard Kenner messages "fixes" the bootstrap
problem.

Index: function.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/function.c,v
retrieving revision 1.635
diff -u -r1.635 function.c
--- function.c  7 Jul 2005 21:04:31 -0000       1.635
+++ function.c  10 Jul 2005 19:06:10 -0000
@@ -5502,6 +5502,9 @@
   if (!block)
     return;

+  if(!cfun->ib_boundaries_block)
+    return;
+
   last_block = VARRAY_TOP_TREE (cfun->ib_boundaries_block);
   VARRAY_POP (cfun->ib_boundaries_block);
   n = get_max_uid ();


-- 


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


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