Disable Padlock code with ASan

We're getting build errors with Clang 3.5.0 on our Debian Jessie buildslave:

library/padlock.c:99:10: error: inline assembly requires more registers than available
This commit is contained in:
Manuel Pégourié-Gonnard 2015-08-04 22:19:05 +02:00
parent ab5f7b40e0
commit f659f0c214

View file

@ -29,7 +29,15 @@
#define MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED -0x0030 /**< Input data should be aligned. */ #define MBEDTLS_ERR_PADLOCK_DATA_MISALIGNED -0x0030 /**< Input data should be aligned. */
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && defined(__i386__) #if defined(__has_feature)
#if __has_feature(address_sanitizer)
#define MBEDTLS_HAVE_ASAN
#endif
#endif
/* Some versions of ASan result in errors about not enough registers */
#if defined(MBEDTLS_HAVE_ASM) && defined(__GNUC__) && defined(__i386__) && \
defined(MBEDTLS_HAVE_ASAN)
#ifndef MBEDTLS_HAVE_X86 #ifndef MBEDTLS_HAVE_X86
#define MBEDTLS_HAVE_X86 #define MBEDTLS_HAVE_X86