I’m searching for an equivalent to
void * __builtin_return_address (unsigned int level)
with level == 0 (see ).
It found it to be available in several other compilers, e.g., gcc, icc, xlc, clang, fcc[px], craycc.
pgcc 17.9-0 just reports an undefined reference. Is there an equivalent or do I have to use a special compiler option?
Any help appreciated, thanks,