diff options
| author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-09 12:14:01 +0000 |
|---|---|---|
| committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-09 12:14:01 +0000 |
| commit | b2ee3594e198f3b6ef5b6f86f602338abde00dd5 (patch) | |
| tree | 764f81577f0b53934a061bca964c5536a7368326 | |
| parent | f6ce55f77c89b711f5ff37fa69f55702a5d8a9be (diff) | |
| download | ppe42-gcc-b2ee3594e198f3b6ef5b6f86f602338abde00dd5.tar.gz ppe42-gcc-b2ee3594e198f3b6ef5b6f86f602338abde00dd5.zip | |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131425 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 6 | ||||
| -rw-r--r-- | gcc/tree.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1fca9bf777..f4ff71b2815 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +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> PR debug/26364 diff --git a/gcc/tree.c b/gcc/tree.c index d52f7c65868..02570b78c1a 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))); } |

