diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-30 21:53:57 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-30 21:53:57 +0000 |
commit | 50eb3e1a88841dda0135bfae1ddc765bb671531f (patch) | |
tree | 222adb29ce939ab8f5040286da6385417f93287f /gcc/cp/rtti.c | |
parent | c3292d4288f004e58355d00106c0022fb3972cac (diff) | |
download | gcc-50eb3e1a88841dda0135bfae1ddc765bb671531f.tar.gz |
* rtti.c (get_tinfo_decl): Handle return value from
pushdecl_top_level_and_finish.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index 02272e84ee3..f185cc5c6a9 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); |