Commit 9f25f0ad by Richard Henderson Committed by Richard Henderson

expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR offsetting.

        * expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
        offsetting.

From-SVN: r91577
parent 8245c194
2004-12-01 Richard Henderson <rth@redhat.com>
* expr.c (get_inner_reference): Fix thinko in REAL/IMAGPART_EXPR
offsetting.
2004-12-01 Diego Novillo <dnovillo@redhat.com>
PR tree-optimization/18291
......
......@@ -5429,11 +5429,11 @@ get_inner_reference (tree exp, HOST_WIDE_INT *pbitsize,
break;
case REALPART_EXPR:
bit_offset = bitsize_zero_node;
break;
case IMAGPART_EXPR:
bit_offset = build_int_cst (bitsizetype, *pbitsize);
bit_offset = size_binop (PLUS_EXPR, bit_offset,
bitsize_int (*pbitsize));
break;
/* We can go inside most conversions: all NON_VALUE_EXPRs, all normal
......
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