aboutsummaryrefslogtreecommitdiff
path: root/gcc/builtins.c
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2020-10-12 13:00:12 -0400
committerAldy Hernandez <aldyh@redhat.com>2020-10-12 14:05:56 -0400
commit46f4a397ab0907ce5786e1f0b92030a73e8b89ef (patch)
tree67ca3e250b413689dbfc0cba603144d07c030721 /gcc/builtins.c
parentc5aad5a41838dbfd29ff114692ff9533b52746b4 (diff)
downloadgcc-46f4a397ab0907ce5786e1f0b92030a73e8b89ef.zip
gcc-46f4a397ab0907ce5786e1f0b92030a73e8b89ef.tar.gz
gcc-46f4a397ab0907ce5786e1f0b92030a73e8b89ef.tar.bz2
Do not ignore failures from gimple_range_calc_op2.
We were ignoring the return value if op2 returned false and getting garbage ranges propagated. gcc/ChangeLog: PR tree-optimization/97381 * gimple-range-gori.cc (gori_compute::compute_operand2_range): If a range cannot be calculated through operand 2, return false. gcc/testsuite/ChangeLog: * gcc.dg/pr97381.c: New test.
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions