mirror of
https://github.com/cuberite/polarssl.git
synced 2025-10-04 02:52:38 -04:00
Improve gcc guards
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
b327a1e706
commit
ec9936d122
@ -53,7 +53,7 @@ typedef uint16_t __packed mbedtls_uint16_unaligned_t;
|
|||||||
typedef uint32_t __packed mbedtls_uint32_unaligned_t;
|
typedef uint32_t __packed mbedtls_uint32_unaligned_t;
|
||||||
typedef uint64_t __packed mbedtls_uint64_unaligned_t;
|
typedef uint64_t __packed mbedtls_uint64_unaligned_t;
|
||||||
#elif defined(MBEDTLS_COMPILER_IS_GCC) && (MBEDTLS_GCC_VERSION >= 40504) && \
|
#elif defined(MBEDTLS_COMPILER_IS_GCC) && (MBEDTLS_GCC_VERSION >= 40504) && \
|
||||||
((MBEDTLS_GCC_VERSION < 90300) || (!defined(MBEDTLS_EFFICIENT_UNALIGNED_ACCESS)))
|
((MBEDTLS_GCC_VERSION < 60300) || (!defined(MBEDTLS_EFFICIENT_UNALIGNED_ACCESS)))
|
||||||
/*
|
/*
|
||||||
* Old versions of gcc, depending on how the target is specified, may generate a branch to memcpy
|
* Old versions of gcc, depending on how the target is specified, may generate a branch to memcpy
|
||||||
* for calls like `memcpy(dest, src, 4)` rather than generating some LDR or LDRB instructions
|
* for calls like `memcpy(dest, src, 4)` rather than generating some LDR or LDRB instructions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user