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
This commit is contained in:
Richard Henderson 2004-08-01 14:12:20 -07:00 committed by Richard Henderson
parent ea0ad32920
commit dbe4d0704f
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-08-01 Richard Henderson <rth@redhat.com>
* expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
variable sized types.
2004-08-01 Richard Sandiford <rsandifo@redhat.com>
* doc/invoke.texi: In the MIPS options section, remove the passage

View File

@ -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)))
{