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] gcc/5147 Failure of test gcc.dg/special/wkali-1.c


Test gcc.dg/special/wkali-1.c fails on cygwin due to lack of weak 
symbols.  This patch marks it as unsupported, in same way as other
tests in ecos.exp.

2001-12-18  David Billinghurst <David.Billinghurst@riotinto.com>

	gcc/5147
	* gcc.dg/special/ecos.exp:  wkali-1.c unsupported if 
	target does not support weak symbols.

Index: ecos.exp
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/special/ecos.exp,v
retrieving revision 1.6
diff -u -r1.6 ecos.exp
--- ecos.exp    2001/01/18 02:30:03     1.6
+++ ecos.exp    2001/12/18 10:29:43
@@ -97,13 +97,19 @@
 # wkali-1.c
 ###########

-dg-init
-switch [check_alias_available "$srcdir/$subdir/wkali-1.c"] {
-    yes     { dg-runtest "$srcdir/$subdir/wkali-1.c" "" "" }
-    no      { unsupported "wkali-1.c" }
-    default { fail "wkali-1.c" }
+if { [ check_weak_available ] == 1 } {
+    dg-init
+    switch [check_alias_available "$srcdir/$subdir/wkali-1.c"] {
+        yes     { dg-runtest "$srcdir/$subdir/wkali-1.c" "" "" }
+        no      { unsupported "wkali-1.c" }
+        default { fail "wkali-1.c" }
+    }
+    dg-finish
+} elseif { [ check_weak_available ] == 0 } {
+    unsupported "wkali-1.c"
+} else {
+    unresolved "wkali-1.c"
 }
-dg-finish

 ###########
 # wkali-2.c


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