On Tue, Aug 12, 2014 at 08:17:15AM +0200, Dodji Seketeli wrote: > Marek Polacek <pola...@redhat.com> a écrit: > > > > diff --git gcc/testsuite/gcc.dg/concat.c gcc/testsuite/gcc.dg/concat.c > > index 0b9d6f6..e3bfd46 100644 > > --- gcc/testsuite/gcc.dg/concat.c > > +++ gcc/testsuite/gcc.dg/concat.c > > @@ -1,6 +1,7 @@ > > /* Copyright (C) 2001 Free Software Foundation, Inc. */ > > > > /* { dg-do compile } */ > > +/* { dg-options "" } */ > > Just for my own education, why this change? > > > diff --git gcc/testsuite/gcc.dg/pr22458-1.c gcc/testsuite/gcc.dg/pr22458-1.c > > index 8b8032c..023fb21 100644 > > --- gcc/testsuite/gcc.dg/pr22458-1.c > > +++ gcc/testsuite/gcc.dg/pr22458-1.c > > @@ -1,4 +1,6 @@ > > /* { dg-error "expected declaration or statement" "" { target *-*-* } 0 } > > */ > > +/* { dg-options "" } */ > > + > > Likewise. > > > diff --git gcc/testsuite/gcc.dg/pr33676.c gcc/testsuite/gcc.dg/pr33676.c > > index 79c830e..c234470 100644 > > --- gcc/testsuite/gcc.dg/pr33676.c > > +++ gcc/testsuite/gcc.dg/pr33676.c > > @@ -1,4 +1,5 @@ > > /* { dg-do run } */ > > +/* { dg-options "" } */ > > /* { dg-options "-O0 -mtune=i386 -fomit-frame-pointer" { target { { > > i?86-*-* x86_64-*-* } && ia32 } } } */ > > Likewise.
Thise testcases use predefined identifiers, and without the dg-options, they would compile with -ansi -pedantic-errors and fail. Setting dg-options to "" makes the -ansi -pedantic-errors go away. Setting it to e.g. -std=gnu99 would work as well. Marek