This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/34934] -O1 crash compile *** glibc detected *** /usr/lib/gcc/i486-linux-gnu/4.2.3/cc1: double free or corruption (!prev)
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2008 10:47:49 -0000
- Subject: [Bug middle-end/34934] -O1 crash compile *** glibc detected *** /usr/lib/gcc/i486-linux-gnu/4.2.3/cc1: double free or corruption (!prev)
- References: <bug-34934-15677@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2008-01-23 10:47 -------
Works for me on the trunk, even with
Index: tree-stdarg.c
===================================================================
--- tree-stdarg.c (revision 131756)
+++ tree-stdarg.c (working copy)
@@ -98,7 +98,10 @@ reachable_at_most_once (basic_block va_a
{
SET_BIT (visited, src->index);
FOR_EACH_EDGE (e, ei, src->preds)
+ {
+ gcc_assert (sp < n_basic_blocks + 1);
stack[sp++] = e;
+ }
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34934