diff options
author | Dave Hylands <dhylands@gmail.com> | 2014-05-26 16:28:06 -0700 |
---|---|---|
committer | Dave Hylands <dhylands@gmail.com> | 2014-05-26 16:29:24 -0700 |
commit | 6e76f7bc90fcd130db888f8804b8555dc8f3a484 (patch) | |
tree | 80e4893dcf1df35401fd792bca4551a95e9a7b84 /unix | |
parent | 0405b2210d57006dd5ce8a235d39d547dc5b7fde (diff) | |
download | micropython-6e76f7bc90fcd130db888f8804b8555dc8f3a484.tar.gz micropython-6e76f7bc90fcd130db888f8804b8555dc8f3a484.zip |
Fix DEBUG=1 builds
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
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/Makefile b/unix/Makefile index ffc3391a14..6c89d06579 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 |