* 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
+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.
// { 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" } }
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"