From: Richard Guenther Date: Wed, 9 Jan 2008 12:14:01 +0000 (+0000) Subject: re PR tree-optimization/34679 (ICE: tree check: expected integer_type, have enumeral_... X-Git-Tag: releases/gcc-4.3.0~680 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbad2e09260a2898b3384dded5f3ce2651e17425;p=thirdparty%2Fgcc.git 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 PR middle-end/34679 * tree.c (host_integerp): Check for sizetype only if the type is an integer type. From-SVN: r131425 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1fca9bf7776..f4ff71b28159 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-01-09 Richard Guenther + + PR middle-end/34679 + * tree.c (host_integerp): Check for sizetype only if the + type is an integer type. + 2008-01-09 Steven Bosscher PR debug/26364 diff --git a/gcc/tree.c b/gcc/tree.c index d52f7c658688..02570b78c1a3 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4946,7 +4946,8 @@ host_integerp (const_tree t, int pos) || (! pos && TREE_INT_CST_HIGH (t) == -1 && (HOST_WIDE_INT) TREE_INT_CST_LOW (t) < 0 && (!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))); }