Changeset 175544 in webkit


Ignore:
Timestamp:
Nov 4, 2014 6:32:03 AM (10 years ago)
Author:
Dániel Bátyai
Message:

ATTR_USED incorrectly applying to Clang
https://bugs.webkit.org/show_bug.cgi?id=138313

Reviewed by Csaba Osztrogonác.

ATTR_USED was only intended for GCC. Also limit it to ENABLE(FTL_NATIVE_CALL_INLINING)
since that's the only thing it's needed for.

  • wtf/Platform.h:
Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r175513 r175544  
     12014-11-04  Dániel Bátyai  <dbatyai.u-szeged@partner.samsung.com>
     2
     3        ATTR_USED incorrectly applying to Clang
     4        https://bugs.webkit.org/show_bug.cgi?id=138313
     5
     6        Reviewed by Csaba Osztrogonác.
     7
     8        ATTR_USED was only intended for GCC. Also limit it to ENABLE(FTL_NATIVE_CALL_INLINING)
     9        since that's the only thing it's needed for.
     10
     11        * wtf/Platform.h:
     12
    1132014-11-03  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WTF/wtf/Platform.h

    r175253 r175544  
    748748
    749749/* Used to make GCC's optimization not throw away a symbol that we would need for native inlining */
    750 #if COMPILER(GCC)
     750#if ENABLE(FTL_NATIVE_CALL_INLINING) && COMPILER(GCC) && !COMPILER(CLANG)
    751751#define ATTR_USED __attribute__ ((used))
    752752#else
Note: See TracChangeset for help on using the changeset viewer.