Title: [162126] trunk/Source/WTF
Revision
162126
Author
[email protected]
Date
2014-01-16 07:06:45 -0800 (Thu, 16 Jan 2014)

Log Message

Require at least GCC version 4.7
https://bugs.webkit.org/show_bug.cgi?id=127049

Patch by Peter Molnar <[email protected]> on 2014-01-16
Reviewed by Csaba Osztrogonác.

r161770 added a template alias, so the minimum GCC version is 4.7 now.

Also fixed a typo in the error message about old MSVC version.

* wtf/Compiler.h:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (162125 => 162126)


--- trunk/Source/WTF/ChangeLog	2014-01-16 15:01:05 UTC (rev 162125)
+++ trunk/Source/WTF/ChangeLog	2014-01-16 15:06:45 UTC (rev 162126)
@@ -1,3 +1,16 @@
+2014-01-16  Peter Molnar  <[email protected]>
+
+        Require at least GCC version 4.7
+        https://bugs.webkit.org/show_bug.cgi?id=127049
+
+        Reviewed by Csaba Osztrogonác.
+
+        r161770 added a template alias, so the minimum GCC version is 4.7 now.
+
+        Also fixed a typo in the error message about old MSVC version.
+
+        * wtf/Compiler.h:
+
 2014-01-15  Alberto Garcia  <[email protected]>
 
         [GTK] v2.3.3 fails to build in Debian / FreeBSD

Modified: trunk/Source/WTF/wtf/Compiler.h (162125 => 162126)


--- trunk/Source/WTF/wtf/Compiler.h	2014-01-16 15:01:05 UTC (rev 162125)
+++ trunk/Source/WTF/wtf/Compiler.h	2014-01-16 15:06:45 UTC (rev 162126)
@@ -61,7 +61,7 @@
 /* COMPILER(MSVC) - Microsoft Visual C++ */
 #if defined(_MSC_VER)
 #if _MSC_VER < 1800
-#error "Please use a newer version of Visual Studio. WebKit requires VS2013 or newere to compile."
+#error "Please use a newer version of Visual Studio. WebKit requires VS2013 or newer to compile."
 #endif
 #define WTF_COMPILER_MSVC 1
 
@@ -105,6 +105,9 @@
 
 /* Specific compiler features */
 #if COMPILER(GCC) && !COMPILER(CLANG)
+#if !GCC_VERSION_AT_LEAST(4, 7, 0)
+#error "Please use a newer version of GCC. WebKit requires GCC 4.7.0 or newer to compile."
+#endif
 #if GCC_VERSION_AT_LEAST(4, 8, 0)
 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #endif
@@ -114,27 +117,17 @@
 #endif
 #if defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus >= 201103L)
 /* C++11 support */
-#if GCC_VERSION_AT_LEAST(4, 3, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES 1
 #define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT 1
 #define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES 1
 #define WTF_COMPILER_SUPPORTS_CXX_AUTO_TYPE 1
-#endif
-#if GCC_VERSION_AT_LEAST(4, 4, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS 1
-#endif
-#if GCC_VERSION_AT_LEAST(4, 5, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS 1
-#endif
-#if GCC_VERSION_AT_LEAST(4, 6, 0)
 #define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1
 /* Strong enums should work from gcc 4.4, but doesn't seem to support some operators */
 #define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS 1
-#endif
-#if GCC_VERSION_AT_LEAST(4, 7, 0)
 #pragma GCC diagnostic ignored "-Wunused-local-typedefs"
 #define WTF_COMPILER_SUPPORTS_CXX_OVERRIDE_CONTROL 1
-#endif
 #endif /* defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus >= 201103L) */
 #endif /* COMPILER(GCC) */
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to