http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42590
Martin Jambor changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|
--- Comment #3 from jamborm at gcc dot gnu dot org 2010-01-25 18:30 ---
I have found the sentence you quoted in the manual too but it refers
only to -O1 (as far as I understand it). And the description of
-fomit-frame-pointer simply states that "Enabled at levels -O, -O2,
-O3, -Os." So
--- Comment #2 from jakub at gcc dot gnu dot org 2010-01-25 18:24 ---
On i?86-linux -fomit-frame-pointer is not the default, on the contrary.
info gcc says:
`-O' also turns on `-fomit-frame-pointer' on machines where doing
so does not interfere with debugging.
and i?86-linux is
--- Comment #1 from jamborm at gcc dot gnu dot org 2010-01-25 18:02 ---
Since PR 42585 is fixed, the optimized dump (at -O2) is
:
_T2$curr_12 = sptr_1(D)->curr;
D.1966_7 = _T2$curr_12 + -1;
sptr_1(D)->curr = D.1966_7;
return 0;
}
The generated assembly is:
Cyc_string_ungetc: