aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-04-05 10:55:34 +0000
committerRichard Stallman <rms@gnu.org>1993-04-05 10:55:34 +0000
commit597bb7f10b5819fa4209fb5d981f5d660661fb00 (patch)
tree6f42deec65d5ed116fe3fa64e651113d9b90801c /gcc
parentf062da046b8132f0d041a5808db21084a627c6ee (diff)
downloadgcc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 3d0bc0e..eadf2e3 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -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));