This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22336] [4.1 Regression] ICE Segfault in record_block_change at function.c:5498
- From: "laurent at guerby dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2005 19:07:39 -0000
- Subject: [Bug tree-optimization/22336] [4.1 Regression] ICE Segfault in record_block_change at function.c:5498
- References: <20050707004550.22336.belyshev@depni.sinp.msu.ru>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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