Use HOST_WIDE_INT for a param calculation (PR rtl-optimization/79574).
authorMartin Liska <mliska@suse.cz>
Fri, 17 Feb 2017 14:46:14 +0000 (15:46 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 17 Feb 2017 14:46:14 +0000 (14:46 +0000)
commita261ee491356c5d4a152bcf02415243bb9eb185b
tree7954301496dfe1429e4202e6c3eb06ba39578afd
parentc6b0d21d49a2605b2c667cec37b31140133b1fd5
Use HOST_WIDE_INT for a param calculation (PR rtl-optimization/79574).

2017-02-17  Martin Liska  <mliska@suse.cz>

PR rtl-optimization/79574
* gcc.dg/pr79574.c: New test.
2017-02-17  Martin Liska  <mliska@suse.cz>

PR rtl-optimization/79574
* gcse.c (want_to_gcse_p): Prevent integer overflow.

From-SVN: r245531
gcc/ChangeLog
gcc/gcse.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr79574.c [new file with mode: 0644]