Patchwork [committed] Fix PR 45472

login
register
mail settings
Submitter Jakub Jelinek
Date April 3, 2013, 6:09 p.m.
Message ID <20130403180953.GI4201@tucnak.redhat.com>
Download mbox | patch
Permalink /patch/233563/
State New
Headers show

Comments

Jakub Jelinek - April 3, 2013, 6:09 p.m.
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  <jakub@redhat.com>

	* gcc.dg/pr45472.c: Remove copies.


	Jakub

Patch

--- 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;
-    }
-}