This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, committed] Fix PR 45472
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andrey Belevantsev <abel at ispras dot ru>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Alexander Monakov <amonakov at ispras dot ru>
- Date: Wed, 3 Apr 2013 20:09:53 +0200
- Subject: Re: [PATCH, committed] Fix PR 45472
- References: <512DCBE3 dot 1070507 at ispras dot ru> <51594727 dot 1020600 at ispras dot ru>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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.
--- 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