From patchwork Wed Dec 29 11:04:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Jambor X-Patchwork-Id: 76885 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 97C07B708B for ; Wed, 29 Dec 2010 22:03:47 +1100 (EST) Received: (qmail 12266 invoked by alias); 29 Dec 2010 11:03:45 -0000 Received: (qmail 12257 invoked by uid 22791); 29 Dec 2010 11:03:44 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Dec 2010 11:03:39 +0000 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) by mx2.suse.de (Postfix) with ESMTP id 5A35886A2E; Wed, 29 Dec 2010 12:03:37 +0100 (CET) Date: Wed, 29 Dec 2010 12:04:34 +0100 From: Martin Jambor To: GCC Patches Cc: Jan Hubicka Subject: [PATCH] Use correct section_type in input_cgraph_opt_section Message-ID: <20101229110434.GB724@alvy.suse.cz> Mail-Followup-To: GCC Patches , Jan Hubicka MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 Hi, the section type passed to lto_free_section_data in input_cgraph_opt_section seems like it was copied from ipa-prop.c but the section type was not changed afterwards as it should have been. (If it is actually correct, it probably deserves a comment what is going on.) At least there is no other trace in LTO_section_jump_functions in lto-cgraph.c. I'm currently bootstrapping and testing the following, OK if it passes? Thanks, Martin 2010-12-29 Martin Jambor * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type. Index: icln/gcc/lto-cgraph.c =================================================================== --- icln.orig/gcc/lto-cgraph.c 2010-12-29 11:32:14.000000000 +0100 +++ icln/gcc/lto-cgraph.c 2010-12-29 11:32:18.000000000 +0100 @@ -1797,7 +1797,7 @@ input_cgraph_opt_section (struct lto_fil input_node_opt_summary (VEC_index (cgraph_node_ptr, nodes, ref), &ib_main, data_in); } - lto_free_section_data (file_data, LTO_section_jump_functions, NULL, data, + lto_free_section_data (file_data, LTO_section_cgraph_opt_sum, NULL, data, len); lto_data_in_delete (data_in); }