This is the mail archive of the
gcc-cvs@gcc.gnu.org
mailing list for the GCC project.
r217895 - in /trunk/gcc: ChangeLog testsuite/Ch...
- From: ppalka at gcc dot gnu dot org
- To: gcc-cvs at gcc dot gnu dot org
- Date: Thu, 20 Nov 2014 22:25:35 -0000
- Subject: r217895 - in /trunk/gcc: ChangeLog testsuite/Ch...
Author: ppalka
Date: Thu Nov 20 22:25:35 2014
New Revision: 217895
URL: https://gcc.gnu.org/viewcvs?rev=217895&root=gcc&view=rev
Log:
Disable an unsafe VRP transformation when -fno-strict-overflow is set
gcc/
* tree-vrp.c (test_for_singularity): New parameter
strict_overflow_p. Set *strict_overflow_p to true if signed
overflow must be undefined for the return value to satisfy the
conditional.
(simplify_cond_using_ranges): Don't perform the simplification
if it violates overflow rules.
gcc/testsuite/
* gcc.dg/no-strict-overflow-8.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/no-strict-overflow-8.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-vrp.c