OSDN Git Service

* gcc.misc-tests/linkage.exp: Handle biarch GCC for powerpc64.
authorjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Nov 2004 18:01:56 +0000 (18:01 +0000)
committerjanis <janis@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 11 Nov 2004 18:01:56 +0000 (18:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@90488 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.misc-tests/linkage.exp

index aea8f21..f1106ad 100644 (file)
@@ -1,5 +1,7 @@
 2004-11-11  Janis Johnson  <janis187@us.ibm.com>
 
+       * gcc.misc-tests/linkage.exp: Handle biarch GCC for powerpc64.
+
        * gcc.misc-tests/linkage.exp: Prepend directory name to pass/fail
        message, delete generated files, use more descriptive name for
        executable, and make the test unsupported when it cannot be run.
index 7d4f8e9..375378d 100644 (file)
@@ -63,6 +63,11 @@ if [isnative] then {
            if [ string match "*ELF-64*" $file_string ] {
                set native_cflags "+DD64"
            }
+       } elseif [istarget "powerpc64*-*-linux*"] {
+           set file_string [exec file "linkage-x.o"]
+           if [ string match "*64-bit*" $file_string ] {
+               set native_cflags "-m64"
+           }
        }
 
        if [file exists "linkage-y.o"] then {