Hi, this patch turns off ms-extensions for mingw-targets to match diagnostics checked in testcases.
Ok for apply? Kai ChangeLog 2014-11-28 Kai Tietz <kti...@redhat.com> * gcc.dg/anon-struct-1.c: * gcc.dg/anon-struct-11.c: * gcc.dg/anon-struct-2.c: * gcc.dg/c11-anon-struct-2.c: * gcc.dg/c11-anon-struct-3.c: Index: gcc.dg/anon-struct-1.c =================================================================== --- gcc.dg/anon-struct-1.c (Revision 218142) +++ gcc.dg/anon-struct-1.c (Arbeitskopie) @@ -1,4 +1,5 @@ /* { dg-options "-std=iso9899:1990 -pedantic" } */ +/* { dg-additional-options "-fno-ms-extensions" { target *-*-mingw* } } */ /* In strict ISO C mode, we don't recognize the anonymous struct/union extension or any Microsoft extensions. */ Index: gcc.dg/anon-struct-11.c =================================================================== --- gcc.dg/anon-struct-11.c (Revision 218142) +++ gcc.dg/anon-struct-11.c (Arbeitskopie) @@ -3,6 +3,7 @@ /* No special options--in particular, turn off the default -pedantic-errors option. */ /* { dg-options "" } */ +/* { dg-additional-options "-fno-ms-extensions" { target *-*-mingw* } } */ /* When not using -fplan9-extensions, we don't support automatic conversion of pointer types, and we don't support referring to a Index: gcc.dg/anon-struct-2.c =================================================================== --- gcc.dg/anon-struct-2.c (Revision 218142) +++ gcc.dg/anon-struct-2.c (Arbeitskopie) @@ -1,4 +1,5 @@ /* { dg-options "-std=gnu89" } */ +/* { dg-additional-options "-fno-ms-extensions" { target *-*-mingw* } } */ /* In GNU C mode, we recognize the anonymous struct/union extension, but not Microsoft extensions. */ Index: gcc.dg/c11-anon-struct-2.c =================================================================== --- gcc.dg/c11-anon-struct-2.c (Revision 218142) +++ gcc.dg/c11-anon-struct-2.c (Arbeitskopie) @@ -2,6 +2,7 @@ cases. */ /* { dg-do compile } */ /* { dg-options "-std=c11 -pedantic-errors" } */ +/* { dg-additional-options "-fno-ms-extensions" { target *-*-mingw* } } */ typedef struct s0 { Index: gcc.dg/c11-anon-struct-3.c =================================================================== --- gcc.dg/c11-anon-struct-3.c (Revision 218142) +++ gcc.dg/c11-anon-struct-3.c (Arbeitskopie) @@ -2,6 +2,7 @@ cases: typedefs disallowed by N1549. */ /* { dg-do compile } */ /* { dg-options "-std=c11 -pedantic-errors" } */ +/* { dg-additional-options "-fno-ms-extensions" { target *-*-mingw* } } */ typedef struct {