5.7.7.33 Omit-frame-pointer Option

The -fomit-frame-pointer option instructs the compiler to directly use the stack pointer to access objects on the stack and, if possible, omit code that saves, initializes, and restores the frame register. It is enabled automatically at all non-zero optimization levels.

Negating the option, using -fno-omit-frame-pointer, might assist debugging optimized code; however, this option does not guarantee that the frame pointer will always be used.