From 68b142cf785ff07345050616158c64125c620b66 Mon Sep 17 00:00:00 2001 From: arvinzzz Date: Wed, 11 Jan 2023 10:45:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=9D=9Egcc=E5=BD=A2?= =?UTF-8?q?=E6=80=81FUNC=5FALIAS=E7=BC=96=E8=AF=91=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: arvinzzz Change-Id: I7f199366d8173d9fc504f89b26329ea5f7d1eb9e --- utils/los_compiler.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/utils/los_compiler.h b/utils/los_compiler.h index d41cb3df..2c9efd9b 100644 --- a/utils/los_compiler.h +++ b/utils/los_compiler.h @@ -525,13 +525,17 @@ static inline UINT64 __atomic_exchange_8(volatile void *mem, UINT64 val, int mod free_lock (memP, model); return ret; } -#endif +#endif /* __XTENSA_LX6__ */ #define ALIAS_OF(of) __attribute__((alias(#of))) #define FUNC_ALIAS(real_func, new_alias, args_list, return_type) \ return_type new_alias args_list ALIAS_OF(real_func) -#endif +#else + +#define FUNC_ALIAS(real_func, new_alias, args_list, return_type) + +#endif /* __GNUC__ */ #ifdef __cplusplus #if __cplusplus