From patchwork Fri Nov 1 03:22:00 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Xionghu Luo X-Patchwork-Id: 1187756 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-512210-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ZG6rClNu"; dkim-atps=neutral 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 4746v62gB2z9sP4 for ; Fri, 1 Nov 2019 14:22:24 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:mime-version:content-transfer-encoding :message-id; q=dns; s=default; b=WeRr3UiajdUyqHEWioZ12GOC3KqMoFY 74SWd8evxVNEUweOY0By6MdtixQ2bM5/CmD1HdrhUMYMAd4VRyKsM7lPmxp2SV9Z CtmA34hQufwohU2F0LHgGE0U8rZ5jyopP14mcVK+HeZzU4J/1KV57hyJlFCfqZx/ TDhMDAVBPmls= 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:from :to:cc:subject:date:mime-version:content-transfer-encoding :message-id; s=default; bh=cvB0Gfh08qJVr88mZsEq+rdKVls=; b=ZG6rC lNuwkkNhURqOI94Y24MZh3BEhGKYrE13HM79z65i5uTBqulyH7/PYENSE0+A0GL0 SLpQRDtSIPrvAYep4/9EciSAptga5fHB9cemj+AYkWKU/2tjs3SEUlpBhkHm8VUm TT89bgYO6/2/DP3PDUJkU6rr6GTc+kn3ItPjV0= Received: (qmail 37151 invoked by alias); 1 Nov 2019 03:22:15 -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 37142 invoked by uid 89); 1 Nov 2019 03:22:15 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-27.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Nov 2019 03:22:14 +0000 Received: from pps.filterd (m0098419.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id xA13H1F4046984 for ; Thu, 31 Oct 2019 23:22:10 -0400 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0b-001b2d01.pphosted.com with ESMTP id 2w08n4xttw-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 31 Oct 2019 23:22:10 -0400 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 1 Nov 2019 03:22:08 -0000 Received: from b06avi18878370.portsmouth.uk.ibm.com (9.149.26.194) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 1 Nov 2019 03:22:06 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id xA13M4pw45023650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Nov 2019 03:22:04 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 54A1EAE056; Fri, 1 Nov 2019 03:22:04 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 64DDEAE051; Fri, 1 Nov 2019 03:22:03 +0000 (GMT) Received: from genoa.aus.stglabs.ibm.com (unknown [9.40.192.157]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Fri, 1 Nov 2019 03:22:03 +0000 (GMT) From: Xiong Hu Luo To: gcc-patches@gcc.gnu.org Cc: segher@kernel.crashing.org, wschmidt@linux.ibm.com, luoxhu@linux.ibm.com, rguenther@suse.de Subject: [PATCH] Add explicit description for -finline Date: Thu, 31 Oct 2019 22:22:00 -0500 MIME-Version: 1.0 x-cbid: 19110103-0028-0000-0000-000003B1AA76 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19110103-0029-0000-0000-00002473F6D6 Message-Id: <20191101032201.85137-1-luoxhu@linux.ibm.com> -finline is not a explicit option, search word "-finline" in page https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#Optimize-Options will miss the explicit option "-fno-inline". gcc/ChangeLog: 2019-11-01 Xiong Hu Luo doc/invoke.texi (inline): Add description for -finline. --- gcc/doc/invoke.texi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 1407d019d14..08fc02e1cd3 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -8576,6 +8576,9 @@ optimizing. Single functions can be exempted from inlining by marking them with the @code{noinline} attribute. +@code{-finline} enables inlining of function declared \"inline\". +@code{-finline} is enabled at levels -O1, -O2, -O3 and -Os, but not -Og. + @item -finline-small-functions @opindex finline-small-functions Integrate functions into their callers when their body is smaller than expected