Bug 13822

Summary: enable -fomit-frame-pointer or at least -momit-frame-pointer by default on x86/dwarf2 platforms
Product: gcc Reporter: Dan Nicolaescu <dann>
Component: targetAssignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED FIXED    
Severity: enhancement CC: gcc-bugs, solar-gcc, Thomas.Koenig, tkho
Priority: P2 Keywords: missed-optimization
Version: 4.0.0   
Target Milestone: ---   
Host: Target: i?86-*-* with DWARF-2 support
Build: Known to work:
Known to fail: Last reconfirmed: 2009-04-22 21:58:36

Description Dan Nicolaescu 2004-01-22 23:37:43 UTC
This has been mentioned on the mailing lists a few times by 
various people. 

But it seems to have been forgotten. 
This PR is just a reminder for this issue.

The old issue with debugging without a frame pointer seems to be solved,
x86_64 works fine without fp. 

Someone also suggested that the next step should be -mfpmath=sse by default. :-)
Comment 1 Drea Pinski 2004-01-23 02:15:09 UTC
-mfpmath=sse should be only done for systems which support sse.

Confirmed, this is a target problem and it only happens on i?86 and x86_64, this also needs 
variable tracking (I forgot the PR number for that one).
Comment 2 Drea Pinski 2004-11-24 06:32:14 UTC
Most recent talk:
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01958.html
Comment 3 Drea Pinski 2005-03-18 22:06:09 UTC
*** Bug 20545 has been marked as a duplicate of this bug. ***
Comment 4 Drea Pinski 2005-08-16 01:05:19 UTC
*** Bug 23414 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Peslyak 2011-11-08 01:40:18 UTC
Shouldn't this bug be closed now, with GCC 4.6's change of default for -fomit-frame-pointer?
Comment 6 Dan Nicolaescu 2012-05-21 17:05:22 UTC
Done in gcc-4.6