Commit dbe4d070 by Richard Henderson Committed by Richard Henderson

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
parent ea0ad329
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> 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
* doc/invoke.texi: In the MIPS options section, remove the passage * doc/invoke.texi: In the MIPS options section, remove the passage
......
...@@ -6977,8 +6977,8 @@ expand_expr_real_1 (tree exp, rtx target, enum machine_mode tmode, ...@@ -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, size of the type isn't the same size as the bitfield,
we must use bitfield operations. */ we must use bitfield operations. */
|| (bitsize >= 0 || (bitsize >= 0
&& (TREE_CODE (TYPE_SIZE (TREE_TYPE (exp))) && TYPE_SIZE (TREE_TYPE (exp))
== INTEGER_CST) && TREE_CODE (TYPE_SIZE (TREE_TYPE (exp))) == INTEGER_CST
&& 0 != compare_tree_int (TYPE_SIZE (TREE_TYPE (exp)), && 0 != compare_tree_int (TYPE_SIZE (TREE_TYPE (exp)),
bitsize))) bitsize)))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment