|
From: <sv...@va...> - 2008-10-26 11:59:07
|
Author: sewardj
Date: 2008-10-26 11:59:03 +0000 (Sun, 26 Oct 2008)
New Revision: 8711
Log:
Re-copy r3515 into new demangler: "Deal with apparently non-cfront
compliant new[]/delete[] manglings generated by the Portland Group's
C++ compiler."
Modified:
trunk/coregrind/m_demangle/cplus-dem.c
Modified: trunk/coregrind/m_demangle/cplus-dem.c
===================================================================
--- trunk/coregrind/m_demangle/cplus-dem.c 2008-10-26 11:53:30 UTC (rev 8710)
+++ trunk/coregrind/m_demangle/cplus-dem.c 2008-10-26 11:59:03 UTC (rev 8711)
@@ -4582,6 +4582,22 @@
}
}
}
+
+ /* BEGIN hack inserted 20050403 by JRS to deal with apparently
+ non-cfront compliant new[]/delete[] manglings generated by
+ the Portland Group's C++ compiler. */
+ else
+ if (strcmp (declp -> b, "__nwa") == 0) {
+ string_clear (declp);
+ string_append (declp, "operator new[]");
+ }
+ else
+ if (strcmp (declp -> b, "__dla") == 0) {
+ string_clear (declp);
+ string_append (declp, "operator delete[]");
+ }
+ /* END hack */
+
else
{
if (declp->b[2] == 'a' && declp->b[5] == '\0')
|