OSDN Git Service

* rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Feb 2000 02:52:55 +0000 (02:52 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 27 Feb 2000 02:52:55 +0000 (02:52 +0000)
pseudo_type_info creation into the std namespace

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32209 138bc75d-0d04-0410-961f-82ee72b054a4

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

index b90484f..7c73df6 100644 (file)
@@ -1,3 +1,8 @@
+2000-02-25  Alfred Minarik <a8601248@unet.univie.ac.at>
+
+       * rtti.c (get_vmi_pseudo_type_info): Move __vmi_class_type_info
+       pseudo_type_info creation into the std namespace
+
 2000-02-26  Mark Mitchell  <mark@codesourcery.com>
 
        * cp-tree.h (DECL_NEEDED_P): Tweak to correct usage before EOF.
index e81ab69..0896fe2 100644 (file)
@@ -1734,12 +1734,19 @@ get_vmi_pseudo_type_info (num_bases)
   array_domain = build_index_type (build_int_2 (num_bases, 0));
   base_array = build_array_type (base_desc_type_node, array_domain);
 
+  if (flag_honor_std)
+    push_namespace (get_identifier ("std"));
+
   desc = create_pseudo_type_info
             ("__vmi_class_type_info", num_bases,
              build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node),
              build_lang_decl (FIELD_DECL, NULL_TREE, integer_type_node),
              build_lang_decl (FIELD_DECL, NULL_TREE, base_array),
              NULL);
+
+  if (flag_honor_std)
+    pop_namespace ();
+
   TREE_VEC_ELT (vmi_class_desc_type_node, num_bases) = desc;
   return desc;
 }