http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46510

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2010.11.17 16:21:39
     Ever Confirmed|0                           |1

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2010-11-17 
16:21:39 UTC ---
Can you, please, try if the following works?
Index: tree-emutls.c
===================================================================
--- tree-emutls.c       (revision 166864)
+++ tree-emutls.c       (working copy)
@@ -324,7 +324,8 @@ new_emutls_decl (tree decl)
       record_references_in_initializer (to, false);
     }

-  varpool_finalize_decl (to);
+  if (!DECL_EXTERNAL (to))
+    varpool_finalize_decl (to);
   return to;
 }

We should not finalize external vars.

Reply via email to