linkage.exp: Added -m64 to x86_64 linux target native C compilation where required.
authorSimon Baldwin <simonb@google.com>
Thu, 23 Jul 2009 10:50:51 +0000 (10:50 +0000)
committerSimon Baldwin <simonb@gcc.gnu.org>
Thu, 23 Jul 2009 10:50:51 +0000 (10:50 +0000)
* gcc.misc-tests/linkage.exp: Added -m64 to x86_64 linux target
native C compilation where required.

From-SVN: r149997

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

index 2c065ff..5116ed3 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-23  Simon Baldwin  <simonb@google.com>
+
+       * gcc.misc-tests/linkage.exp: Added -m64 to x86_64 linux target
+       native C compilation where required.
+
 2009-07-22  Doug Kwan  <dougkwan@google.com>
 
        * gcc.c-torture/compile/20090721-1.c: New test.
index 33945bc..05c0311 100644 (file)
@@ -62,6 +62,9 @@ if { [isnative] && ![is_remote host] } then {
            if [ string match "*32-bit*" $file_string ] {
                set native_cflags "-m32"
            }
+           if [ string match "*64-bit*" $file_string ] {
+               set native_cflags "-m64"
+           }
        } elseif [istarget "*-hp-hpux*"] {
            set file_string [exec file "linkage-x.o"]
            if [ string match "*ELF-64*" $file_string ] {