diff options
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | alloc.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -7,7 +7,10 @@ OSOBJ = objstore.o alloc.o OSPICOBJ = $(patsubst %.o,%.pic.o,$(OSOBJ)) CC = gcc -CFLAGS = -Wall -O2 -g -D_FILE_OFFSET_BITS=64 +# This is a reasonable set of flags for production +# CFLAGS = -Wall -O3 -fomit-frame-pointer -DNDEBUG -D_FILE_OFFSET_BITS=64 +# This is for debugging +CFLAGS = -Wall -O -g -D_FILE_OFFSET_BITS=64 PICFLAGS = $(CFLAGS) -fPIC SOFLAGS = -shared @@ -635,7 +635,7 @@ static struct buddy_params objstore_find_alloc_buddy(void *ptr) } } - assert(0); /* Freeing bogus memory? */ + abort(); /* Freeing bogus memory? */ } static void objstore_free_buddy(void *ptr) |