Use RVCT assembler for __crash() when running armcc with the --gnu option. Fix for bug 2742.
authorMark Wilcox <markw@symbian.org>
Tue, 25 May 2010 13:20:47 +0100
changeset 211 9546f80a8597
parent 201 43365a9b78a3
child 212 3c6f07c4af24
Use RVCT assembler for __crash() when running armcc with the --gnu option. Fix for bug 2742.
kernel/eka/include/cpudefs.h
--- a/kernel/eka/include/cpudefs.h	Tue Jul 06 15:50:07 2010 +0300
+++ b/kernel/eka/include/cpudefs.h	Tue May 25 13:20:47 2010 +0100
@@ -605,7 +605,8 @@
 
 // Causes undefined instruction exception on both ARM and THUMB
 #define __ASM_CRASH()					asm(".word 0xe7ffdeff ")
-#if defined(__GNUC__)  
+// We need to use RVCT assembler when running armcc with the --gnu option
+#if defined(__GNUC__) && !defined(__ARMCC__)  
 #define	__crash()						asm(".word 0xe7ffdeff " : : : "memory")
 #elif defined(__GCCXML__)
 #define __crash()						(*((TInt *) 0x0) = 0xd1e)