This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/13184] -Os with -fomit-frame-pointer should only remove frame pointer if code size will decrease
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2003 08:22:13 -0000
- Subject: [Bug optimization/13184] -Os with -fomit-frame-pointer should only remove frame pointer if code size will decrease
- References: <20031125070750.13184.bryner@brianryner.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2003-11-25 08:22 -------
No the switch really have nothing to do it with this problem, the problem is that:
movl *(%ebp), * is smaller (by one byte) than movl *(%esp), * (the other way is the
same). So GCC needs to count those moves and the removal of the frame-pointer to see
if it saves space (the other way is do to do two passes one with -fomit-frame-pointer and
the other without and see which one is better, this is the most generic way of doing it for
all targets).
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-11-25 08:22:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13184