]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/81945 (ICE in operator[], at vec.h:749)
authorJakub Jelinek <jakub@redhat.com>
Wed, 6 Dec 2017 08:16:44 +0000 (09:16 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 6 Dec 2017 08:16:44 +0000 (09:16 +0100)
commit650a8fcf8cabb103e1e1cbd40711f1decbb09d5e
treee6f46fca2559d08d344baa43f3aaad19950030fc
parentc3ad2f62354003fe63994d96255f807492d857e6
re PR tree-optimization/81945 (ICE in operator[], at vec.h:749)

PR tree-optimization/81945
* cfgloop.h (FOR_EACH_LOOP_FN): Use FN instead of hardcoding fn.
* tree-cfg.c (move_sese_region_to_fn): If any of the loops moved
to dest_cfun has orig_loop_num set, either remap it to the new
loop number if the loop got moved too, or clear it.

* gcc.dg/graphite/pr81945.c: New test.

From-SVN: r255438
gcc/ChangeLog
gcc/cfgloop.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr81945.c [new file with mode: 0644]
gcc/tree-cfg.c