From 6499b698faf9e4f183862e40cd12fa408f8e7092 Mon Sep 17 00:00:00 2001 From: Dylan Laduranty Date: Tue, 30 May 2023 21:44:22 +0200 Subject: [PATCH] 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 --- tests/unittests/tests-core/tests-core-atomic.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/unittests/tests-core/tests-core-atomic.c b/tests/unittests/tests-core/tests-core-atomic.c index 98f6f6cc84..7089f9edfa 100644 --- a/tests/unittests/tests-core/tests-core-atomic.c +++ b/tests/unittests/tests-core/tests-core-atomic.c @@ -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) {