From 5bcd1ab33333c3e0fad5bd775daf31b16694fa09 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Fri, 27 Feb 2015 17:56:57 +0100 Subject: [PATCH] re PR ipa/65237 (r221040 caused many regressions) PR ipa/65237 * gcc.dg/attr-noinline.c: Add -fno-ipa-icf * gcc.dg/noreturn-7.c: Add -fno-ipa-icf. * gcc.dg/ipa/ipa-cp-1.c: Revert accidental commit. * gcc.dg/ipa/ipa-cp-2.c: Revert accidental commit. From-SVN: r221065 --- gcc/testsuite/ChangeLog | 8 ++++++++ gcc/testsuite/gcc.dg/attr-noinline.c | 2 +- gcc/testsuite/gcc.dg/ipa/ipa-cp-1.c | 22 ---------------------- gcc/testsuite/gcc.dg/ipa/ipa-cp-2.c | 22 ---------------------- gcc/testsuite/gcc.dg/noreturn-7.c | 2 +- 5 files changed, 10 insertions(+), 46 deletions(-) delete mode 100644 gcc/testsuite/gcc.dg/ipa/ipa-cp-1.c delete mode 100644 gcc/testsuite/gcc.dg/ipa/ipa-cp-2.c diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cc86e37a1ba..7f161c46328 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2015-02-27 Jan Hubicka + + PR ipa/65237 + * gcc.dg/attr-noinline.c: Add -fno-ipa-icf + * gcc.dg/noreturn-7.c: Add -fno-ipa-icf. + * gcc.dg/ipa/ipa-cp-1.c: Revert accidental commit. + * gcc.dg/ipa/ipa-cp-2.c: Revert accidental commit. + 2015-02-27 Jakub Jelinek PR tree-optimization/65048 diff --git a/gcc/testsuite/gcc.dg/attr-noinline.c b/gcc/testsuite/gcc.dg/attr-noinline.c index 7d57c0172c5..a87881bae4a 100644 --- a/gcc/testsuite/gcc.dg/attr-noinline.c +++ b/gcc/testsuite/gcc.dg/attr-noinline.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -finline-functions" } */ +/* { dg-options "-O2 -finline-functions -fno-ipa-icf" } */ extern int t(); diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-cp-1.c b/gcc/testsuite/gcc.dg/ipa/ipa-cp-1.c deleted file mode 100644 index b1ec4d4bb66..00000000000 --- a/gcc/testsuite/gcc.dg/ipa/ipa-cp-1.c +++ /dev/null @@ -1,22 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -fdump-ipa-cp" } */ -int n; - -static void -__attribute__ ((noinline)) -test(void *a) -{ - __builtin_memset (a,0,n); -} - -int -main() -{ - int aa; - short bb; - test (&aa); - test (&bb); - return 0; -} -/* { dg-final { scan-ipa-dump "Alignment 2" "cp" } } */ -/* { dg-final { cleanup-ipa-dump "cp" } } */ diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-cp-2.c b/gcc/testsuite/gcc.dg/ipa/ipa-cp-2.c deleted file mode 100644 index 0dbbcf1c0e1..00000000000 --- a/gcc/testsuite/gcc.dg/ipa/ipa-cp-2.c +++ /dev/null @@ -1,22 +0,0 @@ -/* { dg-do compile } */ -/* { dg-options "-O2 -fdump-ipa-cp" } */ -int n; - -static void -__attribute__ ((noinline)) -test(void *a) -{ - __builtin_memset (a,0,n); -} - -static __attribute__ ((aligned(16))) int aa[10]; - -int -main() -{ - test (&aa[1]); - test (&aa[3]); - return 0; -} -/* { dg-final { scan-ipa-dump "Alignment 8, misalignment 4" "cp" } } */ -/* { dg-final { cleanup-ipa-dump "cp" } } */ diff --git a/gcc/testsuite/gcc.dg/noreturn-7.c b/gcc/testsuite/gcc.dg/noreturn-7.c index fd2be2d56c0..1a60bf94a0e 100644 --- a/gcc/testsuite/gcc.dg/noreturn-7.c +++ b/gcc/testsuite/gcc.dg/noreturn-7.c @@ -5,7 +5,7 @@ in presence of tail recursion within a noreturn function. */ /* { dg-do compile } */ -/* { dg-options "-O2 -Wreturn-type -Wmissing-noreturn" } */ +/* { dg-options "-O2 -Wreturn-type -Wmissing-noreturn -fno-ipa-icf" } */ void f(void) __attribute__ ((__noreturn__)); -- 2.30.2