Skip to content

Commit 03cabdb

Browse files
extinguishanchao
authored andcommitted
armv7-m/irq: fix the greenhills compiler compile error
CXX: libcxxmini/libxx_new.cxx "/home/guoshichao/work_profile/vela_os/vela_qemu_1/nuttx/include/arch/armv7-m/irq.h", line 594: error apache#3422: use of the "register" storage class specifier is not allowed register uint32_t sp; ^ "/home/guoshichao/work_profile/vela_os/vela_qemu_1/nuttx/include/arch/armv7-m/irq.h", line 594: error apache#3422: use of the "register" storage class specifier is not allowed register uint32_t sp; ^ "/home/guoshichao/work_profile/vela_os/vela_qemu_1/nuttx/include/arch/armv7-m/irq.h", line 594: error apache#3422: use of the "register" storage class specifier is not allowed register uint32_t sp; ^ make[1]: *** [Makefile:69: libxx_delete_sized.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make[1]: *** [Makefile:69: libxx_deletea_sized.o] Error 1 make[1]: *** [Makefile:69: libxx_new.o] Error 1 "/home/guoshichao/work_profile/vela_os/vela_qemu_1/nuttx/include/arch/armv7-m/irq.h", line 594: error apache#3422: use of the "register" storage class specifier is not allowed register uint32_t sp; ^ "/home/guoshichao/work_profile/vela_os/vela_qemu_1/nuttx/include/arch/armv7-m/irq.h", line 594: error apache#3422: use of the "register" storage class specifier is not allowed register uint32_t sp; ^ Signed-off-by: guoshichao <[email protected]>
1 parent 3e459c0 commit 03cabdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/nuttx/compiler.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
#if defined(__ghs__)
8383

8484
# define __extension__
85+
# define register
8586

8687
#endif
8788

0 commit comments

Comments
 (0)