Changeset 38592 in webkit


Ignore:
Timestamp:
Nov 19, 2008 1:06:05 AM (15 years ago)
Author:
mrowe@apple.com
Message:

Expand the workaround for Apple GCC compiler bug <rdar://problem/6354696> to all versions of GCC 4.0.1.
It has been observed with builds 5465 (Xcode 3.0) and 5484 (Xcode 3.1), and there is no evidence
that it has been fixed in newer builds of GCC 4.0.1.

This addresses <https://bugs.webkit.org/show_bug.cgi?id=22351> (WebKit nightly crashes on launch on 10.4.11).

Reviewed by Alexey Proskuryakov.

  • wtf/StdLibExtras.h:
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r38590 r38592  
     12008-11-19  Mark Rowe  <mrowe@apple.com>
     2
     3        Reviewed by Alexey Proskuryakov.
     4
     5        Expand the workaround for Apple GCC compiler bug <rdar://problem/6354696> to all versions of GCC 4.0.1.
     6        It has been observed with builds 5465 (Xcode 3.0) and 5484 (Xcode 3.1), and there is no evidence
     7        that it has been fixed in newer builds of GCC 4.0.1.
     8
     9        This addresses <https://bugs.webkit.org/show_bug.cgi?id=22351> (WebKit nightly crashes on launch on 10.4.11).
     10
     11        * wtf/StdLibExtras.h:
     12
    1132008-11-18  Cameron Zwarich  <zwarich@apple.com>
    214
  • trunk/JavaScriptCore/wtf/StdLibExtras.h

    r38457 r38592  
    2828// Use these to declare and define a static local variable (static T;) so that
    2929//  it is leaked so that its destructors are not called at exit. Using this
    30 //  macro also allows workarounds for various compiler bugs.
    31 #if COMPILER(GCC) && (__GNUC__ == 4) && (__GNUC_MINOR__ == 0) && (__GNUC_PATCHLEVEL__ == 1) && (__APPLE_CC__ == 5465)
     30//  macro also allows workarounds a compiler bug present in Apple's version of GCC 4.0.1.
     31#if COMPILER(GCC) && defined(__APPLE_CC__) && __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 1
    3232#define DEFINE_STATIC_LOCAL(type, name, arguments) \
    3333    static type* name##Ptr = new type arguments; \
Note: See TracChangeset for help on using the changeset viewer.