Manually newline each inline assembly line. GCC asm syntax is just braindead like that.

This commit is contained in:
Ben "root" Anderson
2013-10-26 15:19:20 -05:00
parent 6157d7eb3e
commit 857100899e
+4 -4
View File
@@ -545,12 +545,12 @@ static void NORETURN debug_crash()
#elif defined(__GNUC__)
// HACK: I don't know a lick of ASM and don't know how to port this to
// the AT&T syntax gas uses. So we temporarily change it.
asm(".intel_syntax noprefix"
"xor ebx,ebx"
"mov eax,dword ptr [ebx]"
asm(".intel_syntax noprefix\n\t"
"xor ebx,ebx\n\t"
"mov eax,dword ptr [ebx]\n\t"
// "mov dword ptr [ebx],eax"
// "lock add dword ptr cs:[00000000h], 12345678h"
".att_syntax noprefix");
".att_syntax noprefix\n\t");
#endif
// } __except( CrashHandler::ExceptionHandler((EXCEPTION_POINTERS*)_exception_info()) ) {
// }