typeof-2.c: Handle s390x targets as well.
authorUlrich Weigand <uweigand@de.ibm.com>
Mon, 21 Oct 2002 15:42:23 +0000 (15:42 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Mon, 21 Oct 2002 15:42:23 +0000 (15:42 +0000)
* 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
gcc/testsuite/gcc.dg/weak/typeof-2.c
gcc/testsuite/gcc.misc-tests/linkage.exp

index 1788dbdeaf3d491c53ed2e4659a98f33308f302b..e19f41d88d9a61bad6ce3b95bccf83b4841129f0 100644 (file)
@@ -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.
index de7e2c9343e8b30091cfed766c333ee8ffd2b68b..f2c7c07f6d74b0c6c5b244e4621c8c1f2ebc4578 100644 (file)
@@ -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" } }
index c473ad29bb4bc5b85a45553e2024388fadb79f1b..496c63c7a54f69eaf766948c1ef8279af9edd92b 100644 (file)
@@ -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"