diff options
author | Richard Henderson <rth@redhat.com> | 2004-08-01 14:12:20 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2004-08-01 14:12:20 -0700 |
commit | dbe4d0704fc41055b9c2707ea5b1b9f3b5b8e379 (patch) | |
tree | 1aa583e9dbebf5feffa817b4c13da301637d0351 /gcc/expr.c | |
parent | ea0ad329208eaed8bcaa330f81ba4c45527a9ad1 (diff) | |
download | gcc-dbe4d0704fc41055b9c2707ea5b1b9f3b5b8e379.zip gcc-dbe4d0704fc41055b9c2707ea5b1b9f3b5b8e379.tar.gz gcc-dbe4d0704fc41055b9c2707ea5b1b9f3b5b8e379.tar.bz2 |
expr.c (expand_expr_real_1): Fix crash with variable sized types.
* expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
variable sized types.
From-SVN: r85412
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))) { |