From patchwork Wed Jul 13 16:28:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 647974 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 3rqPRN1kc3z9s5Q for ; Thu, 14 Jul 2016 02:29:00 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=EATWtHS4; 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:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=MKUOcL7mui3ihd4FE0a4itwdyOYm/mDM963nsCFWAZgKLpRYRJ xoUTn6jqyoNRhXBERrHN9oV3b2Oi6WLpEEKMP88IKKZ5ObsQVZ3TaPTpQMequl7e 0VSM8xXyxoJZAN7/d8ZER8S2X8eF6HUUefak5CQrWWhBegvVKh813W9R4= 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:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=lirWyEGhIaxRJ1FLP76IrnWl+80=; b=EATWtHS4t8QYH204ir5G 09wPHWWBd0yo1qItOQKUM6vA9mQQGQ+3DCY62HeYSeagPK6ZDSehduaUyvD8Kc2R G5thlQ/KdrmjuN1KX1s+Ey4MfKkXVb8OB/43xcqt9dywpoPGjI30ujsDFQz0GsgJ zPIJEh4TdkvIRJjhfop2nXY= Received: (qmail 63689 invoked by alias); 13 Jul 2016 16:28:53 -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 63678 invoked by uid 89); 13 Jul 2016 16:28:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00, SPF_PASS autolearn=ham version=3.3.2 spammy=DOC X-HELO: mx2.suse.de Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Wed, 13 Jul 2016 16:28:42 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 310BAAABC for ; Wed, 13 Jul 2016 16:28:39 +0000 (UTC) To: GCC Patches From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: [PATCH, DOC] Enhance documentation of -fipa-ra option. Message-ID: <50188e44-5982-4a8a-7f66-52f6ba866d11@suse.cz> Date: Wed, 13 Jul 2016 18:28:38 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 X-IsSubscribed: yes Hello. I accidentally learned that -fipa-ra option is disabled if: /* Do not use IPA optimizations for register allocation if profiler is active or port does not emit prologue and epilogue as RTL. */ if (profile_flag || !targetm.have_prologue () || !targetm.have_epilogue ()) flag_ipa_ra = 0; So I basically copied the comment to invoke.texi. Apart from that, I've noticed that '-fprofile' (which is alias of '-p') is not documented. Shouldn't it be documented as an alias? Thanks, Martin From e43eb357b986234e0454e6f6898ef5ae46a7a596 Mon Sep 17 00:00:00 2001 From: marxin Date: Wed, 13 Jul 2016 18:25:09 +0200 Subject: [PATCH] Enhance documentation of -fipa-ra option. gcc/ChangeLog: 2016-07-13 Martin Liska * doc/invoke.texi (-fipa-ra): Document when the option is disabled. Fix a typo. --- gcc/doc/invoke.texi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 9a4db38..647caae 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -7260,7 +7260,9 @@ any called function. In that case it is not necessary to save and restore them around calls. This is only possible if called functions are part of same compilation unit as current function and they are compiled before it. -Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}. +Enabled at levels @option{-O2}, @option{-O3}, @option{-Os}, however the option +is disabled if profiler is active (@option{-p}, @option{-pg} or +@option{-fprofile}) or a port does not emit prologue and epilogue as RTL. @item -fconserve-stack @opindex fconserve-stack @@ -7280,7 +7282,7 @@ Perform code hoisting. Code hoisting tries to move the evaluation of expressions executed on all paths to the function exit as early as possible. This is especially useful as a code size optimization, but it often helps for code speed as well. -This flag is enabled by defailt at @option{-O2} and higher. +This flag is enabled by default at @option{-O2} and higher. @item -ftree-pre @opindex ftree-pre -- 2.8.4