re PR middle-end/83718 (ICE: Floating point exception in profile_count::apply_scale)
authorJan Hubicka <hubicka@ucw.cz>
Thu, 11 Jan 2018 17:46:01 +0000 (18:46 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 11 Jan 2018 17:46:01 +0000 (17:46 +0000)
commit0526ed2aef5ba7faa8ea26015e9854db82a71395
tree6a051a2a597b48848496adda5a5ea9f6e557b696
parent2a3af45c6b932a9697484c681b35b1dd87efce65
re PR middle-end/83718 (ICE: Floating point exception in profile_count::apply_scale)

PR middle-end/83718
* tree-inline.c (copy_cfg_body): Adjust num&den for scaling
after they are computed.
* g++.dg/torture/pr83718.C: New testcase.

From-SVN: r256544
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr83718.C [new file with mode: 0644]
gcc/tree-inline.c