From: Richard Guenther Date: Wed, 9 Jan 2008 13:43:03 +0000 (+0000) Subject: re PR tree-optimization/34679 (ICE: tree check: expected integer_type, have enumeral_... X-Git-Tag: prereleases/gcc-4.2.3-rc1~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=559ca9eb92fc47f248bb8457981d29a3c0533358;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: r131427 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 964d936139d9..b77162672a0e 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-06 Anatoly Sokolov * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): Move AT90USB82 diff --git a/gcc/tree.c b/gcc/tree.c index 2bb8aa684768..f4beaf021ebe 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -4540,7 +4540,8 @@ host_integerp (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))); }