[cxx-abi-dev] Mangling issue

Mark Mitchell mark at codesourcery.com
Wed Mar 27 21:56:06 UTC 2002


 Perhaps these should really be mangled with the "cl" operator:
>
> 	X cl <function-name> <expr>* E
>
> where <function-name> could be a mangled operator new if necessary?

Good, that's where I was leaning.  Except that for a placement-new
you also need the type, so instead of cl I'd use nw like this:

  X nw <type> <expr>* E

and:

  X cl <expr>* E

for functions.  (The function need not be named, we could have a
function pointer or some such.)

Note that this introduces another place where X...E can appear; in
the middle of an expression.  It might mess up current demanlgers
and such less, if we picked a new bracketing character; maybe:

  cl ? <expr>* E
  nw ? <expr>* E

Here, ? would be some character that cannot begin an expression.

--
Mark Mitchell                   mark at codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com




More information about the cxx-abi-dev mailing list