Call decl_default_tls_model with a proper type (PR gcov-profile/88279).

2018-11-30  Alexander Monakov  <amonakov@ispras.ru>

	PR gcov-profile/88279
	* tree-profile.c (init_ic_make_global_vars): Call
	decl_default_tls_model for variable and not it's type.

From-SVN: r266666
This commit is contained in:
Alexander Monakov 2018-11-30 18:06:22 +03:00 committed by Martin Liska
parent 427071d4a4
commit 37eafc06dd
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2018-11-30 Alexander Monakov <amonakov@ispras.ru>
PR gcov-profile/88279
* tree-profile.c (init_ic_make_global_vars): Call
decl_default_tls_model for variable and not it's type.
2018-11-30 Sam Tebbs <sam.tebbs@arm.com>
* config/arm/arm.h (TARGET_DOTPROD): Add TARGET_VFP5 constraint.

View File

@ -111,7 +111,7 @@ init_ic_make_global_vars (void)
DECL_INITIAL (ic_tuple_var) = NULL;
DECL_EXTERNAL (ic_tuple_var) = 1;
if (targetm.have_tls)
set_decl_tls_model (ic_tuple_var, decl_default_tls_model (tuple_type));
set_decl_tls_model (ic_tuple_var, decl_default_tls_model (ic_tuple_var));
}
/* Create the type and function decls for the interface with gcov. */