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: Some minor WPA effectivity issues


On Thu, Apr 29, 2010 at 11:53 AM, Jan Hubicka <hubicka@ucw.cz> wrote:
> @@ -534,7 +534,7 @@ DEF_VEC_ALLOC_P(lto_out_decl_state_ptr,
> ? ?by lto. ?This structure contains the tables that are needed by the
> ? ?serialized functions and ipa passes to connect themselves to the
> ? ?global types and decls as they are reconstituted. ?*/
> -struct lto_file_decl_data
> +struct GTY(()) lto_file_decl_data
> ?{
> ? /* Decl state currently used. */
> ? struct lto_in_decl_state *current_decl_state;
> @@ -544,22 +544,22 @@ struct lto_file_decl_data
> ? struct lto_in_decl_state *global_decl_state;
>
> ? /* Table of cgraph nodes present in this file. ?*/
> - ?lto_cgraph_encoder_t cgraph_node_encoder;
> + ?lto_cgraph_encoder_t GTY((skip)) cgraph_node_encoder;
>
> ? /* Hash table maps lto-related section names to location in file. ?*/
> - ?htab_t function_decl_states;
> + ?htab_t GTY((param_is (struct lto_in_decl_state))) function_decl_states;
>
> ? /* The .o file that these offsets relate to. ?*/
> - ?const char *file_name;
> + ?const char *GTY((skip)) file_name;
>
> ? /* Nonzero if this file should be recompiled with LTRANS. ?*/
> ? unsigned needs_ltrans_p : 1;
>
> ? /* Hash table maps lto-related section names to location in file. ?*/
> - ?htab_t section_hash_table;
> + ?htab_t GTY((skip)) section_hash_table;
>
> ? /* Hash new name of renamed global declaration to its original name. ?*/
> - ?htab_t renaming_hash_table;
> + ?htab_t GTY((skip)) renaming_hash_table;
> ?};
>
> ?struct lto_char_ptr_base

Does this have to live in GGC space? I'd think we should know the life
time of these objects, so you could just free them explicitly at the
right time, no?

Ciao!
Steven


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