From b032ef1c4fe05150c1a9438f97faf392fc817992 Mon Sep 17 00:00:00 2001 From: gjl Date: Mon, 11 Jul 2011 07:54:17 +0000 Subject: [PATCH] * lib/target-supports.exp (check_effective_target_scheduling): New Function. * gcc.dg/pr46614.c: Add dg-require-effective-target scheduling. * gcc.dg/pr45055.c: Ditto. * gcc.dg/pr45353.c: Ditto. * g++.dg/pr45056.C: Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176136 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/g++.dg/pr45056.C | 1 + gcc/testsuite/gcc.dg/pr45055.c | 1 + gcc/testsuite/gcc.dg/pr45353.c | 1 + gcc/testsuite/gcc.dg/pr46614.c | 1 + gcc/testsuite/lib/target-supports.exp | 8 ++++++++ 6 files changed, 21 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index de47be9..6e4c33e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2011-07-11 Georg-Johann Lay + * lib/target-supports.exp (check_effective_target_scheduling): + New Function. + * gcc.dg/pr46614.c: Add dg-require-effective-target scheduling. + * gcc.dg/pr45055.c: Ditto. + * gcc.dg/pr45353.c: Ditto. + * g++.dg/pr45056.C: Ditto. + +2011-07-11 Georg-Johann Lay + * gcc.dg/compat/struct-by-value-16_main.c: Skip AVR. * gcc.dg/compat/struct-by-value-17_main.c: Skip AVR. * gcc.dg/compat/struct-by-value-18_main.c: Skip AVR. diff --git a/gcc/testsuite/g++.dg/pr45056.C b/gcc/testsuite/g++.dg/pr45056.C index a69107e..1f3fda0 100644 --- a/gcc/testsuite/g++.dg/pr45056.C +++ b/gcc/testsuite/g++.dg/pr45056.C @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fschedule-insns2 -fschedule-insns -g" } */ +/* { dg-require-effective-target scheduling } */ template < class _T1, class _T2 > struct pair { diff --git a/gcc/testsuite/gcc.dg/pr45055.c b/gcc/testsuite/gcc.dg/pr45055.c index ebd8cbf..899de50 100644 --- a/gcc/testsuite/gcc.dg/pr45055.c +++ b/gcc/testsuite/gcc.dg/pr45055.c @@ -1,6 +1,7 @@ /* PR debug/45055 */ /* { dg-do compile } */ /* { dg-options "-O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" } */ +/* { dg-require-effective-target scheduling } */ int colormap[10]; diff --git a/gcc/testsuite/gcc.dg/pr45353.c b/gcc/testsuite/gcc.dg/pr45353.c index e3277a8..0d704f8 100644 --- a/gcc/testsuite/gcc.dg/pr45353.c +++ b/gcc/testsuite/gcc.dg/pr45353.c @@ -1,6 +1,7 @@ /* PR rtl-optimization/45353 */ /* { dg-do compile } */ /* { dg-options "-O2 -fschedule-insns -fselective-scheduling" } */ +/* { dg-require-effective-target scheduling } */ void foo () diff --git a/gcc/testsuite/gcc.dg/pr46614.c b/gcc/testsuite/gcc.dg/pr46614.c index 8e75780..92bcf4e 100644 --- a/gcc/testsuite/gcc.dg/pr46614.c +++ b/gcc/testsuite/gcc.dg/pr46614.c @@ -1,6 +1,7 @@ /* PR rtl-optimization/46614 */ /* { dg-do run } */ /* { dg-options "-O -fno-rename-registers -fsched2-use-superblocks -fschedule-insns2 -funroll-loops" } */ +/* { dg-require-effective-target scheduling } */ extern void abort (void); diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 6ef87ab..cf44f1e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -712,6 +712,14 @@ proc check_effective_target_function_sections {} { } "-ffunction-sections"] } +# Return 1 if instruction scheduling is available, 0 otherwise. + +proc check_effective_target_scheduling {} { + return [check_no_compiler_messages scheduling object { + void foo (void) { } + } "-fschedule-insns"] +} + # Return 1 if compilation with -fgraphite is error-free for trivial # code, 0 otherwise. -- 2.7.4