* varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
authorDaniel Jacobowitz <dan@codesourcery.com>
Sun, 13 Mar 2005 17:56:14 +0000 (17:56 +0000)
committerDaniel Jacobowitz <drow@gcc.gnu.org>
Sun, 13 Mar 2005 17:56:14 +0000 (17:56 +0000)
From-SVN: r96378

gcc/ChangeLog
gcc/varasm.c

index f3a66255d94f82abbc086ffbeb04547bbd743367..a5997e9ae1a5e5bda2a0a4562379c3a7be0314f6 100644 (file)
@@ -1,3 +1,7 @@
+2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
+
 2005-03-13  Roger Sayle  <roger@eyesopen.com>
 
        * expmed.c (expand_mult): Use synthetic multiplication sequences for
index e226a19dfee4f8d160c558ff454bff9a5ab6ba41..2ec5fe9e554db2c9ea24c22be00f21f8b7699e3b 100644 (file)
@@ -4602,7 +4602,7 @@ decl_tls_model (tree decl)
     }
 
   is_local = targetm.binds_local_p (decl);
-  if (!flag_pic)
+  if (!flag_shlib)
     {
       if (is_local)
        kind = TLS_MODEL_LOCAL_EXEC;