--- a/kernel/eka/include/cpudefs.h Mon Oct 04 12:15:59 2010 +0100
+++ b/kernel/eka/include/cpudefs.h Mon Oct 04 16:16:03 2010 +0100
@@ -606,7 +606,8 @@
// Causes undefined instruction exception on both ARM and THUMB
#define __ASM_CRASH() asm(".word 0xe7ffdeff ")
-#if defined(__GNUC__)
+// Bug 2742 - beware armcc run with the --gnu option to enable gnu extensions!
+#if defined(__GNUC__) && !defined(__ARMCC__)
#define __crash() asm(".word 0xe7ffdeff " : : : "memory")
#elif defined(__GCCXML__)
#define __crash() (*((TInt *) 0x0) = 0xd1e)