diff options
author | Damien George <damien.p.george@gmail.com> | 2017-12-28 15:59:09 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-12-28 15:59:09 +1100 |
commit | 97cc48553828ed091325d0d3922eb4cd6c377221 (patch) | |
tree | 7b18bfc22a7cdcb5f4f9aa4de41a23c9e4feb757 /py/qstr.c | |
parent | 7a9a73ee8466111f73a7de7d27568c1260d802ef (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/qstr.c')
0 files changed, 0 insertions, 0 deletions