From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23028 invoked by alias); 12 Aug 2005 17:27:18 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22895 invoked by uid 22791); 12 Aug 2005 17:27:11 -0000 Received: from atrey.karlin.mff.cuni.cz (HELO atrey.karlin.mff.cuni.cz) (195.113.31.123) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 12 Aug 2005 17:27:11 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 4018) id 6AB8F4B4092; Fri, 12 Aug 2005 19:27:01 +0200 (CEST) Date: Fri, 12 Aug 2005 17:27:00 -0000 From: Jan Hubicka To: Mike Stump Cc: Etienne Lorrain , Richard Guenther , gcc@gcc.gnu.org Subject: Re: GCC-4.0.2 20050811: should GCC consider inlining functions in between different sections? Message-ID: <20050812172701.GB11820@atrey.karlin.mff.cuni.cz> References: <20050812120551.89295.qmail@web26902.mail.ukl.yahoo.com> <04652F75-2E4A-4B68-BD13-B52F7102A7CF@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <04652F75-2E4A-4B68-BD13-B52F7102A7CF@apple.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-08/txt/msg00361.txt.bz2 > On Aug 12, 2005, at 5:05 AM, Etienne Lorrain wrote: > > I have added a command to the linker file to forbid reference from > > one section to another: > >NOCROSSREFS (.text .xcode); > > It sounds like this feature isn't compatible with inlining, -fno- > inline I suspect is one of the few ways to `fix' it in general, that, -fno-inline still won't suppress inlining of functions called once... Honza > or require that all functions be marked noinline that would otherwise > be wrong to inline. > > > The question is in fact: what is a section for GCC? > > Anything a user wants. We don't limit the uses, so this question > cannot, in general be answered, at best a few users could tell you > how a few of them are using sections. For example, I would not > expect most people to know about NOCROSSREFS.