diff options
author | H. Peter Anvin <hpa@zytor.com> | 2001-10-16 00:23:58 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2001-10-16 00:23:58 +0000 |
commit | 5600c4f20304d1a6c5f763a0c86f1a95f7bac47d (patch) | |
tree | cf7f8e26ddea55cf58fb1c7d5dd3572b311bfabd | |
parent | e1762ed1c23b53b26e6841f4bba1a5688e98a2dd (diff) | |
download | lpsm-5600c4f20304d1a6c5f763a0c86f1a95f7bac47d.tar.gz lpsm-5600c4f20304d1a6c5f763a0c86f1a95f7bac47d.tar.xz lpsm-5600c4f20304d1a6c5f763a0c86f1a95f7bac47d.zip |
Set up different flags for debugging and production; change an
assert(0); to abort(); so it works for production as well.
-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) |