From: Georg-Johann Lay Date: Mon, 11 Jul 2011 07:54:17 +0000 (+0000) Subject: target-supports.exp (check_effective_target_scheduling): New Function. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5097ad6c9090a99a50f218be3407381f2f2b7579;p=gcc.git target-supports.exp (check_effective_target_scheduling): New Function. * 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. From-SVN: r176136 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index de47be95c16..6e4c33e765d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +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. diff --git a/gcc/testsuite/g++.dg/pr45056.C b/gcc/testsuite/g++.dg/pr45056.C index a69107e35a4..1f3fda08f8f 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 ebd8cbf21a5..899de50498b 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 e3277a88025..0d704f8d16b 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 8e757803ef4..92bcf4e0161 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 6ef87ab13ae..cf44f1e3675 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.