Use proper location for tls_init function (PR c++/88263).
authorMartin Liska <mliska@suse.cz>
Thu, 27 Dec 2018 08:46:13 +0000 (09:46 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Thu, 27 Dec 2018 08:46:13 +0000 (08:46 +0000)
commit44787584dea62b5368235f3d9d38431fd902fb40
tree5a4be2abbb390e9a4b18b3c262baa0c621d6122c
parent75e479a8b5afc311eafb7312a2f877166309d374
Use proper location for tls_init function (PR c++/88263).

2018-12-27  Martin Liska  <mliska@suse.cz>

PR c++/88263
* decl2.c (get_local_tls_init_fn): Add location_t argument and
use it.
(get_tls_init_fn): Call it with location of variable for which
we'll need to create tls_init function.
(handle_tls_init): Likewise.
2018-12-27  Martin Liska  <mliska@suse.cz>

PR c++/88263
* g++.dg/gcov/pr88263.C: New test.

From-SVN: r267429
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gcov/pr88263.C [new file with mode: 0644]