aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/varasm.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f3a6625..a5997e9 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/varasm.c b/gcc/varasm.c
index e226a19..2ec5fe9 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -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;