Re: __builtin_frame_address on MIPS

2005-02-25 Thread Richard Sandiford
Ranjit Deshpande <[EMAIL PROTECTED]> writes: > It seems as if __builtin_return_address() with arguments > 1 does not work > correctly on GCC 3.3.x. Correct. MIPS is one of those (many) platforms where 0 is the only supported argument for __builtin_return_address(). The bug in 3.3.x was that it d

__builtin_frame_address on MIPS

2005-02-25 Thread Ranjit Deshpande
Hello, It seems as if __builtin_return_address() with arguments > 1 does not work correctly on GCC 3.3.x. My compiler version is 3.3.4. Here is a snippet of the source code: int boo() { int i = 10; /* Create a local variable */ printf("%p\n", __builtin_frame_address(1)); } int m