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
This commit is contained in:
Jan Hubicka 2015-12-09 20:40:10 +01:00 committed by Jan Hubicka
parent 378004b9d2
commit ff70d83cea
2 changed files with 7 additions and 2 deletions

View 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
@ -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 <cltang@codesourcery.com>
* c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.

View 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))
{