aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2002-10-21 15:42:23 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2002-10-21 15:42:23 +0000
commitecef5e875340b1de7ab7aa208c50eb8f13079286 (patch)
tree052040d56f90af6929b9c7c3bde22325137a81fe /gcc
parent3062825faadb2bcaf5de35530d66c07935f3fa1d (diff)
downloadgcc-ecef5e875340b1de7ab7aa208c50eb8f13079286.zip
gcc-ecef5e875340b1de7ab7aa208c50eb8f13079286.tar.gz
gcc-ecef5e875340b1de7ab7aa208c50eb8f13079286.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/weak/typeof-2.c2
-rw-r--r--gcc/testsuite/gcc.misc-tests/linkage.exp6
3 files changed, 12 insertions, 1 deletions
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 <uweigand@de.ibm.com>
+
+ * 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 <kazu@cs.umass.edu>
* 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"