Use asm instead of __asm__ in WTFBreakpointTrap so MSVC builds
authorkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2018 19:25:17 +0000 (19:25 +0000)
committerkeith_miller@apple.com <keith_miller@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Mar 2018 19:25:17 +0000 (19:25 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183465

Reviewed by Michael Saboff.

* wtf/Assertions.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229420 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WTF/ChangeLog
Source/WTF/wtf/Assertions.h

index 6f7c245..d56ae36 100644 (file)
@@ -1,3 +1,12 @@
+2018-03-08  Keith Miller  <keith_miller@apple.com>
+
+        Use asm instead of __asm__ in WTFBreakpointTrap so MSVC builds
+        https://bugs.webkit.org/show_bug.cgi?id=183465
+
+        Reviewed by Michael Saboff.
+
+        * wtf/Assertions.h:
+
 2018-03-07  Filip Pizlo  <fpizlo@apple.com>
 
         Make it possible to randomize register allocation
index 11ffbe2..64aaa0d 100644 (file)
@@ -211,11 +211,11 @@ WTF_EXPORT_PRIVATE bool WTFIsDebuggerAttached(void);
 #elif ASAN_ENABLED
 #define WTFBreakpointTrap()  __builtin_trap()
 #elif CPU(X86_64) || CPU(X86)
-#define WTFBreakpointTrap()  __asm__ volatile ("int3")
+#define WTFBreakpointTrap()  asm volatile ("int3")
 #elif CPU(ARM_THUMB2)
-#define WTFBreakpointTrap()  __asm__ volatile ("bkpt #0")
+#define WTFBreakpointTrap()  asm volatile ("bkpt #0")
 #elif CPU(ARM64)
-#define WTFBreakpointTrap()  __asm__ volatile ("brk #0")
+#define WTFBreakpointTrap()  asm volatile ("brk #0")
 #else
 #define WTFBreakpointTrap() WTFCrash() // Not implemented.
 #endif