Commit f52e1d24 by Marek Polacek Committed by Marek Polacek

re PR middle-end/64292 (FAIL: g++.dg/torture/pr60474.C -O1 (internal compiler error))

	PR middle-end/64292
	* fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.

From-SVN: r218745
parent 4b4f2e35
2014-12-15 Marek Polacek <polacek@redhat.com>
PR middle-end/64292
* fold-const.c (negate_expr_p): Add INTEGRAL_TYPE_P check.
2014-12-15 Renlin Li <renlin.li@arm.com> 2014-12-15 Renlin Li <renlin.li@arm.com>
* config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2. * config/aarch64/aarch64.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
...@@ -400,7 +400,7 @@ negate_expr_p (tree t) ...@@ -400,7 +400,7 @@ negate_expr_p (tree t)
switch (TREE_CODE (t)) switch (TREE_CODE (t))
{ {
case INTEGER_CST: case INTEGER_CST:
if (TYPE_OVERFLOW_WRAPS (type)) if (INTEGRAL_TYPE_P (type) && TYPE_OVERFLOW_WRAPS (type))
return true; return true;
/* Check that -CST will not overflow type. */ /* Check that -CST will not overflow type. */
......
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