Tool/software: TI C/C++ Compiler
Could you add to CGT real support of __builtin_return_address() compiler intrinsic ?
While I call it, it returns always zero. I am interested only in current function return address => __builtin_return_address(0);
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Could you add to CGT real support of __builtin_return_address() compiler intrinsic ?
While I call it, it returns always zero. I am interested only in current function return address => __builtin_return_address(0);
To address your request, I filed the entry CODEGEN-6049 in the SDOWP system. You are welcome to follow it with the SDOWP link below in my signature. Note this entry does not report a bug, but requests a change in the compiler.
Such change requests are reviewed on a routine basis. Please give me more detail, as much as you can, on the problems you plan to solve with __builtin_return_address. That information will be helpful in the review.
Thanks and regards,
-George