From patchwork Sat Mar 30 17:12:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 232541 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 766882C00DE for ; Sun, 31 Mar 2013 04:14:10 +1100 (EST) 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:in-reply-to:subject:content-type:mime-version:message-id :date; q=dns; s=default; b=FJ59X+dB4UsfLhqpukeq1ERJowhfznoMX2rhG EUATx5E2q7g1S46OQ1ZN9Vq9105ECNWaBJUDtqUG8LQBmlnX9etxGdUrUTmRNeEN n2CjyALKV9EpzuYPtkIfdntGKf0+Updx925Xl2WSTiDX4tgj1AILiAtVyBRZVjn5 zUin4s= 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:in-reply-to:subject:content-type:mime-version:message-id :date; s=default; bh=gz1C9ADf01QFqoxaI85ODFt/UD8=; b=k5NZxnd6K1z VYlkqZlgM2T9FnE9neJVuMDykdPVSBj0HEx4pSN2CBDXI18SwareC8q54rtN8r50 UuGhOWtcPNTEzBDH/64w/z8mRDUIIk2iFzCRgSoqKChrYyb567+/yiMl7xhFXfVp n6Liy0iEDl2/usafztNMO6FmIPE4vPyo= Received: (qmail 10614 invoked by alias); 30 Mar 2013 17:12:17 -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 10250 invoked by uid 89); 30 Mar 2013 17:12:10 -0000 X-Spam-SWARE-Status: No, score=-4.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, TW_FV, TW_FW, TW_VP autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 30 Mar 2013 17:12:08 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1ULzK2-00039Q-8z from Tom_deVries@mentor.com ; Sat, 30 Mar 2013 10:12:06 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 30 Mar 2013 10:12:06 -0700 Received: from build1-lucid-cs (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Sat, 30 Mar 2013 10:12:05 -0700 Received: by build1-lucid-cs (Postfix, from userid 49877) id 85752421213; Sat, 30 Mar 2013 10:12:05 -0700 (PDT) From: Tom de Vries To: Vladimir Makarov CC: gcc-patches In-Reply-To: <51558EF4.1030106@mentor.com> Subject: [PATCH][09/10] -fuse-caller-save - Add documentation MIME-Version: 1.0 Message-ID: <20130330171205.85752421213@build1-lucid-cs> Date: Sat, 30 Mar 2013 10:12:05 -0700 X-Virus-Found: No Vladimir, This patch adds the documentation of -fuse-caller-save. Thanks, -Tom 2013-03-30 Radovan Obradovic Tom de Vries * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save to gccoptlist. (@item -fuse-caller-save): New item. diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 475dcf0..efb8a1a 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -421,8 +421,8 @@ Objective-C and Objective-C++ Dialects}. -ftree-ter -ftree-vect-loop-version -ftree-vectorize -ftree-vrp @gol -funit-at-a-time -funroll-all-loops -funroll-loops @gol -funsafe-loop-optimizations -funsafe-math-optimizations -funswitch-loops @gol --fvariable-expansion-in-unroller -fvect-cost-model -fvpt -fweb @gol --fwhole-program -fwpa -fuse-ld=@var{linker} -fuse-linker-plugin @gol +-fuse-caller-save -fvariable-expansion-in-unroller -fvect-cost-model -fvpt @gol +-fweb -fwhole-program -fwpa -fuse-ld=@var{linker} -fuse-linker-plugin @gol --param @var{name}=@var{value} -O -O0 -O1 -O2 -O3 -Os -Ofast -Og} @@ -7382,6 +7382,14 @@ and then tries to find ways to combine them. Enabled by default at @option{-O1} and higher. +@item -fuse-caller-save +Use caller save registers for allocation if those registers are not used by +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}. + @item -fconserve-stack @opindex fconserve-stack Attempt to minimize stack usage. The compiler attempts to use less