[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#661716: ocaml: adapt testsuite/tests/asmcomp/i386.S for hurd-i386



Package: ocaml
Version: 3.12.2~~dev6+12112-3
Severity: minor
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

Hi,

the asmcomp tests fail to link on hurd-i386, because the "call_gen_code"
symbol is missing.
The problem is that in testsuite/tests/asmcomp/i386.S the #define's that
are enabled for hurd are wrong. Using the linux_elf ones (just also it
is done in asmrun/i386.S) for hurd makes the 11 asmcomp tests compile
and run successfully.
(I guess also the same could be applied for kFreeBSD, but I did not
test it.)

Thanks,
-- 
Pino
--- 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

Reply to: