Commit cbad2e09 by Richard Guenther Committed by Richard Biener

re PR tree-optimization/34679 (ICE: tree check: expected integer_type, have…

re PR tree-optimization/34679 (ICE: tree check: expected integer_type, have enumeral_type in host_integerp, at tree.c:4949 (predictive commoning))

2008-01-09  Richard Guenther  <rguenther@suse.de>

	PR middle-end/34679
	* tree.c (host_integerp): Check for sizetype only if the
	type is an integer type.

From-SVN: r131425
parent 51631813
2008-01-09 Richard Guenther <rguenther@suse.de>
PR middle-end/34679
* tree.c (host_integerp): Check for sizetype only if the
type is an integer type.
2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com> 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
PR debug/26364 PR debug/26364
...@@ -4946,7 +4946,8 @@ host_integerp (const_tree t, int pos) ...@@ -4946,7 +4946,8 @@ host_integerp (const_tree t, int pos)
|| (! pos && TREE_INT_CST_HIGH (t) == -1 || (! pos && TREE_INT_CST_HIGH (t) == -1
&& (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0 && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0
&& (!TYPE_UNSIGNED (TREE_TYPE (t)) && (!TYPE_UNSIGNED (TREE_TYPE (t))
|| TYPE_IS_SIZETYPE (TREE_TYPE (t)))) || (TREE_CODE (TREE_TYPE (t)) == INTEGER_TYPE
&& TYPE_IS_SIZETYPE (TREE_TYPE (t)))))
|| (pos && TREE_INT_CST_HIGH (t) == 0))); || (pos && TREE_INT_CST_HIGH (t) == 0)));
} }
......
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