This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lto][patch] Support labels on static initializers


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]