diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-11 08:15:34 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-06-11 08:15:34 +0000 |
commit | 6f24ab3b8cd1aa740e252915c1dfbf6ec76c9d97 (patch) | |
tree | bbd51b37e9251d273abf5f3a9528e067111beebe /gcc/ipa-visibility.c | |
parent | 30a578e836960e74e4b3675dc9b90f169318912e (diff) | |
download | gcc-6f24ab3b8cd1aa740e252915c1dfbf6ec76c9d97.tar.gz |
* ipa-visibility.c (function_and_variable_visibility): Disable
virtual table rewriting temporarily on targets not supporting
ONE_ONLY.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211437 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-visibility.c')
-rw-r--r-- | gcc/ipa-visibility.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index 2d634416226..4e0fd9e0b40 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; |