This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch 7/10] debug-early merge: LTO
- From: Aldy Hernandez <aldyh at redhat dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 07 May 2015 17:37:47 -0700
- Subject: [patch 7/10] debug-early merge: LTO
- Authentication-results: sourceware.org; auth=none
gcc/lto/
* lto-lang.c (lto_write_globals): Remove.
(LANG_HOOKS_WRITE_GLOBALS): Same.
diff --git a/gcc/lto/lto-lang.c b/gcc/lto/lto-lang.c
index 073bf17..094ed1f 100644
--- a/gcc/lto/lto-lang.c
+++ b/gcc/lto/lto-lang.c
@@ -1116,19 +1116,6 @@ lto_getdecls (void)
return NULL_TREE;
}
-static void
-lto_write_globals (void)
-{
- if (flag_wpa)
- return;
-
- /* Output debug info for global variables. */
- varpool_node *vnode;
- FOR_EACH_DEFINED_VARIABLE (vnode)
- if (!decl_function_context (vnode->decl))
- debug_hooks->global_decl (vnode->decl);
-}
-
static tree
lto_builtin_function (tree decl)
{
@@ -1334,8 +1321,6 @@ static void lto_init_ts (void)
#define LANG_HOOKS_PUSHDECL lto_pushdecl
#undef LANG_HOOKS_GETDECLS
#define LANG_HOOKS_GETDECLS lto_getdecls
-#undef LANG_HOOKS_WRITE_GLOBALS
-#define LANG_HOOKS_WRITE_GLOBALS lto_write_globals
#undef LANG_HOOKS_REGISTER_BUILTIN_TYPE
#define LANG_HOOKS_REGISTER_BUILTIN_TYPE lto_register_builtin_type
#undef LANG_HOOKS_BUILTIN_FUNCTION