From patchwork Tue Oct 13 22:47:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arkadiusz Drabczyk X-Patchwork-Id: 529937 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 50C72140F99 for ; Wed, 14 Oct 2015 09:47:09 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=ibwoEPJf; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=CFTX8WXPDZPFlu4mE/QFZt7kzJYkviyg8jotdox7b6esujI6WASBa 8xe+2n/1EdWzzt37b0a3o/QbtE9GMiWE0uY3doPGCwIBPjUPxKMGVSlba+yrPQKN /oel/NU1vQc0Qpg57Jifgo/35ZvzUrzclGyqzqPWMPt75WJ8KVvrr4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:mime-version:content-type; s= default; bh=nWrSw97fXLgyQCVnrr7WO5Qzwc0=; b=ibwoEPJfJSCozZ9gLn6V H/6+5NAUY4Zxh8KunQWnjNlOvWx0N8cD0DsLrfefJKjaS4Oz7uzq/g/JB3izjPUU KIiz7mDA1HyHYK7LvWagQqnvxXCnsQTa6hVQdwhFe0ZwEMzmO3/IZ4Wmw3HOpnlD QLpOZTk1MFwvXbZbRPwUZWg= Received: (qmail 44210 invoked by alias); 13 Oct 2015 22:47:02 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 44196 invoked by uid 89); 13 Oct 2015 22:47:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.5 required=5.0 tests=AWL, BAYES_50, SPF_PASS autolearn=ham version=3.3.2 X-HELO: gateway31.websitewelcome.com Received: from gateway31.websitewelcome.com (HELO gateway31.websitewelcome.com) (192.185.144.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 13 Oct 2015 22:47:00 +0000 Received: by gateway31.websitewelcome.com (Postfix, from userid 500) id 4F8DDBAEC5CAE; Tue, 13 Oct 2015 17:46:57 -0500 (CDT) Received: from gator3278.hostgator.com (gator3278.hostgator.com [198.57.247.242]) by gateway31.websitewelcome.com (Postfix) with ESMTP id 3FBF4BAEC5C90 for ; Tue, 13 Oct 2015 17:46:57 -0500 (CDT) Received: from [89.70.245.0] (port=45881 helo=localhost) by gator3278.hostgator.com with esmtpa (Exim 4.85) (envelope-from ) id 1Zm8LQ-000Jzc-G5 for gcc-patches@gcc.gnu.org; Tue, 13 Oct 2015 17:46:56 -0500 Date: Wed, 14 Oct 2015 00:47:21 +0200 From: Arkadiusz Drabczyk To: gcc-patches@gcc.gnu.org Subject: [PATCH] c/67925 - update documentation on `inline' Message-ID: <20151013224721.GA540@comp.lan> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.23 (2014-03-12) X-BWhitelist: no X-Exim-ID: 1Zm8LQ-000Jzc-G5 X-Source-Sender: (localhost) [89.70.245.0]:45881 X-Source-Auth: arkadiusz@drabczyk.org X-Email-Count: 1 X-Source-Cap: cmt1bXZicmg7cmt1bXZicmg7Z2F0b3IzMjc4Lmhvc3RnYXRvci5jb20= * gcc/doc/extend.texi: documentation says that functions declared `inline' would not be integrated if they are called before they are defined or if they are recursive. Both of these statements is now false as shown in examples on Bugzilla. --- gcc/doc/extend.texi | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi index 79440d3..7ea4b62 100644 --- a/gcc/doc/extend.texi +++ b/gcc/doc/extend.texi @@ -7088,12 +7088,9 @@ function are integrated into the caller, and the function's address is never used, then the function's own assembler code is never referenced. In this case, GCC does not actually output assembler code for the function, unless you specify the option @option{-fkeep-inline-functions}. -Some calls cannot be integrated for various reasons (in particular, -calls that precede the function's definition cannot be integrated, and -neither can recursive calls within the definition). If there is a -nonintegrated call, then the function is compiled to assembler code as -usual. The function must also be compiled as usual if the program -refers to its address, because that can't be inlined. +If there is a nonintegrated call, then the function is compiled to +assembler code as usual. The function must also be compiled as usual if +the program refers to its address, because that can't be inlined. @opindex Winline Note that certain usages in a function definition can make it unsuitable