This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug rtl-optimization/48302] New: ICE: SIGSEGV in reposition_prologue_and_epilogue_notes (function.c:5662) with -fcrossjumping -fselective-scheduling2


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

           Summary: ICE: SIGSEGV in reposition_prologue_and_epilogue_notes
                    (function.c:5662) with -fcrossjumping
                    -fselective-scheduling2
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 23781
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23781
reduced testcase

Command line:
$ gcc -O -fcrossjumping -fgcse -fschedule-insns2 -fsel-sched-pipelining
-fsel-sched-pipelining-outer-loops -fselective-scheduling2 --param
lim-expensive=320 --param min-crossjump-insns=1 testcase.C

or

$ gcc -O2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
-fselective-scheduling2 -fno-tree-copy-prop -fno-tree-vrp --param
min-crossjump-insns=1 testcase.C

Compiler output:
$ gcc -O2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops
-fselective-scheduling2 -fno-tree-copy-prop -fno-tree-vrp --param
min-crossjump-insns=1 testcase.C
==18470== Invalid read of size 2
==18470==    at 0x8731AB: reposition_prologue_and_epilogue_notes
(function.c:5662)
==18470==    by 0x9BB9CC: sched_rgn_finish (sched-rgn.c:3074)
==18470==    by 0x9F1359: run_selective_scheduling (sel-sched.c:7645)
==18470==    by 0x9BF695: rest_of_handle_sched2 (sched-rgn.c:3523)
==18470==    by 0x937AA5: execute_one_pass (passes.c:1555)
==18470==    by 0x937D94: execute_pass_list (passes.c:1610)
==18470==    by 0x937DA6: execute_pass_list (passes.c:1611)
==18470==    by 0x937DA6: execute_pass_list (passes.c:1611)
==18470==    by 0xA79D95: tree_rest_of_compilation (tree-optimize.c:422)
==18470==    by 0xC44D11: cgraph_expand_function (cgraphunit.c:1576)
==18470==    by 0xC473E9: cgraph_optimize (cgraphunit.c:1635)
==18470==    by 0xC47969: cgraph_finalize_compilation_unit (cgraphunit.c:1096)
==18470==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==18470== 
testcase.C: In function 'void foo()':
testcase.C:18: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.


Tested revisions:
r171573 - crash
4.6 r170955 - crash
4.5 r170955 - crash
4.4 r170955 - crash (the -O1 version)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]