From ef12466eb2b9ba80e46a71e2f2fad365c32acb76 Mon Sep 17 00:00:00 2001 From: yanghuatao Date: Wed, 24 Apr 2024 00:55:19 +0800 Subject: [PATCH] toolchain/ghs: Fix green hills toolchain build Vela "no storage class or type specifier" error "libcxxmini/libxx_cxa_guard.cxx", line 47: error #77-D: this declaration has no storage class or type specifier __extension__ typedef int __guard __attribute__((mode(__DI__))); ^ "libcxxmini/libxx_cxa_guard.cxx", line 47: error #65: expected a ";" __extension__ typedef int __guard __attribute__((mode(__DI__))); ^ "libcxxmini/libxx_cxa_guard.cxx", line 64: error #20: identifier "__guard" is undefined int __cxa_guard_acquire(FAR __guard *g) ^ "libcxxmini/libxx_cxa_guard.cxx", line 64: error #20: identifier "g" is undefined int __cxa_guard_acquire(FAR __guard *g) ^ "libcxxmini/libxx_cxa_guard.cxx", line 65: error #65: expected a ";" { ^ "libcxxmini/libxx_cxa_guard.cxx", line 93: warning #12-D: parsing restarts here after previous syntax error } Signed-off-by: yanghuatao --- libs/libxx/libcxxmini/libxx_cxa_guard.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libxx/libcxxmini/libxx_cxa_guard.cxx b/libs/libxx/libcxxmini/libxx_cxa_guard.cxx index 6d2674495e50e..d84c7db838422 100644 --- a/libs/libxx/libcxxmini/libxx_cxa_guard.cxx +++ b/libs/libxx/libcxxmini/libxx_cxa_guard.cxx @@ -44,7 +44,7 @@ typedef int __guard; // variable and the first byte contains 0 prior to initialization, and // 1 after. -__extension__ typedef int __guard __attribute__((mode(__DI__))); +typedef int __guard __attribute__((mode(__DI__))); #endif //***************************************************************************