Commit cd5091f1 by Richard Biener Committed by Richard Biener

re PR middle-end/89677 (internal compiler error: in wide_int_to_tree_1, at tree.c:1549)

2019-03-13  Richard Biener  <rguenther@suse.de>

	PR middle-end/89677
	* tree-scalar-evolution.c (simplify_peeled_chrec): Do not
	throw FP expressions at tree-affine.

	* gcc.dg/torture/pr89677.c: New testcase.

From-SVN: r269646
parent c045ea57
2019-03-13 Richard Biener <rguenther@suse.de>
PR middle-end/89677
* tree-scalar-evolution.c (simplify_peeled_chrec): Do not
throw FP expressions at tree-affine.
2019-03-14 Richard Biener <rguenther@suse.de> 2019-03-14 Richard Biener <rguenther@suse.de>
* tree-pretty-print.c (dump_generic_node): For -gimple properly * tree-pretty-print.c (dump_generic_node): For -gimple properly
......
2019-03-13 Richard Biener <rguenther@suse.de>
PR middle-end/89677
* gcc.dg/torture/pr89677.c: New testcase.
2019-03-13 Paolo Carlini <paolo.carlini@oracle.com> 2019-03-13 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/85558 PR c++/85558
......
/* { dg-do compile } */
/* { dg-require-effective-target int32plus } */
int a, b, d;
unsigned c;
float e, f, g;
void h() {
float *i = &g;
for (; c < 10; c += 3)
for (; d; d += 3) {
a = *i;
g = f + 0;
f = b + *i + (b - e + 305219) + -b + 3;
}
}
...@@ -1456,6 +1456,11 @@ simplify_peeled_chrec (struct loop *loop, tree arg, tree init_cond) ...@@ -1456,6 +1456,11 @@ simplify_peeled_chrec (struct loop *loop, tree arg, tree init_cond)
return build_polynomial_chrec (loop->num, init_cond, right); return build_polynomial_chrec (loop->num, init_cond, right);
} }
/* The affine code only deals with pointer and integer types. */
if (!POINTER_TYPE_P (type)
&& !INTEGRAL_TYPE_P (type))
return chrec_dont_know;
/* Try harder to check if they are equal. */ /* Try harder to check if they are equal. */
tree_to_aff_combination_expand (left, type, &aff1, &peeled_chrec_map); tree_to_aff_combination_expand (left, type, &aff1, &peeled_chrec_map);
tree_to_aff_combination_expand (step_val, type, &aff2, &peeled_chrec_map); tree_to_aff_combination_expand (step_val, type, &aff2, &peeled_chrec_map);
......
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