From dbe4d0704fc41055b9c2707ea5b1b9f3b5b8e379 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Sun, 1 Aug 2004 14:12:20 -0700 Subject: expr.c (expand_expr_real_1): Fix crash with variable sized types. * expr.c (expand_expr_real_1) : Fix crash with variable sized types. From-SVN: r85412 --- gcc/expr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/expr.c') diff --git a/gcc/expr.c b/gcc/expr.c index f2faae3..884bbe4 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -6977,8 +6977,8 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, size of the type isn't the same size as the bitfield, we must use bitfield operations. */ || (bitsize >= 0 - && (TREE_CODE (TYPE_SIZE (TREE_TYPE (exp))) - == INTEGER_CST) + && TYPE_SIZE (TREE_TYPE (exp)) + && TREE_CODE (TYPE_SIZE (TREE_TYPE (exp))) == INTEGER_CST && 0 != compare_tree_int (TYPE_SIZE (TREE_TYPE (exp)), bitsize))) { -- cgit v1.1