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

@ -50,7 +50,9 @@
****************************************************************************/
.text
#ifndef __ghs__
.syntax unified
#endif
.arm
/****************************************************************************

View file

@ -129,7 +129,9 @@
*/
.text
#ifndef __ghs__
.syntax unified
#endif
.arm
.global __start
#ifdef __ghs__

View file

@ -30,7 +30,9 @@
.file "arm_saveusercontext.S"
.text
#ifndef __ghs__
.syntax unified
#endif
.arm
/****************************************************************************

View file

@ -137,7 +137,9 @@
****************************************************************************/
.text
#ifndef __ghs__
.syntax unified
#endif
.arm
/****************************************************************************

View file

@ -40,7 +40,9 @@
.eabi_attribute Tag_ABI_align_preserved, 1
#endif
#ifndef __ghs__
.syntax unified
#endif
.arm
.globl _sys_vector_start

View file

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