[patch testsuite]: Fix some mingw testcases in gcc.dg
Kai Tietz
ktietz70@googlemail.com
Mon Mar 17 20:50:00 GMT 2014
Hello,
this patch fixes some regressions introduced by default-option
-fms-extensions for mingw-targets.
ChangeLog
2014-03-17 Kai Tietz <ktietz@redhat.com>
* anon-struct-1.c: Add -fno-ms-extensions option for mingw targets.
* anon-struct-11.c: Likewise.
* anon-struct-2.c: Likewise.
* c11-anon-struct-2.c: Likewise.
* c11-anon-struct-3.c: Likewise.
Tested for i686-w64-mingw32, and x86_64-unknown-linux-gnu. Ok for apply?
Regards,
Kai
Index: anon-struct-1.c
===================================================================
--- anon-struct-1.c (Revision 208594)
+++ 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: anon-struct-11.c
===================================================================
--- anon-struct-11.c (Revision 208594)
+++ 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: anon-struct-2.c
===================================================================
--- anon-struct-2.c (Revision 208594)
+++ 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: c11-anon-struct-2.c
===================================================================
--- c11-anon-struct-2.c (Revision 208594)
+++ 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: c11-anon-struct-3.c
===================================================================
--- c11-anon-struct-3.c (Revision 208594)
+++ 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
{
More information about the Gcc-patches
mailing list