Bug 54615 - unclear documentation on -fomit-frame-pointer for -O
unclear documentation on -fomit-frame-pointer for -O
Status: UNCONFIRMED
Product: gcc
Classification: Unclassified
Component: middle-end
4.8.0
: P3 normal
: ---
Assigned To: Not yet assigned to anyone
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-09-18 11:58 UTC by Vincent Lefèvre
Modified: 2012-09-18 11:58 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lefèvre 2012-09-18 11:58:05 UTC
http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html says about -O:

  -O also turns on -fomit-frame-pointer on machines where doing so does not interfere with debugging.

and about -fomit-frame-pointer:

  Enabled at levels -O, -O2, -O3, -Os.

So, it is not clear whether -fomit-frame-pointer is always enabled at level -O or not.

This bug is related to bug 51019 (unclear documentation on -fomit-frame-pointer default for -Os and different platforms).