From: Geoffrey Keating Date: Thu, 30 Nov 2006 21:53:57 +0000 (+0000) Subject: rtti.c (get_tinfo_decl): Handle return value from pushdecl_top_level_and_finish. X-Git-Tag: releases/gcc-4.3.0~8202 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d71176b6ad21d75410f8a4428e5a34164d90118d;p=thirdparty%2Fgcc.git rtti.c (get_tinfo_decl): Handle return value from pushdecl_top_level_and_finish. * rtti.c (get_tinfo_decl): Handle return value from pushdecl_top_level_and_finish. From-SVN: r119379 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 149516cd9052..9b78a29fdf74 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2006-11-30 Geoffrey Keating + + * rtti.c (get_tinfo_decl): Handle return value from + pushdecl_top_level_and_finish. + 2006-11-29 Lee Millward PR c++/29022 diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 02272e84ee3b..f185cc5c6a9d 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -384,10 +384,11 @@ get_tinfo_decl (tree type) define it later if we need to do so. */ DECL_EXTERNAL (d) = 1; DECL_NOT_REALLY_EXTERN (d) = 1; + set_linkage_according_to_type (type, d); + + d = pushdecl_top_level_and_finish (d, NULL_TREE); if (CLASS_TYPE_P (type)) CLASSTYPE_TYPEINFO_VAR (TYPE_MAIN_VARIANT (type)) = d; - set_linkage_according_to_type (type, d); - pushdecl_top_level_and_finish (d, NULL_TREE); /* Add decl to the global array of tinfo decls. */ VEC_safe_push (tree, gc, unemitted_tinfo_decls, d);