aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/varasm.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.3/gcc/varasm.c')
-rw-r--r--gcc-4.4.3/gcc/varasm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc-4.4.3/gcc/varasm.c b/gcc-4.4.3/gcc/varasm.c
index 670c887ee..3874e10d3 100644
--- a/gcc-4.4.3/gcc/varasm.c
+++ b/gcc-4.4.3/gcc/varasm.c
@@ -5702,7 +5702,11 @@ decl_default_tls_model (const_tree decl)
bool is_local;
is_local = targetm.binds_local_p (decl);
- if (!flag_shlib)
+ #ifdef ENABLE_ESP
+ if (!flag_pic)
+ #else
+ if (!flag_shlib)
+ #endif
{
if (is_local)
kind = TLS_MODEL_LOCAL_EXEC;