<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[187819] trunk/Source</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/187819">187819</a></dd>
<dt>Author</dt> <dd>ossy@webkit.org</dd>
<dt>Date</dt> <dd>2015-08-03 23:51:29 -0700 (Mon, 03 Aug 2015)</dd>
</dl>

<h3>Log Message</h3>
<pre>Introduce COMPILER(GCC_OR_CLANG) guard and make COMPILER(GCC) true only for GCC
https://bugs.webkit.org/show_bug.cgi?id=146833

Reviewed by Alexey Proskuryakov.

Source/JavaScriptCore:

* assembler/ARM64Assembler.h:
* assembler/ARMAssembler.h:
(JSC::ARMAssembler::cacheFlush):
* assembler/MacroAssemblerARM.cpp:
(JSC::isVFPPresent):
* assembler/MacroAssemblerX86Common.h:
(JSC::MacroAssemblerX86Common::isSSE2Present):
* heap/MachineStackMarker.h:
* interpreter/StackVisitor.cpp: Removed redundant COMPILER(CLANG) guards.
(JSC::logF):
* jit/HostCallReturnValue.h:
* jit/JIT.h:
* jit/JITOperations.cpp:
* jit/JITStubsARM.h:
* jit/JITStubsARMv7.h:
* jit/JITStubsX86.h:
* jit/JITStubsX86Common.h:
* jit/JITStubsX86_64.h:
* jit/ThunkGenerators.cpp:
* runtime/JSExportMacros.h:
* runtime/MathCommon.h: Removed redundant COMPILER(CLANG) guard.
(JSC::clz32):

Source/WebCore:

* platform/graphics/cpu/arm/filters/FELightingNEON.cpp:
* platform/graphics/cpu/arm/filters/FELightingNEON.h:
* platform/graphics/filters/FELighting.cpp:
(WebCore::FELighting::platformApply):
* platform/network/efl/NetworkStateNotifierEfl.cpp:
(WebCore::NetworkStateNotifier::readSocketCallback):

Source/WTF:

* wtf/Assertions.cpp:
* wtf/Assertions.h: Removed redundant COMPILER(CLANG) guard.
* wtf/Atomics.cpp:
* wtf/Atomics.h:
(WTF::weakCompareAndSwap):
(WTF::compilerFence):
* wtf/Compiler.h:
 - Renamed COMPILER(GCC) to COMPILER(GCC_OR_CLANG), because it is true for both compiler.
 - Added COMPILER(GCC) which is true only for GCC.
 - Moved all GCC related stuff to one block and removed redundant guards accordingly.
 - Removed the unused default false definition of GCC_VERSION_AT_LEAST for non GCC compilers.
* wtf/ExportMacros.h:
* wtf/FastMalloc.h:
* wtf/Platform.h:
* wtf/StdLibExtras.h:
* wtf/Vector.h:
* wtf/text/ASCIIFastPath.h:
(WTF::copyLCharsFromUCharSource):</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceJavaScriptCoreChangeLog">trunk/Source/JavaScriptCore/ChangeLog</a></li>
<li><a href="#trunkSourceJavaScriptCoreassemblerARM64Assemblerh">trunk/Source/JavaScriptCore/assembler/ARM64Assembler.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreassemblerARMAssemblerh">trunk/Source/JavaScriptCore/assembler/ARMAssembler.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreassemblerMacroAssemblerARMcpp">trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreassemblerMacroAssemblerX86Commonh">trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreheapMachineStackMarkerh">trunk/Source/JavaScriptCore/heap/MachineStackMarker.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreinterpreterStackVisitorcpp">trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorejitHostCallReturnValueh">trunk/Source/JavaScriptCore/jit/HostCallReturnValue.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITh">trunk/Source/JavaScriptCore/jit/JIT.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITOperationscpp">trunk/Source/JavaScriptCore/jit/JITOperations.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITStubsARMh">trunk/Source/JavaScriptCore/jit/JITStubsARM.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITStubsARMv7h">trunk/Source/JavaScriptCore/jit/JITStubsARMv7.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITStubsX86h">trunk/Source/JavaScriptCore/jit/JITStubsX86.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITStubsX86Commonh">trunk/Source/JavaScriptCore/jit/JITStubsX86Common.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitJITStubsX86_64h">trunk/Source/JavaScriptCore/jit/JITStubsX86_64.h</a></li>
<li><a href="#trunkSourceJavaScriptCorejitThunkGeneratorscpp">trunk/Source/JavaScriptCore/jit/ThunkGenerators.cpp</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeJSExportMacrosh">trunk/Source/JavaScriptCore/runtime/JSExportMacros.h</a></li>
<li><a href="#trunkSourceJavaScriptCoreruntimeMathCommonh">trunk/Source/JavaScriptCore/runtime/MathCommon.h</a></li>
<li><a href="#trunkSourceWTFChangeLog">trunk/Source/WTF/ChangeLog</a></li>
<li><a href="#trunkSourceWTFwtfAssertionscpp">trunk/Source/WTF/wtf/Assertions.cpp</a></li>
<li><a href="#trunkSourceWTFwtfAssertionsh">trunk/Source/WTF/wtf/Assertions.h</a></li>
<li><a href="#trunkSourceWTFwtfAtomicscpp">trunk/Source/WTF/wtf/Atomics.cpp</a></li>
<li><a href="#trunkSourceWTFwtfAtomicsh">trunk/Source/WTF/wtf/Atomics.h</a></li>
<li><a href="#trunkSourceWTFwtfCompilerh">trunk/Source/WTF/wtf/Compiler.h</a></li>
<li><a href="#trunkSourceWTFwtfExportMacrosh">trunk/Source/WTF/wtf/ExportMacros.h</a></li>
<li><a href="#trunkSourceWTFwtfFastMalloch">trunk/Source/WTF/wtf/FastMalloc.h</a></li>
<li><a href="#trunkSourceWTFwtfPlatformh">trunk/Source/WTF/wtf/Platform.h</a></li>
<li><a href="#trunkSourceWTFwtfStdLibExtrash">trunk/Source/WTF/wtf/StdLibExtras.h</a></li>
<li><a href="#trunkSourceWTFwtfVectorh">trunk/Source/WTF/wtf/Vector.h</a></li>
<li><a href="#trunkSourceWTFwtftextASCIIFastPathh">trunk/Source/WTF/wtf/text/ASCIIFastPath.h</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscpuarmfiltersFELightingNEONcpp">trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicscpuarmfiltersFELightingNEONh">trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h</a></li>
<li><a href="#trunkSourceWebCoreplatformgraphicsfiltersFELightingcpp">trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp</a></li>
<li><a href="#trunkSourceWebCoreplatformnetworkeflNetworkStateNotifierEflcpp">trunk/Source/WebCore/platform/network/efl/NetworkStateNotifierEfl.cpp</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceJavaScriptCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/ChangeLog (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/ChangeLog        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/ChangeLog        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -1,3 +1,33 @@
</span><ins>+2015-08-03  Csaba Osztrogonác  &lt;ossy@webkit.org&gt;
+
+        Introduce COMPILER(GCC_OR_CLANG) guard and make COMPILER(GCC) true only for GCC
+        https://bugs.webkit.org/show_bug.cgi?id=146833
+
+        Reviewed by Alexey Proskuryakov.
+
+        * assembler/ARM64Assembler.h:
+        * assembler/ARMAssembler.h:
+        (JSC::ARMAssembler::cacheFlush):
+        * assembler/MacroAssemblerARM.cpp:
+        (JSC::isVFPPresent):
+        * assembler/MacroAssemblerX86Common.h:
+        (JSC::MacroAssemblerX86Common::isSSE2Present):
+        * heap/MachineStackMarker.h:
+        * interpreter/StackVisitor.cpp: Removed redundant COMPILER(CLANG) guards.
+        (JSC::logF):
+        * jit/HostCallReturnValue.h:
+        * jit/JIT.h:
+        * jit/JITOperations.cpp:
+        * jit/JITStubsARM.h:
+        * jit/JITStubsARMv7.h:
+        * jit/JITStubsX86.h:
+        * jit/JITStubsX86Common.h:
+        * jit/JITStubsX86_64.h:
+        * jit/ThunkGenerators.cpp:
+        * runtime/JSExportMacros.h:
+        * runtime/MathCommon.h: Removed redundant COMPILER(CLANG) guard.
+        (JSC::clz32):
+
</ins><span class="cx"> 2015-08-03  Filip Pizlo  &lt;fpizlo@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed, fix uninitialized property leading to an assert.
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreassemblerARM64Assemblerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/assembler/ARM64Assembler.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/assembler/ARM64Assembler.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/assembler/ARM64Assembler.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -2851,7 +2851,7 @@
</span><span class="cx"> 
</span><span class="cx">     unsigned debugOffset() { return m_buffer.debugOffset(); }
</span><span class="cx"> 
</span><del>-#if OS(LINUX) &amp;&amp; COMPILER(GCC)
</del><ins>+#if OS(LINUX) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     static inline void linuxPageFlush(uintptr_t begin, uintptr_t end)
</span><span class="cx">     {
</span><span class="cx">         __builtin___clear_cache(reinterpret_cast&lt;void*&gt;(begin), reinterpret_cast&lt;void*&gt;(end));
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreassemblerARMAssemblerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/assembler/ARMAssembler.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/assembler/ARMAssembler.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/assembler/ARMAssembler.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -1091,7 +1091,7 @@
</span><span class="cx">             return AL | B | (offset &amp; BranchOffsetMask);
</span><span class="cx">         }
</span><span class="cx"> 
</span><del>-#if OS(LINUX) &amp;&amp; COMPILER(GCC)
</del><ins>+#if OS(LINUX) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx">         static inline void linuxPageFlush(uintptr_t begin, uintptr_t end)
</span><span class="cx">         {
</span><span class="cx">             asm volatile(
</span><span class="lines">@@ -1111,7 +1111,7 @@
</span><span class="cx"> 
</span><span class="cx">         static void cacheFlush(void* code, size_t size)
</span><span class="cx">         {
</span><del>-#if OS(LINUX) &amp;&amp; COMPILER(GCC)
</del><ins>+#if OS(LINUX) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx">             size_t page = pageSize();
</span><span class="cx">             uintptr_t current = reinterpret_cast&lt;uintptr_t&gt;(code);
</span><span class="cx">             uintptr_t end = current + size;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreassemblerMacroAssemblerARMcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx">     }
</span><span class="cx"> #endif // OS(LINUX)
</span><span class="cx"> 
</span><del>-#if (COMPILER(GCC) &amp;&amp; defined(__VFP_FP__))
</del><ins>+#if (COMPILER(GCC_OR_CLANG) &amp;&amp; defined(__VFP_FP__))
</ins><span class="cx">     return true;
</span><span class="cx"> #else
</span><span class="cx">     return false;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreassemblerMacroAssemblerX86Commonh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/assembler/MacroAssemblerX86Common.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -1577,7 +1577,7 @@
</span><span class="cx">                 cpuid;
</span><span class="cx">                 mov flags, edx;
</span><span class="cx">             }
</span><del>-#elif COMPILER(GCC)
</del><ins>+#elif COMPILER(GCC_OR_CLANG)
</ins><span class="cx">             asm (
</span><span class="cx">                  &quot;movl $0x1, %%eax;&quot;
</span><span class="cx">                  &quot;pushl %%ebx;&quot;
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreheapMachineStackMarkerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/heap/MachineStackMarker.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/heap/MachineStackMarker.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/heap/MachineStackMarker.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -69,7 +69,7 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define REGISTER_BUFFER_ALIGNMENT __attribute__ ((aligned (sizeof(void*))))
</span><span class="cx"> #else
</span><span class="cx"> #define REGISTER_BUFFER_ALIGNMENT
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreinterpreterStackVisitorcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/interpreter/StackVisitor.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -331,7 +331,7 @@
</span><span class="cx"> {
</span><span class="cx">     printIndents(indent);
</span><span class="cx"> 
</span><del>-#if COMPILER(CLANG) || COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #pragma GCC diagnostic push
</span><span class="cx"> #pragma GCC diagnostic ignored &quot;-Wformat-nonliteral&quot;
</span><span class="cx"> #pragma GCC diagnostic ignored &quot;-Wmissing-format-attribute&quot;
</span><span class="lines">@@ -339,7 +339,7 @@
</span><span class="cx"> 
</span><span class="cx">     dataLogF(format, values...);
</span><span class="cx"> 
</span><del>-#if COMPILER(CLANG) || COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #pragma GCC diagnostic pop
</span><span class="cx"> #endif
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitHostCallReturnValueh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/HostCallReturnValue.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/HostCallReturnValue.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/HostCallReturnValue.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> 
</span><span class="cx"> extern &quot;C&quot; EncodedJSValue HOST_CALL_RETURN_VALUE_OPTION getHostCallReturnValue() REFERENCED_FROM_ASM WTF_INTERNAL;
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> // This is a public declaration only to convince CLANG not to elide it.
</span><span class="cx"> extern &quot;C&quot; EncodedJSValue HOST_CALL_RETURN_VALUE_OPTION getHostCallReturnValueWithExecState(ExecState*) REFERENCED_FROM_ASM WTF_INTERNAL;
</span><span class="lines">@@ -51,11 +51,11 @@
</span><span class="cx">     getHostCallReturnValueWithExecState(0);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#else // COMPILER(GCC)
</del><ins>+#else // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> inline void initializeHostCallReturnValue() { }
</span><span class="cx"> 
</span><del>-#endif // COMPILER(GCC)
</del><ins>+#endif // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JIT.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JIT.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/JIT.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -30,7 +30,7 @@
</span><span class="cx"> 
</span><span class="cx"> // We've run into some problems where changing the size of the class JIT leads to
</span><span class="cx"> // performance fluctuations.  Try forcing alignment in an attempt to stabalize this.
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define JIT_CLASS_ALIGNMENT __attribute__ ((aligned (32)))
</span><span class="cx"> #else
</span><span class="cx"> #define JIT_CLASS_ALIGNMENT
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITOperationscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JITOperations.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JITOperations.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/JITOperations.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -1922,11 +1922,11 @@
</span><span class="cx"> // testing.
</span><span class="cx"> void JIT_OPERATION operationExceptionFuzz()
</span><span class="cx"> {
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     ExecState* exec = static_cast&lt;ExecState*&gt;(__builtin_frame_address(1));
</span><span class="cx">     void* returnPC = __builtin_return_address(0);
</span><span class="cx">     doExceptionFuzzing(exec, &quot;JITOperations&quot;, returnPC);
</span><del>-#endif // COMPILER(GCC)
</del><ins>+#endif // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> EncodedJSValue JIT_OPERATION operationHasGenericProperty(ExecState* exec, EncodedJSValue encodedBaseValue, JSCell* propertyName)
</span><span class="lines">@@ -1992,7 +1992,7 @@
</span><span class="cx">     return JSValue::encode(exec-&gt;vm().hostCallReturnValue);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC) &amp;&amp; CPU(X86_64)
</del><ins>+#if COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(X86_64)
</ins><span class="cx"> asm (
</span><span class="cx"> &quot;.globl &quot; SYMBOL_STRING(getHostCallReturnValue) &quot;\n&quot;
</span><span class="cx"> HIDE_SYMBOL(getHostCallReturnValue) &quot;\n&quot;
</span><span class="lines">@@ -2001,7 +2001,7 @@
</span><span class="cx">     &quot;jmp &quot; LOCAL_REFERENCE(getHostCallReturnValueWithExecState) &quot;\n&quot;
</span><span class="cx"> );
</span><span class="cx"> 
</span><del>-#elif COMPILER(GCC) &amp;&amp; CPU(X86)
</del><ins>+#elif COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(X86)
</ins><span class="cx"> asm (
</span><span class="cx"> &quot;.text&quot; &quot;\n&quot; \
</span><span class="cx"> &quot;.globl &quot; SYMBOL_STRING(getHostCallReturnValue) &quot;\n&quot;
</span><span class="lines">@@ -2016,7 +2016,7 @@
</span><span class="cx">     &quot;ret\n&quot;
</span><span class="cx"> );
</span><span class="cx"> 
</span><del>-#elif COMPILER(GCC) &amp;&amp; CPU(ARM_THUMB2)
</del><ins>+#elif COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(ARM_THUMB2)
</ins><span class="cx"> asm (
</span><span class="cx"> &quot;.text&quot; &quot;\n&quot;
</span><span class="cx"> &quot;.align 2&quot; &quot;\n&quot;
</span><span class="lines">@@ -2029,7 +2029,7 @@
</span><span class="cx">     &quot;b &quot; LOCAL_REFERENCE(getHostCallReturnValueWithExecState) &quot;\n&quot;
</span><span class="cx"> );
</span><span class="cx"> 
</span><del>-#elif COMPILER(GCC) &amp;&amp; CPU(ARM_TRADITIONAL)
</del><ins>+#elif COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(ARM_TRADITIONAL)
</ins><span class="cx"> asm (
</span><span class="cx"> &quot;.text&quot; &quot;\n&quot;
</span><span class="cx"> &quot;.globl &quot; SYMBOL_STRING(getHostCallReturnValue) &quot;\n&quot;
</span><span class="lines">@@ -2051,7 +2051,7 @@
</span><span class="cx">      &quot;b &quot; LOCAL_REFERENCE(getHostCallReturnValueWithExecState) &quot;\n&quot;
</span><span class="cx"> );
</span><span class="cx"> 
</span><del>-#elif COMPILER(GCC) &amp;&amp; CPU(MIPS)
</del><ins>+#elif COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(MIPS)
</ins><span class="cx"> 
</span><span class="cx"> #if WTF_MIPS_PIC
</span><span class="cx"> #define LOAD_FUNCTION_TO_T9(function) \
</span><span class="lines">@@ -2073,7 +2073,7 @@
</span><span class="cx">     &quot;b &quot; LOCAL_REFERENCE(getHostCallReturnValueWithExecState) &quot;\n&quot;
</span><span class="cx"> );
</span><span class="cx"> 
</span><del>-#elif COMPILER(GCC) &amp;&amp; CPU(SH4)
</del><ins>+#elif COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(SH4)
</ins><span class="cx"> 
</span><span class="cx"> #define SH4_SCRATCH_REGISTER &quot;r11&quot;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITStubsARMh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JITStubsARM.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JITStubsARM.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/JITStubsARM.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(MASM_PROBE)
</span><span class="cx"> // The following are offsets for MacroAssembler::ProbeContext fields accessed
</span><span class="lines">@@ -295,7 +295,7 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx"> 
</span><del>-#endif // COMPILER(GCC)
</del><ins>+#endif // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITStubsARMv7h"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JITStubsARMv7.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JITStubsARMv7.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/JITStubsARMv7.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -41,7 +41,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(MASM_PROBE)
</span><span class="cx"> // The following are offsets for MacroAssembler::ProbeContext fields accessed
</span><span class="lines">@@ -327,7 +327,7 @@
</span><span class="cx"> );
</span><span class="cx"> #endif // ENABLE(MASM_PROBE)
</span><span class="cx"> 
</span><del>-#endif // COMPILER(GCC)
</del><ins>+#endif // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITStubsX86h"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JITStubsX86.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JITStubsX86.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/JITStubsX86.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(MASM_PROBE)
</span><span class="cx"> asm (
</span><span class="lines">@@ -198,7 +198,7 @@
</span><span class="cx"> );
</span><span class="cx"> #endif // ENABLE(MASM_PROBE)
</span><span class="cx"> 
</span><del>-#endif // COMPILER(GCC)
</del><ins>+#endif // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITStubsX86Commonh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JITStubsX86Common.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JITStubsX86Common.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/JITStubsX86Common.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -34,7 +34,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(MASM_PROBE)
</span><span class="cx"> // The following are offsets for MacroAssembler::ProbeContext fields accessed
</span><span class="lines">@@ -157,7 +157,7 @@
</span><span class="cx"> 
</span><span class="cx"> #endif // ENABLE(MASM_PROBE)
</span><span class="cx"> 
</span><del>-#endif // COMPILER(GCC)
</del><ins>+#endif // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitJITStubsX86_64h"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/JITStubsX86_64.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/JITStubsX86_64.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/JITStubsX86_64.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -43,7 +43,7 @@
</span><span class="cx"> 
</span><span class="cx"> namespace JSC {
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #if ENABLE(MASM_PROBE)
</span><span class="cx"> asm (
</span><span class="lines">@@ -227,7 +227,7 @@
</span><span class="cx"> );
</span><span class="cx"> #endif // ENABLE(MASM_PROBE)
</span><span class="cx"> 
</span><del>-#endif // COMPILER(GCC)
</del><ins>+#endif // COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> } // namespace JSC
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceJavaScriptCorejitThunkGeneratorscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/jit/ThunkGenerators.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/jit/ThunkGenerators.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/jit/ThunkGenerators.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -634,7 +634,7 @@
</span><span class="cx"> enum MathThunkCallingConvention { };
</span><span class="cx"> typedef MathThunkCallingConvention(*MathThunk)(MathThunkCallingConvention);
</span><span class="cx"> 
</span><del>-#if CPU(X86_64) &amp;&amp; COMPILER(GCC) &amp;&amp; (OS(DARWIN) || OS(LINUX))
</del><ins>+#if CPU(X86_64) &amp;&amp; COMPILER(GCC_OR_CLANG) &amp;&amp; (OS(DARWIN) || OS(LINUX))
</ins><span class="cx"> 
</span><span class="cx"> #define defineUnaryDoubleOpWrapper(function) \
</span><span class="cx">     asm( \
</span><span class="lines">@@ -652,7 +652,7 @@
</span><span class="cx">     } \
</span><span class="cx">     static MathThunk UnaryDoubleOpWrapper(function) = &amp;function##Thunk;
</span><span class="cx"> 
</span><del>-#elif CPU(X86) &amp;&amp; COMPILER(GCC) &amp;&amp; OS(LINUX) &amp;&amp; defined(__PIC__)
</del><ins>+#elif CPU(X86) &amp;&amp; COMPILER(GCC_OR_CLANG) &amp;&amp; OS(LINUX) &amp;&amp; defined(__PIC__)
</ins><span class="cx"> #define defineUnaryDoubleOpWrapper(function) \
</span><span class="cx">     asm( \
</span><span class="cx">         &quot;.text\n&quot; \
</span><span class="lines">@@ -676,7 +676,7 @@
</span><span class="cx">     } \
</span><span class="cx">     static MathThunk UnaryDoubleOpWrapper(function) = &amp;function##Thunk;
</span><span class="cx"> 
</span><del>-#elif CPU(X86) &amp;&amp; COMPILER(GCC) &amp;&amp; (OS(DARWIN) || OS(LINUX))
</del><ins>+#elif CPU(X86) &amp;&amp; COMPILER(GCC_OR_CLANG) &amp;&amp; (OS(DARWIN) || OS(LINUX))
</ins><span class="cx"> #define defineUnaryDoubleOpWrapper(function) \
</span><span class="cx">     asm( \
</span><span class="cx">         &quot;.text\n&quot; \
</span><span class="lines">@@ -696,7 +696,7 @@
</span><span class="cx">     } \
</span><span class="cx">     static MathThunk UnaryDoubleOpWrapper(function) = &amp;function##Thunk;
</span><span class="cx"> 
</span><del>-#elif CPU(ARM_THUMB2) &amp;&amp; COMPILER(GCC) &amp;&amp; PLATFORM(IOS)
</del><ins>+#elif CPU(ARM_THUMB2) &amp;&amp; COMPILER(GCC_OR_CLANG) &amp;&amp; PLATFORM(IOS)
</ins><span class="cx"> 
</span><span class="cx"> #define defineUnaryDoubleOpWrapper(function) \
</span><span class="cx">     asm( \
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeJSExportMacrosh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/JSExportMacros.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/JSExportMacros.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/runtime/JSExportMacros.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -47,7 +47,7 @@
</span><span class="cx"> 
</span><span class="cx"> #else // !USE(EXPORT_MACROS)
</span><span class="cx"> 
</span><del>-#if OS(WINDOWS) &amp;&amp; !COMPILER(GCC)
</del><ins>+#if OS(WINDOWS) &amp;&amp; !COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #if defined(BUILDING_JavaScriptCore) || defined(STATICALLY_LINKED_WITH_JavaScriptCore)
</span><span class="cx"> #define JS_EXPORTDATA __declspec(dllexport)
</span></span></pre></div>
<a id="trunkSourceJavaScriptCoreruntimeMathCommonh"></a>
<div class="modfile"><h4>Modified: trunk/Source/JavaScriptCore/runtime/MathCommon.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/JavaScriptCore/runtime/MathCommon.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/JavaScriptCore/runtime/MathCommon.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> 
</span><span class="cx"> inline int clz32(uint32_t number)
</span><span class="cx"> {
</span><del>-#if COMPILER(GCC) || COMPILER(CLANG)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     int zeroCount = 32;
</span><span class="cx">     if (number)
</span><span class="cx">         zeroCount = __builtin_clz(number);
</span></span></pre></div>
<a id="trunkSourceWTFChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/ChangeLog (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/ChangeLog        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/ChangeLog        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -1,3 +1,29 @@
</span><ins>+2015-08-03  Csaba Osztrogonác  &lt;ossy@webkit.org&gt;
+
+        Introduce COMPILER(GCC_OR_CLANG) guard and make COMPILER(GCC) true only for GCC
+        https://bugs.webkit.org/show_bug.cgi?id=146833
+
+        Reviewed by Alexey Proskuryakov.
+
+        * wtf/Assertions.cpp:
+        * wtf/Assertions.h: Removed redundant COMPILER(CLANG) guard.
+        * wtf/Atomics.cpp:
+        * wtf/Atomics.h:
+        (WTF::weakCompareAndSwap):
+        (WTF::compilerFence):
+        * wtf/Compiler.h:
+         - Renamed COMPILER(GCC) to COMPILER(GCC_OR_CLANG), because it is true for both compiler.
+         - Added COMPILER(GCC) which is true only for GCC.
+         - Moved all GCC related stuff to one block and removed redundant guards accordingly.
+         - Removed the unused default false definition of GCC_VERSION_AT_LEAST for non GCC compilers.
+        * wtf/ExportMacros.h:
+        * wtf/FastMalloc.h:
+        * wtf/Platform.h:
+        * wtf/StdLibExtras.h:
+        * wtf/Vector.h:
+        * wtf/text/ASCIIFastPath.h:
+        (WTF::copyLCharsFromUCharSource):
+
</ins><span class="cx"> 2015-08-03  Zan Dobersek  &lt;zdobersek@igalia.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Unreviewed build fix.
</span></span></pre></div>
<a id="trunkSourceWTFwtfAssertionscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Assertions.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Assertions.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/Assertions.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -140,7 +140,7 @@
</span><span class="cx">     vfprintf(stderr, format, args);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if COMPILER(CLANG) || COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #pragma GCC diagnostic push
</span><span class="cx"> #pragma GCC diagnostic ignored &quot;-Wformat-nonliteral&quot;
</span><span class="cx"> #endif
</span><span class="lines">@@ -173,7 +173,7 @@
</span><span class="cx">     vprintf_stderr_common(formatWithNewline.get(), args);
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-#if COMPILER(CLANG) || COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #pragma GCC diagnostic pop
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -320,7 +320,7 @@
</span><span class="cx">     WTFReportBacktrace();
</span><span class="cx">     *(int *)(uintptr_t)0xbbadbeef = 0;
</span><span class="cx">     // More reliable, but doesn't say BBADBEEF.
</span><del>-#if COMPILER(CLANG) || COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     __builtin_trap();
</span><span class="cx"> #else
</span><span class="cx">     ((void(*)())0)();
</span><span class="lines">@@ -334,7 +334,7 @@
</span><span class="cx">     WTFReportBacktrace();
</span><span class="cx">     *(int *)(uintptr_t)0xfbadbeef = 0;
</span><span class="cx">     // More reliable, but doesn't say fbadbeef.
</span><del>-#if COMPILER(CLANG) || COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     __builtin_trap();
</span><span class="cx"> #else
</span><span class="cx">     ((void(*)())0)();
</span></span></pre></div>
<a id="trunkSourceWTFwtfAssertionsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Assertions.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Assertions.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/Assertions.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -79,7 +79,7 @@
</span><span class="cx"> #define LOG_DISABLED ASSERTIONS_DISABLED_DEFAULT
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define WTF_PRETTY_FUNCTION __PRETTY_FUNCTION__
</span><span class="cx"> #else
</span><span class="cx"> #define WTF_PRETTY_FUNCTION __FUNCTION__
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx"> /* WTF logging functions can process %@ in the format string to log a NSObject* but the printf format attribute
</span><span class="cx">    emits a warning when %@ is used in the format string.  Until &lt;rdar://problem/5195437&gt; is resolved we can't include
</span><span class="cx">    the attribute when being used from Objective-C code in case it decides to use %@. */
</span><del>-#if COMPILER(GCC) &amp;&amp; !defined(__OBJC__)
</del><ins>+#if COMPILER(GCC_OR_CLANG) &amp;&amp; !defined(__OBJC__)
</ins><span class="cx"> #define WTF_ATTRIBUTE_PRINTF(formatStringArgument, extraArguments) __attribute__((__format__(printf, formatStringArgument, extraArguments)))
</span><span class="cx"> #else
</span><span class="cx"> #define WTF_ATTRIBUTE_PRINTF(formatStringArgument, extraArguments)
</span><span class="lines">@@ -115,7 +115,7 @@
</span><span class="cx"> 
</span><span class="cx">    Signals are ignored by the crash reporter on OS X so we must do better.
</span><span class="cx"> */
</span><del>-#if COMPILER(CLANG) || COMPILER(GCC) || COMPILER(MSVC)
</del><ins>+#if COMPILER(GCC_OR_CLANG) || COMPILER(MSVC)
</ins><span class="cx"> #define NO_RETURN_DUE_TO_CRASH NO_RETURN
</span><span class="cx"> #else
</span><span class="cx"> #define NO_RETURN_DUE_TO_CRASH
</span></span></pre></div>
<a id="trunkSourceWTFwtfAtomicscpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Atomics.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Atomics.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/Atomics.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -65,7 +65,7 @@
</span><span class="cx"> // (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56296). GCC &gt;= 4.8 will support __atomic_* builtin
</span><span class="cx"> // functions for this purpose for all the GCC targets, but for current compilers we have to include
</span><span class="cx"> // our own implementation.
</span><del>-#if COMPILER(GCC) &amp;&amp; !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) &amp;&amp; USE(PTHREADS)
</del><ins>+#if COMPILER(GCC_OR_CLANG) &amp;&amp; !defined(__GCC_HAVE_SYNC_COMPARE_AND_SWAP_8) &amp;&amp; USE(PTHREADS)
</ins><span class="cx"> 
</span><span class="cx"> #include &quot;ThreadingPrimitives.h&quot;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWTFwtfAtomicsh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Atomics.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Atomics.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/Atomics.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -63,7 +63,7 @@
</span><span class="cx"> #include &lt;wtf/StdLibExtras.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if OS(WINDOWS)
</span><del>-#if !COMPILER(GCC)
</del><ins>+#if !COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> extern &quot;C&quot; void _ReadWriteBarrier(void);
</span><span class="cx"> #pragma intrinsic(_ReadWriteBarrier)
</span><span class="cx"> #endif
</span><span class="lines">@@ -141,7 +141,7 @@
</span><span class="cx">         : &quot;r&quot;(expected), &quot;r&quot;(newValue)
</span><span class="cx">         : &quot;memory&quot;);
</span><span class="cx">     result = !result;
</span><del>-#elif CPU(ARM64) &amp;&amp; COMPILER(GCC)
</del><ins>+#elif CPU(ARM64) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     unsigned tmp;
</span><span class="cx">     unsigned result;
</span><span class="cx">     asm volatile(
</span><span class="lines">@@ -195,7 +195,7 @@
</span><span class="cx">         : &quot;memory&quot;
</span><span class="cx">         );
</span><span class="cx">     return result;
</span><del>-#elif CPU(ARM64) &amp;&amp; COMPILER(GCC)
</del><ins>+#elif CPU(ARM64) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     bool result;
</span><span class="cx">     void* tmp;
</span><span class="cx">     asm volatile(
</span><span class="lines">@@ -251,7 +251,7 @@
</span><span class="cx"> // to do things like register allocation and code motion over pure operations.
</span><span class="cx"> inline void compilerFence()
</span><span class="cx"> {
</span><del>-#if OS(WINDOWS) &amp;&amp; !COMPILER(GCC)
</del><ins>+#if OS(WINDOWS) &amp;&amp; !COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     _ReadWriteBarrier();
</span><span class="cx"> #else
</span><span class="cx">     asm volatile(&quot;&quot; ::: &quot;memory&quot;);
</span></span></pre></div>
<a id="trunkSourceWTFwtfCompilerh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Compiler.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Compiler.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/Compiler.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -56,42 +56,37 @@
</span><span class="cx"> #define WTF_COMPILER_SUPPORTS_FALLTHROUGH_WARNINGS __has_feature(cxx_attributes) &amp;&amp; __has_warning(&quot;-Wimplicit-fallthrough&quot;)
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-/* COMPILER(GCC) - GNU Compiler Collection */
</del><ins>+/* COMPILER(GCC_OR_CLANG) - GNU Compiler Collection or Clang */
+#if defined(__GNUC__)
+#define WTF_COMPILER_GCC_OR_CLANG 1
+#endif
</ins><span class="cx"> 
</span><ins>+/* COMPILER(GCC) - GNU Compiler Collection */
</ins><span class="cx"> /* Note: This section must come after the Clang section since we check !COMPILER(CLANG) here. */
</span><del>-
-#if defined(__GNUC__)
</del><ins>+#if COMPILER(GCC_OR_CLANG) &amp;&amp; !COMPILER(CLANG)
</ins><span class="cx"> #define WTF_COMPILER_GCC 1
</span><ins>+#define WTF_COMPILER_SUPPORTS_CXX_CONSTEXPR 1
+#define WTF_COMPILER_SUPPORTS_CXX_USER_LITERALS 1
+
</ins><span class="cx"> #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
</span><span class="cx"> #define GCC_VERSION_AT_LEAST(major, minor, patch) (GCC_VERSION &gt;= (major * 10000 + minor * 100 + patch))
</span><del>-#endif
</del><span class="cx"> 
</span><del>-/* Define GCC_VERSION_AT_LEAST for all compilers, so we can write things like GCC_VERSION_AT_LEAST(4, 1, 0). */
-/* FIXME: Doesn't seem all that valuable. Can we remove this? */
-#if !defined(GCC_VERSION_AT_LEAST)
-#define GCC_VERSION_AT_LEAST(major, minor, patch) 0
-#endif
-
-#if COMPILER(GCC) &amp;&amp; !COMPILER(CLANG) &amp;&amp; !GCC_VERSION_AT_LEAST(4, 7, 0)
</del><ins>+#if !GCC_VERSION_AT_LEAST(4, 7, 0)
</ins><span class="cx"> #error &quot;Please use a newer version of GCC. WebKit requires GCC 4.7.0 or newer to compile.&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC) &amp;&amp; !COMPILER(CLANG)
-#define WTF_COMPILER_SUPPORTS_CXX_CONSTEXPR 1
-#define WTF_COMPILER_SUPPORTS_CXX_USER_LITERALS 1
-#endif
-
-#if COMPILER(GCC) &amp;&amp; !COMPILER(CLANG) &amp;&amp; defined(__STDC_VERSION__) &amp;&amp; __STDC_VERSION__ &gt;= 201112L
</del><ins>+#if defined(__STDC_VERSION__) &amp;&amp; __STDC_VERSION__ &gt;= 201112L
</ins><span class="cx"> #define WTF_COMPILER_SUPPORTS_C_STATIC_ASSERT 1
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC) &amp;&amp; !COMPILER(CLANG) &amp;&amp; GCC_VERSION_AT_LEAST(4, 8, 0)
</del><ins>+#if GCC_VERSION_AT_LEAST(4, 8, 0)
</ins><span class="cx"> #pragma GCC diagnostic ignored &quot;-Wmaybe-uninitialized&quot;
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC) &amp;&amp; !COMPILER(CLANG) &amp;&amp; (defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) &amp;&amp; __cplusplus &gt;= 201103L))
</del><ins>+#if (defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) &amp;&amp; __cplusplus &gt;= 201103L))
</ins><span class="cx"> #pragma GCC diagnostic ignored &quot;-Wunused-local-typedefs&quot;
</span><span class="cx"> #endif
</span><ins>+#endif /* COMPILER(GCC) */
</ins><span class="cx"> 
</span><span class="cx"> /* COMPILER(MINGW) - MinGW GCC */
</span><span class="cx"> 
</span><span class="lines">@@ -146,7 +141,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* ALWAYS_INLINE */
</span><span class="cx"> 
</span><del>-#if !defined(ALWAYS_INLINE) &amp;&amp; COMPILER(GCC) &amp;&amp; defined(NDEBUG) &amp;&amp; !COMPILER(MINGW)
</del><ins>+#if !defined(ALWAYS_INLINE) &amp;&amp; COMPILER(GCC_OR_CLANG) &amp;&amp; defined(NDEBUG) &amp;&amp; !COMPILER(MINGW)
</ins><span class="cx"> #define ALWAYS_INLINE inline __attribute__((__always_inline__))
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -197,7 +192,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* LIKELY */
</span><span class="cx"> 
</span><del>-#if !defined(LIKELY) &amp;&amp; COMPILER(GCC)
</del><ins>+#if !defined(LIKELY) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define LIKELY(x) __builtin_expect(!!(x), 1)
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -207,7 +202,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* NEVER_INLINE */
</span><span class="cx"> 
</span><del>-#if !defined(NEVER_INLINE) &amp;&amp; COMPILER(GCC)
</del><ins>+#if !defined(NEVER_INLINE) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define NEVER_INLINE __attribute__((__noinline__))
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -221,7 +216,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* NO_RETURN */
</span><span class="cx"> 
</span><del>-#if !defined(NO_RETURN) &amp;&amp; COMPILER(GCC)
</del><ins>+#if !defined(NO_RETURN) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define NO_RETURN __attribute((__noreturn__))
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -255,7 +250,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* PURE_FUNCTION */
</span><span class="cx"> 
</span><del>-#if !defined(PURE_FUNCTION) &amp;&amp; COMPILER(GCC)
</del><ins>+#if !defined(PURE_FUNCTION) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define PURE_FUNCTION __attribute__((__pure__))
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -265,7 +260,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* REFERENCED_FROM_ASM */
</span><span class="cx"> 
</span><del>-#if !defined(REFERENCED_FROM_ASM) &amp;&amp; COMPILER(GCC)
</del><ins>+#if !defined(REFERENCED_FROM_ASM) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define REFERENCED_FROM_ASM __attribute__((__used__))
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -275,7 +270,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* UNLIKELY */
</span><span class="cx"> 
</span><del>-#if !defined(UNLIKELY) &amp;&amp; COMPILER(GCC)
</del><ins>+#if !defined(UNLIKELY) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define UNLIKELY(x) __builtin_expect(!!(x), 0)
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -308,7 +303,7 @@
</span><span class="cx"> 
</span><span class="cx"> /* WARN_UNUSED_RETURN */
</span><span class="cx"> 
</span><del>-#if !defined(WARN_UNUSED_RETURN) &amp;&amp; COMPILER(GCC)
</del><ins>+#if !defined(WARN_UNUSED_RETURN) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define WARN_UNUSED_RETURN __attribute__((__warn_unused_result__))
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWTFwtfExportMacrosh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/ExportMacros.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/ExportMacros.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/ExportMacros.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -89,13 +89,13 @@
</span><span class="cx"> 
</span><span class="cx"> #else // !USE(EXPORT_MACROS)
</span><span class="cx"> 
</span><del>-#if OS(WINDOWS) &amp;&amp; !COMPILER(GCC)
</del><ins>+#if OS(WINDOWS) &amp;&amp; !COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #if defined(BUILDING_WTF) || defined(STATICALLY_LINKED_WITH_WTF)
</span><span class="cx"> #define WTF_EXPORTDATA __declspec(dllexport)
</span><span class="cx"> #else
</span><span class="cx"> #define WTF_EXPORTDATA __declspec(dllimport)
</span><span class="cx"> #endif
</span><del>-#else // !OS(WINDOWS) || COMPILER(GCC)
</del><ins>+#else // !OS(WINDOWS) || COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define WTF_EXPORTDATA
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWTFwtfFastMalloch"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/FastMalloc.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/FastMalloc.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/FastMalloc.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -113,9 +113,9 @@
</span><span class="cx"> using WTF::fastAlignedMalloc;
</span><span class="cx"> using WTF::fastAlignedFree;
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC) &amp;&amp; OS(DARWIN)
</del><ins>+#if COMPILER(GCC_OR_CLANG) &amp;&amp; OS(DARWIN)
</ins><span class="cx"> #define WTF_PRIVATE_INLINE __private_extern__ inline __attribute__((always_inline))
</span><del>-#elif COMPILER(GCC)
</del><ins>+#elif COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define WTF_PRIVATE_INLINE inline __attribute__((always_inline))
</span><span class="cx"> #elif COMPILER(MSVC)
</span><span class="cx"> #define WTF_PRIVATE_INLINE __forceinline
</span></span></pre></div>
<a id="trunkSourceWTFwtfPlatformh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Platform.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Platform.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/Platform.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -822,14 +822,14 @@
</span><span class="cx"> /* Configure the JIT */
</span><span class="cx"> #if CPU(X86) &amp;&amp; COMPILER(MSVC)
</span><span class="cx"> #define JSC_HOST_CALL __fastcall
</span><del>-#elif CPU(X86) &amp;&amp; COMPILER(GCC)
</del><ins>+#elif CPU(X86) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define JSC_HOST_CALL __attribute__ ((fastcall))
</span><span class="cx"> #else
</span><span class="cx"> #define JSC_HOST_CALL
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="cx"> /* Configure the interpreter */
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #define HAVE_COMPUTED_GOTO 1
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><span class="lines">@@ -975,7 +975,7 @@
</span><span class="cx"> #define USE_IMLANG_FONT_LINK2 1
</span><span class="cx"> #endif
</span><span class="cx"> 
</span><del>-#if !defined(ENABLE_COMPARE_AND_SWAP) &amp;&amp; (OS(WINDOWS) || (COMPILER(GCC) &amp;&amp; (CPU(X86) || CPU(X86_64) || CPU(ARM_THUMB2) || CPU(ARM64))))
</del><ins>+#if !defined(ENABLE_COMPARE_AND_SWAP) &amp;&amp; (OS(WINDOWS) || (COMPILER(GCC_OR_CLANG) &amp;&amp; (CPU(X86) || CPU(X86_64) || CPU(ARM_THUMB2) || CPU(ARM64))))
</ins><span class="cx"> #define ENABLE_COMPARE_AND_SWAP 1
</span><span class="cx"> #endif
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWTFwtfStdLibExtrash"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/StdLibExtras.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/StdLibExtras.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/StdLibExtras.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -38,7 +38,7 @@
</span><span class="cx"> //
</span><span class="cx"> // Newly written code should use static NeverDestroyed&lt;T&gt; instead.
</span><span class="cx"> #ifndef DEPRECATED_DEFINE_STATIC_LOCAL
</span><del>-#if COMPILER(GCC) &amp;&amp; defined(__APPLE_CC__) &amp;&amp; __GNUC__ == 4 &amp;&amp; __GNUC_MINOR__ == 0 &amp;&amp; __GNUC_PATCHLEVEL__ == 1
</del><ins>+#if COMPILER(GCC_OR_CLANG) &amp;&amp; defined(__APPLE_CC__) &amp;&amp; __GNUC__ == 4 &amp;&amp; __GNUC_MINOR__ == 0 &amp;&amp; __GNUC_PATCHLEVEL__ == 1
</ins><span class="cx"> #define DEPRECATED_DEFINE_STATIC_LOCAL(type, name, arguments) \
</span><span class="cx">     static type* name##Ptr = new type arguments; \
</span><span class="cx">     type&amp; name = *name##Ptr
</span><span class="lines">@@ -88,7 +88,7 @@
</span><span class="cx">  * - https://bugs.webkit.org/show_bug.cgi?id=38045
</span><span class="cx">  * - http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43976
</span><span class="cx">  */
</span><del>-#if (CPU(ARM) || CPU(MIPS)) &amp;&amp; COMPILER(GCC)
</del><ins>+#if (CPU(ARM) || CPU(MIPS)) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> template&lt;typename Type&gt;
</span><span class="cx"> inline bool isPointerTypeAlignmentOkay(Type* ptr)
</span><span class="cx"> {
</span><span class="lines">@@ -180,7 +180,7 @@
</span><span class="cx"> // Macro that returns a compile time constant with the length of an array, but gives an error if passed a non-array.
</span><span class="cx"> template&lt;typename T, size_t Size&gt; char (&amp;ArrayLengthHelperFunction(T (&amp;)[Size]))[Size];
</span><span class="cx"> // GCC needs some help to deduce a 0 length array.
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> template&lt;typename T&gt; char (&amp;ArrayLengthHelperFunction(T (&amp;)[0]))[0];
</span><span class="cx"> #endif
</span><span class="cx"> #define WTF_ARRAY_LENGTH(array) sizeof(::WTF::ArrayLengthHelperFunction(array))
</span></span></pre></div>
<a id="trunkSourceWTFwtfVectorh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/Vector.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/Vector.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/Vector.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -185,7 +185,7 @@
</span><span class="cx">     static void uninitializedFill(T* dst, T* dstEnd, const T&amp; val) 
</span><span class="cx">     {
</span><span class="cx">         static_assert(sizeof(T) == 1, &quot;Size of type T should be equal to one!&quot;);
</span><del>-#if COMPILER(GCC) &amp;&amp; defined(_FORTIFY_SOURCE)
</del><ins>+#if COMPILER(GCC_OR_CLANG) &amp;&amp; defined(_FORTIFY_SOURCE)
</ins><span class="cx">         if (!__builtin_constant_p(dstEnd - dst) || (!(dstEnd - dst)))
</span><span class="cx"> #endif
</span><span class="cx">             memset(dst, val, dstEnd - dst);
</span></span></pre></div>
<a id="trunkSourceWTFwtftextASCIIFastPathh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WTF/wtf/text/ASCIIFastPath.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WTF/wtf/text/ASCIIFastPath.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WTF/wtf/text/ASCIIFastPath.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -139,7 +139,7 @@
</span><span class="cx">         ASSERT(!(source[i] &amp; 0xff00));
</span><span class="cx">         destination[i] = static_cast&lt;LChar&gt;(source[i]);
</span><span class="cx">     }
</span><del>-#elif COMPILER(GCC) &amp;&amp; CPU(ARM64) &amp;&amp; defined(NDEBUG)
</del><ins>+#elif COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(ARM64) &amp;&amp; defined(NDEBUG)
</ins><span class="cx">     const LChar* const end = destination + length;
</span><span class="cx">     const uintptr_t memoryAccessSize = 16;
</span><span class="cx"> 
</span><span class="lines">@@ -160,7 +160,7 @@
</span><span class="cx"> 
</span><span class="cx">     while (destination != end)
</span><span class="cx">         *destination++ = static_cast&lt;LChar&gt;(*source++);
</span><del>-#elif COMPILER(GCC) &amp;&amp; CPU(ARM_NEON) &amp;&amp; !(CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)) &amp;&amp; defined(NDEBUG)
</del><ins>+#elif COMPILER(GCC_OR_CLANG) &amp;&amp; CPU(ARM_NEON) &amp;&amp; !(CPU(BIG_ENDIAN) || CPU(MIDDLE_ENDIAN)) &amp;&amp; defined(NDEBUG)
</ins><span class="cx">     const LChar* const end = destination + length;
</span><span class="cx">     const uintptr_t memoryAccessSize = 8;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WebCore/ChangeLog        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -1,5 +1,19 @@
</span><span class="cx"> 2015-08-03  Csaba Osztrogonác  &lt;ossy@webkit.org&gt;
</span><span class="cx"> 
</span><ins>+        Introduce COMPILER(GCC_OR_CLANG) guard and make COMPILER(GCC) true only for GCC
+        https://bugs.webkit.org/show_bug.cgi?id=146833
+
+        Reviewed by Alexey Proskuryakov.
+
+        * platform/graphics/cpu/arm/filters/FELightingNEON.cpp:
+        * platform/graphics/cpu/arm/filters/FELightingNEON.h:
+        * platform/graphics/filters/FELighting.cpp:
+        (WebCore::FELighting::platformApply):
+        * platform/network/efl/NetworkStateNotifierEfl.cpp:
+        (WebCore::NetworkStateNotifier::readSocketCallback):
+
+2015-08-03  Csaba Osztrogonác  &lt;ossy@webkit.org&gt;
+
</ins><span class="cx">         [CMake] Add an option to build AllInOne files
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=102647
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscpuarmfiltersFELightingNEONcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> #include &quot;config.h&quot;
</span><span class="cx"> #include &quot;FELightingNEON.h&quot;
</span><span class="cx"> 
</span><del>-#if CPU(ARM_NEON) &amp;&amp; CPU(ARM_TRADITIONAL) &amp;&amp; COMPILER(GCC)
</del><ins>+#if CPU(ARM_NEON) &amp;&amp; CPU(ARM_TRADITIONAL) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> namespace WebCore {
</span><span class="cx"> 
</span><span class="lines">@@ -500,4 +500,4 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#endif // CPU(ARM_NEON) &amp;&amp; COMPILER(GCC)
</del><ins>+#endif // CPU(ARM_NEON) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicscpuarmfiltersFELightingNEONh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WebCore/platform/graphics/cpu/arm/filters/FELightingNEON.h        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> #ifndef FELightingNEON_h
</span><span class="cx"> #define FELightingNEON_h
</span><span class="cx"> 
</span><del>-#if CPU(ARM_NEON) &amp;&amp; CPU(ARM_TRADITIONAL) &amp;&amp; COMPILER(GCC)
</del><ins>+#if CPU(ARM_NEON) &amp;&amp; CPU(ARM_TRADITIONAL) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #include &quot;FELighting.h&quot;
</span><span class="cx"> #include &lt;wtf/ParallelJobs.h&gt;
</span><span class="lines">@@ -194,6 +194,6 @@
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span><span class="cx"> 
</span><del>-#endif // CPU(ARM_NEON) &amp;&amp; COMPILER(GCC)
</del><ins>+#endif // CPU(ARM_NEON) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> 
</span><span class="cx"> #endif // FELightingNEON_h
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformgraphicsfiltersFELightingcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WebCore/platform/graphics/filters/FELighting.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -282,7 +282,7 @@
</span><span class="cx"> inline void FELighting::platformApply(LightingData&amp; data, LightSource::PaintingData&amp; paintingData)
</span><span class="cx"> {
</span><span class="cx">     // The selection here eventually should happen dynamically on some platforms.
</span><del>-#if CPU(ARM_NEON) &amp;&amp; CPU(ARM_TRADITIONAL) &amp;&amp; COMPILER(GCC)
</del><ins>+#if CPU(ARM_NEON) &amp;&amp; CPU(ARM_TRADITIONAL) &amp;&amp; COMPILER(GCC_OR_CLANG)
</ins><span class="cx">     platformApplyNeon(data, paintingData);
</span><span class="cx"> #else
</span><span class="cx">     platformApplyGeneric(data, paintingData);
</span></span></pre></div>
<a id="trunkSourceWebCoreplatformnetworkeflNetworkStateNotifierEflcpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/platform/network/efl/NetworkStateNotifierEfl.cpp (187818 => 187819)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/platform/network/efl/NetworkStateNotifierEfl.cpp        2015-08-04 06:49:35 UTC (rev 187818)
+++ trunk/Source/WebCore/platform/network/efl/NetworkStateNotifierEfl.cpp        2015-08-04 06:51:29 UTC (rev 187819)
</span><span class="lines">@@ -136,12 +136,12 @@
</span><span class="cx">             if ((nlh-&gt;nlmsg_type == RTM_NEWADDR &amp;&amp; !notifier-&gt;m_isOnLine) || (nlh-&gt;nlmsg_type == RTM_DELADDR &amp;&amp; notifier-&gt;m_isOnLine))
</span><span class="cx">                 detectedChange = true;
</span><span class="cx"> 
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #pragma GCC diagnostic push
</span><span class="cx"> #pragma GCC diagnostic ignored &quot;-Wcast-align&quot;
</span><span class="cx"> #endif
</span><span class="cx">             nlh = NLMSG_NEXT(nlh, length);
</span><del>-#if COMPILER(GCC)
</del><ins>+#if COMPILER(GCC_OR_CLANG)
</ins><span class="cx"> #pragma GCC diagnostic pop
</span><span class="cx"> #endif
</span><span class="cx">         }
</span></span></pre>
</div>
</div>

</body>
</html>