*/
#include <stdio.h>
-#if defined(__APPLE__) && defined(__MACH__)
-#include <sys/malloc.h>
-#else
-#include <malloc.h>
-#endif
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <assert.h>
#include "newalloc.h"
-#include "sdccconf.h"
#if OPT_ENABLE_LIBGC
#include <gc/gc.h>
#define MALLOC GC_malloc
#define REALLOC GC_realloc
-#define FREE GC_free
+/* PENDING: This is a mild hack. If we try to GC_free something
+ allocated with malloc() then the program will segfault. Might as
+ well drop it and let the garbase collector take care of things.
+*/
+#define FREE(_a)
#else
ptrace->palloced = NULL;
ptrace->max = 0;
}
-