diff options
Diffstat (limited to 'gcc/testsuite/gcc.misc-tests/linkage.exp')
-rw-r--r-- | gcc/testsuite/gcc.misc-tests/linkage.exp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp index 375378d0f16..ade04113c13 100644 --- a/gcc/testsuite/gcc.misc-tests/linkage.exp +++ b/gcc/testsuite/gcc.misc-tests/linkage.exp @@ -48,11 +48,14 @@ if [isnative] then { set native_cflags "-xarch=v9" } } - if [istarget "s390x-*-linux*"] { + if [istarget "s390*-*-linux*"] { set file_string [exec file "linkage-x.o"] if [ string match "*32-bit*" $file_string ] { set native_cflags "-m31" } + if [ string match "*64-bit*" $file_string ] { + set native_cflags "-m64" + } } elseif [istarget "x86_64-*-linux*"] { set file_string [exec file "linkage-x.o"] if [ string match "*32-bit*" $file_string ] { |