From patchwork Tue Feb 26 21:14:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 223399 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 0A53E2C007C for ; Wed, 27 Feb 2013 08:15:01 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1362518102; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To: MIME-Version:Content-Type:Content-Disposition:User-Agent: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=7ozC3hclp3+CJVLjktj3 8dW5Tf4=; b=ffoc5DOMmY+scJuGYcDWzlbhP8vtx/HtUL66HN7phL4XYMDc5jD+ R+aAekMI4WCHsEfReYyw3O1FMZCaQnUYP51UjPGugqvZ4rSZsI91+AY4ZcnXb5C6 ckH8bP9gWPyppeAwcBFVt2U2olNMkqink0a3mBRNCI2ehltXPnTBnXE= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Date:From:To:Cc:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=FDyYsKeWw6V592eeJsdiHG2XpYI7kVuRcEYPGnCHmm6Jtky2FujtWX9Umq6/uJ K+R2/MWaUEJZKIrV5lKabtnmAyPf8zVlU1OozdqrZHcGbQ3sl45Pd1F2M/Cr3+dn 9YcrAOSAVqfJNWR71aznCeIPTFoQHsQQTR5rj41VYEj4Q=; Received: (qmail 22016 invoked by alias); 26 Feb 2013 21:14:56 -0000 Received: (qmail 22007 invoked by uid 22791); 26 Feb 2013 21:14:55 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_SPAMHAUS_DROP, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 26 Feb 2013 21:14:47 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1QLEk2q023375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Feb 2013 16:14:46 -0500 Received: from zalov.cz (vpn1-7-146.ams2.redhat.com [10.36.7.146]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r1QLEiuK027397 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 26 Feb 2013 16:14:46 -0500 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.cz (8.14.5/8.14.5) with ESMTP id r1QLEiHj020246; Tue, 26 Feb 2013 22:14:44 +0100 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id r1QLEhxm020245; Tue, 26 Feb 2013 22:14:43 +0100 Date: Tue, 26 Feb 2013 22:14:43 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Cc: Vladimir Makarov Subject: [committed] LRA memory leak fix (PR middle-end/56461) Message-ID: <20130226211443.GA12913@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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! Vladimir approved the following memory leak fix in bugzilla, I've bootstrapped/regtested it on x86_64-linux and i686-linux and checked into trunk. 2013-02-26 Jakub Jelinek PR middle-end/56461 * lra-spills.c (lra_spill): Free spill_hard_reg at the end. Jakub --- gcc/lra-spills.c.jj 2013-01-11 09:02:35.000000000 +0100 +++ gcc/lra-spills.c 2013-02-26 17:08:40.821486270 +0100 @@ -568,6 +568,7 @@ lra_spill (void) free (slots); free (pseudo_slots); free (pseudo_regnos); + free (spill_hard_reg); } /* Apply alter_subreg for subregs of regs in *LOC. Use FINAL_P for