diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2011-07-11 07:54:17 +0000 |
---|---|---|
committer | Georg-Johann Lay <gjl@gcc.gnu.org> | 2011-07-11 07:54:17 +0000 |
commit | 5097ad6c9090a99a50f218be3407381f2f2b7579 (patch) | |
tree | 19fb6cf8b83f00b22bc7ffcfde7f6f3f100573a4 /gcc | |
parent | 7ae3b0b64e48c995004023cb95813f7be5cc4f43 (diff) | |
download | gcc-5097ad6c9090a99a50f218be3407381f2f2b7579.zip gcc-5097ad6c9090a99a50f218be3407381f2f2b7579.tar.gz gcc-5097ad6c9090a99a50f218be3407381f2f2b7579.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/pr45056.C | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr45055.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr45353.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/pr46614.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 8 |
6 files changed, 21 insertions, 0 deletions
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 <avr@gjlay.de> + * 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 <avr@gjlay.de> + * 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. |