This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/4] NetWare: general testsuite adjustments


Various tests fail to consider targets with non-standard defaults, for
NetWare in particular MS bitfield layout and packed structures.

Besides that, various special cases earlier needed due to missing
abstraction for targets without -fPIC support can be removed.

The slightly different 4.4 patch is attached for reference.

Jan

2009-07-23  Jan Beulich  <jbeulich@novell.com>

	* g++.dg/ext/bitfield2.C: Add -mno-ms-bitfields for
	i?86-*-netware.
	* g++.dg/ext/bitfield3.C: Likewise.
	* g++.dg/ext/bitfield4.C: Likewise.
	* g++.dg/ext/bitfield5.C: Likewise.
	* gcc.dg/bitfld-15.c: Likewise.
	* gcc.dg/bitfld-16.c: Likewise.
	* gcc.dg/bitfld-17.c: Likewise.
	* gcc.dg/bitfld-18.c: Likewise.
	* g++.old-deja/g++.jason/thunk2.C: Remove dg-bogus.
	* gcc.dg/20010912-1.c: Likewise.
	* gcc.dg/20021018-1.c: Likewise.
	* gcc.dg/20030213-1.c: Likewise.
	* gcc.dg/20030225-1.c: Likewise.
	* gcc.dg/20030708-1.c: Likewise.
	* gcc.dg/20050321-2.c: Likewise.
	* gcc.dg/cdce1.c: Don't pass -lm for *-*-netware*.
	* gcc.dg/cdce2.c: Likewise.
	* gcc.target/i386/pr37248-2.c: Don't test on default_packet
	targets.
	* gcc.target/i386/pr37248-3.c: Likewise.

--- trunk/gcc/testsuite/g++.dg/ext/bitfield2.C
+++ trunk/gcc/testsuite/g++.dg/ext/bitfield2.C
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* Remove pedantic.  Allow the GCC extension to use char for bitfields.  */
 /* { dg-options "" } */
+/* { dg-options "-mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 { /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
--- trunk/gcc/testsuite/g++.dg/ext/bitfield3.C
+++ trunk/gcc/testsuite/g++.dg/ext/bitfield3.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wno-packed-bitfield-compat" } */
+/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 {
--- trunk/gcc/testsuite/g++.dg/ext/bitfield4.C
+++ trunk/gcc/testsuite/g++.dg/ext/bitfield4.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "" } */
+/* { dg-options "-mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 { /* { dg-message "note: Offset of packed bit-field 't::b' has changed in GCC 4.4" "" { target pcc_bitfield_type_matters } } */
--- trunk/gcc/testsuite/g++.dg/ext/bitfield5.C
+++ trunk/gcc/testsuite/g++.dg/ext/bitfield5.C
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wno-packed-bitfield-compat" } */
+/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 {
--- trunk/gcc/testsuite/g++.old-deja/g++.jason/thunk2.C
+++ trunk/gcc/testsuite/g++.old-deja/g++.jason/thunk2.C
@@ -1,6 +1,5 @@
 // { dg-do run { target fpic } }
 // { dg-options "-fPIC" }
-// { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))|\[Bb\]ad fixup at .DATA.:" "PIC unsupported" { xfail *-*-netware* } 0 }
 // { dg-skip-if "requires unsupported run-time relocation" { spu-*-* } { "*" } { "" } }
 // Test that non-variadic function calls using thunks and PIC work right.
 
--- trunk/gcc/testsuite/gcc.dg/20010912-1.c
+++ trunk/gcc/testsuite/gcc.dg/20010912-1.c
@@ -1,6 +1,5 @@
 /* { dg-do run { target fpic } } */
 /* { dg-options "-O2 -fpic" } */
-/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
 
 extern void abort (void);
 extern void exit (int);
--- trunk/gcc/testsuite/gcc.dg/20021018-1.c
+++ trunk/gcc/testsuite/gcc.dg/20021018-1.c
@@ -1,6 +1,5 @@
 /* { dg-do run { target fpic } } */
 /* { dg-options "-O2 -fpic" } */
-/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
 
 extern void abort (void);
 extern void exit (int);
--- trunk/gcc/testsuite/gcc.dg/20030213-1.c
+++ trunk/gcc/testsuite/gcc.dg/20030213-1.c
@@ -1,7 +1,6 @@
 /* Testcase for http://gcc.gnu.org/ml/gcc-patches/2003-02/msg01017.html */
 /* { dg-do link { target fpic } } */
 /* { dg-options "-O -fpic" } */
-/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
 
 int *g;
 
--- trunk/gcc/testsuite/gcc.dg/20030225-1.c
+++ trunk/gcc/testsuite/gcc.dg/20030225-1.c
@@ -5,7 +5,6 @@
    and Benjamin Herrenschmidt <benh@kernel.crashing.org>.  */
 /* { dg-do run { target fpic } } */
 /* { dg-options "-O2 -fPIC" } */
-/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
 
 extern void exit (int);
 
--- trunk/gcc/testsuite/gcc.dg/20030708-1.c
+++ trunk/gcc/testsuite/gcc.dg/20030708-1.c
@@ -1,7 +1,6 @@
 /* PR c/11420 */
 /* { dg-do link { target fpic } } */
 /* { dg-options "-O2 -fpic" } */
-/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
 
 void (* volatile fn) (void);
 static void foo (void)
--- trunk/gcc/testsuite/gcc.dg/20050321-2.c
+++ trunk/gcc/testsuite/gcc.dg/20050321-2.c
@@ -5,7 +5,6 @@
    figure out branch to lab is too far.  */
 /* { dg-do link { target fpic } } */
 /* { dg-options "-g1 -fpic" } */
-/* { dg-bogus "\[Uu\]nresolved symbol .(_GLOBAL_OFFSET_TABLE_|\[_.A-Za-z\]\[_.0-9A-Za-z\]*@(PLT|GOT|GOTOFF))" "PIC unsupported" { xfail *-*-netware* } 0 } */
 /* { dg-require-effective-target int32plus } */
 
 #define A(n) \
--- trunk/gcc/testsuite/gcc.dg/bitfld-15.c
+++ trunk/gcc/testsuite/gcc.dg/bitfld-15.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* Remove pedantic.  Allow the GCC extension to use char for bitfields.  */
 /* { dg-options "" } */
+/* { dg-options "-mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 {
--- trunk/gcc/testsuite/gcc.dg/bitfld-16.c
+++ trunk/gcc/testsuite/gcc.dg/bitfld-16.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wno-packed-bitfield-compat" } */
+/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 {
--- trunk/gcc/testsuite/gcc.dg/bitfld-17.c
+++ trunk/gcc/testsuite/gcc.dg/bitfld-17.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "" } */
+/* { dg-options "-mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 {
--- trunk/gcc/testsuite/gcc.dg/bitfld-18.c
+++ trunk/gcc/testsuite/gcc.dg/bitfld-18.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-options "-Wno-packed-bitfield-compat" } */
+/* { dg-options "-Wno-packed-bitfield-compat -mno-ms-bitfields" { target i?86-*-netware } } */
 
 struct t
 {
--- trunk/gcc/testsuite/gcc.dg/cdce1.c
+++ trunk/gcc/testsuite/gcc.dg/cdce1.c
@@ -1,5 +1,6 @@
 /* { dg-do  run  } */
 /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details  -lm" } */
+/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details" { target *-*-netware* } } */
 /* { dg-final { scan-tree-dump  "cdce1.c:16: note: function call is shrink-wrapped into error conditions\."  "cdce" } } */
 /* { dg-final { cleanup-tree-dump "cdce" } } */
 /* { dg-require-effective-target large_double } */
--- trunk/gcc/testsuite/gcc.dg/cdce2.c
+++ trunk/gcc/testsuite/gcc.dg/cdce2.c
@@ -1,6 +1,7 @@
 /* { dg-do  run  } */
 /* { dg-skip-if "doubles are floats" { "avr-*-*" } { "*" } { "" } } */
 /* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details  -lm" } */
+/* { dg-options "-O2 -fmath-errno -fdump-tree-cdce-details" { target *-*-netware* } } */
 /* { dg-final { scan-tree-dump  "cdce2.c:16: note: function call is shrink-wrapped into error conditions\." "cdce" } }*/
 /* { dg-final { cleanup-tree-dump "cdce" } } */
  
--- trunk/gcc/testsuite/gcc.target/i386/pr37248-2.c
+++ trunk/gcc/testsuite/gcc.target/i386/pr37248-2.c
@@ -1,5 +1,5 @@
 /* PR middle-end/37248 */
-/* { dg-do compile } */
+/* { dg-do compile { target { ! default_packed } } } */
 /* { dg-options "-O2 -fdump-tree-optimized" } */
 
 struct S
--- trunk/gcc/testsuite/gcc.target/i386/pr37248-3.c
+++ trunk/gcc/testsuite/gcc.target/i386/pr37248-3.c
@@ -1,6 +1,6 @@
 /* PR middle-end/37248 */
-/* { dg-do compile } */
-/* { dg-options "-O2 -fdump-tree-optimized" } */
+/* { dg-do compile { target { ! default_packed } } } */
+/* { dg-options "-O2 -fdump-tree-optimized -mno-ms-bitfields" } */
 
 struct S
 {


Attachment: gcc-4.4-netware-testsuite.patch
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]