This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch to make "weak" tests supported under solaris2
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 26 Sep 2002 14:50:36 -0400 (EDT)
- Subject: Patch to make "weak" tests supported under solaris2
Currently tests requiring weak support are marked UNRESOLVED on all
solaris2 platforms (on both the trunk and the 3.2-branch,) the
testsuite doesn't know weak is supported on solaris2. See:
http://gcc.gnu.org/ml/gcc-testresults/2002-09/msg00889.html
http://gcc.gnu.org/ml/gcc-testresults/2002-09/msg00888.html
The patch below corrects this. Thanks to David Billinghurst for
pointing out to me what needed fixing.
Tested with both trunk and 3.2-branch bootstraps configured with
--enable-languages=c --disable-checking --disable-nls
--enable-multilib=no and running "make check". The weak tests now get
a PASS instead of UNRESOLVED.
Ok for trunk and 3.2-branch?
Thanks,
--Kaveh
2002-09-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* lib/target-supports.exp (check_weak_available): Handle solaris2.
diff -rup orig/egcc-CVS20020925/gcc/testsuite/lib/target-supports.exp egcc-CVS20020925/gcc/testsuite/lib/target-supports.exp
--- orig/egcc-CVS20020925/gcc/testsuite/lib/target-supports.exp 2001-07-19 16:30:39.000000000 -0400
+++ egcc-CVS20020925/gcc/testsuite/lib/target-supports.exp 2002-09-26 10:12:22.493038504 -0400
@@ -36,6 +36,12 @@ proc check_weak_available { } {
return 1
}
+ # All solaris2 targets should support it
+
+ if { [regexp ".*-solaris2.*" $target_triplet] } {
+ return 1
+ }
+
# DEC OSF/1/Digital UNIX/Tru64 UNIX supports it
if { [regexp "alpha.*osf.*" $target_triplet] } {