This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Optimising for size
On Mon, Jul 14, 2008 at 10:04:08AM +1000, zoltan@bendor.com.au wrote:
> I have a piece of C code. The code, compiled to an ARM THUMB target using
> gcc 4.0.2, with -Os results in 230 instructions. The exact same code,
> using the exact same switches compiles to 437 instructions with gcc 4.3.1.
> Considering that the compiler optimises to size and the much newer
> compiler emits almost twice as much code as the old one, I think it is an
> issue.
Agreed. I think it's a regression. Using -Os and getting
much larger code would qualify.
> So the question is, how should I report it?
Open a PR with the complete test case, and the command line options you
used with 4.0.2 and 4.3.1.