]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* rtti.c (get_tinfo_fn): Don't mess with the context for now.
authorJason Merrill <jason@yorick.cygnus.com>
Fri, 14 Aug 1998 11:03:01 +0000 (11:03 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 14 Aug 1998 11:03:01 +0000 (07:03 -0400)
From-SVN: r21729

gcc/cp/ChangeLog
gcc/cp/rtti.c

index 3a9ad524b83ea1d331bde24d6cf67120e3fa8db2..ad847f4b839284a605ac5fea2e7e4dbd56ec637f 100644 (file)
@@ -1,3 +1,7 @@
+1998-08-14  Jason Merrill  <jason@yorick.cygnus.com>
+
+       * rtti.c (get_tinfo_fn): Don't mess with the context for now.
+
 1998-08-13  Mumit Khan  <khan@xraylith.wisc.edu>
 
        * decl2.c (import_export_class): Don't use dllexport
index 0750fa3649bf32ee36479caca2da9e3da2c45167..0087bc394678a4399172d812e41468c1463b1d71 100644 (file)
@@ -369,16 +369,6 @@ get_tinfo_fn (type)
   DECL_MUTABLE_P (d) = 1;
   TREE_TYPE (name) = copy_to_permanent (type);
 
-  /* We set DECL_CONTEXT for the benefit of backend stuff that wants to
-     know what type this artificial function is associated with.  dllexport
-     handling, for instance.  This is a kludge, and the DECL_NO_STATIC_CHAIN
-     bit is necessary to keep local classes from breaking.  */
-  if (IS_AGGR_TYPE (type))
-    {
-      DECL_CONTEXT (d) = type;
-      DECL_NO_STATIC_CHAIN (d) = 1;
-    }
-
   pushdecl_top_level (d);
   make_function_rtl (d);
   assemble_external (d);