Simplified check.
Signed-off-by: Matthias Schulz <mschulz@hilscher.com>
diff --git a/library/constant_time_impl.h b/library/constant_time_impl.h
index 57bb52e..cd93767 100644
--- a/library/constant_time_impl.h
+++ b/library/constant_time_impl.h
@@ -125,7 +125,7 @@
* seem to apply unified syntax globally, which breaks other asm code.
*/
#if defined(MBEDTLS_COMPILER_IS_GCC) && defined(__thumb__) && !defined(__thumb2__) && \
- (__GNUC__ < 11) && !((__GNUC__ == 4) && ((__GNUC_MINOR__ == 8) || (__GNUC_MINOR__ == 9)))
+ (__GNUC__ < 11) && !defined(__ARM_ARCH_2__)
#define RESTORE_ASM_SYNTAX ".syntax divided \n\t"
#else
#define RESTORE_ASM_SYNTAX