From 857100899e6bcdc183e9632b918734e2f7187498 Mon Sep 17 00:00:00 2001 From: "Ben \"root\" Anderson" Date: Sat, 26 Oct 2013 15:19:20 -0500 Subject: [PATCH] Manually newline each inline assembly line. GCC asm syntax is just braindead like that. --- src/archutils/Win32/Crash.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/archutils/Win32/Crash.cpp b/src/archutils/Win32/Crash.cpp index fe4b1b7d0c..b1e787447f 100644 --- a/src/archutils/Win32/Crash.cpp +++ b/src/archutils/Win32/Crash.cpp @@ -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()) ) { // }