From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16848 invoked by alias); 21 Aug 2007 15:03:53 -0000 Received: (qmail 16806 invoked by uid 22791); 21 Aug 2007 15:03:52 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Aug 2007 15:03:49 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id AAE0F1270E for ; Tue, 21 Aug 2007 17:03:46 +0200 (CEST) Date: Tue, 21 Aug 2007 15:16:00 -0000 From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Restore disregarding inlining limits for extern inline functions Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-08/txt/msg01372.txt.bz2 As $subject says. Bootstrapped and tested on x86_64-unknown-linux-gnu. I'll apply this tomorrow if nobody objects. Thanks, Richard. 2007-08-21 Richard Guenther * tree-inline.c (inlinable_function_p): Restore disregarding inline limits for GNU extern inline functions. Index: tree-inline.c =================================================================== *** tree-inline.c (revision 127658) --- tree-inline.c (working copy) *************** inlinable_function_p (tree fn) *** 1920,1925 **** --- 1920,1930 ---- bool disregard_inline_limits_p (tree fn) { + /* GNU extern inline functions are supposed to be cheap. */ + if (DECL_DECLARED_INLINE_P (fn) + && DECL_EXTERNAL (fn)) + return true; + return lookup_attribute ("always_inline", DECL_ATTRIBUTES (fn)) != NULL_TREE; }