https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97315
--- Comment #12 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Aldy Hernandez <al...@gcc.gnu.org>: https://gcc.gnu.org/g:91ae6930ed4a87d7b8e25e10378388b3f0dc1729 commit r11-3718-g91ae6930ed4a87d7b8e25e10378388b3f0dc1729 Author: Aldy Hernandez <al...@redhat.com> Date: Thu Oct 8 11:33:30 2020 +0200 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.