[testsuite] Require scheduling support in gcc.dg/superblock.c

Message ID 20131104134317.GB582@atmel.com
State New
Headers show

Commit Message

Senthil Kumar Selvaraj Nov. 4, 2013, 1:43 p.m.
Hi,

gcc.dg/superblock.c uses the -fdump-rtl-sched2 option and then scans the 
resulting dump. This fails for the AVR target, as it doesn't have any
instruction scheduling support.

The attached patch makes this test require scheduling support in the
target. If ok, could someone commit please? I do not have commit access.

Regards
Senthil

gcc/testsuite

2013-11-04	Senthil Kumar Selvaraj	<senthil_kumar.selvaraj@atmel.com>

	* gcc.dg/superblock.c: Require scheduling support

Comments

Mike Stump Nov. 5, 2013, 12:21 a.m. | #1
On Nov 4, 2013, at 5:43 AM, Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> wrote:
> gcc.dg/superblock.c uses the -fdump-rtl-sched2 option and then scans the 
> resulting dump. This fails for the AVR target, as it doesn't have any
> instruction scheduling support.

Ok.

> If ok, could someone commit please?

Committed revision 204376.

> 2013-11-04	Senthil Kumar Selvaraj	<senthil_kumar.selvaraj@atmel.com>
> 
> 	* gcc.dg/superblock.c: Require scheduling support

Missing ., added.

Patch

diff --git gcc/testsuite/gcc.dg/superblock.c gcc/testsuite/gcc.dg/superblock.c
index 2b9aedf..272d161 100644
--- gcc/testsuite/gcc.dg/superblock.c
+++ gcc/testsuite/gcc.dg/superblock.c
@@ -1,5 +1,6 @@ 
 /* { dg-do compile } */
 /* { dg-options "-O2 -fno-asynchronous-unwind-tables -fsched2-use-superblocks -fdump-rtl-sched2 -fdump-rtl-bbro" } */
+/* { dg-require-effective-target scheduling } */
 
 typedef int aligned __attribute__ ((aligned (64)));
 extern void abort (void);