re PR c++/39131 (decimal float point: ICE on typeid( 0.dd ))

PR c++/39131
	* 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.

From-SVN: r154113
This commit is contained in:
Jason Merrill 2009-11-11 23:44:24 -05:00 committed by Jason Merrill
parent ae761c4536
commit fae927d3bd
7 changed files with 38 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View 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;

View 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

View File

@ -0,0 +1,8 @@
// PR c++/39131
// { dg-do link }
#include <typeinfo>
const std::type_info &r = typeid(0.dd);
int main() { }

View 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),

View 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;

View 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();