From patchwork Fri Dec 7 13:09:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 204479 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 A2FA42C031F for ; Sat, 8 Dec 2012 00:14:25 +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=1355490865; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=cbg6+u/8SWR24mZFDwet hyPnK30=; b=XZQVdSaRplxD/WNZyJfK6GeMYKUl8R6JNaSPHWQufNfZCOx0jARn mj1GQM3Qvi6iHvWepyjTY6EkzkVQ6UHujHomFGZ/8MAOybgBzHauTQxEbWMyi+3c a9W83bx5gJ+qLPv0zUm8aTVldtTDhSnNwwjz4f4r8T76w0V002NuaVI= 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:Date:From:To:Subject:Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=RPAjtucMtug7Ri79bmMGaKVY+545YyXs/H9zwYXhAUVAU76pfeiK6fcIi1DmKg plyndBqeyeNAbU8tsWfxBx2Vpx22L7kUDWjWt3rdXpgJixzXsP3uztkjuZKS40dd 6nl2NZ3Y/lxeoZe36MM4IExsBPBjxzm24xndILcFbtLWg=; Received: (qmail 19106 invoked by alias); 7 Dec 2012 13:14:14 -0000 Received: (qmail 18971 invoked by uid 22791); 7 Dec 2012 13:14:12 -0000 X-SWARE-Spam-Status: No, hits=-5.4 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD 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; Fri, 07 Dec 2012 13:14:05 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id A4650A3DDF for ; Fri, 7 Dec 2012 14:14:04 +0100 (CET) Date: Fri, 7 Dec 2012 14:09:52 +0100 (CET) From: Richard Biener To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR54886 Message-ID: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) MIME-Version: 1.0 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 fixes PR54886 - ISL is anal about freeing all its memory. Bootstrapped and tested on x86_64-unknown-linux-gnu, applied. Richard. 2012-12-07 Richard Biener PR tree-optimization/54886 * graphite-sese-to-poly.c (build_loop_iteration_domains): Properly free all memory. Index: gcc/graphite-sese-to-poly.c =================================================================== --- gcc/graphite-sese-to-poly.c (revision 194296) +++ gcc/graphite-sese-to-poly.c (working copy) @@ -1058,6 +1058,8 @@ build_loop_iteration_domains (scop_p sco c = isl_constraint_set_constant (c, v); inner = isl_set_add_constraint (inner, c); } + else + isl_pw_aff_free (aff); } else gcc_unreachable ();