[patch] tree-cfg.c (create_bb): Remove unnecessary memset.
Jeffrey A Law
law@redhat.com
Tue Nov 9 16:48:00 GMT 2004
On Sat, 2004-11-06 at 21:30 -0500, Kazu Hirata wrote:
> Hi,
>
> Attached is a patch to remove unnecessary memset.
>
> cfg.c:alloc_block uses ggc_alloc_cleared to allocate a basic block, so
> we don't need to use memset again.
>
> Tested on i686-pc-linux-gnu. OK to apply?
>
> Kazu Hirata
>
> 2004-11-06 Kazu Hirata <kazu@cs.umass.edu>
>
> * tree-cfg.c (create_bb): Remove unnecessary memset.
OK assuming you add a suitable comment indicating that alloc_block
suitably initializes the block it creates.
jeff
More information about the Gcc-patches
mailing list