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 <ja...@redhat.com> * gcc.dg/pr45472.c: Remove copies. --- 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; - } -} Jakub