Developer Guide and Reference

Contents

momit-leaf-frame-pointer

Determines whether the frame pointer is omitted or kept in leaf functions.

Syntax

Linux:
-momit-leaf-frame-pointer
-mno-omit-leaf-frame-pointer
macOS:
-momit-leaf-frame-pointer
-mno-omit-leaf-frame-pointer
Windows:
None
Arguments
None
Default
Varies
If you specify option
-fomit-frame-pointer
(or it is set by default), the default is
-momit-leaf-frame-pointer
. If you specify option
-fno-omit-frame-pointer
, the default is
-mno-omit-leaf-frame-pointer
.
Description
This option determines whether the frame pointer is omitted or kept in leaf functions. It is related to option
-f[no-]omit-frame-pointer
and the setting for that option has an effect on this option.
Consider the following option combinations:
Option Combination
Result
-fomit-frame-pointer -momit-leaf-frame-pointer
or
-fomit-frame-pointer -mno-omit-leaf-frame-pointer
Both combinations are the same as specifying
-fomit-frame-pointer
. Frame pointers are omitted for