From: Steven Bosscher Date: Wed, 21 Dec 2005 15:43:38 +0000 (+0000) Subject: fixup PR number mixup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad44e786b879ce503b59b9e3afd5abb821133f88;p=gcc.git fixup PR number mixup From-SVN: r108909 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2db3153e910..e00ed90dae8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,6 @@ 2005-12-21 Steven Bosscher - PR rtl-optimization/25130 + PR rtl-optimization/25196 * postreload-gcse.c (record_last_set_info): Notice stack pointer changes in push insns without REG_INC notes. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index fb9dd4898e1..6639d37c376 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,7 +1,7 @@ 2005-12-21 Steven Bosscher - PR rtl-optimization/25130 - * gcc.dg/pr25130.c: New test. + PR rtl-optimization/25196 + * gcc.dg/pr25196.c: New test. 2005-12-21 Erik Edelmann diff --git a/gcc/testsuite/gcc.dg/pr25130.c b/gcc/testsuite/gcc.dg/pr25130.c deleted file mode 100644 index e73faffe721..00000000000 --- a/gcc/testsuite/gcc.dg/pr25130.c +++ /dev/null @@ -1,34 +0,0 @@ -/* { dg-do run { target i?86-*-* x86_64-*-* } } */ -/* { dg-require-effective-target ilp32 } */ -/* { dg-options "-march=i386 -O3 -fomit-frame-pointer" } */ - -/* For this test case, we used to do an invalid load motion after - reload, because we missed autoincrements of the stack pointer. */ - -extern void abort (void); - -static int j; - -static void __attribute__((noinline)) -f1 (int a, int b, int c, int d, int e) -{ - j = a; -} - -int __attribute__((noinline)) -f2 (int a, int b, int c, int d, int e) -{ - if ((b & 0x1111) != 1) - f1 (a, b, c, d, e); - return 0; -} - -int -main (void) -{ - f2 (123, 0, 0, 0, 0); - if (j != 123) - abort (); - return 0; -} - diff --git a/gcc/testsuite/gcc.dg/pr25196.c b/gcc/testsuite/gcc.dg/pr25196.c new file mode 100644 index 00000000000..e73faffe721 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr25196.c @@ -0,0 +1,34 @@ +/* { dg-do run { target i?86-*-* x86_64-*-* } } */ +/* { dg-require-effective-target ilp32 } */ +/* { dg-options "-march=i386 -O3 -fomit-frame-pointer" } */ + +/* For this test case, we used to do an invalid load motion after + reload, because we missed autoincrements of the stack pointer. */ + +extern void abort (void); + +static int j; + +static void __attribute__((noinline)) +f1 (int a, int b, int c, int d, int e) +{ + j = a; +} + +int __attribute__((noinline)) +f2 (int a, int b, int c, int d, int e) +{ + if ((b & 0x1111) != 1) + f1 (a, b, c, d, e); + return 0; +} + +int +main (void) +{ + f2 (123, 0, 0, 0, 0); + if (j != 123) + abort (); + return 0; +} +