|
From: <sv...@va...> - 2005-04-03 20:04:57
|
Author: sewardj
Date: 2005-04-03 21:04:52 +0100 (Sun, 03 Apr 2005)
New Revision: 3515
Modified:
trunk/coregrind/demangle/cplus-dem.c
Log:
Deal with apparently non-cfront compliant new[]/delete[] manglings
generated by the Portland Group's C++ compiler.
Modified: trunk/coregrind/demangle/cplus-dem.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/demangle/cplus-dem.c 2005-04-03 03:11:27 UTC (rev 351=
4)
+++ trunk/coregrind/demangle/cplus-dem.c 2005-04-03 20:04:52 UTC (rev 351=
5)
@@ -4759,6 +4759,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=20
+ if (strcmp (declp -> b, "__nwa") =3D=3D 0) {
+ string_clear (declp);
+ string_append (declp, "operator new[]");
+ }
+ else=20
+ if (strcmp (declp -> b, "__dla") =3D=3D 0) {
+ string_clear (declp);
+ string_append (declp, "operator delete[]");
+ }
+ /* END hack */
+
else
{
if (declp->b[2] =3D=3D 'a' && declp->b[5] =3D=3D '\0')
|