gcc -O3 -floop-block test_seg.c test_seg.c: In function 'gate1': test_seg.c:17: 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.
GDB bt is giving following result: (gdb) set args -O3 -floop-block test_seg.c (gdb) r Starting program: /u/ssa/mthakkar/gcc_latest/graphite_build/gcc/cc1 -O3 -floop-block test_seg.c vprintf getchar getc_unlocked getchar_unlocked putchar fputc_unlocked putc_unlocked putchar_unlocked feof_unlocked ferror_unlocked get_state gate1 Analyzing compilation unit Performing interprocedural optimizations <visibility> <early_local_cleanups> <summary generate> <cp> <inline> <static-var> <pure-const>Assembling functions: get_state gate1 Program received signal SIGSEGV, Segmentation fault. 0x0000000000ab8eb8 in build_scops_1 (current=0x0, scops=0x7fff76984028, loop=0x2b6f355c5460) at ../../graphite/gcc/graphite.c:1507 1507 for (i = 0; VEC_iterate (edge, sinfo.last->succs, i, e); i++) (gdb) bt #0 0x0000000000ab8eb8 in build_scops_1 (current=0x0, scops=0x7fff76984028, loop=0x2b6f355c5460) at ../../graphite/gcc/graphite.c:1507 #1 0x0000000000ab9779 in build_scops_1 (current=0x2b6f355c0660, scops=0x7fff76984168, loop=0x2b6f355c5500) at ../../graphite/gcc/graphite.c:1433 #2 0x0000000000ab9123 in build_scops_1 (current=0x2b6f355c0360, scops=0x7fff769842a8, loop=0x2b6f355c5460) at ../../graphite/gcc/graphite.c:1304 #3 0x0000000000ab9123 in build_scops_1 (current=0x2b6f355b3d80, scops=0x7fff769843e8, loop=0x2b6f355c53c0) at ../../graphite/gcc/graphite.c:1304 #4 0x0000000000ab9038 in build_scops_1 (current=0x2b6f355b3de0, scops=0x7fff76984528, loop=0x2b6f355c5320) at ../../graphite/gcc/graphite.c:1268 #5 0x0000000000ab93c4 in build_scops_1 (current=0x2b6f35594e40, scops=0x7fff76984618, loop=0x2b6f355c5320) at ../../graphite/gcc/graphite.c:1377 #6 0x0000000000abbbfe in graphite_transform_loops () at ../../graphite/gcc/graphite.c:1837 #7 0x00000000007b0557 in graphite_transforms () at ../../graphite/gcc/tree-ssa-loop.c:298 #8 0x000000000063ce28 in execute_one_pass (pass=0xf21d60) at ../../graphite/gcc/passes.c:1279 #9 0x000000000063d065 in execute_pass_list (pass=0xf21d60) at ../../graphite/gcc/passes.c:1327 #10 0x000000000063d07d in execute_pass_list (pass=0xf21ac0) at ../../graphite/gcc/passes.c:1328 #11 0x000000000063d07d in execute_pass_list (pass=0xf20f80) at ../../graphite/gcc/passes.c:1328 #12 0x00000000007313cc in tree_rest_of_compilation (fndecl=0x2b6f35590a00) at ../../graphite/gcc/tree-optimize.c:418 #13 0x00000000008a6c64 in cgraph_expand_function (node=0x2b6f35590b00) at ../../graphite/gcc/cgraphunit.c:1038 #14 0x00000000008a8a35 in cgraph_optimize () at ../../graphite/gcc/cgraphunit.c:1097 #15 0x0000000000417363 in c_write_global_declarations () at ../../graphite/gcc/c-decl.c:8073 #16 0x00000000006e2adf in toplev_main (argc=<value optimized out>, argv=<value optimized out>) at ../../graphite/gcc/toplev.c:979 #17 0x00002b6f34d1f184 in __libc_start_main () from /lib64/libc.so.6 #18 0x0000000000404e89 in _start () -- Summary: [graphite] ICE :Segmentation fault Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: mitul dot thakkar at amd dot com GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37928