From patchwork Wed Nov 19 18:10:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 412479 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 AF34114010B for ; Thu, 20 Nov 2014 05:10:18 +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:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=xLIBdi9FJKoJKL4nu y/t3HSN9JQ/rEecjCLnyCypZC9TCUaVLMAJZGGOutNxXRzr2N2nECXohrgh5BTBH udzdgCF0mptAnrrtmYUzv8OOKtcokxLqBbF5Q1xSBxeHE1I/68527AD/e20IiYsE voudGBk0somUse3uKUrcwlIzNk= 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:date :from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=default; bh=llOrFyixCpaxoEC8Vd32+1l qV38=; b=Q8p9gu82MS4ESoofh59Qn3d9QeqciomAvAQ40h0VmeIuRWYkohZcRjJ Lza03wskrCREMdi4hgCBzV9gge6/KAzw3LhtncGjdQpjIBjTDRxSneu3FlGilGQB iCgTYnGrFR5cmtEyWdXhcyRJZbwUZIAfLdutYtrm922Fj5fKM+CU= Received: (qmail 22713 invoked by alias); 19 Nov 2014 18:10:11 -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 22700 invoked by uid 89); 19 Nov 2014 18:10:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 19 Nov 2014 18:10:08 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id B5788540947; Wed, 19 Nov 2014 19:10:04 +0100 (CET) Date: Wed, 19 Nov 2014 19:10:04 +0100 From: Jan Hubicka To: "H.J. Lu" Cc: Jan Hubicka , GCC Patches , Richard Guenther Subject: Re: Stream out default optimization nodes Message-ID: <20141119181004.GA3523@kam.mff.cuni.cz> References: <20141117183824.GA5137@kam.mff.cuni.cz> <20141118172702.GA32708@kam.mff.cuni.cz> <20141118172943.GB32708@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) > I opened: > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63963 I am testing the following. This hunk apparently slipped from my earlier patch > > -- > H.J. Index: tree-streamer-out.c =================================================================== --- tree-streamer-out.c (revision 217668) +++ tree-streamer-out.c (working copy) @@ -676,10 +676,9 @@ write_ts_function_decl_tree_pointers (st bool ref_p) { stream_write_tree (ob, DECL_VINDEX (expr), ref_p); - /* DECL_STRUCT_FUNCTION is handled by lto_output_function. FIXME lto, - maybe it should be handled here? */ + /* DECL_STRUCT_FUNCTION is handled by lto_output_function. */ stream_write_tree (ob, DECL_FUNCTION_PERSONALITY (expr), ref_p); - /* DECL_FUNCTION_SPECIFIC_TARGET is regenerated. */ + stream_write_tree (ob, DECL_FUNCTION_SPECIFIC_TARGET (expr), ref_p); stream_write_tree (ob, DECL_FUNCTION_SPECIFIC_OPTIMIZATION (expr), ref_p); } Index: tree-streamer-in.c =================================================================== --- tree-streamer-in.c (revision 217668) +++ tree-streamer-in.c (working copy) @@ -774,7 +774,7 @@ lto_input_ts_function_decl_tree_pointers DECL_VINDEX (expr) = stream_read_tree (ib, data_in); /* DECL_STRUCT_FUNCTION is loaded on demand by cgraph_get_body. */ DECL_FUNCTION_PERSONALITY (expr) = stream_read_tree (ib, data_in); - /* DECL_FUNCTION_SPECIFIC_TARGET is regenerated from attributes. */ + DECL_FUNCTION_SPECIFIC_TARGET (expr) = stream_read_tree (ib, data_in); DECL_FUNCTION_SPECIFIC_OPTIMIZATION (expr) = stream_read_tree (ib, data_in); /* If the file contains a function with an EH personality set,