Bug 13822 - enable -fomit-frame-pointer or at least -momit-frame-pointer by default on x86/dwarf2 platforms
Summary: enable -fomit-frame-pointer or at least -momit-frame-pointer by default on x8...
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.0.0
: P2 enhancement
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords: missed-optimization
: 20545 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-01-22 23:37 UTC by Dan Nicolaescu
Modified: 2012-05-21 17:05 UTC (History)
4 users (show)

See Also:
Host:
Target: i?86-*-* with DWARF-2 support
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-04-22 21:58:36


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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