re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
authorJan Hubicka <hubicka@ucw.cz>
Wed, 9 Dec 2015 19:40:10 +0000 (20:40 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 9 Dec 2015 19:40:10 +0000 (19:40 +0000)
PR ipa/61886
* ipa-visibility.c (function_and_variable_visibility): Fix vtable
rewritting guard.

From-SVN: r231474

gcc/ChangeLog
gcc/ipa-visibility.c

index 22e87af..44f621b 100644 (file)
@@ -1,6 +1,12 @@
 2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
 
        PR ipa/61886
+       * ipa-visibility.c (function_and_variable_visibility): Fix vtable
+       rewritting guard.
+
+2015-12-08  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/61886
        PR middle-end/25140
        * ipa-reference.c (ipa_reference_get_not_read_global,
        ipa_reference_get_not_read_global): Fix WRT aliases.
        * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
        overwrite an existing entry.
 
->>>>>>> .r231469
 2015-12-09  Chung-Lin Tang  <cltang@codesourcery.com>
 
        * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
index 5b03159..7ce8266 100644 (file)
@@ -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))
              {