[Bug optimization/13184] -Os with -fomit-frame-pointer should only remove frame pointer if code size will decrease

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 25 08:22:00 GMT 2003


------- 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



More information about the Gcc-bugs mailing list