------- Comment #1 from jakub at gcc dot gnu dot org  2007-12-15 13:40 -------
--- gcc/varasm.c.jj101      2007-12-06 11:53:42.000000000 +0100
+++ gcc/varasm.c    2007-12-15 14:33:36.000000000 +0100
@@ -5519,7 +5519,7 @@ decl_default_tls_model (const_tree decl)
   is_local = targetm.binds_local_p (decl);
   if (!flag_shlib)
     {
-      if (is_local)
+      if (is_local && !flag_pic)
        kind = TLS_MODEL_LOCAL_EXEC;
       else
        kind = TLS_MODEL_INITIAL_EXEC;
will fix this (for all targets).  Will work on a testcase that covers at least
a bunch of common targets.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
          Component|target                      |middle-end
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2007-12-15 13:40:08
               date|                            |


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

Reply via email to