This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lto][patch] Reset lang_hooks.dwarf_name
> You forgot the patch, but I guess it can't be too long.
Attached.
>
> Diego.
>
Cheers,
--
Rafael Avila de Espindola
Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index bc1c211..9ce2b92 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -2134,7 +2134,7 @@ tree.o : tree.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) \
all-tree.def $(FLAGS_H) $(FUNCTION_H) $(PARAMS_H) \
$(TOPLEV_H) $(GGC_H) $(HASHTAB_H) $(TARGET_H) output.h $(TM_P_H) langhooks.h \
$(REAL_H) gt-tree.h tree-iterator.h $(BASIC_BLOCK_H) $(TREE_FLOW_H) \
- $(OBSTACK_H) pointer-set.h fixed-value.h tree-pass.h
+ $(OBSTACK_H) pointer-set.h fixed-value.h tree-pass.h langhooks-def.h
tree-dump.o: tree-dump.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \
$(TREE_H) langhooks.h $(TOPLEV_H) $(SPLAY_TREE_H) $(TREE_DUMP_H) \
tree-iterator.h tree-pass.h $(DIAGNOSTIC_H) $(REAL_H) fixed-value.h
diff --git a/gcc/tree.c b/gcc/tree.c
index da921d2..d5ed16a 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -52,6 +52,7 @@ along with GCC; see the file COPYING3. If not see
#include "pointer-set.h"
#include "fixed-value.h"
#include "tree-pass.h"
+#include "langhooks-def.h"
/* Tree code classes. */
@@ -4167,6 +4168,9 @@ free_lang_specifics (void)
/* Reset some langhooks. */
lang_hooks.callgraph.analyze_expr = NULL;
+ /* FIXME lto: We have to compute these names early. */
+ lang_hooks.dwarf_name = lhd_dwarf_name;
+
return 0;
}