This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch] Fix PR39325: FAIL: gcc.misc-tests/linkage.c link
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: gcc-patches at gcc dot gnu dot org
- Cc: janis at gcc dot gnu dot org
- Date: Mon, 30 Mar 2009 10:35:35 +0200
- Subject: [Patch] Fix PR39325: FAIL: gcc.misc-tests/linkage.c link
As said in http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39325#1, on
i686-apple-darwin9 and using -m64 '[exec file "linkage-x.o"]' returns
'linkage-x.o: Mach-O 64-bit object' that does not match the original mask.
The following patch use a more general mask and fixes the failure.
Tested on i686-apple-darwin9.
Dominique
2009-03-29 Dominique d'Humieres <dominiq@lps.ens.fr>
PR testsuite/39325
* Use a wider mask for 64 bit mode.
Index: gcc/testsuite/gcc.misc-tests/linkage.exp
===================================================================
--- ../_gcc_clean/gcc/testsuite/gcc.misc-tests/linkage.exp 2009-02-20 19:23:50.000000000 +0100
+++ gcc/testsuite/gcc.misc-tests/linkage.exp 2009-03-01 12:57:34.000000000 +0100
@@ -83,7 +83,16 @@ if { [isnative] && ![is_remote host] } t
}
} elseif [istarget "*86*-*-darwin*"] {
set file_string [exec file "linkage-x.o"]
- if [ string match "*x86_64" $file_string ] {
+ if [ string match "*64*" $file_string ] {
set native_cflags "-m64"
} elseif [ string match "*i386" $file_string ] {
set native_cflags "-m32"