This is an automated email from the ASF dual-hosted git repository.

raiden00 pushed a commit to branch releases/12.7
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit bb8eb9398d83e969fd8c1df737efbe8b73250dc2
Author: guoshichao <[email protected]>
AuthorDate: Thu Jun 20 13:50:30 2024 +0800

    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 #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 #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 #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 #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 #3422:
              use of the "register" storage class specifier is not allowed
        register uint32_t sp;
        ^
    
    Signed-off-by: guoshichao <[email protected]>
---
 include/nuttx/compiler.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/nuttx/compiler.h b/include/nuttx/compiler.h
index fd4ce63336..dc994002e4 100644
--- a/include/nuttx/compiler.h
+++ b/include/nuttx/compiler.h
@@ -82,6 +82,7 @@
 #if defined(__ghs__)
 
 #  define __extension__
+#  define register
 
 #endif
 

Reply via email to