From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25768 invoked by alias); 23 Sep 2011 14:10:48 -0000 Received: (qmail 25755 invoked by uid 22791); 23 Sep 2011 14:10:46 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from atrey.karlin.mff.cuni.cz (HELO atrey.karlin.mff.cuni.cz) (195.113.26.193) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Sep 2011 14:10:29 +0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 4018) id 7AACEF056C; Fri, 23 Sep 2011 16:10:28 +0200 (CEST) Date: Fri, 23 Sep 2011 14:21:00 -0000 From: Jan Hubicka To: "vanboxem.ruben at gmail dot com" Cc: gcc-bugs@gcc.gnu.org Subject: Re: [Bug tree-optimization/10980] vararg functions are not inlined Message-ID: <20110923141028.GC23405@atrey.karlin.mff.cuni.cz> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg01664.txt.bz2 I bet it just ignores the attribute that is not how the attribute is supposed to work. We output error in this case intentionally (and warning in at the same spot if function is declared inline and -Winline is given). Functions marked always_inlined really ought to be always inlined and attribute is supposed to be useable in the cases where compilation would fail otherwise (such as SSE buitins). Our documentation is however not particularly clear here, perhaps it should be updated... Honza