This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] PR15242
Steven Bosscher <stevenb@suse.de> wrote:
>> 1) Are you sure you want !optimize_size?
>
> Absolutely.
>
>> 300% slowdowns are not
>> something small, and such computed goto code can be found in embedded
>> software using -Os.
>
> A couple of kilobytes less is also not easily found. For my Prolog
> test case, the object file grows >12% (back to 3.2-days sizes) with
> the patch.
Totally agreed. -Os means that the only thing that the user care is the
binary size. Some optimizations can both improve the speed and reduced the
code size. Others can only satisfy either condition. This is one of the
latter cases, and with -Os we absolutely want to not enlarge the binary
size, even if it effectively makes the code slower than it could be.
--
Giovanni Bajo