Commit 3d27e066 by Jason Merrill Committed by Jason Merrill

re PR ipa/59469 (LLVM build failure with gcc LTO)

	PR c++/59469
	* pt.c (mark_decl_instantiated): Call mark_needed.

From-SVN: r207366
parent d2050c1a
2014-01-31 Jason Merrill <jason@redhat.com>
PR c++/59469
* pt.c (mark_decl_instantiated): Call mark_needed.
PR c++/58672
* decl2.c (handle_tls_init): Handle null init fn.
......
......@@ -17967,6 +17967,7 @@ mark_decl_instantiated (tree result, int extern_p)
else
{
mark_definable (result);
mark_needed (result);
/* Always make artificials weak. */
if (DECL_ARTIFICIAL (result) && flag_weak)
comdat_linkage (result);
......
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