mirror of https://github.com/ARMmbed/mbed-os.git
mbed_retarget.cpp: Combine ARMC5 and ARMC6 tests
A couple of places in mbed_retarget.cpp were testing for either ARMC5 or ARMC6 in a long-winded fashion. Testing for __ARMCC_VERSION being defined is sufficient.pull/9530/head
parent
c55329157a
commit
6e3c492cd8
|
@ -1417,7 +1417,7 @@ extern "C" void __env_unlock(struct _reent *_r)
|
|||
|
||||
#endif
|
||||
|
||||
#if defined (__GNUC__) || defined(__CC_ARM) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
|
||||
#if defined (__GNUC__) || defined (__ARMCC_VERSION)
|
||||
|
||||
#define CXA_GUARD_INIT_DONE (1 << 0)
|
||||
#define CXA_GUARD_INIT_IN_PROGRESS (1 << 1)
|
||||
|
@ -1460,7 +1460,7 @@ extern "C" void __cxa_guard_abort(int *guard_object_p)
|
|||
|
||||
#endif
|
||||
|
||||
#if defined(MBED_MEM_TRACING_ENABLED) && (defined(__CC_ARM) || defined(__ICCARM__) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)))
|
||||
#if defined(MBED_MEM_TRACING_ENABLED) && (defined(__ARMCC_VERSION) || defined(__ICCARM__))
|
||||
|
||||
// If the memory tracing is enabled, the wrappers in mbed_alloc_wrappers.cpp
|
||||
// provide the implementation for these. Note: this needs to use the wrappers
|
||||
|
|
Loading…
Reference in New Issue