diff options
author | Maxim Ostapenko <chefmax@gcc.gnu.org> | 2017-01-23 11:12:29 +0200 |
---|---|---|
committer | Maxim Ostapenko <chefmax@gcc.gnu.org> | 2017-01-23 11:12:29 +0200 |
commit | e3d53f96ed595fd6e8bef75f166a93e5309b0c2a (patch) | |
tree | b00bc74146414cdc735ba7984a03a985eb0aeb9b /gcc/lto/lto.c | |
parent | 54d7c70c08b5b4a0180269301d466cc5e3d951b5 (diff) | |
download | gcc-e3d53f96ed595fd6e8bef75f166a93e5309b0c2a.zip gcc-e3d53f96ed595fd6e8bef75f166a93e5309b0c2a.tar.gz gcc-e3d53f96ed595fd6e8bef75f166a93e5309b0c2a.tar.bz2 |
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
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 8 |
1 files changed, 1 insertions, 7 deletions
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 |