Patchwork fix directives order in a test case

login
register
mail settings
Submitter Eric Fisher
Date July 1, 2010, 6:36 a.m.
Message ID <AANLkTilUNt6zVXfzHTW3nUWLf23rw1o3chfOAxZ3Wm3q@mail.gmail.com>
Download mbox | patch
Permalink /patch/57474/
State New
Headers show

Comments

Eric Fisher - July 1, 2010, 6:36 a.m.
Hi,

I found this problem when run test suite. A 'FAIL' occurs though the
test is not supported on the target. According to the gccint,
dg-require-effective-target,  this directive must appear after any
dg-do directive in the test and before any dg-additional-sources
directive. This patch moves dg-require-effective-target after dg-do.

Is it OK?

ChangeLog:
    *gcc.dg/vect/fast-math-vect-reduc-8.c: move
dg-require-effective-target after dg-do.


Thanks

Eric Fisher

Patch

Index: gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c	(revision 161653)
+++ gcc/testsuite/gcc.dg/vect/fast-math-vect-reduc-8.c	(working copy)
@@ -1,5 +1,5 @@ 
-/* { dg-require-effective-target vect_float } */
 /* { dg-do compile } */
+/* { dg-require-effective-target vect_float } */
 
 #include "tree-vect.h"