From: Jan Hubicka Date: Wed, 11 Jun 2014 08:15:34 +0000 (+0200) Subject: ipa-visibility.c (function_and_variable_visibility): Disable virtual table rewriting... X-Git-Tag: releases/gcc-5.1.0~6971 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=862b3da6a46799de1c1f4a84ef949e52d69fa3ff;p=thirdparty%2Fgcc.git ipa-visibility.c (function_and_variable_visibility): Disable virtual table rewriting temporarily on targets not supporting ONE_ONLY. * ipa-visibility.c (function_and_variable_visibility): Disable virtual table rewriting temporarily on targets not supporting ONE_ONLY. From-SVN: r211437 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e61b75d886b8..89fcc091568e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-06-11 Jan Hubicka + + * ipa-visibility.c (function_and_variable_visibility): Disable + virtual table rewriting temporarily on targets not supporting + ONE_ONLY. + 2014-06-11 Richard Biener PR middle-end/61437 diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 2d6344162260..4e0fd9e0b405 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -666,9 +666,12 @@ function_and_variable_visibility (bool whole_program) } update_visibility_by_resolution_info (vnode); - /* Update virutal tables to point to local aliases where possible. */ + /* Update virtual tables to point to local aliases where possible. */ if (DECL_VIRTUAL_P (vnode->decl) - && !DECL_EXTERNAL (vnode->decl)) + && !DECL_EXTERNAL (vnode->decl) + /* FIXME: currently this optimization breaks on AIX. Disable it for targets + without comdat support for now. */ + && SUPPORTS_ONE_ONLY) { int i; struct ipa_ref *ref;