⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 283348 in webkit


Ignore:
Timestamp:
Sep 30, 2021, 5:26:28 PM (5 years ago)
Author:
ysuzuki@apple.com
Message:

Upgrade GCC requirement to 8.3.0
https://bugs.webkit.org/show_bug.cgi?id=231042

Reviewed by Darin Adler.

.:

Based on the roadmap[1], we upgrade GCC requirement to 8.3.0, which is default GCC in Debian one-old-stable (buster) right now.
This paves the way to enabling some of useful C++20 features, e.g. default initializer for bitfields.

[1]: https://trac.webkit.org/wiki/WebKitGTK/GCCRequirement

  • Source/cmake/WebKitCommon.cmake:

Source/JavaScriptCore:

  • runtime/ConfigFile.cpp:

(JSC::ConfigFile::canonicalizePaths):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r283238 r283348  
     12021-09-30  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Upgrade GCC requirement to 8.3.0
     4        https://bugs.webkit.org/show_bug.cgi?id=231042
     5
     6        Reviewed by Darin Adler.
     7
     8        Based on the roadmap[1], we upgrade GCC requirement to 8.3.0, which is default GCC in Debian one-old-stable (buster) right now.
     9        This paves the way to enabling some of useful C++20 features, e.g. default initializer for bitfields.
     10
     11        [1]: https://trac.webkit.org/wiki/WebKitGTK/GCCRequirement
     12
     13        * Source/cmake/WebKitCommon.cmake:
     14
    1152021-09-29  Kimmo Kinnunen  <kkinnunen@apple.com>
    216
  • trunk/Source/JavaScriptCore/ChangeLog

    r283344 r283348  
     12021-09-30  Yusuke Suzuki  <ysuzuki@apple.com>
     2
     3        Upgrade GCC requirement to 8.3.0
     4        https://bugs.webkit.org/show_bug.cgi?id=231042
     5
     6        Reviewed by Darin Adler.
     7
     8        * runtime/ConfigFile.cpp:
     9        (JSC::ConfigFile::canonicalizePaths):
     10
    1112021-09-30  Saam Barati  <sbarati@apple.com>
    212
  • trunk/Source/JavaScriptCore/runtime/ConfigFile.cpp

    r261755 r283348  
    488488                if (shouldAddPathSeparator)
    489489                    strncat(filenameBuffer, "/", 2); // Room for '/' plus NUL
    490 #if COMPILER(GCC)
    491 #if GCC_VERSION_AT_LEAST(8, 0, 0)
    492                 IGNORE_WARNINGS_BEGIN("stringop-truncation")
    493 #endif
    494 #endif
     490                IGNORE_GCC_WARNINGS_BEGIN("stringop-truncation")
    495491                strncat(filenameBuffer, m_filename, sizeof(filenameBuffer) - strlen(filenameBuffer) - 1);
    496 #if COMPILER(GCC)
    497 #if GCC_VERSION_AT_LEAST(8, 0, 0)
    498                 IGNORE_WARNINGS_END
    499 #endif
    500 #endif
     492                IGNORE_GCC_WARNINGS_END
    501493                strncpy(m_filename, filenameBuffer, s_maxPathLength);
    502494                m_filename[s_maxPathLength] = '\0';
  • trunk/Source/cmake/WebKitCommon.cmake

    r282065 r283348  
    6464
    6565    if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
    66         if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "7.3.0")
    67             message(FATAL_ERROR "GCC 7.3 or newer is required to build WebKit. Use a newer GCC version or Clang.")
     66        if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "8.3.0")
     67            message(FATAL_ERROR "GCC 8.3 or newer is required to build WebKit. Use a newer GCC version or Clang.")
    6868        endif ()
    6969    endif ()
Note: See TracChangeset for help on using the changeset viewer.