diff --git a/library/bn_mul.h b/library/bn_mul.h index fce8d7dbab..5d6e728b06 100644 --- a/library/bn_mul.h +++ b/library/bn_mul.h @@ -661,9 +661,14 @@ #if defined(__arm__) #if defined(__thumb__) && !defined(__thumb2__) -#if !defined(__ARMCC_VERSION) && !defined(__clang__) +#if !defined(__ARMCC_VERSION) && !defined(__clang__) \ + && !defined(__llvm__) && !defined(__INTEL_COMPILER) /* - * Thumb 1 ISA. This code path does not build on clang or armclang. + * Thumb 1 ISA. This code path has only been tested successfully on gcc; + * it does not compile on clang or armclang. + * + * Other compilers which define __GNUC__ may not work. The above macro + * attempts to exclude these untested compilers. */ #if !defined(__OPTIMIZE__) && defined(__GNUC__)