diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2019-04-18 12:30:36 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2019-04-18 12:30:36 +0000 |
commit | 714996e2c2e1fd788c87b3a87648977468ad4251 (patch) | |
tree | be03f26d6f967997c007886d0080a9d364a3f1e2 /gcc/tree-outof-ssa.c | |
parent | cd7f7c54a43c435152b2ac76b6e74ae6a3430472 (diff) | |
download | gcc-714996e2c2e1fd788c87b3a87648977468ad4251.zip gcc-714996e2c2e1fd788c87b3a87648977468ad4251.tar.gz gcc-714996e2c2e1fd788c87b3a87648977468ad4251.tar.bz2 |
Fix UB in int_const_binop
When testing PR 85164, the baseline bootstrap-ubsan results had
a lot of failures from int_const_binop. This is because with the
new overflow handling we can sometimes do:
poly_res = res;
on an uninitialised res.
2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* fold-const.c (int_const_binop): Return early on failure.
From-SVN: r270443
Diffstat (limited to 'gcc/tree-outof-ssa.c')
0 files changed, 0 insertions, 0 deletions