We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e37cc7d commit 609d0eaCopy full SHA for 609d0ea
py/nlrthumb.c
@@ -76,7 +76,10 @@ __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) {
76
#endif
77
: // output operands
78
: "r" (nlr) // input operands
79
- : "r1", "r2", "r3" // clobbers
+ // Do not use r1, r2, r3 as temporary saving registers.
80
+ // gcc 7.2.1 started doing this, and r3 got clobbered in nlr_push_tail.
81
+ // See https://github.com/adafruit/circuitpython/issues/500 for details.
82
+ : "r1", "r2", "r3" // clobbers
83
);
84
85
return 0; // needed to silence compiler warning
0 commit comments