[lto][patch] Don't write DECL_CONTEXT of LABEL_DECLs

Rafael Espindola espindola@google.com
Sat Jan 24 16:03:00 GMT 2009


> Sure.  Setting it to NULL_TREE here really doesn't make any
> difference, when we read the function body we will set it to
> current_function_decl (see the handler for GIMPLE_LABEL statements).

I don't think so. We have two independent representations. While
writing functions we use a different output block then when writing
globals (and things reachable from globals).  In fact, when writing
functions we use output_label_ref that eventually gets output with
output_string in output_named_labels. When writing things reachable
from globals, we use output_label_decl. In fact, a label that in
reachable from a static variable is written twice and no relation
among them is recorded :-(

> Diego.
>

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047



More information about the Gcc-patches mailing list