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: RFA (varpool): PATCH to add forward-compatibility aliases for C++ ABI bugs


On Fri, Feb 26, 2010 at 9:16 PM, Jason Merrill <jason@redhat.com> wrote:
> On 02/26/2010 02:51 PM, Richard Guenther wrote:
>>
>> They are read back in as decls and simply registered with the varpool.
>
> Where does this happen?

In lto-streamer-in.c:lto_input_tree_ref

    case LTO_global_decl_ref:
    case LTO_result_decl_ref:
    case LTO_const_decl_ref:
    case LTO_imported_decl_ref:
    case LTO_label_decl_ref:
      ix_u = lto_input_uleb128 (ib);
      result = lto_file_decl_data_get_var_decl (data_in->file_data, ix_u);
      if (TREE_CODE (result) == VAR_DECL)
        varpool_mark_needed_node (varpool_node (result));

varpool_node (result) re-creates the varpool node.

Richard.

> Jason
>


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