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]

(C++) small standalone demangler patch


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;

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