]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR middle-end/41357 (libgomp build fail)
authorDave Korn <dave.korn.cygwin@gmail.com>
Tue, 22 Sep 2009 01:33:53 +0000 (01:33 +0000)
committerDave Korn <davek@gcc.gnu.org>
Tue, 22 Sep 2009 01:33:53 +0000 (01:33 +0000)
PR middle-end/41357
* varasm.c (default_encode_section_info): Copy TLS model into
sym_ref flags regardless of backend support for TLS, for all
model types except TLS_MODEL_EMULATED.

From-SVN: r151959

gcc/ChangeLog
gcc/varasm.c

index 39f34895c381f53c69e44bb1f5bd8d2720cdc169..4d72c8bed65287b40546298d3502d20f1008a3bc 100644 (file)
@@ -1,3 +1,10 @@
+2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+       PR middle-end/41357
+       * varasm.c (default_encode_section_info): Copy TLS model into
+       sym_ref flags regardless of backend support for TLS, for all
+       model types except TLS_MODEL_EMULATED.
+
 2009-09-22  Dave Korn  <dave.korn.cygwin@gmail.com>
 
        PR bootstrap/41404
index f8cc2914693b57365ffcf00d745f26203b5626bb..8a61fd26247724f4f5ef43f3c2b289cf803c5749 100644 (file)
@@ -6417,8 +6417,8 @@ default_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED)
     flags |= SYMBOL_FLAG_FUNCTION;
   if (targetm.binds_local_p (decl))
     flags |= SYMBOL_FLAG_LOCAL;
-  if (targetm.have_tls && TREE_CODE (decl) == VAR_DECL
-      && DECL_THREAD_LOCAL_P (decl))
+  if (TREE_CODE (decl) == VAR_DECL && DECL_THREAD_LOCAL_P (decl)
+      && DECL_TLS_MODEL (decl) != TLS_MODEL_EMULATED)
     flags |= DECL_TLS_MODEL (decl) << SYMBOL_FLAG_TLS_SHIFT;
   else if (targetm.in_small_data_p (decl))
     flags |= SYMBOL_FLAG_SMALL;