From 0bfb33e5132c4ff67d461a2cda31ed05365446d1 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 13 Mar 2005 17:56:14 +0000 Subject: [PATCH] * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic. From-SVN: r96378 --- gcc/ChangeLog | 4 ++++ gcc/varasm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f3a66255d94f..a5997e9ae1a5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2005-03-13 Daniel Jacobowitz + + * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic. + 2005-03-13 Roger Sayle * expmed.c (expand_mult): Use synthetic multiplication sequences for diff --git a/gcc/varasm.c b/gcc/varasm.c index e226a19dfee4..2ec5fe9e554d 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;