Changeset 162126 in webkit


Ignore:
Timestamp:
Jan 16, 2014 7:06:45 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> 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:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r162086 r162126  
     12014-01-16  Peter Molnar  <pmolnar.u-szeged@partner.samsung.com>
     2
     3        Require at least GCC version 4.7
     4        https://bugs.webkit.org/show_bug.cgi?id=127049
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        r161770 added a template alias, so the minimum GCC version is 4.7 now.
     9
     10        Also fixed a typo in the error message about old MSVC version.
     11
     12        * wtf/Compiler.h:
     13
    1142014-01-15  Alberto Garcia  <berto@igalia.com>
    215
  • trunk/Source/WTF/wtf/Compiler.h

    r161451 r162126  
    6262#if defined(_MSC_VER)
    6363#if _MSC_VER < 1800
    64 #error "Please use a newer version of Visual Studio. WebKit requires VS2013 or newere to compile."
     64#error "Please use a newer version of Visual Studio. WebKit requires VS2013 or newer to compile."
    6565#endif
    6666#define WTF_COMPILER_MSVC 1
     
    106106/* Specific compiler features */
    107107#if COMPILER(GCC) && !COMPILER(CLANG)
     108#if !GCC_VERSION_AT_LEAST(4, 7, 0)
     109#error "Please use a newer version of GCC. WebKit requires GCC 4.7.0 or newer to compile."
     110#endif
    108111#if GCC_VERSION_AT_LEAST(4, 8, 0)
    109112#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
     
    115118#if defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus >= 201103L)
    116119/* C++11 support */
    117 #if GCC_VERSION_AT_LEAST(4, 3, 0)
    118120#define WTF_COMPILER_SUPPORTS_CXX_RVALUE_REFERENCES 1
    119121#define WTF_COMPILER_SUPPORTS_CXX_STATIC_ASSERT 1
    120122#define WTF_COMPILER_SUPPORTS_CXX_VARIADIC_TEMPLATES 1
    121123#define WTF_COMPILER_SUPPORTS_CXX_AUTO_TYPE 1
    122 #endif
    123 #if GCC_VERSION_AT_LEAST(4, 4, 0)
    124124#define WTF_COMPILER_SUPPORTS_CXX_DELETED_FUNCTIONS 1
    125 #endif
    126 #if GCC_VERSION_AT_LEAST(4, 5, 0)
    127125#define WTF_COMPILER_SUPPORTS_CXX_EXPLICIT_CONVERSIONS 1
    128 #endif
    129 #if GCC_VERSION_AT_LEAST(4, 6, 0)
    130126#define WTF_COMPILER_SUPPORTS_CXX_NULLPTR 1
    131127/* Strong enums should work from gcc 4.4, but doesn't seem to support some operators */
    132128#define WTF_COMPILER_SUPPORTS_CXX_STRONG_ENUMS 1
    133 #endif
    134 #if GCC_VERSION_AT_LEAST(4, 7, 0)
    135129#pragma GCC diagnostic ignored "-Wunused-local-typedefs"
    136130#define WTF_COMPILER_SUPPORTS_CXX_OVERRIDE_CONTROL 1
    137 #endif
    138131#endif /* defined(__GXX_EXPERIMENTAL_CXX0X__) || (defined(__cplusplus) && __cplusplus >= 201103L) */
    139132#endif /* COMPILER(GCC) */
Note: See TracChangeset for help on using the changeset viewer.