Commit affb2340 by Jason Merrill

revert last checkin

From-SVN: r53457
parent 4d604303
...@@ -5,10 +5,6 @@ ...@@ -5,10 +5,6 @@
(build_base_path): Vtable contents are constant. (build_base_path): Vtable contents are constant.
* typeck.c (get_member_function_from_ptrfunc): Likewise. * typeck.c (get_member_function_from_ptrfunc): Likewise.
* rtti.c (emit_tinfo_decl): Call import_export_decl.
* decl2.c (import_export_decl): Set DECL_NOT_REALLY_EXTERN on
tinfo decls by default. Don't mess with the builtins.
2002-05-12 Jason Merrill <jason@redhat.com> 2002-05-12 Jason Merrill <jason@redhat.com>
* cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created * cp-lang.c (ok_to_generate_alias_set_for_type): Backend-created
......
...@@ -2514,7 +2514,6 @@ import_export_decl (decl) ...@@ -2514,7 +2514,6 @@ import_export_decl (decl)
if (IS_AGGR_TYPE (ctype)) if (IS_AGGR_TYPE (ctype))
import_export_class (ctype); import_export_class (ctype);
DECL_NOT_REALLY_EXTERN (decl) = 1;
if (IS_AGGR_TYPE (ctype) && CLASSTYPE_INTERFACE_KNOWN (ctype) if (IS_AGGR_TYPE (ctype) && CLASSTYPE_INTERFACE_KNOWN (ctype)
&& TYPE_POLYMORPHIC_P (ctype) && TYPE_POLYMORPHIC_P (ctype)
/* If -fno-rtti, we're not necessarily emitting this stuff with /* If -fno-rtti, we're not necessarily emitting this stuff with
...@@ -2538,9 +2537,9 @@ import_export_decl (decl) ...@@ -2538,9 +2537,9 @@ import_export_decl (decl)
if (flag_weak) if (flag_weak)
comdat_linkage (decl); comdat_linkage (decl);
} }
/* We used to exclude the builtin types here, but that broke else if (TYPE_BUILT_IN (ctype)
emit_support_tinfos. Let rtti.c choose whether or not to emit && same_type_p (ctype, TYPE_MAIN_VARIANT (ctype)))
them. */ DECL_NOT_REALLY_EXTERN (decl) = 0;
else else
comdat_linkage (decl); comdat_linkage (decl);
} }
......
...@@ -1463,10 +1463,8 @@ emit_tinfo_decl (decl_ptr, data) ...@@ -1463,10 +1463,8 @@ emit_tinfo_decl (decl_ptr, data)
tinfo_type = TREE_TYPE (DECL_NAME (tinfo_decl)); tinfo_type = TREE_TYPE (DECL_NAME (tinfo_decl));
my_friendly_assert (tinfo_type != NULL_TREE, 20000120); my_friendly_assert (tinfo_type != NULL_TREE, 20000120);
import_export_decl (tinfo_decl); if (!DECL_NEEDED_P (tinfo_decl))
if (DECL_REALLY_EXTERN (tinfo_decl) || !DECL_NEEDED_P (tinfo_decl))
return 0; return 0;
/* Say we've dealt with it. */ /* Say we've dealt with it. */
TREE_TYPE (DECL_NAME (tinfo_decl)) = NULL_TREE; TREE_TYPE (DECL_NAME (tinfo_decl)) = NULL_TREE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment