This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Fix PR23477
On Tue, 30 Aug 2005, Richard Guenther wrote:
> *************** expand_expr_real_1 (tree exp, rtx target
> *** 6843,6848 ****
> --- 6861,6880 ----
> return const0_rtx;
> }
>
> + /* Try to avoid creating a temporary at all. This is possible
> + if we can construct with a single memset, which store_constructor
> + knows how to do.
> + FIXME: exchange all_zeros_p for something that allows all
> + [0..255] initializers. */
> + else if (TREE_STATIC (exp)
> + && !TREE_ADDRESSABLE (exp)
> + && target != 0 && mode == BLKmode
> + && all_zeros_p (exp))
> + {
> + store_constructor (exp, target, 0, int_expr_size (exp));
I noticed I could use clear_storage here.
Ok with that change, too?
Richard.