Commit e0fd7469 by Dave Korn Committed by Dave Korn

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
parent cf09842e
2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com> 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 PR bootstrap/41404
* dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until * dwarf2out.c (mem_loc_descriptor): Punt on CONST_STRING until
we can handle it correctly. we can handle it correctly.
......
...@@ -6417,8 +6417,8 @@ default_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED) ...@@ -6417,8 +6417,8 @@ default_encode_section_info (tree decl, rtx rtl, int first ATTRIBUTE_UNUSED)
flags |= SYMBOL_FLAG_FUNCTION; flags |= SYMBOL_FLAG_FUNCTION;
if (targetm.binds_local_p (decl)) if (targetm.binds_local_p (decl))
flags |= SYMBOL_FLAG_LOCAL; flags |= SYMBOL_FLAG_LOCAL;
if (targetm.have_tls && TREE_CODE (decl) == VAR_DECL if (TREE_CODE (decl) == VAR_DECL && DECL_THREAD_LOCAL_P (decl)
&& DECL_THREAD_LOCAL_P (decl)) && DECL_TLS_MODEL (decl) != TLS_MODEL_EMULATED)
flags |= DECL_TLS_MODEL (decl) << SYMBOL_FLAG_TLS_SHIFT; flags |= DECL_TLS_MODEL (decl) << SYMBOL_FLAG_TLS_SHIFT;
else if (targetm.in_small_data_p (decl)) else if (targetm.in_small_data_p (decl))
flags |= SYMBOL_FLAG_SMALL; flags |= SYMBOL_FLAG_SMALL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment