diff options
author | Richard Stallman <rms@gnu.org> | 1993-04-05 10:55:34 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-04-05 10:55:34 +0000 |
commit | 597bb7f10b5819fa4209fb5d981f5d660661fb00 (patch) | |
tree | 6f42deec65d5ed116fe3fa64e651113d9b90801c /gcc | |
parent | f062da046b8132f0d041a5808db21084a627c6ee (diff) | |
download | gcc-597bb7f10b5819fa4209fb5d981f5d660661fb00.zip gcc-597bb7f10b5819fa4209fb5d981f5d660661fb00.tar.gz gcc-597bb7f10b5819fa4209fb5d981f5d660661fb00.tar.bz2 |
(store_constructor): Properly compute size of array when
clearing the whole array.
From-SVN: r4021
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2565,7 +2565,7 @@ store_constructor (exp, target) if (list_length (CONSTRUCTOR_ELTS (exp)) < maxelt - minelt + 1 || (GET_CODE (target) == REG && TREE_STATIC (exp))) - clear_storage (target, maxelt - minelt + 1); + clear_storage (target, int_size_in_bytes (type)); else /* Inform later passes that the old value is dead. */ emit_insn (gen_rtx (CLOBBER, VOIDmode, target)); |