mirror of
https://github.com/apache/nuttx.git
synced 2026-08-03 13:19:01 +00:00
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:
parent
1d9e160f97
commit
ecef24ea33
6 changed files with 12 additions and 0 deletions
|
|
@ -50,7 +50,9 @@
|
|||
****************************************************************************/
|
||||
|
||||
.text
|
||||
#ifndef __ghs__
|
||||
.syntax unified
|
||||
#endif
|
||||
.arm
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -129,7 +129,9 @@
|
|||
*/
|
||||
|
||||
.text
|
||||
#ifndef __ghs__
|
||||
.syntax unified
|
||||
#endif
|
||||
.arm
|
||||
.global __start
|
||||
#ifdef __ghs__
|
||||
|
|
|
|||
|
|
@ -30,7 +30,9 @@
|
|||
.file "arm_saveusercontext.S"
|
||||
|
||||
.text
|
||||
#ifndef __ghs__
|
||||
.syntax unified
|
||||
#endif
|
||||
.arm
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -137,7 +137,9 @@
|
|||
****************************************************************************/
|
||||
|
||||
.text
|
||||
#ifndef __ghs__
|
||||
.syntax unified
|
||||
#endif
|
||||
.arm
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -40,7 +40,9 @@
|
|||
.eabi_attribute Tag_ABI_align_preserved, 1
|
||||
#endif
|
||||
|
||||
#ifndef __ghs__
|
||||
.syntax unified
|
||||
#endif
|
||||
.arm
|
||||
|
||||
.globl _sys_vector_start
|
||||
|
|
|
|||
|
|
@ -26,7 +26,9 @@
|
|||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#ifndef __ghs__
|
||||
.syntax unified
|
||||
#endif
|
||||
.file "arm_fetchadd.S"
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue