Patchwork [testsuite] Require scheduling support for test that uses -fschedule-insns

login
register
mail settings
Submitter Senthil Kumar Selvaraj
Date May 1, 2013, 9:40 a.m.
Message ID <20130501094052.GA30962@atmel.com>
Download mbox | patch
Permalink /patch/240757/
State New
Headers show

Comments

Senthil Kumar Selvaraj - May 1, 2013, 9:40 a.m.
gcc.dg/torture/alias-1.c specifies -fschedule-insns in its dg-options,
and this causes it to fail for targets that don't support that option.

This patch makes the test unsupported for those targets. 

If ok, could someone apply please? I don't have commit access.

Regards
Senthil

gcc/testsuite/ChangeLog
2013-05-01  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

	* gcc.dg/torture/alias-1.c: Add dg-require-effective-target
	scheduling.
Mike Stump - May 2, 2013, 12:04 a.m.
On May 1, 2013, at 2:40 AM, Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> wrote:
> gcc.dg/torture/alias-1.c specifies -fschedule-insns in its dg-options,
> and this causes it to fail for targets that don't support that option.
> 
> This patch makes the test unsupported for those targets. 

Ok.
Senthil Kumar Selvaraj - May 7, 2013, 9:08 a.m.
Could someone commit this patch please? I don't have commit access.

Regards
Senthil

On Wed, May 01, 2013 at 05:04:18PM -0700, Mike Stump wrote:
> On May 1, 2013, at 2:40 AM, Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> wrote:
> > gcc.dg/torture/alias-1.c specifies -fschedule-insns in its dg-options,
> > and this causes it to fail for targets that don't support that option.
> > 
> > This patch makes the test unsupported for those targets. 
> 
> Ok.
>
Mike Stump - May 14, 2013, 11:13 p.m.
On May 1, 2013, at 2:40 AM, Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> wrote:
> gcc.dg/torture/alias-1.c specifies -fschedule-insns in its dg-options,
> and this causes it to fail for targets that don't support that option.
> 
> This patch makes the test unsupported for those targets. 
> 
> If ok, could someone apply please? I don't have commit access.

Committed revision 198909.

Patch

diff --git gcc/testsuite/gcc.dg/torture/alias-1.c gcc/testsuite/gcc.dg/torture/alias-1.c
index 1e60341..92b8809 100644
--- gcc/testsuite/gcc.dg/torture/alias-1.c
+++ gcc/testsuite/gcc.dg/torture/alias-1.c
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-options "-fschedule-insns" } */
+/* { dg-require-effective-target scheduling } */
 
 extern void abort (void) __attribute__((noreturn));