Changeset 196871 in webkit
- Timestamp:
- Feb 20, 2016, 10:14:38 PM (9 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r196802 r196871 1 2016-02-20 Mark Lam <mark.lam@apple.com> 2 3 Use of inlined asm statements causes problems for -std=c99 builds. 4 https://bugs.webkit.org/show_bug.cgi?id=154507 5 6 Reviewed by Dan Bernstein. 7 8 WTF's Assertions.h may inadvertantly get included by other projects that are built 9 with -std=c99. The use of the inlined asm statements with the keyword "asm" is 10 not recognized when the -std compiler flag is used. 11 12 https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html says "When writing code that 13 can be compiled with -ansi and the various -std options, use __asm__ instead of 14 asm (see Alternate Keywords)." 15 16 So, to be a good citizen, we can change the use of "asm" in CRASH() to "__asm__" 17 so that we don't break the build of such other projects. 18 19 * wtf/Assertions.h: 20 1 21 2016-02-18 Brent Fulgham <bfulgham@apple.com> 2 22 -
trunk/Source/WTF/wtf/Assertions.h
r196554 r196871 156 156 #if defined(NDEBUG) && OS(DARWIN) 157 157 #if CPU(X86_64) || CPU(X86) 158 #define WTFBreakpointTrap() asmvolatile ("int3")158 #define WTFBreakpointTrap() __asm__ volatile ("int3") 159 159 #elif CPU(ARM_THUMB2) 160 #define WTFBreakpointTrap() asmvolatile ("bkpt #0")160 #define WTFBreakpointTrap() __asm__ volatile ("bkpt #0") 161 161 #elif CPU(ARM64) 162 #define WTFBreakpointTrap() asmvolatile ("brk #0")162 #define WTFBreakpointTrap() __asm__ volatile ("brk #0") 163 163 #else 164 164 #error "Unsupported CPU". -
trunk/Source/bmalloc/ChangeLog
r196856 r196871 1 2016-02-20 Mark Lam <mark.lam@apple.com> 2 3 Use of inlined asm statements causes problems for -std=c99 builds. 4 https://bugs.webkit.org/show_bug.cgi?id=154507 5 6 Reviewed by Dan Bernstein. 7 8 * bmalloc/BAssert.h: 9 1 10 2016-02-19 Joonghun Park <jh718.park@samsung.com> 2 11 -
trunk/Source/bmalloc/bmalloc/BAssert.h
r196535 r196871 32 32 33 33 #if BCPU(X86_64) || BCPU(X86) 34 #define BBreakpointTrap() asmvolatile ("int3")34 #define BBreakpointTrap() __asm__ volatile ("int3") 35 35 #elif BCPU(ARM_THUMB2) 36 #define BBreakpointTrap() asmvolatile ("bkpt #0")36 #define BBreakpointTrap() __asm__ volatile ("bkpt #0") 37 37 #elif BCPU(ARM64) 38 #define BBreakpointTrap() asmvolatile ("brk #0")38 #define BBreakpointTrap() __asm__ volatile ("brk #0") 39 39 #else 40 40 #error "Unsupported CPU".
Note:
See TracChangeset
for help on using the changeset viewer.