mono.patch 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. Index: configure
  2. --- configure.orig 2004-06-25 01:28:02 +0200
  3. +++ configure 2004-06-26 09:30:14 +0200
  4. @@ -14005,6 +14005,11 @@
  5. JIT_SUPPORTED=no
  6. LIBC="libc.so.6"
  7. INTL="libc.so.6"
  8. +case "$host" in
  9. + *-*-freebsd* )
  10. + LIBC="libc.so"
  11. + ;;
  12. +esac
  13. jit_wanted=false
  14. case "$host" in
  15. Index: libc/include/private/gcconfig.h
  16. diff -Nau libgc/include/private/gcconfig.h.orig libgc/include/private/gcconfig.h
  17. --- libgc/include/private/gcconfig.h.orig 2004-05-18 20:43:11 +0200
  18. +++ libgc/include/private/gcconfig.h 2004-06-16 20:17:58 +0200
  19. @@ -1186,8 +1186,8 @@
  20. # ifndef GC_FREEBSD_THREADS
  21. # define MPROTECT_VDB
  22. # endif
  23. -# define SIG_SUSPEND SIGUSR1
  24. -# define SIG_THR_RESTART SIGUSR2
  25. +# define SIG_SUSPEND SIGTSTP
  26. +# define SIG_THR_RESTART SIGCONT
  27. # define FREEBSD_STACKBOTTOM
  28. # ifdef __ELF__
  29. # define DYNAMIC_LOADING
  30. @@ -1501,8 +1501,8 @@
  31. # ifdef FREEBSD
  32. # define OS_TYPE "FREEBSD"
  33. /* MPROTECT_VDB is not yet supported at all on FreeBSD/alpha. */
  34. -# define SIG_SUSPEND SIGUSR1
  35. -# define SIG_THR_RESTART SIGUSR2
  36. +# define SIG_SUSPEND SIGTSTP
  37. +# define SIG_THR_RESTART SIGCONT
  38. # define FREEBSD_STACKBOTTOM
  39. # ifdef __ELF__
  40. # define DYNAMIC_LOADING
  41. Index: mono/Makefile.in
  42. diff -Nau mono/Makefile.in.orig mono/Makefile.in
  43. --- mono/Makefile.in.orig 2004-06-14 19:28:59 +0200
  44. +++ mono/Makefile.in 2004-06-16 20:17:58 +0200
  45. @@ -126,7 +126,7 @@
  46. @PLATFORM_WIN32_TRUE@ arch monograph interpreter mini tests benchmark profiler
  47. @PLATFORM_WIN32_FALSE@SUBDIRS = utils io-layer monoburg os metadata cil dis \
  48. -@PLATFORM_WIN32_FALSE@ arch monograph interpreter mini tests benchmark handles profiler
  49. +@PLATFORM_WIN32_FALSE@ arch monograph interpreter mini benchmark handles profiler
  50. subdir = mono
  51. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  52. Index: mono/mini/mini-x86.c
  53. diff -Nau mono/mini/mini-x86.c.orig mono/mini/mini-x86.c
  54. --- mono/mini/mini-x86.c.orig 2004-05-27 05:06:43 +0200
  55. +++ mono/mini/mini-x86.c 2004-06-16 20:17:58 +0200
  56. @@ -47,6 +47,34 @@
  57. return "unknown";
  58. }
  59. +#ifndef signbit
  60. +union IEEEd2bits {
  61. + double d;
  62. + struct {
  63. +#if _BYTE_ORDER == _LITTLE_ENDIAN
  64. + unsigned int manl :32;
  65. + unsigned int manh :20;
  66. + unsigned int exp :11;
  67. + unsigned int sign :1;
  68. +#else
  69. + unsigned int sign :1;
  70. + unsigned int exp :11;
  71. + unsigned int manh :20;
  72. + unsigned int manl :32;
  73. +#endif
  74. + } bits;
  75. +};
  76. +
  77. +int
  78. +signbit(double d)
  79. +{
  80. + union IEEEd2bits u;
  81. +
  82. + u.d = d;
  83. + return (u.bits.sign);
  84. +}
  85. +
  86. +#endif /* signbit */
  87. /*
  88. * mono_arch_get_argument_info:
  89. * @csig: a method signature