[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#490644: marked as done (gcc: -finline-small-functions is overzealous)



Your message dated Tue, 05 Jan 2010 14:05:03 +0100
with message-id <4B4338FF.8010802@debian.org>
and subject line Re: Bug#490644: gcc: -finline-small-functions is overzealous
has caused the Debian Bug report #490644,
regarding gcc: -finline-small-functions is overzealous
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
490644: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490644
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gcc
Version: 4:4.3.1-2
Severity: normal

According to info gcc -finline-small-functions should not
increase the generated code size:

`-finline-small-functions'
     Integrate functions into their callers when their body is smaller
     than expected function call code (so overall size of program gets
     smaller).  The compiler heuristically decides which functions are
     simple enough to be worth integrating in this way.

     Enabled at level `-O2'.

However, it seems that this option increases the code size more
often than not.  For example, compiling dash with this option
increases its size by nearly 10%.

Here is a case in point:

$ gcc -c -O2 a.c
$ size a.o
   text    data     bss     dec     hex filename
   1090       0       8    1098     44a a.o
$ gcc -fno-inline-small-functions -c -O2 a.c
$ size a.o
   text    data     bss     dec     hex filename
   1067       0       8    1075     433 a.o
$

I would like to see this option disabled by default so that
we don't all end up with an inflated system that doesn't run
any faster.

-- System Information
Debian Release: lenny/sid
Kernel Version: Linux gorgoroth 2.6.26-rc8 #2 SMP PREEMPT Wed Jun 25 21:45:17 CST 2008 i686 GNU/Linux

Versions of the packages gcc depends on:
ii  cpp            4.3.1-2        The GNU C preprocessor (cpp)
ii  gcc-4.3        4.3.1-6        The GNU C compiler



--- End Message ---
--- Begin Message ---
Version: 4.4.2-8

On 05.01.2010 13:12, Herbert Xu wrote:
On Mon, Jan 04, 2010 at 02:47:18PM +0100, Matthias Klose wrote:
tags 490644 + moreinfo
tags 490644 + upstream
thanks

please could you recheck with GCC-4.4 and GCC-4.5 (experimental) or
gcc-snapshot (unstable)? would it be possible to forwarded and track this
report upstream yourself?

It appears to be fixed in gcc 4.4.

thanks for checking.


--- End Message ---

Reply to: