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: "bryner at brianryner dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Nov 2003 09:00:27 -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 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