aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/rtti.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r--gcc/cp/rtti.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c
index 469ce51..18beb79 100644
--- a/gcc/cp/rtti.c
+++ b/gcc/cp/rtti.c
@@ -1156,6 +1156,10 @@ create_pseudo_type_info (int tk, const char *real_name, ...)
ti->name = get_identifier (real_name);
ti->vtable = NULL_TREE;
+ /* Pretend this is public so determine_visibility doesn't give vtables
+ internal linkage. */
+ TREE_PUBLIC (TYPE_MAIN_DECL (ti->type)) = 1;
+
va_end (ap);
}