From: Simon Baldwin Date: Thu, 23 Jul 2009 10:50:51 +0000 (+0000) Subject: linkage.exp: Added -m64 to x86_64 linux target native C compilation where required. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=daf1735f31deaef5a05e48d4b264e248ad421fc1;p=platform%2Fupstream%2Fgcc.git linkage.exp: Added -m64 to x86_64 linux target native C compilation where required. * gcc.misc-tests/linkage.exp: Added -m64 to x86_64 linux target native C compilation where required. From-SVN: r149997 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 2c065ff..5116ed3 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2009-07-23 Simon Baldwin + + * gcc.misc-tests/linkage.exp: Added -m64 to x86_64 linux target + native C compilation where required. + 2009-07-22 Doug Kwan * gcc.c-torture/compile/20090721-1.c: New test. diff --git a/gcc/testsuite/gcc.misc-tests/linkage.exp b/gcc/testsuite/gcc.misc-tests/linkage.exp index 33945bc..05c0311 100644 --- a/gcc/testsuite/gcc.misc-tests/linkage.exp +++ b/gcc/testsuite/gcc.misc-tests/linkage.exp @@ -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 ] {