1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-22 00:35:15 +00:00

- Fix crash on 10-CURRENT

Submitted by:	dim
This commit is contained in:
Ashish SHUKLA 2013-09-23 08:33:31 +00:00
parent c33a36ef77
commit 7687ddfa0e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327950
2 changed files with 44 additions and 3 deletions

View File

@ -1,6 +1,36 @@
--- src/alloc.c.orig 2008-09-07 05:25:27.000000000 +0300
+++ src/alloc.c 2008-09-07 05:25:27.000000000 +0300
@@ -4573,8 +4573,12 @@
--- src/alloc.c.orig 2008-08-12 20:35:44.000000000 +0200
+++ src/alloc.c 2013-09-07 21:52:46.000000000 +0200
@@ -1205,6 +1205,9 @@
#endif /* GC_MALLOC_CHECK */
__free_hook = old_free_hook;
+#ifdef __GNUC__
+ __asm __volatile ("" : : : "memory");
+#endif
free (ptr);
/* If we released our reserve (due to running out of memory),
@@ -1236,6 +1239,9 @@
BLOCK_INPUT_ALLOC;
__malloc_hook = old_malloc_hook;
+#ifdef __GNUC__
+ __asm __volatile ("" : : : "memory");
+#endif
#ifdef DOUG_LEA_MALLOC
mallopt (M_TOP_PAD, malloc_hysteresis * 4096);
#else
@@ -1285,6 +1291,9 @@
BLOCK_INPUT_ALLOC;
__realloc_hook = old_realloc_hook;
+#ifdef __GNUC__
+ __asm __volatile ("" : : : "memory");
+#endif
#ifdef GC_MALLOC_CHECK
if (ptr)
@@ -4573,8 +4582,12 @@
needed on ia64 too. See mach_dep.c, where it also says inline
assembler doesn't work with relevant proprietary compilers. */
#ifdef __sparc__

View File

@ -0,0 +1,11 @@
--- src/m/intel386.h.orig 2008-02-28 00:32:04.000000000 +0100
+++ src/m/intel386.h 2013-09-14 16:14:18.000000000 +0200
@@ -58,7 +58,7 @@ NOTE-END */
/* Define NO_ARG_ARRAY if you cannot take the address of the first of a
* group of arguments and treat it as an array of the arguments. */
-/* #define NO_ARG_ARRAY */
+#define NO_ARG_ARRAY
/* Define WORD_MACHINE if addresses and such have
* to be corrected before they can be used as byte counts. */