Commit 283416b3 by Richard Biener Committed by Richard Biener

re PR fortran/60060 (lto1: internal compiler error: in add_AT_specification, at dwarf2out.c:4096)

2014-02-12  Richard Biener  <rguenther@suse.de>

	PR lto/60060
	* lto-lang.c (lto_write_globals): Do not call
	wrapup_global_declarations or emit_debug_global_declarations
	but emit debug info for non-function scope variables
	directly.

From-SVN: r207715
parent 62b03553
2014-02-12 Richard Biener <rguenther@suse.de>
PR lto/60060
* lto-lang.c (lto_write_globals): Do not call
wrapup_global_declarations or emit_debug_global_declarations
but emit debug info for non-function scope variables
directly.
2014-02-06 Jan Hubicka <hubicka@ucw.cz> 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
* lto.c (unify_scc): Free CONSTRUCTOR_ELTS. * lto.c (unify_scc): Free CONSTRUCTOR_ELTS.
......
...@@ -1082,17 +1082,11 @@ lto_write_globals (void) ...@@ -1082,17 +1082,11 @@ lto_write_globals (void)
if (flag_wpa) if (flag_wpa)
return; return;
/* Record the global variables. */ /* Output debug info for global variables. */
vec<tree> lto_global_var_decls = vNULL;
varpool_node *vnode; varpool_node *vnode;
FOR_EACH_DEFINED_VARIABLE (vnode) FOR_EACH_DEFINED_VARIABLE (vnode)
lto_global_var_decls.safe_push (vnode->decl); if (!decl_function_context (vnode->decl))
debug_hooks->global_decl (vnode->decl);
tree *vec = lto_global_var_decls.address ();
int len = lto_global_var_decls.length ();
wrapup_global_declarations (vec, len);
emit_debug_global_declarations (vec, len);
lto_global_var_decls.release ();
} }
static tree static tree
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment