From ecef5e875340b1de7ab7aa208c50eb8f13079286 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Mon, 21 Oct 2002 15:42:23 +0000 Subject: typeof-2.c: Handle s390x targets as well. * gcc.dg/weak/typeof-2.c: Handle s390x targets as well. * gcc.misc-tests/linkage.exp: Handle s390x targets in -m31 mode. From-SVN: r58361 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.dg/weak/typeof-2.c | 2 +- gcc/testsuite/gcc.misc-tests/linkage.exp | 6 ++++++ 3 files changed, 12 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1788dbd..e19f41d8 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2002-10-21 Ulrich Weigand + + * gcc.dg/weak/typeof-2.c: Handle s390x targets as well. + * gcc.misc-tests/linkage.exp: Handle s390x targets in -m31 mode. + 2002-10-21 Kazu Hirata * gcc.c-torture/compile/20020604-1.x: New. diff --git a/gcc/testsuite/gcc.dg/weak/typeof-2.c b/gcc/testsuite/gcc.dg/weak/typeof-2.c index de7e2c9..f2c7c07 100644 --- a/gcc/testsuite/gcc.dg/weak/typeof-2.c +++ b/gcc/testsuite/gcc.dg/weak/typeof-2.c @@ -32,5 +32,5 @@ int bar3 (int x) // { dg-final { if [string match sh-*-* $target_triplet ] {return} } } // { dg-final { if [string match {sh[elb1-9]*-*-*} $target_triplet ] {return} } } // Likewise for S/390 targets -// { dg-final { if [string match s390-*-* $target_triplet ] {return} } } +// { dg-final { if [string match s390*-*-* $target_triplet ] {return} } } // { dg-final { scan-assembler "baz3.*baz3.*baz3.*baz3.*baz3.*baz3" } } diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp index c473ad2..496c63c 100644 --- a/gcc/testsuite/gcc.misc-tests/linkage.exp +++ b/gcc/testsuite/gcc.misc-tests/linkage.exp @@ -48,6 +48,12 @@ if [isnative] then { set native_cflags "-xarch=v9" } } + if [istarget "s390x-*-linux*"] { + set file_string [exec file "linkage-x.o"] + if [ string match "*32-bit*" $file_string ] { + set native_cflags "-m31" + } + } catch { exec rm -f linkage-y.o } send_log "cc -c $native_cflags $srcdir/$subdir/linkage-y.c >&/dev/null\n" -- cgit v1.1