From patchwork Fri Mar 29 13:06:12 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: 232404 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 6C0182C00BC for ; Sat, 30 Mar 2013 00:15:19 +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:mime-version:content-type:message-id :date; q=dns; s=default; b=fvF+abrY/pDaYjcENTzFEx1nO2m6ofukVDv2S 3kA2p+kM5CkJKLRxq0UCXUbCojeEcKV4/VNnKE8imMtv5J6OfxUyHUeQRIkSdu4F hLWttnNJqlzxTUl3astPTORICtrOQCst9qlTujxwVYxVV208x8uvK0Mm4e0/e6Eq djVaHE= 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:mime-version:content-type:message-id :date; s=default; bh=SiwX7AjWbr5f9jeKAJDdehnW+nM=; b=j7cMcMU4CLQ t1vKSeMySeZn/0IODj1AVT96BGo3bvW7r5Xugebnh0M3COuJd5j5EU91SkjLreZB 7DnWrFC49webP8VHcLfPLcLnXP2tuPZoDiGpI0x7EZJB+nubvksXJxrljq2iGNvp nf0cWCV8hDsltIlzsvPVLc5t5wvtnPeM= Received: (qmail 24271 invoked by alias); 29 Mar 2013 13:06:28 -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 23749 invoked by uid 89); 29 Mar 2013 13:06:21 -0000 X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_THREADED, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL 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; Fri, 29 Mar 2013 13:06:14 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1ULZ0W-0000Gw-Vc from Tom_deVries@mentor.com ; Fri, 29 Mar 2013 06:06:12 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Fri, 29 Mar 2013 06:06:12 -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; Fri, 29 Mar 2013 06:06:12 -0700 Received: by build1-lucid-cs (Postfix, from userid 49877) id 3C94B4213AB; Fri, 29 Mar 2013 06:06:11 -0700 (PDT) From: Tom de Vries To: Vladimir Makarov CC: gcc-patches In-Reply-To: <51558EF4.1030106@mentor.com> Subject: [PATCH][08/10] -fuse-caller-save - Enable by default at O2 and higher MIME-Version: 1.0 Message-ID: <20130329130612.3C94B4213AB@build1-lucid-cs> Date: Fri, 29 Mar 2013 06:06:12 -0700 X-Virus-Found: No Vladimir, This patch enables the -fuse-caller-save optimization by default. Thanks, -Tom 2013-03-29 Radovan Obradovic Tom de Vries * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with OPT_fuse_caller_save. diff --git a/gcc/opts.c b/gcc/opts.c index 45b12fe..52a42b9 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -486,6 +486,7 @@ static const struct default_options default_options_table[] = { OPT_LEVELS_2_PLUS, OPT_ftree_tail_merge, NULL, 1 }, { OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_foptimize_strlen, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_fhoist_adjacent_loads, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_fuse_caller_save, NULL, 1 }, /* -O3 optimizations. */ { OPT_LEVELS_3_PLUS, OPT_ftree_loop_distribute_patterns, NULL, 1 },