]> git.ipfire.org Git - thirdparty/gcc.git/commit
Use proper location for tls_init function (PR c++/88263).
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2018 08:46:13 +0000 (08:46 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 27 Dec 2018 08:46:13 +0000 (08:46 +0000)
commitfa576682ff040d6d7e63c7ed086c25dd08839c49
tree5a4be2abbb390e9a4b18b3c262baa0c621d6122c
parentdbff9aaf472c1464ed13d5059cb8a2db84adfa5d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267429 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/decl2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/gcov/pr88263.C [new file with mode: 0644]