This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
(C++) small standalone demangler patch
- To: gcc-patches at gcc dot gnu dot org
- Subject: (C++) small standalone demangler patch
- From: Jason Merrill <jason at redhat dot com>
- Date: 20 Mar 2001 16:51:41 +0000
For better results as a filter for assembly output.
Applied to trunk only.
2001-03-20 Jason Merrill <jason@redhat.com>
* cplus-dem.c (main): Skip initial $.
*** cplus-dem.c.~1~ Tue Mar 20 13:31:17 2001
--- cplus-dem.c Tue Mar 20 13:31:36 2001
*************** main (argc, argv)
*** 5139,5145 ****
{
int skip_first = 0;
! if (mbuffer[0] == '.')
++skip_first;
if (strip_underscore && mbuffer[skip_first] == '_')
++skip_first;
--- 5139,5145 ----
{
int skip_first = 0;
! if (mbuffer[0] == '.' || mbuffer[0] == '$')
++skip_first;
if (strip_underscore && mbuffer[skip_first] == '_')
++skip_first;