From e3d53f96ed595fd6e8bef75f166a93e5309b0c2a Mon Sep 17 00:00:00 2001 From: Maxim Ostapenko Date: Mon, 23 Jan 2017 11:12:29 +0200 Subject: re PR lto/79061 ([LTO][ASAN] LTO plus ASAN fails with "AddressSanitizer: initialization-order-fiasco") Revert fix for PR lto/79061 due to this regresses compile-time by 100% on some fortran cases. From-SVN: r244773 --- gcc/lto/lto.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gcc/lto/lto.c') diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index c65e7cd..d77d85d 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -1707,13 +1707,7 @@ lto_read_decls (struct lto_file_decl_data *decl_data, const void *data, && (TREE_CODE (first) == IDENTIFIER_NODE || TREE_CODE (first) == INTEGER_CST || TREE_CODE (first) == TRANSLATION_UNIT_DECL)) - { - /* For TRANSLATION_UNIT_DECL we need to accept location cache now - to avoid possible reverting during following unify_scc call. */ - if (TREE_CODE (first) == TRANSLATION_UNIT_DECL) - data_in->location_cache.accept_location_cache (); - continue; - } + continue; /* Try to unify the SCC with already existing ones. */ if (!flag_ltrans -- cgit v1.1