re PR rtl-optimization/46585 (ICE: SIGSEGV in vinsn_create (sel-sched-ir.c:1189)...
commit9ef1bf719b91f4409273912c50162b722ae89b66
authorAlexander Monakov <amonakov@ispras.ru>
Thu, 25 Nov 2010 10:05:00 +0000 (25 13:05 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Thu, 25 Nov 2010 10:05:00 +0000 (25 13:05 +0300)
tree1c3f871216986df312c309d8e8c8af7acfa667b4
parentd787f788f8ac10ab768befcb5b2d4b0c4b288286
re PR rtl-optimization/46585 (ICE: SIGSEGV in vinsn_create (sel-sched-ir.c:1189) with -fno-dce -fschedule-insns -fselective-scheduling)

PR rtl-optimization/46585
* sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
(vinsn_init): Skip initialization of dependencies for local NOPs.
(vinsn_delete): Don't try to free regsets for local NOPs.
        (setup_nop_and_exit_insns): Change definition of nop_pattern.

testsuite:
* gcc.dg/pr46585.c: New.

From-SVN: r167141
gcc/ChangeLog
gcc/sel-sched-ir.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr46585.c [new file with mode: 0644]