> Hi. > > This is quite obvious fix where I mixed type and variable > when calling decl_default_tls_model. > > I'm testing the patch on x86_64-linux-gnu. > > Ready for trunk? > Thanks, > Martin > > gcc/ChangeLog: > > 2018-11-30 Alexander Monakov <amona...@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. OK, thanks! Honza > --- > gcc/tree-profile.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >
> 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. */ >