From patchwork Fri Apr 29 01:10:48 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lawrence Crowl X-Patchwork-Id: 93367 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]) by ozlabs.org (Postfix) with SMTP id 44E29B6F94 for ; Fri, 29 Apr 2011 11:11:19 +1000 (EST) Received: (qmail 28973 invoked by alias); 29 Apr 2011 01:11:13 -0000 Received: (qmail 28960 invoked by uid 22791); 29 Apr 2011 01:11:11 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (216.239.44.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 29 Apr 2011 01:10:56 +0000 Received: from wpaz9.hot.corp.google.com (wpaz9.hot.corp.google.com [172.24.198.73]) by smtp-out.google.com with ESMTP id p3T1AtoH007188; Thu, 28 Apr 2011 18:10:55 -0700 Received: from jade.mtv.corp.google.com (jade.mtv.corp.google.com [172.18.116.94]) by wpaz9.hot.corp.google.com with ESMTP id p3T1Am8C018800; Thu, 28 Apr 2011 18:10:49 -0700 Received: by jade.mtv.corp.google.com (Postfix, from userid 21482) id 890D222264E; Thu, 28 Apr 2011 18:10:48 -0700 (PDT) To: reply@codereview.appspotmail.com, dnovillo@google.com, gcc-patches@gcc.gnu.org Subject: [pph] Save/restore PARM_DECL DECL_ARG_TYPE (issue4441079) Message-Id: <20110429011048.890D222264E@jade.mtv.corp.google.com> Date: Thu, 28 Apr 2011 18:10:48 -0700 (PDT) From: crowl@google.com (Lawrence Crowl) X-System-Of-Record: true X-IsSubscribed: yes 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 This patch saves and restores the PARM_DECL DECL_ARG_TYPE in the PPH file. --- This patch is available for review at http://codereview.appspot.com/4441079 Index: gcc/cp/ChangeLog.pph 2011-04-28 Lawrence Crowl * pph-streamer-out.c (pph_stream_write_tree): Write PARM_DECL DECL_ARG_TYPE. * pph-streamer-in.c (pph_stream_read_tree): Read PARM_DECL DECL_ARG_TYPE. Index: gcc/cp/pph-streamer-in.c =================================================================== --- gcc/cp/pph-streamer-in.c (revision 173124) +++ gcc/cp/pph-streamer-in.c (working copy) @@ -791,6 +791,8 @@ pph_stream_read_tree (struct lto_input_b pph_stream_read_lang_specific (stream, expr); if (TREE_CODE (expr) == FUNCTION_DECL) DECL_SAVED_TREE (expr) = pph_input_tree (stream); + else if (TREE_CODE (expr) == PARM_DECL) + DECL_ARG_TYPE (expr) = pph_input_tree (stream); } if (TREE_CODE (expr) == TYPE_DECL) Index: gcc/cp/pph-streamer-out.c =================================================================== --- gcc/cp/pph-streamer-out.c (revision 173124) +++ gcc/cp/pph-streamer-out.c (working copy) @@ -796,6 +796,8 @@ pph_stream_write_tree (struct output_blo if (TREE_CODE (expr) == FUNCTION_DECL) pph_output_tree_or_ref_1 (stream, DECL_SAVED_TREE (expr), ref_p, 3); + else if (TREE_CODE (expr) == PARM_DECL) + pph_output_tree_or_ref_1 (stream, DECL_ARG_TYPE (expr), ref_p, 3); } if (TREE_CODE (expr) == TYPE_DECL)