This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC -On optimization passes: flag and doc issues
Joerg Wunsch <j@uriah.heep.sax.de> writes:
> As Ian Lance Taylor wrote:
>
> > If the code size increases for AVR, when using -Os, when comparing an
> > older release to mainline or 4.2 branch, you should report that as a
> > regression in bugzilla. Thanks.
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31528
The relevant code is in opts.c:
if (optimize_size)
{
/* Inlining of very small functions usually reduces total size. */
set_param_value ("max-inline-insns-single", 5);
set_param_value ("max-inline-insns-auto", 5);
flag_inline_functions = 1;
It was added here:
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00147.html
Top of thread:
http://gcc.gnu.org/ml/gcc-patches/2004-03/msg01350.html
http://gcc.gnu.org/ml/gcc-patches/2004-04/msg00016.html
Inlining has changed considerably since then, and it is possible that
these parameter values are no longer appropriate. The reports at the
time indicate space savings.
Ian