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

bryner at brianryner dot com gcc-bugzilla@gcc.gnu.org
Tue Nov 25 07:17:00 GMT 2003


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



More information about the Gcc-bugs mailing list