http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47443
--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-24 18:35:47 UTC --- Created attachment 23103 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23103 different crash $ gcc -O -fstack-check=generic testcase2.c testcase2.c: In function 'foo': testcase2.c:13:1: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. It crashes at different place, but maybe it's the same problem: Program received signal SIGSEGV, Segmentation fault. 0x0000000000714225 in fold_comparison (loc=333, code=LT_EXPR, type=0x7ffff7ed8498, op0=0x7ffff5d4b478, op1=0x7ffff5d4b898) at /mnt/svn/gcc-trunk/gcc/fold-const.c:8587 8587 if (POINTER_TYPE_P (TREE_TYPE (arg0)) (gdb) bt #0 0x0000000000714225 in fold_comparison (loc=333, code=LT_EXPR, type=0x7ffff7ed8498, op0=0x7ffff5d4b478, op1=0x7ffff5d4b898) at /mnt/svn/gcc-trunk/gcc/fold-const.c:8587 #1 0x00000000006debf1 in fold_binary_loc (loc=333, code=LT_EXPR, type=0x7ffff7ed8498, op0=0x7ffff5d4b478, op1=0x7ffff5d4b898) at /mnt/svn/gcc-trunk/gcc/fold-const.c:12708 #2 0x00000000006f93a1 in fold_build2_stat_loc (loc=333, code=LT_EXPR, type=0x7ffff7ed8498, op0=0x7ffff5d4b478, op1=0x7ffff5d4b898) at /mnt/svn/gcc-trunk/gcc/fold-const.c:13982 #3 0x0000000000991baa in forward_propagate_into_gimple_cond (stmt=0x7ffff5d3c460) at /mnt/svn/gcc-trunk/gcc/tree-ssa-forwprop.c:422 #4 0x0000000000991edd in tree_ssa_forward_propagate_single_use_vars () at /mnt/svn/gcc-trunk/gcc/tree-ssa-forwprop.c:2085 #5 0x00000000007f1ba6 in execute_one_pass (pass=0x160d000) at /mnt/svn/gcc-trunk/gcc/passes.c:1562 #6 0x00000000007f1ea5 in execute_pass_list (pass=0x160d000) at /mnt/svn/gcc-trunk/gcc/passes.c:1617 #7 0x00000000007f1eb7 in execute_pass_list (pass=0x160c940) at /mnt/svn/gcc-trunk/gcc/passes.c:1618 #8 0x00000000007f10ac in do_per_function_toporder (callback=0x7f1e90 <execute_pass_list>, data=0x160c880) at /mnt/svn/gcc-trunk/gcc/passes.c:1148 #9 0x00000000007f2346 in execute_ipa_pass_list (pass=0x160c9a0) at /mnt/svn/gcc-trunk/gcc/passes.c:1934 #10 0x0000000000afd391 in ipa_passes () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1725 #11 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1797 #12 0x0000000000afd5ea in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1042 #13 0x000000000050585c in c_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/c-decl.c:9843 #14 0x00000000008dd544 in compile_file (argc=14, argv=0x7fffffffdad8) at /mnt/svn/gcc-trunk/gcc/toplev.c:591 #15 do_compile (argc=14, argv=0x7fffffffdad8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1874 #16 toplev_main (argc=14, argv=0x7fffffffdad8) at /mnt/svn/gcc-trunk/gcc/toplev.c:1937 #17 0x00007ffff65f1bbd in __libc_start_main () from /lib/libc.so.6 #18 0x00000000004ec455 in _start ()