Commit ecef5e87 by Ulrich Weigand Committed by Ulrich Weigand

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
parent 3062825f
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.
......
......@@ -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" } }
......@@ -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"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment