re PR rtl-optimization/38245 (stack corruption when a call is removed but not the...
authorJakub Jelinek <jakub@redhat.com>
Mon, 1 Dec 2008 14:34:51 +0000 (15:34 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 1 Dec 2008 14:34:51 +0000 (15:34 +0100)
commit193a36816ed0d74599591208bd1520e6d201d9fa
tree94654a380e73859bd598639a67717b56b13ace7a
parentd04dceb5ff1668e6e4bb5177f9f619f5e5fffa82
re PR rtl-optimization/38245 (stack corruption when a call is removed but not the outgoing argument pushes)

PR rtl-optimization/38245
* tree-vrp.c (abs_extent_range): New function.
(extract_range_from_binary_expr): Compute range
for *_DIV_EXPR even if vr1 is VR_VARYING, VR_ANTI_RANGE
or includes zero or if vr1 is VR_RANGE and op0 has some
other range.

* gcc.dg/pr38245-1.c: New test.
* gcc.dg/pr38245-2.c: New test.

From-SVN: r142317
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr38245-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr38245-2.c [new file with mode: 0644]
gcc/tree-vrp.c