[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1156845549.2722.45.camel@laptopd505.fenrus.org>
Date: Tue, 29 Aug 2006 11:59:09 +0200
From: Arjan van de Ven <arjan@...radead.org>
To: David Howells <dhowells@...hat.com>
Cc: Andreas Mohr <andi@...x01.fht-esslingen.de>,
Andrew Morton <akpm@...l.org>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -mm] lib/rwsem.c: un-inline rwsem_down_failed_common()
On Tue, 2006-08-29 at 10:50 +0100, David Howells wrote:
> Andreas Mohr <andi@...x01.fht-esslingen.de> wrote:
>
> > Un-inlining rwsem_down_failed_common() (two callsites) reduced
> > lib/rwsem.o on my Athlon, gcc 4.1.2 from 5935 to 5480 Bytes (455 Bytes saved).
>
> Maybe this should be judged according to CONFIG_CC_OPTIMIZE_FOR_SIZE.
gcc already does this if you don't manually specify the inline
keyword ;)
static functions get inlined if they're small enough in relation to the
nr of call sites, where "small enough" is a function of -O2 vs -Os. So
leaving away inline makes gcc do its smarts.
--
if you want to mail me at work (you don't), use arjan (at) linux.intel.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists