Title: [229420] trunk/Source/WTF
- Revision
- 229420
- Author
- [email protected]
- Date
- 2018-03-08 11:25:17 -0800 (Thu, 08 Mar 2018)
Log Message
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:
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (229419 => 229420)
--- trunk/Source/WTF/ChangeLog 2018-03-08 19:12:45 UTC (rev 229419)
+++ trunk/Source/WTF/ChangeLog 2018-03-08 19:25:17 UTC (rev 229420)
@@ -1,3 +1,12 @@
+2018-03-08 Keith Miller <[email protected]>
+
+ 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 <[email protected]>
Make it possible to randomize register allocation
Modified: trunk/Source/WTF/wtf/Assertions.h (229419 => 229420)
--- trunk/Source/WTF/wtf/Assertions.h 2018-03-08 19:12:45 UTC (rev 229419)
+++ trunk/Source/WTF/wtf/Assertions.h 2018-03-08 19:25:17 UTC (rev 229420)
@@ -211,11 +211,11 @@
#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
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes