re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initializati...
authorMaxim Ostapenko <m.ostapenko@samsung.com>
Wed, 25 Jan 2017 07:45:40 +0000 (07:45 +0000)
committerMaxim Ostapenko <chefmax@gcc.gnu.org>
Wed, 25 Jan 2017 07:45:40 +0000 (09:45 +0200)
commite5e391d630476b0ea2ff2dc01db7f8dfcb037974
tree7dea5db302e97ca5ad9684bbe3f3cfc517681e41
parent98e20758464f5cbfc60bd61a0cadd66ebb900d96
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 name.

gcc/fortran/

* f95-lang.c (gfc_create_decls): Include stringpool.h.
Pass main_input_filename to build_translation_unit_decl.

gcc/ada/

* gcc-interface/utils.c (get_global_context): Pass main_input_filename
to build_translation_unit_decl.

gcc/c/

* c-decl.c (pop_scope): Pass main_input_filename to
build_translation_unit_decl.

gcc/cp/

* decl.c (cxx_init_decl_processing): Pass main_input_filename
to build_translation_unit_decl.

From-SVN: r244890
gcc/ChangeLog
gcc/ada/ChangeLog
gcc/ada/gcc-interface/utils.c
gcc/asan.c
gcc/c/ChangeLog
gcc/c/c-decl.c
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/fortran/ChangeLog
gcc/fortran/f95-lang.c