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]

A few more test case cleanups for -fPIC and SCO


Hi All,

Please find attached a few more testcase cleanups.

Thanks for your time.

Kean
2005-11-29  Kean Johnston  <jkj@sco.com>

	* g++.dg/tls/static-1.C: Skip on SCO OpenServer 5 (no TLS support).
	* gcc.dg/tls/pr24428-2.c: Ditto.
	* gcc.dg/tls/pr24428.c: Ditto.
	* g++.dg/other/i386-1.C: Skip on SCO OpenServer 5, which lacks
	SSE support but doesn't disable the feature in the kernel.
	* gcc.target/i386/fastcall-sseregparm.c: Ditto.
	* gcc.target/i386/sse-3.c: Ditto.
	* gcc.target/i386/sse-6.c: Ditto.
	* gcc.target/i386/sse-10.c: Ditto.
	* gcc.target/i386/sse-11.c: Ditto.
	* gcc.target/i386/ssefn-3.c: Ditto.
	* gcc.target/i386/ssefn-4.c: Ditto.
	* gcc.dg/ucnid-3.c: Change from dg-xfail-if to dg-skip-if to avoid
	a false negative (the compile passes but the execution fails).
	Skip on SCO and UnixWare too.
	* gcc.dg/sibcall-6.c: Skip in -fPIC mode on X86.
	* gcc.target/i386/20020523-1.c: Ditto.
	* gcc.target/i386/tailcall-1.c: Ditto.
	* gcc.target/i386/ssetype-3.c: Make magic* static to work with -fPIC.
	* gcc.target/i386/ssetype-5.c: Ditto.

Index: g++.dg/other/i386-1.C
===================================================================
--- g++.dg/other/i386-1.C	(revision 107619)
+++ g++.dg/other/i386-1.C	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do run { target i?86-*-* } } */
+/* { dg-skip-if "" { *-*-sco3.2v5* } { "*" } { "" } } */
 /* { dg-options "-march=pentium4" } */
 
 #include <xmmintrin.h>
Index: g++.dg/tls/static-1.C
===================================================================
--- g++.dg/tls/static-1.C	(revision 107619)
+++ g++.dg/tls/static-1.C	(working copy)
@@ -1,4 +1,4 @@
-// { dg-do run }
+/* { dg-do run { xfail *-*-sco3.2v5* } } */
 // { dg-options "-O2" }
 // { dg-additional-sources "static-1a.cc" }
 
Index: gcc.dg/sibcall-6.c
===================================================================
--- gcc.dg/sibcall-6.c	(revision 107619)
+++ gcc.dg/sibcall-6.c	(working copy)
@@ -7,6 +7,7 @@
    Contributed by Andreas Bauer <baueran@in.tum.de>  */
 
 /* { dg-do run { target i?86-*-* s390*-*-* x86_64-*-*} } */
+/* { dg-skip-if "" { i?86-*-* } { "-fpic" "-fPIC" } { "" } } */
 /* { dg-options "-O2 -foptimize-sibling-calls" } */
 
 extern void abort (void);
Index: gcc.dg/ucnid-3.c
===================================================================
--- gcc.dg/ucnid-3.c	(revision 107619)
+++ gcc.dg/ucnid-3.c	(working copy)
@@ -1,5 +1,5 @@
 /* { dg-do run } */
-/* { dg-xfail-if "" { powerpc-ibm-aix* *-*-solaris2.* } { "*" } { "" } } */
+/* { dg-skip-if "" { powerpc-ibm-aix* *-*-solaris2.* *-*-sco3.2v5* *-*-sysv5* } { "*" } { "" } } */
 /* { dg-options "-std=c99 -fextended-identifiers" } */
 void abort (void);
 
Index: gcc.dg/tls/pr24428-2.c
===================================================================
--- gcc.dg/tls/pr24428-2.c	(revision 107619)
+++ gcc.dg/tls/pr24428-2.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { xfail *-*-sco3.2v5* } } */
 /* { dg-options "-O2" } */
 
 __thread double thrtest[81];
Index: gcc.dg/tls/pr24428.c
===================================================================
--- gcc.dg/tls/pr24428.c	(revision 107619)
+++ gcc.dg/tls/pr24428.c	(working copy)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { xfail *-*-sco3.2v5* } } */
 /* { dg-options "-O2" } */
 
 __thread double thrtest[81];
Index: gcc.target/i386/20020523-1.c
===================================================================
--- gcc.target/i386/20020523-1.c	(revision 107619)
+++ gcc.target/i386/20020523-1.c	(working copy)
@@ -2,6 +2,7 @@
    This testcase was miscompiled because sse_mov?fcc_const0*
    patterns were missing earlyclobber.  */
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
+/* { dg-skip-if "" { i?86-*-* } { "-fpic" "-fPIC" } { "" } } */
 /* { dg-require-effective-target ilp32 } */
 /* { dg-options "-march=pentium3 -msse -ffast-math -O2" } */
 
Index: gcc.target/i386/fastcall-sseregparm.c
===================================================================
--- gcc.target/i386/fastcall-sseregparm.c	(revision 107619)
+++ gcc.target/i386/fastcall-sseregparm.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do run } */
+/* { dg-skip-if "" { *-*-sco3.2v5* } { "*" } { "" } } */
 /* { dg-options "-mpreferred-stack-boundary=4 -msse" } */
 /* { dg-require-effective-target ilp32 } */
 
Index: gcc.target/i386/sse-10.c
===================================================================
--- gcc.target/i386/sse-10.c	(revision 107619)
+++ gcc.target/i386/sse-10.c	(working copy)
@@ -1,5 +1,6 @@
 /* PR 17930 */
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
+/* { dg-skip-if "" { *-*-sco3.2v5* } { "*" } { "" } } */
 /* { dg-options "-O1 -msse2 -mfpmath=sse -mno-accumulate-outgoing-args -fno-omit-frame-pointer" } */
 
 #include "../../gcc.dg/i386-cpuid.h"
Index: gcc.target/i386/sse-11.c
===================================================================
--- gcc.target/i386/sse-11.c	(revision 107619)
+++ gcc.target/i386/sse-11.c	(working copy)
@@ -1,5 +1,6 @@
 /* PR rtl-optimization/21239 */
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
+/* { dg-skip-if "" { *-*-sco3.2v5* } { "*" } { "" } } */
 /* { dg-options "-O2 -msse2" } */
 #include <emmintrin.h>
 #include "../../gcc.dg/i386-cpuid.h"
Index: gcc.target/i386/sse-3.c
===================================================================
--- gcc.target/i386/sse-3.c	(revision 107619)
+++ gcc.target/i386/sse-3.c	(working copy)
@@ -1,5 +1,5 @@
 /* PR target/21149 */
-/* { dg-do run } */
+/* { dg-do run { xfail *-*-sco3.2v5* } } */
 /* { dg-options "-O2 -msse" } */
 #include <xmmintrin.h>
 #include "../../gcc.dg/i386-cpuid.h"
Index: gcc.target/i386/sse-6.c
===================================================================
--- gcc.target/i386/sse-6.c	(revision 107619)
+++ gcc.target/i386/sse-6.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
+/* { dg-skip-if "" { *-*-sco3.2v5* } { "*" } { "" } } */
 /* { dg-options "-O2 -msse2" } */
 #include <xmmintrin.h>
 #include <stdio.h>
Index: gcc.target/i386/ssefn-3.c
===================================================================
--- gcc.target/i386/ssefn-3.c	(revision 107619)
+++ gcc.target/i386/ssefn-3.c	(working copy)
@@ -2,6 +2,7 @@
    Written by Paolo Bonzini, 25 January 2005 */
 
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
+/* { dg-skip-if "" { *-*-sco3.2v5* } { "*" } { "" } } */
 /* { dg-options "-O2 -msse -mfpmath=sse" } */
 #include <assert.h>
 #include "../../gcc.dg/i386-cpuid.h"
Index: gcc.target/i386/ssefn-4.c
===================================================================
--- gcc.target/i386/ssefn-4.c	(revision 107619)
+++ gcc.target/i386/ssefn-4.c	(working copy)
@@ -2,6 +2,7 @@
    Written by Paolo Bonzini, 25 January 2005 */
 
 /* { dg-do run { target i?86-*-* x86_64-*-* } } */
+/* { dg-skip-if "" { *-*-sco3.2v5* } { "*" } { "" } } */
 /* { dg-options "-O2 -msse2 -mfpmath=sse" } */
 #include <assert.h>
 #include "../../gcc.dg/i386-cpuid.h"
Index: gcc.target/i386/ssetype-3.c
===================================================================
--- gcc.target/i386/ssetype-3.c	(revision 107619)
+++ gcc.target/i386/ssetype-3.c	(working copy)
@@ -11,7 +11,7 @@
 
 #include <xmmintrin.h>
 
-__m128 magic_a, magic_b;
+static __m128 magic_a, magic_b;
 __m128
 t1(void)
 {
Index: gcc.target/i386/ssetype-5.c
===================================================================
--- gcc.target/i386/ssetype-5.c	(revision 107619)
+++ gcc.target/i386/ssetype-5.c	(working copy)
@@ -10,7 +10,7 @@
 /* Verify that we generate proper instruction with memory operand.  */
 
 #include <xmmintrin.h>
-__m128i magic_a, magic_b;
+static __m128i magic_a, magic_b;
 __m128i
 t1(void)
 {
Index: gcc.target/i386/tailcall-1.c
===================================================================
--- gcc.target/i386/tailcall-1.c	(revision 107619)
+++ gcc.target/i386/tailcall-1.c	(working copy)
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "" { i?86-*-* } { "-fpic" "-fPIC" } { "" } } */
 /* { dg-options "-O2" } */
 
 typedef unsigned int Cardinal;

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