Fix PR97315 (part 2 of 2)
authorAldy Hernandez <aldyh@redhat.com>
Thu, 8 Oct 2020 09:33:30 +0000 (11:33 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Thu, 8 Oct 2020 09:33:30 +0000 (11:33 +0200)
commit91ae6930ed4a87d7b8e25e10378388b3f0dc1729
tree836ee5c9ce2998193b962ac2f7e45f3296a536e5
parent214d514fafcd78cd54e4a4aa9ae08c89abf9cc57
Fix PR97315 (part 2 of 2)

gcc/ChangeLog:

PR tree-optimization/97315
* range-op.cc (value_range_with_overflow): Change any
non-overflow calculation in which both bounds are
overflow/underflow to be undefined.

gcc/testsuite/ChangeLog:

* gcc.dg/pr97315-2.c: New test.
gcc/range-op.cc
gcc/testsuite/gcc.dg/pr97315-2.c [new file with mode: 0644]