]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924...
authorJakub Jelinek <jakub@redhat.com>
Fri, 15 Sep 2017 21:32:05 +0000 (23:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 15 Sep 2017 21:32:05 +0000 (23:32 +0200)
commit46c9024eccf8064477f7d72ff98d31c21a9be0d0
treedf722674047d626df1d3707df7466be7b1edead5
parent5be796af28de69adcc4cfb2052bbcfc77a125302
backport: re PR target/81766 (ICE in maybe_add_or_update_dep_1, at sched-deps.c:924 caused by r250815)

Backported from mainline
2017-08-08  Richard Biener  <rguenther@suse.de>

PR middle-end/81766
* function.c (thread_prologue_and_epilogue_insns): Restore
behavior of always calling find_many_sub_basic_blocks on
the inserted prologue.

* gcc.target/i386/pr81766.c: New testcase.

2017-08-02  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/79499
* function.c (thread_prologue_and_epilogue_insns): Determine blocks
for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
of first NONDEBUG_INSN_P in each of the split_prologue_seq and
prologue_seq sequences - if any.

* gcc.dg/pr79499.c: New test.

From-SVN: r252854
gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79499.c [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pr81766.c [new file with mode: 0644]