PATCH for demangling volatile
Mark Mitchell
mmitchell@usa.net
Wed May 20 13:22:00 GMT 1998
Jason --
Here's a straightfoward patch to recognize the `V' specifier on
mangled types. OK?
--
Mark Mitchell <mmitchell@usa.net>
http://home.earthlink.net/~mbmitchell
Consulting Services Available
Wed May 20 13:21:07 1998 Mark Mitchell <mmitchell@usa.net>
* cplus-dem.c (do_type): Handle volatile qualification.
Index: cplus-dem.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cplus-dem.c,v
retrieving revision 1.19
diff -c -p -r1.19 cplus-dem.c
*** cplus-dem.c 1998/05/13 12:40:01 1.19
--- cplus-dem.c 1998/05/20 18:53:44
*************** do_type (work, mangled, result)
*** 2640,2646 ****
break;
case 'C':
! (*mangled)++;
/*
if ((*mangled)[1] == 'P')
{
--- 2640,2646 ----
break;
case 'C':
! case 'V':
/*
if ((*mangled)[1] == 'P')
{
*************** do_type (work, mangled, result)
*** 2651,2658 ****
{
string_prepend (&decl, " ");
}
! string_prepend (&decl, "const");
}
break;
/*
}
--- 2651,2660 ----
{
string_prepend (&decl, " ");
}
! string_prepend (&decl,
! (**mangled) == 'C' ? "const" : "volatile");
}
+ (*mangled)++;
break;
/*
}
More information about the Gcc-bugs
mailing list