From: Alexander Monakov Date: Fri, 30 Nov 2018 15:06:22 +0000 (+0300) Subject: Call decl_default_tls_model with a proper type (PR gcov-profile/88279). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37eafc06ddd47ded562f58a1e53eb3f589f8e158;p=gcc.git Call decl_default_tls_model with a proper type (PR gcov-profile/88279). 2018-11-30 Alexander Monakov 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 18feaf5e0a1..7597dedf67c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2018-11-30 Alexander Monakov + + 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 * config/arm/arm.h (TARGET_DOTPROD): Add TARGET_VFP5 constraint. diff --git a/gcc/tree-profile.c b/gcc/tree-profile.c index 48204423eaf..506e00d6e90 100644 --- a/gcc/tree-profile.c +++ b/gcc/tree-profile.c @@ -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. */