Hello! The testcases in gcc.dg/vect have special way to pass their compile flags to testsuite framework.
2015-02-26 Uros Bizjak <ubiz...@gmail.com> * gcc.dg/vect/vect-pr61917.c: Rename to ... * gcc.dg/vect/O3-vect-pr61917.c: ... this. (dg-additional-options): Remove dg directive. (dg-final): Add dg directive. Tested on x86_64-linux-gnu and committed to mainline SVN. Uros.
Index: gcc.dg/vect/O3-vect-pr61917.c =================================================================== --- gcc.dg/vect/O3-vect-pr61917.c (revision 221016) +++ gcc.dg/vect/O3-vect-pr61917.c (working copy) @@ -1,5 +1,4 @@ /* { dg-do compile } */ -/* { dg-additional-options "-O3" } */ int a, b, c, d; @@ -11,3 +10,5 @@ d = a - d; return d; } + +/* { dg-final { cleanup-tree-dump "vect" } } */ Index: gcc.dg/vect/vect-pr61917.c =================================================================== --- gcc.dg/vect/vect-pr61917.c (revision 221016) +++ gcc.dg/vect/vect-pr61917.c (working copy) @@ -1,13 +0,0 @@ -/* { dg-do compile } */ -/* { dg-additional-options "-O3" } */ - -int a, b, c, d; - -int -fn1 () -{ - for (; c; c++) - for (b = 0; b < 2; b++) - d = a - d; - return d; -}