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 bryner at brianryner dot com  2003-11-25 09:00 -------
I'm not sure that just counting the moves can tell you if you'll save space. 
Don't you have to also factor in fewer loads/stores if gcc is able to make use
of the extra available register to hold a variable or temporary?

(In reply to comment #4)
> 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 



-- 


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]