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 07:17:04 -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 07:17 -------
I should have plenty of testcases to offer up for that, based on my experience
with trying -Os -fomit-frame-pointer on a Mozilla tinderbox earlier today
(http://tinderbox.mozilla.org/showlog.cgi?log=Phoenix/1069727940.31443.gz&fulltext=1)
I'll attach a testcase based on nsSchemaBuiltinType::GetName(nsAString&), which
grew by about 1.6 KB with -fomit-frame-pointer.
Also, I realize -fomit-frame-pointer is not enabled by default with any -O
levels on x86. I'm just suggesting a way it could interact if you specify
-fomit-frame-pointer together with -Os.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13184