mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-23 19:14:53 +08:00
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:
parent
cf09842e67
commit
e0fd74691d
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user