[patch] PR55158 - segfault in sched-rgn.c

Steven Bosscher stevenb.gcc@gmail.com
Thu Dec 6 12:31:00 GMT 2012


Hello,

The problem in this PR is that new basic blocks can be created if the
scheduler moves speculative insns and adds recovery code, but the
bb_state* arrays are allocated only at the start of scheduling a
region and are not set up to deal with changing last_basic_block.

Fixed by resizing the arrays if necessary. This fixes most of the
testsuite failures on ia64:

                === gcc Summary ===

-# of expected passes           81541
-# of unexpected failures       505
+# of expected passes           81839
+# of unexpected failures       64
 # of unexpected successes      18
 # of expected failures         341
-# of unresolved testcases      66
-# of unsupported tests         1198
+# of unresolved testcases      7
+# of unsupported tests         1208

Bootstrapped&tested on ia64-unknown-linux-gnu. OK for trunk?

Ciao!
Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PR55158.diff
Type: application/octet-stream
Size: 5071 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20121206/f131d7fc/attachment.obj>


More information about the Gcc-patches mailing list