------- Comment #2 from zsojka at seznam dot cz  2010-03-09 23:31 -------
Created an attachment (id=20067)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20067&action=view)
reduced testcase, this one causes segfault even with checking

$ /mnt/svn/gcc-trunk/binary-157326-lto/bin/gcc -O1 -fipa-struct-reorg
-fwhole-program -fipa-type-escape -g pr43314-2.c 
pr43314-2.c: In function 'main':
pr43314-2.c:12:1: internal compiler error: Segmentation fault

==25387== Invalid read of size 2
==25387==    at 0x8062DF: prepare_block_for_update (tree-into-ssa.c:2550)
==25387==    by 0x8063DA: prepare_block_for_update (tree-into-ssa.c:2568)
==25387==    by 0x80B4EA: update_ssa (tree-into-ssa.c:3317)
==25387==    by 0x9BA883: reorg_structs_drive (ipa-struct-reorg.c:3241)
==25387==    by 0x72596A: execute_one_pass (passes.c:1567)
==25387==    by 0x725DE9: execute_ipa_pass_list (passes.c:1801)
==25387==    by 0x9A181E: cgraph_optimize (cgraphunit.c:1795)
==25387==    by 0x9A1FE4: cgraph_finalize_compilation_unit (cgraphunit.c:1093)
==25387==    by 0x4B0572: c_write_global_declarations (c-decl.c:9510)
==25387==    by 0x7CAA9F: toplev_main (toplev.c:1065)
==25387==    by 0x658DBBC: (below main) (in /lib64/libc-2.11.so)
==25387==  Address 0x0 is not stack'd, malloc'd or (recently) free'd


-- 


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

Reply via email to