From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14507 invoked by alias); 2 Mar 2011 12:35:38 -0000 Received: (qmail 14383 invoked by uid 22791); 2 Mar 2011 12:35:37 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=BAYES_00,TW_KP,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.digium.com (HELO mail.digium.com) (216.207.245.2) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 02 Mar 2011 12:35:34 +0000 Received: from zimbra.digium.internal ([10.24.55.203] helo=zimbra.hsv.digium.com) by mail.digium.com with esmtp (Exim 4.69) (envelope-from ) id 1PulHA-0006mA-63 for gcc-help@gcc.gnu.org; Wed, 02 Mar 2011 06:35:32 -0600 Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.hsv.digium.com (Postfix) with ESMTP id 1E221D82A1 for ; Wed, 2 Mar 2011 06:35:32 -0600 (CST) Received: from zimbra.hsv.digium.com ([127.0.0.1]) by localhost (zimbra.hsv.digium.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7W9V6eLLLPbq for ; Wed, 2 Mar 2011 06:35:31 -0600 (CST) Received: from [172.17.211.165] (unknown [65.82.134.9]) by zimbra.hsv.digium.com (Postfix) with ESMTPSA id 04BA3D82A0 for ; Wed, 2 Mar 2011 06:35:30 -0600 (CST) Message-ID: <4D6E3996.7030709@digium.com> Date: Wed, 02 Mar 2011 12:35:00 -0000 From: "Kevin P. Fleming" User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: C++ 'extern inline' magic possible? References: <4D6C35D1.4080104@digium.com> <4D6CE334.1050300@digium.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg00019.txt.bz2 On 03/01/2011 07:53 AM, David Brown wrote: > If you want the compiler to inline functions where practical, even > across different compilation units, and to use function calls when > necessary, then you should look hard at using LTO. This gives the > compiler the chance to inline function calls even though the definitions > are not available in the compilation unit in which they are used. That is on my agenda as well to investigate, but since GCC+binutils that support LTO are very, very new and won't be in LTS-type Linux distributions for some time, we can't quite expect our users to have them available. -- Kevin P. Fleming Digium, Inc. | Director of Software Technologies 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA skype: kpfleming | jabber: kfleming@digium.com Check us out at www.digium.com & www.asterisk.org