On Wed, Jul 11, 2012 at 11:41 AM, Steven Bosscher <stevenb....@gmail.com> wrote:
> Hello,
>
> One for under the "eat your own dog food" header.
>
> Bootstrapped and tested on powerpc64-unknown-linux-gnu.
> cc1 is a few bytes smaller. I expect the benefits to be more
> noticeable with an LTO-enabled bootstrap, but I haven't figured out
> yet how to do that :-)
>
> OK for trunk?

Hmm, we assume that the contents of the allocated memory is
undefined (zero content is ok practically).  So if there is no hidden
init code anywhere in those functions the patch is ok.

Thanks,
Richard.


> Ciao!
> Steven
>
>         * ggc.h (ggc_internal_alloc_stat, ggc_alloc_typed_stat,
>         ggc_internal_cleared_alloc_stat, ggc_cleared_alloc_htab_ignore_args,
>         ggc_cleared_alloc_ptr_array_two_args, ggc_splay_alloc): Add
>         ATTRIBUTE_MALLOC.
>         * alloc-pool.h (pool_alloc): Likewise.

Reply via email to