re PR middle-end/41357 (libgomp build fail)

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
This commit is contained in:
Dave Korn 2009-09-22 01:33:53 +00:00 committed by Dave Korn
parent cf09842e67
commit e0fd74691d
2 changed files with 9 additions and 2 deletions

View 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

View 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;