New patches from Fedora.
[fedora-mingw.git] / ocaml / mingw32-ocaml-3.11.0+beta1-i386-profiling.patch
1 Make sure that PROFILE_* macros are defined on MinGW.  Not sure
2 what to put in them yet, so at the moment they are just empty.
3
4 diff -urN ocaml-3.11.0+beta1.orig/asmrun/i386.S ocaml-3.11.0+beta1.mingw/asmrun/i386.S
5 --- ocaml-3.11.0+beta1.orig/asmrun/i386.S       2008-08-01 09:04:57.000000000 +0100
6 +++ ocaml-3.11.0+beta1.mingw/asmrun/i386.S      2008-11-15 15:08:20.000000000 +0000
7 @@ -64,6 +64,9 @@
8          popl %edx; popl %ecx; popl %eax; popl %ebp
9  #define PROFILE_C \
10          pushl %ebp; movl %esp, %ebp; call Lmcount$stub; popl %ebp
11 +#elif defined(SYS_mingw)
12 +#define PROFILE_CAML
13 +#define PROFILE_C
14  #endif
15  #else
16  #define PROFILE_CAML