From patchwork Wed Jan 9 08:26:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Botcazou X-Patchwork-Id: 1022320 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-493688-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=adacore.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="SD0LVNHI"; 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 43ZMgF30C3z9sDn for ; Wed, 9 Jan 2019 19:27:04 +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:subject:date:message-id:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=YHRtZ5W6mNPrqly5 Fz7jAUDYThsWz7fD1S/V2ZEaEoCcw9+ayKr50eYBoRjbErxYye9pmw6VhlwznoO1 CIBQKODuZVY0jCXj6l2eLnvvuz3zA5Jp5iLdfxm2V+AypfmZnzqGJMu1jhv0sfDq Oid7npdg53iXiuJ2atvmoFnwjws= 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:subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=default; bh=DPTq4ge0bCFWUDBG7epWFq zh4uo=; b=SD0LVNHIswj2QkguMef55ddZXKZUPUFKQuOc32cVcoY3Km2W7YRcis BVZJ/V571PnJx36LWBu2A/23ez93lI1q7zvR8gHab4DKghFUPz2RQ+vvOpHSfyv7 5IX2ghVkWm5Cbk9+7QCabOpvxe0d+iHIzlGR5ehmiSS5tbjmqF/eU= Received: (qmail 129925 invoked by alias); 9 Jan 2019 08:26:56 -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 129902 invoked by uid 89); 9 Jan 2019 08:26:56 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-16.1 required=5.0 tests=BAYES_00, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_ASCII_DIVIDERS, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.2 spammy=disregard, @option, @opindex, opindex X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 09 Jan 2019 08:26:53 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E122181380 for ; Wed, 9 Jan 2019 09:26:50 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OpLxV2bJXzrs for ; Wed, 9 Jan 2019 09:26:50 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id AECA681345 for ; Wed, 9 Jan 2019 09:26:50 +0100 (CET) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: Fix documentation about -finline-functions Date: Wed, 09 Jan 2019 09:26:48 +0100 Message-ID: <2271288.dXgxrNalnJ@polaris> MIME-Version: 1.0 The documentation is confused in various ways depending on the active branch, although the implementation in opts.c is strictly identical on all of them: mainline: Enabled at levels `-O2', `-O3', `-Os'. Also enabled by `-fprofile-use' and `-fauto-profile'. 8 branch: Enabled at levels `-O2', `-O3', `-Os'. 7 branch: Enabled at level `-O3'. None is fully correct, the correct form being: Enabled at levels `-O3', `-Os'. Also enabled by `-fprofile-use' and `-fauto-profile'. Tested with 'make doc', applied on all active branches as obvious. 2019-01-09 Eric Botcazou * doc/invoke.texi (-Os): Remove trailing spaces. (-finline-functions): Remove reference to -O2. 2019-01-09 Eric Botcazou * doc/invoke.texi (-Os): Add reference to -finline-functions. (-finline-functions): Remove reference to -O2, add references to -fprofile-use and -fauto-profile. 2019-01-09 Eric Botcazou * doc/invoke.texi (-Os): Add reference to -finline-functions. (-finline-small-functions): Add references to -O3 and -Os. (-findirect-inlining): Likewise. (-finline-functions): Add references to -Os, -fprofile-use and -fauto-profile. Index: doc/invoke.texi =================================================================== --- doc/invoke.texi (revision 267574) +++ doc/invoke.texi (working copy) @@ -8247,7 +8247,7 @@ except those that often increase code si It also enables @option{-finline-functions}, causes the compiler to tune for code size rather than execution speed, and performs further optimizations -designed to reduce code size. +designed to reduce code size. @item -Ofast @opindex Ofast @@ -8395,7 +8395,7 @@ If all calls to a given function are int declared @code{static}, then the function is normally not output as assembler code in its own right. -Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}. Also enabled +Enabled at levels @option{-O3}, @option{-Os}. Also enabled by @option{-fprofile-use} and @option{-fauto-profile}. @item -finline-functions-called-once