http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45877
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2010.10.03 22:05:15 Component|c++ |middle-end Target Milestone|--- |4.6.0 Summary|invalid write in |[4.6 Regression] invalid |gimplify_and_update_call_fr |write in |om_tree |gimplify_and_update_call_fr | |om_tree Ever Confirmed|0 |1 --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-10-03 22:05:15 UTC --- Confirmed. Program received signal SIGSEGV, Segmentation fault. 0x08d346f7 in gimple_set_location (g=0x0, location=5224648) at /home/richard/src/trunk/gcc/gimple.h:1193 1193 g->gsbase.location = location; (gdb) up #1 0x08d3bd79 in gimplify_and_update_call_from_tree (si_p=0xbffff040, expr=0xb4d644a0) at /home/richard/src/trunk/gcc/gimple-fold.c:1016 1016 gimple_set_location (new_stmt, gimple_location (stmt)); (gdb) p new_stmt $1 = (gimple) 0x0 (gdb) p stmt $2 = (gimple) 0xb5a5accc (gdb) call debug_gimple_stmt (stmt) # .MEM = VDEF <.MEM> memcpy (&<retval>, &D.131677, 1); (gdb) call debug_generic_expr (expr) MEM[(char * {ref-all})&<retval>] = MEM[(char * {ref-all})&D.131677] that new last handling looks like the problem.