From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13159 invoked by alias); 12 Aug 2005 17:10:38 -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 13064 invoked by uid 22791); 12 Aug 2005 17:10:13 -0000 Received: from mail-out4.apple.com (HELO mail-out4.apple.com) (17.254.13.23) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Fri, 12 Aug 2005 17:10:13 +0000 Received: from mailgate1.apple.com (a17-128-100-225.apple.com [17.128.100.225]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id j7CHABD8003915 for ; Fri, 12 Aug 2005 10:10:11 -0700 (PDT) Received: from relay4.apple.com (relay4.apple.com) by mailgate1.apple.com (Content Technologies SMTPRS 4.3.17) with ESMTP id ; Fri, 12 Aug 2005 10:10:06 -0700 Received: from [17.201.24.155] (mrs.apple.com [17.201.24.155]) by relay4.apple.com (8.12.11/8.12.11) with ESMTP id j7CHA4pK017137; Fri, 12 Aug 2005 10:10:04 -0700 (PDT) In-Reply-To: <20050812120551.89295.qmail@web26902.mail.ukl.yahoo.com> References: <20050812120551.89295.qmail@web26902.mail.ukl.yahoo.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <04652F75-2E4A-4B68-BD13-B52F7102A7CF@apple.com> Cc: Richard Guenther , gcc@gcc.gnu.org Content-Transfer-Encoding: 7bit From: Mike Stump Subject: Re: GCC-4.0.2 20050811: should GCC consider inlining functions in between different sections? Date: Fri, 12 Aug 2005 17:10:00 -0000 To: Etienne Lorrain X-SW-Source: 2005-08/txt/msg00360.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, 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.