Changeset 152195 in webkit


Ignore:
Timestamp:
Jun 28, 2013 4:40:09 PM (11 years ago)
Author:
aestes@apple.com
Message:

[Mac] Newer versions of clang use a default template instantiation depth that is too small for TestWebKitAPI
https://bugs.webkit.org/show_bug.cgi?id=118208

Reviewed by Mark Rowe.

Newer versions of clang use a default template depth of 128, but this
is too small for Tests/WTF/HashSet.cpp. Use 256 instead, which was the
previous default.

Clang lowered the default to keep recursive template instantiation
from overflowing the stack (see <rdar://problem/13935016>), but
TestWebKitAPI's C++ files don't trigger a stack overflow even with the
higher limit. If for some reason this starts happening then we can
lower the limit back down.

  • TestWebKitAPI/Configurations/Base.xcconfig: Build TestWebKitAPI with -ftemplate-depth=256.
Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r152191 r152195  
     12013-06-28  Andy Estes  <aestes@apple.com>
     2
     3        [Mac] Newer versions of clang use a default template instantiation depth that is too small for TestWebKitAPI
     4        https://bugs.webkit.org/show_bug.cgi?id=118208
     5
     6        Reviewed by Mark Rowe.
     7
     8        Newer versions of clang use a default template depth of 128, but this
     9        is too small for Tests/WTF/HashSet.cpp. Use 256 instead, which was the
     10        previous default.
     11
     12        Clang lowered the default to keep recursive template instantiation
     13        from overflowing the stack (see <rdar://problem/13935016>), but
     14        TestWebKitAPI's C++ files don't trigger a stack overflow even with the
     15        higher limit. If for some reason this starts happening then we can
     16        lower the limit back down.
     17
     18        * TestWebKitAPI/Configurations/Base.xcconfig: Build TestWebKitAPI with -ftemplate-depth=256.
     19
    1202013-06-28  Nick Diego Yamane  <nick.yamane@openbossa.org>
    221
  • trunk/Tools/TestWebKitAPI/Configurations/Base.xcconfig

    r142828 r152195  
    4444WARNING_CFLAGS = -Wall -W -Wno-unused-parameter
    4545LINKER_DISPLAYS_MANGLED_NAMES = YES;
     46OTHER_CPLUSPLUSFLAGS = $(OTHER_CPLUSPLUSFLAGS) -ftemplate-depth=256;
    4647
    4748// DEBUG_DEFINES, GCC_OPTIMIZATION_LEVEL, STRIP_INSTALLED_PRODUCT and DEAD_CODE_STRIPPING vary between the debug and normal variants.
Note: See TracChangeset for help on using the changeset viewer.