http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57662
Bug ID: 57662 Summary: [4.9 Regression] ICE: SIGSEGV in code_motion_process_successors with -fschedule-insns2 -fselective-scheduling2 Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 30327 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30327&action=edit reduced testcase Compiler output: $ gcc -O -fno-guess-branch-probability -fpeel-loops -freorder-blocks-and-partition -fschedule-insns2 -fsel-sched-pipelining -fselective-scheduling2 -ftree-pre testcase.c testcase.c: In function 'GetHangarNum': testcase.c:44:1: internal compiler error: Segmentation fault } ^ 0xa4ce7f crash_signal /mnt/svn/gcc-trunk/gcc/toplev.c:333 0xa100f9 code_motion_process_successors /mnt/svn/gcc-trunk/gcc/sel-sched.c:6429 0xa100f9 code_motion_path_driver /mnt/svn/gcc-trunk/gcc/sel-sched.c:6669 0xa13f87 move_op /mnt/svn/gcc-trunk/gcc/sel-sched.c:6758 0xa13f87 move_exprs_to_boundary /mnt/svn/gcc-trunk/gcc/sel-sched.c:5292 0xa13f87 schedule_expr_on_boundary /mnt/svn/gcc-trunk/gcc/sel-sched.c:5504 0xa15e77 fill_insns /mnt/svn/gcc-trunk/gcc/sel-sched.c:5646 0xa15e77 schedule_on_fences /mnt/svn/gcc-trunk/gcc/sel-sched.c:7410 0xa15e77 sel_sched_region_2 /mnt/svn/gcc-trunk/gcc/sel-sched.c:7544 0xa19c44 sel_sched_region_1 /mnt/svn/gcc-trunk/gcc/sel-sched.c:7583 0xa19c44 sel_sched_region(int) /mnt/svn/gcc-trunk/gcc/sel-sched.c:7684 0xa1b3b9 run_selective_scheduling() /mnt/svn/gcc-trunk/gcc/sel-sched.c:7760 0x9ec8b5 rest_of_handle_sched2 /mnt/svn/gcc-trunk/gcc/sched-rgn.c:3606 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. $ gcc -v Using built-in specs. COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-200224-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df --enable-languages=c,c++,lto,fortran --prefix=/mnt/svn/gcc-trunk/binary-200224-lto-fortran-checking-yes-rtl-df/ --without-cloog --without-ppl Thread model: posix gcc version 4.9.0 20130619 (experimental) (GCC) Tested revisions: r200224 - crash 4.8 r198018 - OK