re PR tree-optimization/83055 (ICE in operator>, at profile-count.h:834)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 25 Jan 2018 17:24:06 +0000 (18:24 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 25 Jan 2018 17:24:06 +0000 (17:24 +0000)
commit19e502d4132a2b02e71f75e4a20e6396081cdbc5
tree40eefb30e2607667caeed4fc99309a54ae635dbd
parent41df0109de5fe4ddad66bfd742ee813688362ab8
re PR tree-optimization/83055 (ICE in operator>, at profile-count.h:834)

PR middle-end/83055
* predict.c (drop_profile): Do not push/pop cfun; update also
node->count.
(handle_missing_profiles): Fix logic looking for zero profiles.

* gcc.dg/torture/pr83055.c: New testcase.

From-SVN: r257059
gcc/ChangeLog
gcc/predict.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr83055.c [new file with mode: 0644]