mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Revert to detecting __GNUCC__ instead of armclang
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
@ -673,13 +673,13 @@
|
|||||||
#if defined(__thumb__) && !defined(__thumb2__) // Thumb 1 (not Thumb 2) ISA
|
#if defined(__thumb__) && !defined(__thumb2__) // Thumb 1 (not Thumb 2) ISA
|
||||||
|
|
||||||
// Only supported by gcc, when optimisation is enabled; only Thumb 1 codepath works
|
// Only supported by gcc, when optimisation is enabled; only Thumb 1 codepath works
|
||||||
#if defined(__OPTIMIZE__) && !defined(__ARMCC_VERSION)
|
#if defined(__OPTIMIZE__) && defined(__GNUC__)
|
||||||
#define ARM_THUMB_1
|
#define ARM_THUMB_1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#elif defined(__thumb2__) // Thumb 2 ISA
|
#elif defined(__thumb2__) // Thumb 2 ISA
|
||||||
|
|
||||||
#if !defined(__ARMCC_VERSION) && !defined(__OPTIMIZE__)
|
#if defined(__GNUC__) && !defined(__OPTIMIZE__)
|
||||||
// gcc -O0: only V6+DSP codepath builds
|
// gcc -O0: only V6+DSP codepath builds
|
||||||
#if (__ARM_ARCH >= 6) && defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)
|
#if (__ARM_ARCH >= 6) && defined (__ARM_FEATURE_DSP) && (__ARM_FEATURE_DSP == 1)
|
||||||
#define ARM_V6_DSP
|
#define ARM_V6_DSP
|
||||||
|
Reference in New Issue
Block a user