gcc.c-torture/execute/frame-address.c

Maciej W. Rozycki macro@linux-mips.org
Mon Aug 29 15:28:00 GMT 2005


On Mon, 29 Aug 2005, Alan Modra wrote:

> This test fails on powerpc64-linux, because the function invoking
> __builtin_frame_address doesn't have a stack frame.  Fixed by taking
> the address of a local var.
> 
> 	* gcc.c-torture/execute/frame-address.c: Ensure function
> 	invoking __builtin_frame_address has a stack frame.
> 
> OK to apply?

 Well, the function already has a local variable.  Besides it's never 
inlined, so it should always have a frame (i.e. an address local variables 
are/would be offset from), even if empty.  Are you sure 
__builtin_frame_address() does the right thing for your target?  Tracking 
down problems with the builtin was the objective of the test case, so 
please make sure you don't just hide the symptoms...

  Maciej



More information about the Gcc-patches mailing list