From: Stephane Glondu Date: Wed, 20 Jun 2012 20:36:34 +0000 (+0200) Subject: Fix symbol mangling in asmcomp tests on kfreebsd-i386 and sparc X-Git-Tag: archive/raspbian/4.08.1-4+rpi1~3^2~233 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3034a758df19d6ea684e2ecb40d1c2f7b9b9002d;p=ocaml.git Fix symbol mangling in asmcomp tests on kfreebsd-i386 and sparc --- diff --git a/debian/patches/0012-Fix-asmcomp-tests-on-Hurd.patch b/debian/patches/0012-Fix-asmcomp-tests-on-Hurd.patch deleted file mode 100644 index 4831499b..00000000 --- a/debian/patches/0012-Fix-asmcomp-tests-on-Hurd.patch +++ /dev/null @@ -1,25 +0,0 @@ -From: Pino Toscano -Date: Tue, 27 Mar 2012 11:41:02 +0200 -Subject: Fix asmcomp tests on Hurd - -Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661716 -Author: Pino Toscano -Signed-off-by: Stephane Glondu ---- - testsuite/tests/asmcomp/i386.S | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/testsuite/tests/asmcomp/i386.S b/testsuite/tests/asmcomp/i386.S -index fdda4de..54e37a6 100644 ---- a/testsuite/tests/asmcomp/i386.S -+++ b/testsuite/tests/asmcomp/i386.S -@@ -15,7 +15,7 @@ - /* Linux with ELF binaries does not prefix identifiers with _. - Linux with a.out binaries, FreeBSD, and NextStep do. */ - --#ifdef SYS_linux_elf -+#if defined(SYS_linux_elf) || defined(SYS_gnu) - #define G(x) x - #define FUNCTION_ALIGN 16 - #else --- diff --git a/debian/patches/0012-Fix-symbol-mangling-in-asmcomp-tests-on-i386-and-spa.patch b/debian/patches/0012-Fix-symbol-mangling-in-asmcomp-tests-on-i386-and-spa.patch new file mode 100644 index 00000000..3487eef3 --- /dev/null +++ b/debian/patches/0012-Fix-symbol-mangling-in-asmcomp-tests-on-i386-and-spa.patch @@ -0,0 +1,41 @@ +From: Pino Toscano +Date: Tue, 27 Mar 2012 11:41:02 +0200 +Subject: Fix symbol mangling in asmcomp tests on *-i386 and sparc + +Based on a patch by Pino Toscano . + +Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=661716 +Signed-off-by: Stephane Glondu +--- + testsuite/tests/asmcomp/i386.S | 3 ++- + testsuite/tests/asmcomp/sparc.S | 2 +- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/testsuite/tests/asmcomp/i386.S b/testsuite/tests/asmcomp/i386.S +index fdda4de..c2510c8 100644 +--- a/testsuite/tests/asmcomp/i386.S ++++ b/testsuite/tests/asmcomp/i386.S +@@ -15,7 +15,8 @@ + /* Linux with ELF binaries does not prefix identifiers with _. + Linux with a.out binaries, FreeBSD, and NextStep do. */ + +-#ifdef SYS_linux_elf ++#if defined(SYS_linux_elf) || defined(SYS_bsd_elf) \ ++ || defined(SYS_solaris) || defined(SYS_beos) || defined(SYS_gnu) + #define G(x) x + #define FUNCTION_ALIGN 16 + #else +diff --git a/testsuite/tests/asmcomp/sparc.S b/testsuite/tests/asmcomp/sparc.S +index 7d17548..aeacaaf 100644 +--- a/testsuite/tests/asmcomp/sparc.S ++++ b/testsuite/tests/asmcomp/sparc.S +@@ -12,7 +12,7 @@ + + /* $Id: sparc.S 11156 2011-07-27 14:17:02Z doligez $ */ + +-#ifndef SYS_solaris ++#if defined(SYS_solaris) || defined(SYS_elf) + #define Call_gen_code _call_gen_code + #define Caml_c_call _caml_c_call + #else +-- diff --git a/debian/patches/series b/debian/patches/series index 3df69c3f..3e1391f2 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -9,7 +9,7 @@ 0009-Avoid-multiple-declarations-in-generated-.c-files-in.patch 0010-Properly-initialize-executable-name-in-caml_startup_.patch 0011-Embed-bytecode-in-C-object-when-using-custom.patch -0012-Fix-asmcomp-tests-on-Hurd.patch +0012-Fix-symbol-mangling-in-asmcomp-tests-on-i386-and-spa.patch 0013-Fix-testsuite-on-bytecode-architectures.patch 0014-ocamlopt-fix-on-powerpc.patch 0015-Move-power.o-rule-in-asmcomp-test-after-definition-o.patch