mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
tests/unittests: remove old workaround for SAML1X and gcc9.X bug
This reverts #13462, this workaround is no longer needed with newer GCC version Signed-off-by: Dylan Laduranty <dylan.laduranty@mesotic.com>
This commit is contained in:
parent
4fa53d654f
commit
6499b698fa
@ -26,11 +26,6 @@ static void test_atomic_flag(void)
|
||||
TEST_ASSERT_EQUAL_INT(0, atomic_flag_test_and_set(&flag));
|
||||
}
|
||||
|
||||
/* Prevent compiler optimization for SAML1X because of gcc internal bug */
|
||||
#ifdef CPU_CORE_CORTEX_M23
|
||||
#pragma GCC push_options
|
||||
#pragma GCC optimize ("O0")
|
||||
#endif
|
||||
/* Test atomic_fetch_add */
|
||||
static void test_atomic_inc_positive(void)
|
||||
{
|
||||
@ -72,9 +67,7 @@ static void test_atomic_inc_rollover(void)
|
||||
TEST_ASSERT_EQUAL_INT(INT_MIN + 1, atomic_fetch_add(&res, 1));
|
||||
TEST_ASSERT_EQUAL_INT(INT_MIN + 2, atomic_load(&res));
|
||||
}
|
||||
#ifdef CPU_SAML1X
|
||||
#pragma GCC pop_options
|
||||
#endif
|
||||
|
||||
/* Test atomic_fetch_sub */
|
||||
static void test_atomic_dec_negative(void)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user