From 871c5f6b1df9f0366aa8cbad57db9c98dd85dd06 Mon Sep 17 00:00:00 2001 From: David Billinghurst Date: Thu, 20 Dec 2001 00:32:08 +0000 Subject: [PATCH] re PR c/5147 ([cygwin] Failure of test gcc.dg/special/wkali-1.c) PR c/5147 * gcc.dg/special/ecos.exp: wkali-1.c unsupported if target does not support weak symbols. From-SVN: r48191 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/special/ecos.exp | 18 ++++++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index dedaaef2d503..00ed5ee17793 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2001-12-19 David Billinghurst + + * gcc.dg/special/ecos.exp: wkali-1.c unsupported if + target does not support weak symbols. + 2001-12-19 Jakub Jelinek * gcc.c-torture/compile/20011219-1.c: New test. diff --git a/gcc/testsuite/gcc.dg/special/ecos.exp b/gcc/testsuite/gcc.dg/special/ecos.exp index 4bf7b0ef8eb4..271e3da5ac47 100644 --- a/gcc/testsuite/gcc.dg/special/ecos.exp +++ b/gcc/testsuite/gcc.dg/special/ecos.exp @@ -97,13 +97,19 @@ dg-finish # 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