mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-20 17:44:20 +08:00
[armclang] 使用__clang__代替__CLANG_ARM
This commit is contained in:
@@ -385,7 +385,7 @@ __asm int __rt_ffs(int value)
|
||||
exit
|
||||
BX lr
|
||||
}
|
||||
#elif defined(__CLANG_ARM)
|
||||
#elif defined(__clang__)
|
||||
int __rt_ffs(int value)
|
||||
{
|
||||
__asm volatile(
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <rtthread.h>
|
||||
|
||||
#if /* ARMCC */ ( (defined ( __CC_ARM ) && defined ( __TARGET_FPU_VFP )) \
|
||||
/* Clang */ || (defined ( __CLANG_ARM ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) \
|
||||
/* Clang */ || (defined ( __clang__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) \
|
||||
/* IAR */ || (defined ( __ICCARM__ ) && defined ( __ARMVFP__ )) \
|
||||
/* GNU */ || (defined ( __GNUC__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) )
|
||||
#define USE_FPU 1
|
||||
@@ -472,7 +472,7 @@ __asm int __rt_ffs(int value)
|
||||
exit
|
||||
BX lr
|
||||
}
|
||||
#elif defined(__CLANG_ARM)
|
||||
#elif defined(__clang__)
|
||||
int __rt_ffs(int value)
|
||||
{
|
||||
if (value == 0) return value;
|
||||
|
||||
@@ -37,7 +37,7 @@ static __inline rt_uint32_t __get_IPSR(void)
|
||||
register rt_uint32_t result __asm("ipsr");
|
||||
return(result);
|
||||
}
|
||||
#elif defined(__CLANG_ARM)
|
||||
#elif defined(__clang__)
|
||||
__attribute__((always_inline)) static __inline rt_uint32_t __get_IPSR(void)
|
||||
{
|
||||
rt_uint32_t result;
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <rtthread.h>
|
||||
|
||||
#if /* ARMCC */ ( (defined ( __CC_ARM ) && defined ( __TARGET_FPU_VFP )) \
|
||||
/* Clang */ || (defined ( __CLANG_ARM ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) \
|
||||
/* Clang */ || (defined ( __clang__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) \
|
||||
/* IAR */ || (defined ( __ICCARM__ ) && defined ( __ARMVFP__ )) \
|
||||
/* GNU */ || (defined ( __GNUC__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) )
|
||||
#define USE_FPU 1
|
||||
@@ -469,7 +469,7 @@ __asm int __rt_ffs(int value)
|
||||
exit
|
||||
BX lr
|
||||
}
|
||||
#elif defined(__CLANG_ARM)
|
||||
#elif defined(__clang__)
|
||||
int __rt_ffs(int value)
|
||||
{
|
||||
__asm volatile(
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
#include <rtthread.h>
|
||||
|
||||
#if /* ARMCC */ ( (defined ( __CC_ARM ) && defined ( __TARGET_FPU_VFP )) \
|
||||
/* Clang */ || (defined ( __CLANG_ARM ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) \
|
||||
/* Clang */ || (defined ( __clang__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) \
|
||||
/* IAR */ || (defined ( __ICCARM__ ) && defined ( __ARMVFP__ )) \
|
||||
/* GNU */ || (defined ( __GNUC__ ) && defined ( __VFP_FP__ ) && !defined(__SOFTFP__)) )
|
||||
#define USE_FPU 1
|
||||
@@ -469,7 +469,7 @@ __asm int __rt_ffs(int value)
|
||||
exit
|
||||
BX lr
|
||||
}
|
||||
#elif defined(__CLANG_ARM)
|
||||
#elif defined(__clang__)
|
||||
int __rt_ffs(int value)
|
||||
{
|
||||
__asm volatile(
|
||||
|
||||
@@ -199,7 +199,7 @@ void rt_application_init(void);
|
||||
void rt_hw_board_init(void);
|
||||
int rtthread_startup(void);
|
||||
|
||||
#if defined(__CC_ARM) || defined(__CLANG_ARM)
|
||||
#if defined(__ARMCC_VERSION)
|
||||
extern int $Super$$main(void);
|
||||
/* re-define main function */
|
||||
int $Sub$$main(void)
|
||||
@@ -248,7 +248,7 @@ void main_thread_entry(void *parameter)
|
||||
rt_hw_secondary_cpu_up();
|
||||
#endif
|
||||
/* invoke system main function */
|
||||
#if defined(__CC_ARM) || defined(__CLANG_ARM)
|
||||
#if defined(__ARMCC_VERSION)
|
||||
{
|
||||
extern int $Super$$main(void);
|
||||
$Super$$main(); /* for ARMCC. */
|
||||
|
||||
Reference in New Issue
Block a user