From: Jakub Jelinek Date: Thu, 3 Aug 2017 14:41:08 +0000 (+0200) Subject: re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross compiler) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2fdaed8980c3bd595507a0be3a9a43386c872b51;p=gcc.git re PR target/81621 (ICE in delete_insn, at cfgrtl.c:167 with s390x cross compiler) PR target/81621 * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish after setting changeable df flags. * gcc.dg/pr81621.c: New test. From-SVN: r250857 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3febddcc051..caef342622a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,15 +1,21 @@ +2017-08-03 Jakub Jelinek + + PR target/81621 + * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish + after setting changeable df flags. + 2017-08-03 Richard Biener * tree-ssa-reassoc.c (should_break_up_subtract): Also break up if the use is in USE - X. -2017-08-03 Alexander Monakov +2017-08-03 Alexander Monakov * toplev.c (dumpfile.h): New include. (internal_error_reentered): New static function. Use it... (internal_error_function): ...here to handle reentered internal_error. -2017-08-03 Richard Biener +2017-08-03 Richard Biener PR middle-end/81148 * fold-const.c (split_tree): Add minus_var and minus_con diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index dc50546ab63..3dbae819b1b 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -2904,7 +2904,8 @@ pass_partition_blocks::execute (function *fun) crossing_edges = find_rarely_executed_basic_blocks_and_crossing_edges (); if (!crossing_edges.exists ()) - return 0; + /* Make sure to process deferred rescans and clear changeable df flags. */ + return TODO_df_finish; crtl->has_bb_partition = true; @@ -2970,7 +2971,8 @@ pass_partition_blocks::execute (function *fun) df_analyze (); } - return 0; + /* Make sure to process deferred rescans and clear changeable df flags. */ + return TODO_df_finish; } } // anon namespace diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 03b66265855..0a21c33765e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,9 +1,14 @@ +2017-08-03 Jakub Jelinek + + PR target/81621 + * gcc.dg/pr81621.c: New test. + 2017-08-03 Richard Biener * gcc.dg/tree-ssa/reassoc-23.c: Adjust to fool early folding and CSE. -2017-08-03 Richard Biener +2017-08-03 Richard Biener PR middle-end/81148 * c-c++-common/ubsan/pr81148.c: New testcase. diff --git a/gcc/testsuite/gcc.dg/pr81621.c b/gcc/testsuite/gcc.dg/pr81621.c new file mode 100644 index 00000000000..fb41eab8961 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr81621.c @@ -0,0 +1,5 @@ +/* PR target/81621 */ +/* { dg-do compile { target freorder } } */ +/* { dg-options "-Og -fno-split-wide-types -freorder-blocks-and-partition" } */ + +#include "graphite/scop-10.c"