OSDN Git Service

PR c++/39131
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Nov 2009 04:44:24 +0000 (04:44 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 12 Nov 2009 04:44:24 +0000 (04:44 +0000)
* rtti.c (emit_support_tinfos): Add DFP types.
* config/abi/pre/gnu.ver: Add DFP types.
* testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.4.

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

gcc/cp/ChangeLog
gcc/cp/rtti.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/dfp/typeid1.C [new file with mode: 0644]
libstdc++-v3/ChangeLog
libstdc++-v3/config/abi/pre/gnu.ver
libstdc++-v3/testsuite/util/testsuite_abi.cc

index 80948b1..355cf99 100644 (file)
@@ -1,5 +1,10 @@
 2009-11-11  Jason Merrill  <jason@redhat.com>
 
+       PR c++/39131
+       * rtti.c (emit_support_tinfos): Add DFP types.
+
+2009-11-11  Jason Merrill  <jason@redhat.com>
+
        * call.c (build_op_delete_call): Downgrade error about
        placement/non-placement confusion to permerror.
 
index 3fb6d11..e96abcb 100644 (file)
@@ -1448,6 +1448,7 @@ emit_support_tinfos (void)
     &long_integer_type_node, &long_unsigned_type_node,
     &long_long_integer_type_node, &long_long_unsigned_type_node,
     &float_type_node, &double_type_node, &long_double_type_node,
+    &dfloat32_type_node, &dfloat64_type_node, &dfloat128_type_node,
     0
   };
   int ix;
index 95fa342..94f935d 100644 (file)
@@ -1,3 +1,8 @@
+2009-11-11  Jason Merrill  <jason@redhat.com>
+
+       PR c++/39131
+       * g++.dg/dfp/typeid1.C: New.
+
 2009-11-11  Janus Weil  <janus@gcc.gnu.org>
 
        PR fortran/41978
diff --git a/gcc/testsuite/g++.dg/dfp/typeid1.C b/gcc/testsuite/g++.dg/dfp/typeid1.C
new file mode 100644 (file)
index 0000000..cdc33a7
--- /dev/null
@@ -0,0 +1,8 @@
+// PR c++/39131
+// { dg-do link }
+
+#include <typeinfo>
+
+const std::type_info &r = typeid(0.dd);
+
+int main() { }
index b34122c..c075117 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-11  Jason Merrill  <jason@redhat.com>
+
+       PR c++/39131
+       * config/abi/pre/gnu.ver: Add DFP types.
+       * testsuite/util/testsuite_abi.cc (check_version): Add CXXABI_1.3.4.
+
 2009-11-11  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/bits/basic_string.h (to_string(int), to_string(unsigned),
index 2337a5a..b0001ca 100644 (file)
@@ -1198,3 +1198,15 @@ CXXABI_1.3.3 {
     _ZSt17rethrow_exceptionNSt15__exception_ptr13exception_ptrE;
 
 } CXXABI_1.3.2;
+
+CXXABI_1.3.4 {
+
+    # typeinfo for decimal floating point types
+    _ZTID[fde];
+    _ZTIPD[fde];
+    _ZTIPKD[fde];
+    _ZTID[fde];
+    _ZTIPD[fde];
+    _ZTIPKD[fde];
+
+} CXXABI_1.3.3;
index 562568a..2c9f930 100644 (file)
@@ -193,6 +193,7 @@ check_version(symbol& test, bool added)
       known_versions.push_back("CXXABI_1.3.1");
       known_versions.push_back("CXXABI_1.3.2");
       known_versions.push_back("CXXABI_1.3.3");
+      known_versions.push_back("CXXABI_1.3.4");
       known_versions.push_back("CXXABI_LDBL_1.3");
     }
   compat_list::iterator begin = known_versions.begin();