This is the mail archive of the gcc@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]
Other format: [Raw text]

C++ ABI: Mangling of call_expr


Hello,

I can't understand how mangle.c is supposed to mangle a call expression.
Currently, it just segfaults on it. The expression production from the ABI
says:

<expression> ::= <unary operator-name> <expression>
            ::= <binary operator-name> <expression> <expression>
            ::= <trinary operator-name> <expression> <expression>
<expression>
[...]

But what is a CALL_EXPR? Its two-letter mangled name is "cl", but it
certainly can't be either unary, binary, or trinary. In fact, in
operators.def, it is defined with arity "-1", which means "any arity is
allowed". But then, I can't see which production is supposed to use.

Giovanni Bajo


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