From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1392 invoked by alias); 10 Jun 2011 18:43:03 -0000 Received: (qmail 1384 invoked by uid 22791); 10 Jun 2011 18:43:02 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 10 Jun 2011 18:42:48 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 5FF429AC877; Fri, 10 Jun 2011 20:42:47 +0200 (CEST) Date: Fri, 10 Jun 2011 18:47:00 -0000 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Cgraph alias reorg 13/14 (disable inlining functions called once at -O0 Message-ID: <20110610184247.GA3252@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-06/txt/msg00879.txt.bz2 Hi, by some mistake we enable functions called once at -O0 and it actually happens from time to time. Bootstrapped/regtested x86_64-linux, will commit it shortly. Honza * opts.c (default_options): Enlist OPT_finline_functions_called_once. * common.opt (flag_inline_functions_called_once):Do not initialize to 1. Index: opts.c =================================================================== --- opts.c (revision 174916) +++ opts.c (working copy) @@ -486,6 +486,7 @@ static const struct default_options defa /* Inlining of functions reducing size is a good idea with -Os regardless of them being declared inline. */ { OPT_LEVELS_3_PLUS_AND_SIZE, OPT_finline_functions, NULL, 1 }, + { OPT_LEVELS_1_PLUS, OPT_finline_functions_called_once, NULL, 1 }, { OPT_LEVELS_3_PLUS, OPT_funswitch_loops, NULL, 1 }, { OPT_LEVELS_3_PLUS, OPT_fgcse_after_reload, NULL, 1 }, { OPT_LEVELS_3_PLUS, OPT_ftree_vectorize, NULL, 1 }, Index: common.opt =================================================================== --- common.opt (revision 174916) +++ common.opt (working copy) @@ -1233,7 +1233,7 @@ Common Report Var(flag_inline_functions) Integrate simple functions into their callers finline-functions-called-once -Common Report Var(flag_inline_functions_called_once) Init(1) Optimization +Common Report Var(flag_inline_functions_called_once) Optimization Integrate functions called once into their callers finline-limit-