This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]