Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751060AbWABVBq (ORCPT ); Mon, 2 Jan 2006 16:01:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751065AbWABVBq (ORCPT ); Mon, 2 Jan 2006 16:01:46 -0500 Received: from linux01.gwdg.de ([134.76.13.21]:53965 "EHLO linux01.gwdg.de") by vger.kernel.org with ESMTP id S1751058AbWABVBq (ORCPT ); Mon, 2 Jan 2006 16:01:46 -0500 Date: Mon, 2 Jan 2006 22:00:43 +0100 (MET) From: Jan Engelhardt To: Ingo Molnar cc: Linus Torvalds , Krzysztof Halasa , Adrian Bunk , Arjan van de Ven , Tim Schmielau , Dave Jones , Andrew Morton , lkml , mpm@selenic.com Subject: Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers In-Reply-To: <20060102201325.GA32464@elte.hu> Message-ID: References: <20051230074916.GC25637@elte.hu> <20051231143800.GJ3811@stusta.de> <20051231144534.GA5826@elte.hu> <20051231150831.GL3811@stusta.de> <20060102103721.GA8701@elte.hu> <1136198902.2936.20.camel@laptopd505.fenrus.org> <20060102134345.GD17398@stusta.de> <20060102140511.GA2968@elte.hu> <20060102201325.GA32464@elte.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 813 Lines: 24 >* Linus Torvalds wrote: > >> > For example, I add "inline" for static functions which are only called >> > from one place. >> >> That's actually not a good practice. Two reasons: >> >> - debuggability goes way down. Oops reports give a much nicer call-chain >> and better locality for uninlined code. When I want to debug, I use CFLAGS="-O0 -ggdb3 -fno-inline -fno-omit-frame-pointer" for that particular file(s). That sure gets good results. Not sure about who wins in the kernel case: always_inline or -fno-inline. Jan Engelhardt -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/