diff options
author | DJ Delorie <dj@redhat.com> | 2001-11-26 17:29:46 -0500 |
---|---|---|
committer | DJ Delorie <dj@gcc.gnu.org> | 2001-11-26 17:29:46 -0500 |
commit | 8b6000fc8939e9c4e61add7ec67ebf2b5405f945 (patch) | |
tree | 35b519249ad421be9582c4f3d3c1341d27c73cc4 /gcc | |
parent | 3f0496e5b2031ff669d5710d9f902f5e12b52896 (diff) | |
download | gcc-8b6000fc8939e9c4e61add7ec67ebf2b5405f945.zip gcc-8b6000fc8939e9c4e61add7ec67ebf2b5405f945.tar.gz gcc-8b6000fc8939e9c4e61add7ec67ebf2b5405f945.tar.bz2 |
expr.c (store_constructor): Actually use the value computed if WORD_REGISTER_OPERATIONS.
* expr.c (store_constructor): Actually use the value computed
if WORD_REGISTER_OPERATIONS.
From-SVN: r47359
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/expr.c | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 35e5148..bb664b1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-11-26 DJ Delorie <dj@redhat.com> + + * expr.c (store_constructor): Actually use the value computed + if WORD_REGISTER_OPERATIONS. + 2001-11-26 Richard Henderson <rth@redhat.com> * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY @@ -4546,9 +4546,7 @@ store_constructor (exp, target, cleared, size) for (elt = CONSTRUCTOR_ELTS (exp); elt; elt = TREE_CHAIN (elt)) { tree field = TREE_PURPOSE (elt); -#ifdef WORD_REGISTER_OPERATIONS tree value = TREE_VALUE (elt); -#endif enum machine_mode mode; HOST_WIDE_INT bitsize; HOST_WIDE_INT bitpos = 0; @@ -4562,7 +4560,7 @@ store_constructor (exp, target, cleared, size) if (field == 0) continue; - if (cleared && is_zeros_p (TREE_VALUE (elt))) + if (cleared && is_zeros_p (value)) continue; if (host_integerp (DECL_SIZE (field), 1)) @@ -4655,7 +4653,7 @@ store_constructor (exp, target, cleared, size) } store_constructor_field (to_rtx, bitsize, bitpos, mode, - TREE_VALUE (elt), type, cleared, + value, type, cleared, get_alias_set (TREE_TYPE (field))); } } |