From patchwork Sun Jun 14 23:41:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 484094 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 DCAC514028F for ; Mon, 15 Jun 2015 09:41:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=jnt03Wbd; 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:date :from:to:subject:message-id:mime-version:content-type; q=dns; s= default; b=nVJqZxE1QxTb6E2QviDWGfv01fTWDowbY/emBNxeqCNmZmudN5aOz olIgM7epHsYV/WcM/GtwE2gzRFjwqN4cYsD2SflJyZzxilkIkqKXylQLPwU/tQ8b FkdqAYALqqylJQKkZhiPE0dP8xWx5sRT0MmTt/UCG0TVWcX+uW/b1E= 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:subject:message-id:mime-version:content-type; s= default; bh=Sp09dCNsrd7v3iEMDkrH5z2ocWE=; b=jnt03WbdMTvpkJtr8GqA rtlYSFDrqx/P/IAqfH7apjNAwleFPQ/nEd16b+bZmnWMKymbDIEFAGfDIhJcmyWp i7ZWNofpSpSXDpcgL0JI/Tom0AFrZBSVMXheAYI1olt+8tnK+ImGFoTq88TTt0ZF 8hAvMYRr7h5OeuJ/iI6aCak= Received: (qmail 77226 invoked by alias); 14 Jun 2015 23:41:30 -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 77216 invoked by uid 89); 14 Jun 2015 23:41:29 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RP_MATCHES_RCVD autolearn=no 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; Sun, 14 Jun 2015 23:41:28 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id A3679541C3A; Mon, 15 Jun 2015 01:41:23 +0200 (CEST) Date: Mon, 15 Jun 2015 01:41:23 +0200 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Remove streaming of TYPE_NO_FORCE_BLK Message-ID: <20150614234122.GB36639@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Hi, as disucssed in the PR log, TYPE_NO_FORCE_BLK is local bookkepping of stor-layout and does not need to be streamed. Bootstrapped/regtested x86_64-linux, tested on firefox build and committed. PR ipa/66181 * lto.c (compare_tree_sccs_1): Do not compare TYPE_NO_FORCE_BLK. * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK. * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream TYPE_NO_FORCE_BLK. * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise. Index: lto/lto.c =================================================================== --- lto/lto.c (revision 224470) +++ lto/lto.c (working copy) @@ -1159,7 +1159,6 @@ compare_tree_sccs_1 (tree t1, tree t2, t { compare_values (TYPE_MODE); compare_values (TYPE_STRING_FLAG); - compare_values (TYPE_NO_FORCE_BLK); compare_values (TYPE_NEEDS_CONSTRUCTING); if (RECORD_OR_UNION_TYPE_P (t1)) { Index: lto-streamer-out.c =================================================================== --- lto-streamer-out.c (revision 224470) +++ lto-streamer-out.c (working copy) @@ -1119,7 +1119,8 @@ hash_tree (struct streamer_tree_cache_d { hstate.add_wide_int (TYPE_MODE (t)); hstate.add_flag (TYPE_STRING_FLAG (t)); - hstate.add_flag (TYPE_NO_FORCE_BLK (t)); + /* TYPE_NO_FORCE_BLK is private to stor-layout and need + no streaming. */ hstate.add_flag (TYPE_NEEDS_CONSTRUCTING (t)); hstate.add_flag (TYPE_PACKED (t)); hstate.add_flag (TYPE_RESTRICT (t)); Index: tree-streamer-out.c =================================================================== --- tree-streamer-out.c (revision 224470) +++ tree-streamer-out.c (working copy) @@ -318,7 +318,8 @@ pack_ts_type_common_value_fields (struct { bp_pack_machine_mode (bp, TYPE_MODE (expr)); bp_pack_value (bp, TYPE_STRING_FLAG (expr), 1); - bp_pack_value (bp, TYPE_NO_FORCE_BLK (expr), 1); + /* TYPE_NO_FORCE_BLK is private to stor-layout and need + no streaming. */ bp_pack_value (bp, TYPE_NEEDS_CONSTRUCTING (expr), 1); if (RECORD_OR_UNION_TYPE_P (expr)) { Index: tree-streamer-in.c =================================================================== --- tree-streamer-in.c (revision 224470) +++ tree-streamer-in.c (working copy) @@ -370,7 +370,8 @@ unpack_ts_type_common_value_fields (stru mode = bp_unpack_machine_mode (bp); SET_TYPE_MODE (expr, mode); TYPE_STRING_FLAG (expr) = (unsigned) bp_unpack_value (bp, 1); - TYPE_NO_FORCE_BLK (expr) = (unsigned) bp_unpack_value (bp, 1); + /* TYPE_NO_FORCE_BLK is private to stor-layout and need + no streaming. */ TYPE_NEEDS_CONSTRUCTING (expr) = (unsigned) bp_unpack_value (bp, 1); if (RECORD_OR_UNION_TYPE_P (expr)) {