summaryrefslogtreecommitdiff
path: root/py/modthread.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2017-12-28 15:59:09 +1100
committerDamien George <damien.p.george@gmail.com>2017-12-28 15:59:09 +1100
commit97cc48553828ed091325d0d3922eb4cd6c377221 (patch)
tree7b18bfc22a7cdcb5f4f9aa4de41a23c9e4feb757 /py/modthread.c
parent7a9a73ee8466111f73a7de7d27568c1260d802ef (diff)
py/nlrthumb: Fix use of naked funcs, must only contain basic asm code.
A function with a naked attribute must only contain basic inline asm statements and no C code. For nlr_push this means removing the "return 0" statement. But for some gcc versions this induces a compiler warning so the __builtin_unreachable() line needs to be added. For nlr_jump, this function contains a combination of C code and inline asm so cannot be naked.
Diffstat (limited to 'py/modthread.c')
0 files changed, 0 insertions, 0 deletions