[Bug middle-end/42590] unnecessary stack frame set up

2010-12-16 Thread jamborm at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42590 Martin Jambor changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|

[Bug middle-end/42590] unnecessary stack frame set up

2010-01-25 Thread jamborm at gcc dot gnu dot org
--- 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

[Bug middle-end/42590] unnecessary stack frame set up

2010-01-25 Thread jakub at gcc dot gnu dot org
--- 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

[Bug middle-end/42590] unnecessary stack frame set up

2010-01-25 Thread jamborm at gcc dot gnu dot org
--- 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: