From 6e76f7bc90fcd130db888f8804b8555dc8f3a484 Mon Sep 17 00:00:00 2001 From: Dave Hylands Date: Mon, 26 May 2014 16:28:06 -0700 Subject: [PATCH] Fix DEBUG=1 builds MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Without this fix, I get the following error: CC gccollect.c gccollect.c: In function ‘gc_helper_get_regs’: gccollect.c:63:1: error: bp cannot be used in asm here --- unix/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/unix/Makefile b/unix/Makefile index ffc3391a1..6c89d0657 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -71,6 +71,10 @@ SRC_C = \ modos.c \ $(SRC_MOD) +# Without -fomit-frame-pointer, DEBUG builds fail since the code tries +# to manipulate the frame pointer register +$(BUILD)/gccollect.o: CFLAGS += -fomit-frame-pointer + ifeq ($(UNAME_S),Darwin) # Must be the last file in list of sources SRC_C += seg_helpers.c