toolchain/ghs: greenhills compiler does not recognize .syntax unified

The GreenHills Compiler uses Unified Assembler Language by default and
it does not recognize .syntax unified instruction. Therefore, remove
them if GHS compiler is used.

Co-authored-by: Chengdong Wang <wangchengdong@lixiang.com>
Signed-off-by: xiezhanpeng3 <xiezhanpeng3@lixiang.com>
This commit is contained in:
xiezhanpeng3 2025-11-12 16:24:55 +08:00 • committed by Xiang Xiao
parent 1d9e160f97
commit ecef24ea33
6 changed files with 12 additions and 0 deletions

View file

@ -26,7 +26,9 @@
#include <nuttx/config.h>
#ifndef __ghs__
.syntax unified
#endif
.file "arm_fetchadd.S"
/****************************************************************************