rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi runtime.
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 9 Aug 2000 09:57:55 +0000 (09:57 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 9 Aug 2000 09:57:55 +0000 (09:57 +0000)
* rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
runtime.
* cp/tinfo.cc (__dynamic_cast): Likewise.
* cp/inc/cxxabi.h (__dynamic_cast): Likewise.

From-SVN: r35588

gcc/cp/ChangeLog
gcc/cp/inc/cxxabi.h
gcc/cp/rtti.c
gcc/cp/tinfo.cc

index 9044923b7cc06ae4351457ca1fcfa1028a56ecdb..8912264d2d50b5181b4be97013f3cbafbb4d2640 100644 (file)
@@ -1,3 +1,10 @@
+2000-08-09  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * rtti.c (build_dynamic_cast_1): Set "C" linkage for new abi
+       runtime.
+       * cp/tinfo.cc (__dynamic_cast): Likewise.
+       * cp/inc/cxxabi.h (__dynamic_cast): Likewise.   
+
 2000-08-09  Nathan Sidwell  <nathan@codesourcery.com>
 
        * cvt.c (convert_to_pointer_force): Fix error message when
index 6e645530b0f87befc04e1bb37b5315884e5e0d00..2587e85f26fe45cf07dda2e9e9c1412c81c90a8d 100644 (file)
@@ -414,7 +414,7 @@ protected:
 };
 
 /* dynamic cast runtime */
-extern "C++"
+extern "C"
 void *__dynamic_cast (const void *__src_ptr,    /* object started from */
                       const __class_type_info *__src_type, /* static type of object */
                       const __class_type_info *__dst_type, /* desired target type */
index 63c1e3cc583ff9d4c53c6728113cd8f020e36b39..94e67a551a93ad88d6fa0a01451368b04d279f37 100644 (file)
@@ -846,11 +846,7 @@ build_dynamic_cast_1 (type, expr)
                          (NULL_TREE, ptrdiff_type_node, void_list_node))));
                }
              tmp = build_function_type (ptr_type_node, tmp);
-             if (new_abi_rtti_p ())
-               /* We want its name mangling.  */
-               dcast_fn = build_cp_library_fn_ptr (name, tmp);
-             else
-               dcast_fn = build_library_fn_ptr (name, tmp);
+             dcast_fn = build_library_fn_ptr (name, tmp);
               pop_nested_namespace (ns);
               dynamic_cast_node = dcast_fn;
            }
index bb57bf8a50cb53542fa9b8d764daae7eb703cdc5..c381ff111013a5735f38bb547d70496317f0f12a 100644 (file)
@@ -1165,7 +1165,7 @@ __do_upcast (const __class_type_info *dst, const void *obj_ptr,
 }
 
 // this is the external interface to the dynamic cast machinery
-extern "C++" void *
+extern "C" void *
 __dynamic_cast (const void *src_ptr,    // object started from
                 const __class_type_info *src_type, // type of the starting object
                 const __class_type_info *dst_type, // desired target type