mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-10 16:00:55 +08:00
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:
parent
8245c1946e
commit
9f25f0adaf
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user