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 | |
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')
-rw-r--r-- | gcc/lto/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/lto/lto.c | 8 |
2 files changed, 1 insertions, 13 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 6b76cc6..8f2e0ec 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -6,12 +6,6 @@ lhd_type_for_size. (LANG_HOOKS_TYPE_FOR_SIZE): Don't redefine. -2017-01-18 Maxim Ostapenko <m.ostapenko@samsung.com> - - PR lto/79061 - * lto.c (lto_read_decls): accept location cache for - TRANSLATION_UNIT_DECL. - 2017-01-11 Jakub Jelinek <jakub@redhat.com> PR middle-end/50199 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 |