]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initializati...
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Wed, 18 Jan 2017 16:06:31 +0000 (16:06 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Wed, 18 Jan 2017 16:06:31 +0000 (18:06 +0200)
commit5807fb918d557400fd50431c1399cf1f131670ba
tree7bc51d9df5797da527b28b3f4b7ecb580608b1e4
parent0c6299bbfd50c064913bbc0e1d810848f66d8994
re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco")

PR lto/79061
gcc/

* asan.c (get_translation_unit_decl): New function.
(asan_add_global): Extract modules file name from globals
TRANSLATION_UNIT_DECL in lto mode.
* tree.c (build_translation_unit_decl): Add source location for newly
built TRANSLATION_UNIT_DECL.

gcc/lto/

* lto.c (lto_read_decls): accept location cache for
TRANSLATION_UNIT_DECL.

gcc/testsuite/

* gcc.dg/cpp/mi1.c: Adjust testcase.
* gcc.dg/pch/cpp-3.c: Likewise.

From-SVN: r244581
gcc/ChangeLog
gcc/asan.c
gcc/lto/ChangeLog
gcc/lto/lto.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/mi1.c
gcc/testsuite/gcc.dg/pch/cpp-3.c
gcc/tree.c