Skip to content

Commit 6e3c492

Browse files
committed
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.
1 parent c553291 commit 6e3c492

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

platform/mbed_retarget.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ extern "C" void __env_unlock(struct _reent *_r)
14171417

14181418
#endif
14191419

1420-
#if defined (__GNUC__) || defined(__CC_ARM) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050))
1420+
#if defined (__GNUC__) || defined (__ARMCC_VERSION)
14211421

14221422
#define CXA_GUARD_INIT_DONE (1 << 0)
14231423
#define CXA_GUARD_INIT_IN_PROGRESS (1 << 1)
@@ -1460,7 +1460,7 @@ extern "C" void __cxa_guard_abort(int *guard_object_p)
14601460

14611461
#endif
14621462

1463-
#if defined(MBED_MEM_TRACING_ENABLED) && (defined(__CC_ARM) || defined(__ICCARM__) || (defined (__ARMCC_VERSION) && (__ARMCC_VERSION >= 6010050)))
1463+
#if defined(MBED_MEM_TRACING_ENABLED) && (defined(__ARMCC_VERSION) || defined(__ICCARM__))
14641464

14651465
// If the memory tracing is enabled, the wrappers in mbed_alloc_wrappers.cpp
14661466
// provide the implementation for these. Note: this needs to use the wrappers

0 commit comments

Comments
 (0)