Title: [149962] releases/WebKitGTK/webkit-2.0/Source
Revision
149962
Author
[email protected]
Date
2013-05-12 09:33:15 -0700 (Sun, 12 May 2013)

Log Message

Merge r147640 - Fix the build with GCC 4.8
https://bugs.webkit.org/show_bug.cgi?id=113147

Reviewed by Allan Sandfeld Jensen.

Source/_javascript_Core:

Initialize JSObject* exception to suppress warnings that make
the build fail because of -Werror=maybe-uninitialized.

* runtime/Executable.cpp:
(JSC::FunctionExecutable::compileForCallInternal):
(JSC::FunctionExecutable::compileForConstructInternal):

Source/WTF:

Disable diagnostic warning -Wunused-local-typedefs for GCC 4.8
since dummy typedefs are commonly used in the codebase.

* wtf/Compiler.h:

Modified Paths

Diff

Modified: releases/WebKitGTK/webkit-2.0/Source/_javascript_Core/ChangeLog (149961 => 149962)


--- releases/WebKitGTK/webkit-2.0/Source/_javascript_Core/ChangeLog	2013-05-12 15:22:02 UTC (rev 149961)
+++ releases/WebKitGTK/webkit-2.0/Source/_javascript_Core/ChangeLog	2013-05-12 16:33:15 UTC (rev 149962)
@@ -1,3 +1,17 @@
+2013-04-04  Andras Becsi  <[email protected]>
+
+        Fix the build with GCC 4.8
+        https://bugs.webkit.org/show_bug.cgi?id=113147
+
+        Reviewed by Allan Sandfeld Jensen.
+
+        Initialize JSObject* exception to suppress warnings that make
+        the build fail because of -Werror=maybe-uninitialized.
+
+        * runtime/Executable.cpp:
+        (JSC::FunctionExecutable::compileForCallInternal):
+        (JSC::FunctionExecutable::compileForConstructInternal):
+
 2013-02-19  Filip Pizlo  <[email protected]>
 
         DFG::SpeculativeJIT::compileInt32ToDouble() has an unnecessary case for constant operands

Modified: releases/WebKitGTK/webkit-2.0/Source/_javascript_Core/runtime/Executable.cpp (149961 => 149962)


--- releases/WebKitGTK/webkit-2.0/Source/_javascript_Core/runtime/Executable.cpp	2013-05-12 15:22:02 UTC (rev 149961)
+++ releases/WebKitGTK/webkit-2.0/Source/_javascript_Core/runtime/Executable.cpp	2013-05-12 16:33:15 UTC (rev 149962)
@@ -523,7 +523,7 @@
     UNUSED_PARAM(bytecodeIndex);
 #endif
     ASSERT((jitType == JITCode::bottomTierJIT()) == !m_codeBlockForCall);
-    JSObject* exception;
+    JSObject* exception = 0;
     OwnPtr<FunctionCodeBlock> newCodeBlock = produceCodeBlockFor(scope, CodeForCall, exception);
     if (!newCodeBlock)
         return exception;
@@ -559,7 +559,7 @@
 #endif
     
     ASSERT((jitType == JITCode::bottomTierJIT()) == !m_codeBlockForConstruct);
-    JSObject* exception;
+    JSObject* exception = 0;
     OwnPtr<FunctionCodeBlock> newCodeBlock = produceCodeBlockFor(scope, CodeForConstruct, exception);
     if (!newCodeBlock)
         return exception;

Modified: releases/WebKitGTK/webkit-2.0/Source/WTF/ChangeLog (149961 => 149962)


--- releases/WebKitGTK/webkit-2.0/Source/WTF/ChangeLog	2013-05-12 15:22:02 UTC (rev 149961)
+++ releases/WebKitGTK/webkit-2.0/Source/WTF/ChangeLog	2013-05-12 16:33:15 UTC (rev 149962)
@@ -1,3 +1,15 @@
+2013-04-04  Andras Becsi  <[email protected]>
+
+        Fix the build with GCC 4.8
+        https://bugs.webkit.org/show_bug.cgi?id=113147
+
+        Reviewed by Allan Sandfeld Jensen.
+
+        Disable diagnostic warning -Wunused-local-typedefs for GCC 4.8
+        since dummy typedefs are commonly used in the codebase.
+
+        * wtf/Compiler.h:
+
 2013-03-27  Allan Sandfeld Jensen  <[email protected]>
 
         Support C++11 static_assert

Modified: releases/WebKitGTK/webkit-2.0/Source/WTF/wtf/Compiler.h (149961 => 149962)


--- releases/WebKitGTK/webkit-2.0/Source/WTF/wtf/Compiler.h	2013-05-12 15:22:02 UTC (rev 149961)
+++ releases/WebKitGTK/webkit-2.0/Source/WTF/wtf/Compiler.h	2013-05-12 16:33:15 UTC (rev 149962)
@@ -123,6 +123,9 @@
 
 /* Specific compiler features */
 #if COMPILER(GCC) && !COMPILER(CLANG)
+#if GCC_VERSION_AT_LEAST(4, 8, 0)
+#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
+#endif
 #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
 /* C11 support */
 #define WTF_COMPILER_SUPPORTS_C_STATIC_ASSERT 1
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to