warning: listing the stack pointer register 'esp' in a clobber list is deprecated
Segher Boessenkool
segher@kernel.crashing.org
Mon May 27 17:02:00 GMT 2019
On Mon, May 27, 2019 at 06:36:18PM +0200, J.W. Jagersma wrote:
> I found that specifying "esp" in the clobber list forces the compiler to
> save a frame pointer and use ebp-based addressing instead.
The simple and reliable way of forcing a frame pointer is to write
if (__builtin_frame_address(0)) {
/* Force a frame pointer for this function. */
}
Segher
More information about the Gcc-help
mailing list