From patchwork Wed Apr 3 18:09:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 233563 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 002BD2C012B for ; Thu, 4 Apr 2013 05:10:15 +1100 (EST) 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:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; q=dns; s=default; b=h2R3M2fO7jsnmuQ36 sWLKbu5z9AcXZm8XfmzfOTju5lz/sQN5779varAtlN0ouC6sHYFx8Xlu8yvWw2Lh 7z/fNhv0EM4cCmC3qTZ8qIi7VrHK3Iu6m9HxCF0ogcxw5oXqahQGeX/qAEIqJiMi ouom5CXj9mCTjacP5dwqQOSKx0= 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:cc:subject:message-id:reply-to:references:mime-version :content-type:in-reply-to; s=default; bh=aYaWakw7HA4Fhw/VdWlhW4S TSms=; b=dB80qQm+tOpHQOCUwuwrM3SLsdgBu0epMJKgmMwBo7jeaf5vQu2xO6b LG2kcJHKdA4Euuhng9L4W2vt0PhLeKyN8kmMXnT8QOITTczzetmh7aspiw8l1nvx ZdYgb0IopbQbI5VlTF0msXIuVutrEU2cUjtkT5kw1HOI1TBIaK7g= Received: (qmail 12340 invoked by alias); 3 Apr 2013 18:10:04 -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 12286 invoked by uid 89); 3 Apr 2013 18:09:59 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 03 Apr 2013 18:09:59 +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 r33I9v7K010391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 3 Apr 2013 14:09:57 -0400 Received: from zalov.cz (vpn1-6-38.ams2.redhat.com [10.36.6.38]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r33I9toL011988 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 3 Apr 2013 14:09:57 -0400 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.cz (8.14.5/8.14.5) with ESMTP id r33I9sIx007902; Wed, 3 Apr 2013 20:09:54 +0200 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id r33I9rCO007901; Wed, 3 Apr 2013 20:09:53 +0200 Date: Wed, 3 Apr 2013 20:09:53 +0200 From: Jakub Jelinek To: Andrey Belevantsev Cc: GCC Patches , Alexander Monakov Subject: Re: [PATCH, committed] Fix PR 45472 Message-ID: <20130403180953.GI4201@tucnak.redhat.com> Reply-To: Jakub Jelinek References: <512DCBE3.1070507@ispras.ru> <51594727.1020600@ispras.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <51594727.1020600@ispras.ru> User-Agent: Mutt/1.5.21 (2010-09-15) On Mon, Apr 01, 2013 at 12:36:55PM +0400, Andrey Belevantsev wrote: > Now backported to 4.7 and 4.6 with Jakub's patch for the > sel-sched-ir.c memory leak added. Test fixed thusly on the 4.6 branch, 4.7 branch has been apparently taken care by Richi already. 2013-04-03 Jakub Jelinek * gcc.dg/pr45472.c: Remove copies. Jakub --- gcc/testsuite/gcc.dg/pr45472.c (revision 197437) +++ gcc/testsuite/gcc.dg/pr45472.c (working copy) @@ -19,66 +19,3 @@ foo (int j, int c) s1 = s2; } } -/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ -/* { dg-options "-O -fschedule-insns2 -fselective-scheduling2" } */ - -struct S -{ - volatile long vl; - int i; -}; -struct S s1, s2; - -void -foo (int j, int c) -{ - int i; - for (i = 0; i <= j; i++) - { - if (c) - s2.vl += s1.vl; - s1 = s2; - } -} -/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ -/* { dg-options "-O -fschedule-insns2 -fselective-scheduling2" } */ - -struct S -{ - volatile long vl; - int i; -}; -struct S s1, s2; - -void -foo (int j, int c) -{ - int i; - for (i = 0; i <= j; i++) - { - if (c) - s2.vl += s1.vl; - s1 = s2; - } -} -/* { dg-do compile { target powerpc*-*-* ia64-*-* x86_64-*-* } } */ -/* { dg-options "-O -fschedule-insns2 -fselective-scheduling2" } */ - -struct S -{ - volatile long vl; - int i; -}; -struct S s1, s2; - -void -foo (int j, int c) -{ - int i; - for (i = 0; i <= j; i++) - { - if (c) - s2.vl += s1.vl; - s1 = s2; - } -}