aboutsummaryrefslogtreecommitdiff
path: root/py/py.mk
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-12-28 16:46:30 +1100
committerDamien George <damien.p.george@gmail.com>2017-12-28 16:46:30 +1100
commitb25f92160b318a096c516c430afde5472a944c19 (patch)
tree18022d1de245f9fca253f2a8076c4e8c79f6fca8 /py/py.mk
parent5bf8e85fc828974199d469db711aa2f9649c467b (diff)
py/nlr: Factor out common NLR code to macro and generic funcs in nlr.c.
Each NLR implementation (Thumb, x86, x64, xtensa, setjmp) duplicates a lot of the NLR code, specifically that dealing with pushing and popping the NLR pointer to maintain the linked-list of NLR buffers. This patch factors all of that code out of the specific implementations into generic functions in nlr.c, along with a helper macro in nlr.h. This eliminates duplicated code.
Diffstat (limited to 'py/py.mk')
-rw-r--r--py/py.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/py/py.mk b/py/py.mk
index 0b5d5f8c4..de82a971b 100644
--- a/py/py.mk
+++ b/py/py.mk
@@ -103,6 +103,7 @@ endif
# py object files
PY_O_BASENAME = \
mpstate.o \
+ nlr.o \
nlrx86.o \
nlrx64.o \
nlrthumb.o \