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 22e87afdda57f01b6d93257e60511f0ec0f39f6a..44f621b73f2dbd7ca1885c90e101cb11e2c2c63f 100644 (file)
@@ -1,3 +1,9 @@
+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
        * 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 5b03159197ce8d00d594a4dfee90e14ca1cadfe6..7ce8266c46612506c00d7f83bb468d4970a4c921 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))
              {