Merge pull request #12706 from hugueskamba/hk_remove_armc5_support_tests

Tests: Remove support for ARM Compiler 5
pull/12712/head
Anna Bridge 2020-03-27 14:05:26 +00:00 committed by GitHub
commit 2736896fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 7 additions and 23 deletions

View File

@ -55,19 +55,7 @@ static void erase_range(flash_t *flash, uint32_t addr, uint32_t size)
size = size > sector_size ? size - sector_size : 0;
}
}
#ifdef __CC_ARM
MBED_NOINLINE
__asm static void delay_loop(uint32_t count)
{
// AStyle should not format inline assembly
// *INDENT-OFF*
1
SUBS a1, a1, #1
BCS %BT1
BX lr
// *INDENT-ON*
}
#elif defined (__ICCARM__)
#if defined (__ICCARM__)
MBED_NOINLINE
static void delay_loop(uint32_t count)
{
@ -80,7 +68,7 @@ static void delay_loop(uint32_t count)
: "cc"
);
}
#elif defined ( __GNUC__ ) || (defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
#elif defined ( __GNUC__ ) || defined(__ARMCC_VERSION)
MBED_NOINLINE
static void delay_loop(uint32_t count)
{

View File

@ -19,7 +19,7 @@
#error [NOT_SUPPORTED] Test supported only on PSA targets
#else
#if (defined( __CC_ARM ) || defined(__ARMCC_VERSION) || defined( __ICCARM__ ))
#if (defined(__ARMCC_VERSION) || defined( __ICCARM__ ))
#error [NOT_SUPPORTED] this test is supported on GCC only
#else
@ -158,5 +158,5 @@ int main()
}
#endif // DOMAIN_NS == 1
#endif // (defined( __CC_ARM ) || defined(__ARMCC_VERSION) || defined( __ICCARM__ ))
#endif // (defined(__ARMCC_VERSION) || defined( __ICCARM__ ))
#endif // !defined(COMPONENT_PSA_SRV_IPC)

View File

@ -106,7 +106,7 @@ do { \
#elif defined(__cplusplus) && defined(__GNUC__) && defined(__GXX_EXPERIMENTAL_CXX0X__) \
&& (__GNUC__*100 + __GNUC_MINOR__) > 403L
#define MBED_STATIC_ASSERT(expr, msg) __extension__ static_assert(expr, msg)
#elif !defined(__cplusplus) && defined(__GNUC__) && !defined(__CC_ARM) \
#elif !defined(__cplusplus) && defined(__GNUC__) \
&& (__GNUC__*100 + __GNUC_MINOR__) > 406L
#define MBED_STATIC_ASSERT(expr, msg) __extension__ _Static_assert(expr, msg)
#elif defined(__ICCARM__)

View File

@ -227,9 +227,7 @@ typedef _US64 _U_SINT;
#endif
typedef UNITY_FLOAT_TYPE _UF;
#if defined(__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)
#else
#if !defined(__ARMCC_VERSION)
#ifndef isinf
#define isinf(n) (((1.0f / f_zero) == n) ? 1 : 0) || (((-1.0f / f_zero) == n) ? 1 : 0)
#define UNITY_FLOAT_NEEDS_ZERO

View File

@ -28,9 +28,7 @@
#include "utest/utest_scheduler.h"
#ifndef __deprecated_message
# if defined(__CC_ARM)
# define __deprecated_message(msg) __attribute__((deprecated))
# elif defined (__ICCARM__)
# if defined (__ICCARM__)
# define __deprecated_message(msg)
# else
# define __deprecated_message(msg) __attribute__((deprecated(msg)))