[lto][patch] Support labels on static initializers

Diego Novillo dnovillo@google.com
Wed Jul 23 00:01:00 GMT 2008


On Tue, Jul 22, 2008 at 12:45, Rafael Espindola <espindola@google.com> wrote:

> 2008-07-22  Rafael Avila de Espindola  <espindola@google.com>
>
>        * lto-function-in.c (lto_read_body): Read labels.
>        * lto-function-out.c (create_output_block): Always allocate named_label_stream.
>        Always create label_hash_table and local_decl_hash_table.
>        (destroy_output_block): Always delete label_hash_table and
> local_decl_hash_table.
>        Always free named_label_stream.
>        Always clean debug_label_stream.
>        Always free named_labels.
>        (produce_asm): Always set num_local_decls, num_named_labels,
> num_unnamed_labels, named_label_size and
>        debug_label_size.
>        Always write named_label_stream and debug_label_stream.
>        (output_constructors_and_inits): Output labels.

The calls to xcalloc could be simplified by calling XCNEW (I realize
that this is not something that your patch introduced).

The rest looks fine.


Diego.



More information about the Gcc-patches mailing list