aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimplify.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2005-08-11 10:12:30 -0700
committerRichard Henderson <rth@gcc.gnu.org>2005-08-11 10:12:30 -0700
commit7fd6694bafed413f1dc161a5516517fa37fb1830 (patch)
treedc9d60066985f3f8081645e39f4558791fff0a50 /gcc/gimplify.c
parent4ead2a39a3dcee6901040ada8a8832963490138d (diff)
downloadgcc-7fd6694bafed413f1dc161a5516517fa37fb1830.zip
gcc-7fd6694bafed413f1dc161a5516517fa37fb1830.tar.gz
gcc-7fd6694bafed413f1dc161a5516517fa37fb1830.tar.bz2
re PR middle-end/23312 (ACATS ICE (32) gimplify_one_sizepos, at gimplify.c:4659)
PR middle-end/23312 * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE before using TYPE_IS_SIZETYPE. From-SVN: r102997
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r--gcc/gimplify.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c
index d207e7c..a1ef22e 100644
--- a/gcc/gimplify.c
+++ b/gcc/gimplify.c
@@ -4634,7 +4634,9 @@ gimplify_one_sizepos (tree *expr_p, tree *stmt_p)
type-stripping code with this knowledge because it doesn't matter
for the bulk of GENERIC/GIMPLE. It only matters that TYPE_SIZE_UNIT
and friends retain their "sizetype-ness". */
- if (TREE_TYPE (expr) != type && TYPE_IS_SIZETYPE (type))
+ if (TREE_TYPE (expr) != type
+ && TREE_CODE (type) == INTEGER_TYPE
+ && TYPE_IS_SIZETYPE (type))
{
tree tmp;