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
This commit is contained in:
Richard Henderson 2004-12-01 12:33:50 -08:00 committed by Richard Henderson
parent 8245c1946e
commit 9f25f0adaf
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

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