This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Incorrect code for __builtin_frame_address(0)
On Mon, 2005-08-22 at 08:12, Maciej W. Rozycki wrote:
> * gcc.c-torture/execute/frame-address.c: New test.
The unused variable in main in curious, I'm guessing it is there just to
make sure that main has a frame, though it isn't clear why that is
necessary to make this work.
Anyways, yes, this looks OK to me. It relies on some non-ISO C pointer
comparisons, but I believe they will work for all supported targets.
Jim Wilson, GNU Tools Support, http://www.specifix.com