Commit 737fde1d by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/64563 (ICE with "-Wall -Wextra" at -Os and above on x86_64-linux-gnu)

	PR tree-optimization/64563
	* tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
	instead of != VR_VARYING.

	* gcc.dg/pr64563.c: New test.

From-SVN: r219493
parent 631b8d78
2015-01-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/64563
* tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
instead of != VR_VARYING.
PR target/64513
* config/i386/i386.c (ix86_expand_prologue): Add
REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
......
2015-01-12 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/64563
* gcc.dg/pr64563.c: New test.
PR target/64513
* gcc.target/i386/pr64513.c: New test.
......
/* PR tree-optimization/64563 */
/* { dg-do compile } */
/* { dg-options "-Os -Wtype-limits" } */
int a, b, c, d, f;
unsigned int e;
void
foo (void)
{
d = b = (a != (e | 4294967288UL));
if (!d)
c = f || b;
}
......@@ -7545,7 +7545,7 @@ vrp_evaluate_conditional (enum tree_code code, tree op0, tree op1, gimple stmt)
tree type = TREE_TYPE (op0);
value_range_t *vr0 = get_value_range (op0);
if (vr0->type != VR_VARYING
if (vr0->type == VR_RANGE
&& INTEGRAL_TYPE_P (type)
&& vrp_val_is_min (vr0->min)
&& vrp_val_is_max (vr0->max)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment