This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41741] -Os generates bigger code than -O2 for simple loops
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Oct 2009 13:53:04 -0000
- Subject: [Bug middle-end/41741] -Os generates bigger code than -O2 for simple loops
- References: <bug-41741-1673@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2009-10-18 13:53 -------
I think that's the usual loop-header copying trade-off. If you do it you
possibly increase code size, if you don't, you lose optimization - especially
on induction variables.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41741