@@ -59,16 +59,16 @@ nlr_push:
5959 str r11, [r0, #40] @ store r11 into nlr_buf
6060 str r13, [r0, #44] @ store r13=sp into nlr_buf
6161
62- ldr r3, .L2 @ load addr of nlr_top
62+ ldr r3, nlr_top_addr @ load addr of nlr_top
6363 ldr r2, [r3] @ load nlr_top
6464 str r2, [r0] @ store nlr_top into nlr_buf
6565 str r0, [r3] @ store nlr_buf into nlr_top (to link list)
6666
6767 movs r0, #0 @ return 0, normal return
6868 bx lr @ return
6969 .align 2
70- .L2 :
71- .word .LANCHOR0
70+ nlr_top_addr :
71+ .word nlr_top
7272 .size nlr_push, .-nlr_push
7373
7474/**************************************/
@@ -81,14 +81,11 @@ nlr_push:
8181#endif
8282 .type nlr_pop, %function
8383nlr_pop:
84- ldr r3, .L5 @ load addr of nlr_top
84+ ldr r3, nlr_top_addr @ load addr of nlr_top
8585 ldr r2, [r3] @ load nlr_top
8686 ldr r2, [r2] @ load prev nlr_buf
8787 str r2, [r3] @ store prev nlr_buf to nlr_top (to unlink list)
8888 bx lr @ return
89- .align 2
90- .L5:
91- .word .LANCHOR0
9289 .size nlr_pop, .-nlr_pop
9390
9491/**************************************/
@@ -101,7 +98,7 @@ nlr_pop:
10198#endif
10299 .type nlr_jump, %function
103100nlr_jump:
104- ldr r3, .L2 @ load addr of nlr_top
101+ ldr r3, nlr_top_addr @ load addr of nlr_top
105102 ldr r2, [r3] @ load nlr_top
106103 cmp r2, #0 @ test if nlr_top is NULL
107104 beq nlr_jump_fail @ if nlr_top is NULL, transfer control to nlr_jump_fail
@@ -122,20 +119,6 @@ nlr_jump:
122119
123120 movs r0, #1 @ return 1, non-local return
124121 bx lr @ return
125- .align 2
126- .L6:
127- .word .LANCHOR0
128122 .size nlr_jump, .-nlr_jump
129123
130- /**************************************/
131- // local variable nlr_top
132-
133- .bss
134- .align 2
135- .set .LANCHOR0,. + 0
136- .type nlr_top, %object
137- .size nlr_top, 4
138- nlr_top:
139- .space 4
140-
141124#endif // (!defined(MICROPY_NLR_SETJMP) || !MICROPY_NLR_SETJMP) && (defined(__thumb2__) || defined(__thumb__) || defined(__arm__))
0 commit comments