https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103079
--- Comment #11 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:004afb984beb6efbe25f44a5857b1c27ebc2ec82 commit r12-4921-g004afb984beb6efbe25f44a5857b1c27ebc2ec82 Author: Andrew MacLeod <amacl...@redhat.com> Date: Thu Nov 4 11:07:28 2021 -0400 Treat undefined operands as varying in GORI. If the LHS is UNDEFINED simply stop calculating. Treat op1 and op2 as VARYING if they are UNDEFINED. PR tree-optimization/103079 gcc/ * gimple-range-gori.cc (gimple_range_calc_op1): Treat undefined as varying. (gimple_range_calc_op2): Ditto. gcc/testsuite/ * gcc.dg/pr103079.c: New.