Notes from 10 Feb meeting

Martin von Loewis loewis at informatik.hu-berlin.de
Tue Feb 15 16:49:58 UTC 2000


> Sequence numbers are assigned in lexical order within a function,
> starting at 1.  The entities that receive sequence numbers are local
> static variables, local classes, and string literals.  Other
> entities (e.g. automatic variables) do not receive or affect
> sequence numbers.

The C99 standard defines an implicit variable inside of each function:

  static const char __func__[]="function-name";

Even though this is not part of standard C++, it is likely that C++
compilers will support this if the 'corresponding' C compiler supports
it. If so, it might be useful to support it in the ABI.

Proposal: The sequence number of __func__ is 0.

Of course, there is always discussion what the value of __func__ is in
C++ context; I think this does not necessarily need to be defined by
the ABI (or the question whether __func__ is defined at all - if it is
not used in a function, it does not matter).

Regards,
Martin




More information about the cxx-abi-dev mailing list