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]

[lto] Reset lang_hooks.expr_size after free_lang_data


This was causing build failures in libstdc++ with free_lang_data
enabled on trunk.  The backend was trying to get into FE data
when expanding to RTL.

Bootstrapped and tested on x86_64.


	* tree.c (free_lang_data): Reset lang_hooks.expr_size.

Index: tree.c
===================================================================
--- tree.c	(revision 150754)
+++ tree.c	(working copy)
@@ -4797,6 +4797,7 @@ free_lang_data (void)
   /* Reset some langhooks.  */
   lang_hooks.callgraph.analyze_expr = NULL;
   lang_hooks.types_compatible_p = NULL;
+  lang_hooks.expr_size = lhd_expr_size;
 
   /* FIXME lto: We have to compute these names early.  */
   lang_hooks.dwarf_name = lhd_dwarf_name;


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