]> gcc.gnu.org Git - gcc.git/commit
ipa/96806 - Fix ICE in ipa-cp due to integer addition overflow
authorFeng Xue <fxue@os.amperecomputing.com>
Mon, 31 Aug 2020 07:00:52 +0000 (15:00 +0800)
committerFeng Xue <fxue@os.amperecomputing.com>
Mon, 31 Aug 2020 08:34:56 +0000 (16:34 +0800)
commite11c4b7f837bc6b4c22b1f5bf41a9d0608d256be
treeffb9d8482bb15ce646ace8e502a9e502ea2de5e0
parent0106300f6c3f7bae5eb1c46dbd45aa07c94e1b15
ipa/96806 - Fix ICE in ipa-cp due to integer addition overflow

2020-08-31  Feng Xue  <fxue@os.amperecomputing.com>

gcc/
PR tree-optimization/96806
* ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
overflow.

gcc/testsuite/
PR tree-optimization/96806
* g++.dg/ipa/pr96806.C: New test.
gcc/ipa-cp.c
gcc/testsuite/g++.dg/ipa/pr96806.C [new file with mode: 0644]
This page took 0.060991 seconds and 6 git commands to generate.