Skip to content

Commit e9fafec

Browse files
committed
mbed_retarget: Always provide __cxa_guard calls
We can use these retargeting calls to implement `mstd::call_once` for all toolchains. (GCC and ARMC6 may have their own working `std::call_once`, but IAR doesn't, so we do want this for IAR).
1 parent da12574 commit e9fafec

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

platform/mbed_retarget.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,8 +1490,6 @@ extern "C" void __env_unlock(struct _reent *_r)
14901490

14911491
#endif
14921492

1493-
#if defined (__GNUC__) || defined (__ARMCC_VERSION)
1494-
14951493
#define CXA_GUARD_INIT_DONE (1 << 0)
14961494
#define CXA_GUARD_INIT_IN_PROGRESS (1 << 1)
14971495
#define CXA_GUARD_MASK (CXA_GUARD_INIT_DONE | CXA_GUARD_INIT_IN_PROGRESS)
@@ -1531,8 +1529,6 @@ extern "C" void __cxa_guard_abort(int *guard_object_p)
15311529
singleton_unlock();
15321530
}
15331531

1534-
#endif
1535-
15361532
#if defined(MBED_MEM_TRACING_ENABLED) && (defined(__ARMCC_VERSION) || defined(__ICCARM__))
15371533

15381534
// If the memory tracing is enabled, the wrappers in mbed_alloc_wrappers.cpp

0 commit comments

Comments
 (0)