This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
3.0 PATCH: Avoid spurious testsuite failures on sparcv9-sun-solaris2.8
- To: gcc-patches at gcc dot gnu dot org
- Subject: 3.0 PATCH: Avoid spurious testsuite failures on sparcv9-sun-solaris2.8
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- Date: Sat, 2 Jun 2001 01:31:24 +0200 (MEST)
I currently compare testsuite results for 32-bit sparc-sun-solaris2.8,
32x64-bit bi-arch sparc-sun-solaris2.8 and 64x32-bit sparcv9-sun-solaris2.8
configurations to support the decision for including bi-arch 32x64-bit gcc
in the 3.0 release.
I've posted all results to gcc-testresults:
* sparc-sun-solaris2.8
m32: http://gcc.gnu.org/ml/gcc-testresults/2001-06/msg00016.html (v7-m32)
* 32x64 sparc-sun-solaris2.8
m32: http://gcc.gnu.org/ml/gcc-testresults/2001-06/msg00020.html (v7-bi-m32)
m64: http://gcc.gnu.org/ml/gcc-testresults/2001-06/msg00019.html (v7-bi-m64)
* 64x32 sparcv9-sun-solaris2.8
m32: http://gcc.gnu.org/ml/gcc-testresults/2001-06/msg00017.html (v9-bi-m32)
m64: http://gcc.gnu.org/ml/gcc-testresults/2001-06/msg00018.html (v9-bi-m64)
Comparing v7-m32 to v9-bi-m32, I noticed
+FAIL: gcc.dg/c99-float-1.c undefined (test for bogus messages, line 128)
+FAIL: gcc.dg/c99-float-1.c undefined (test for bogus messages, line 132)
This is an XFAIL on sparc-sun-solaris2.*, but should be so no
sparcv9-sun-solaris2.*.
Compared to the basic v7-m32 configuration, the v9 cross compiler failed to
compile all objc tests. This has a similar reason,
i.e. sched_get_priority_max and sched_get_priority_min are undefined due to
missing libposix4/librt. Trivially fixed below.
Ok for branch and mainline?
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Email: ro@TechFak.Uni-Bielefeld.DE
Fri Jun 1 23:46:33 2001 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* lib/objc.exp (objc_target_compile): Use -lposix4 on
sparcv9-sun-solaris2.[678] too.
* gcc.dg/c99-float-1.c (FLT_EVAL_METHOD, DECIMAL_DIG): xfail on
sparcv9-solaris-2.8 too.
Index: gcc/testsuite/gcc.dg/c99-float-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/c99-float-1.c,v
retrieving revision 1.3.2.1
diff -u -p -r1.3.2.1 c99-float-1.c
--- c99-float-1.c 2001/05/16 00:13:54 1.3.2.1
+++ c99-float-1.c 2001/06/01 23:18:22
@@ -125,9 +125,9 @@
#endif
#ifndef FLT_EVAL_METHOD
-#error "FLT_EVAL_METHOD undefined" /* { dg-bogus "undefined" "undefined" { xfail sparc-sun-solaris2.* } } */
+#error "FLT_EVAL_METHOD undefined" /* { dg-bogus "undefined" "undefined" { xfail sparc*-sun-solaris2.* } } */
#endif
#ifndef DECIMAL_DIG
-#error "DECIMAL_DIG undefined" /* { dg-bogus "undefined" "undefined" { xfail sparc-sun-solaris2.* } } */
+#error "DECIMAL_DIG undefined" /* { dg-bogus "undefined" "undefined" { xfail sparc*-sun-solaris2.* } } */
#endif
Index: gcc/testsuite/lib/objc.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/lib/objc.exp,v
retrieving revision 1.5.6.2
diff -u -p -r1.5.6.2 objc.exp
--- objc.exp 2001/05/14 07:46:01 1.5.6.2
+++ objc.exp 2001/06/01 23:18:23
@@ -124,7 +124,7 @@ proc objc_target_compile { source dest t
# On Solaris 2.x, we need to include libposix4 in order to get
# sched_get_priority_max and such.
- if [istarget {sparc-sun-solaris2.[678]} ] {
+ if [istarget {sparc*-sun-solaris2.[678]} ] {
lappend options "libs=-lposix4"
}