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 middle-end/34934] -O1 crash compile *** glibc detected *** /usr/lib/gcc/i486-linux-gnu/4.2.3/cc1: double free or corruption (!prev)



------- 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


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