Commit 85fd4c28 by Richard Biener Committed by Richard Biener

re PR tree-optimization/64199 (ICE: tree check: expected class 'constant', have…

re PR tree-optimization/64199 (ICE: tree check: expected class 'constant', have 'binary' (plus_expr) in fold_binary_loc, at fold-const.c:10404 with -ffast-math -frounding-math)

2014-12-09  Richard Biener  <rguenther@suse.de>

	PR middle-end/64199
	* fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.

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

From-SVN: r218513
parent 60b6534a
2014-12-09 Richard Biener <rguenther@suse.de>
PR middle-end/64199
* fold-const.c (fold_binary_loc): Use TREE_OVERFLOW_P.
2014-12-09 Richard Biener <rguenther@suse.de>
PR tree-optimization/64191
* tree-vect-stmts.c (vect_stmt_relevant_p): Clobbers are
not relevant (nor are their uses).
......@@ -10398,8 +10398,8 @@ fold_binary_loc (location_t loc,
/* Don't introduce overflows through reassociation. */
if (!any_overflows
&& ((lit0 && TREE_OVERFLOW (lit0))
|| (minus_lit0 && TREE_OVERFLOW (minus_lit0))))
&& ((lit0 && TREE_OVERFLOW_P (lit0))
|| (minus_lit0 && TREE_OVERFLOW_P (minus_lit0))))
return NULL_TREE;
if (minus_lit0)
......
2014-12-09 Richard Biener <rguenther@suse.de>
PR middle-end/64199
* gcc.dg/torture/pr64199.c: New testcase.
2014-12-09 Ilya Enkovich <ilya.enkovich@intel.com>
* gcc.dg/lto/lto.exp: Load mpx-dg.exp.
......
/* { dg-do compile } */
/* { dg-additional-options "-ffast-math -frounding-math" } */
float
foo (void)
{
return 1.1f + 2.2f + 2.2f;
}
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