From: Jan Hubicka Date: Wed, 9 Dec 2015 19:40:10 +0000 (+0100) Subject: re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ff70d83cea614853f2d893b39e0d69fd62a93af6;p=gcc.git re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2) PR ipa/61886 * ipa-visibility.c (function_and_variable_visibility): Fix vtable rewritting guard. From-SVN: r231474 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 22e87afdda5..44f621b73f2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-12-08 Jan Hubicka + + PR ipa/61886 + * ipa-visibility.c (function_and_variable_visibility): Fix vtable + rewritting guard. + 2015-12-08 Jan Hubicka PR ipa/61886 @@ -135,7 +141,6 @@ * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't overwrite an existing entry. ->>>>>>> .r231469 2015-12-09 Chung-Lin Tang * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call. diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 5b03159197c..7ce8266c466 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -720,7 +720,7 @@ function_and_variable_visibility (bool whole_program) bool found = false; /* See if there is something to update. */ - for (i = 0; vnode->iterate_referring (i, ref); i++) + for (i = 0; vnode->iterate_reference (i, ref); i++) if (ref->use == IPA_REF_ADDR && can_replace_by_local_alias_in_vtable (ref->referred)) {