Fix compile error with armcc5 --gnu
diff --git a/ChangeLog b/ChangeLog
index 51f3049..b4bed6c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -14,6 +14,7 @@
Leisink).
* Fix missing -static-ligcc when building shared libraries for Windows with
make.
+ * Fix compile error with armcc5 --gnu.
Changes
* Add SSL_MIN_DHM_BYTES configuration parameter in config.h to choose the
diff --git a/include/polarssl/bn_mul.h b/include/polarssl/bn_mul.h
index e2ff120..1210d36 100644
--- a/include/polarssl/bn_mul.h
+++ b/include/polarssl/bn_mul.h
@@ -42,7 +42,9 @@
#if defined(POLARSSL_HAVE_ASM)
-#if defined(__GNUC__)
+/* armcc5 --gnu defines __GNUC__ but doesn't support GNU's extended asm */
+#if defined(__GNUC__) && \
+ ( !defined(__ARMCC_VERSION) || __ARMCC_VERSION >= 6000000 )
#if defined(__i386__)
#define MULADDC_INIT \