This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH, LIBSTDC++] Fix type_info equivalence test.


Hi,

The attached patch fixes the failure of g++.dg/abi/local1.C observed on ARM
linux-gnueabi. The type_info::operator== implementation obtains the type
names for comparison by calling name(). The implementation of name() strips
the leading  '*' prefix if present. The '*' prefix marker is emitted by gcc
to force a pointer comparison. This patch replaces relevant name() call with
a direct reference to __name to ensure the prefix if any is visible.

Ok?

2010-11-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
	* libsupc++/tinfo.cc (type_info::operator==): Test __name instead of
name().

Attachment: libstdc++-typeinfo==-changelog.txt
Description: Text document

Attachment: libstdc++-typeinfo==-patch.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]