Changeset 86304 in webkit


Ignore:
Timestamp:
May 11, 2011 8:38:59 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-05-11 Igor Oliveira <igor.oliveira@openbossa.org>

Reviewed by Eric Seidel.

WebKit does not build with GCCE
https://bugs.webkit.org/show_bug.cgi?id=60667

Allow compile WebKit with GCCE

  • wtf/Alignment.h:
  • wtf/Platform.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r86302 r86304  
     12011-05-11  Igor Oliveira  <igor.oliveira@openbossa.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        WebKit does not build with GCCE
     6        https://bugs.webkit.org/show_bug.cgi?id=60667
     7
     8        Allow compile WebKit with GCCE
     9
     10        * wtf/Alignment.h:
     11        * wtf/Platform.h:
     12
    1132011-05-11  Adam Barth  <abarth@webkit.org>
    214
  • trunk/Source/JavaScriptCore/wtf/Alignment.h

    r84290 r86304  
    2424#include <wtf/Platform.h>
    2525
    26 #if COMPILER(GCC) || COMPILER(MINGW) || COMPILER(RVCT) || COMPILER(WINSCW)
     26#if COMPILER(GCC) || COMPILER(MINGW) || COMPILER(RVCT) || COMPILER(WINSCW) || COMPILER(GCCE)
    2727    #define WTF_ALIGN_OF(type) __alignof__(type)
    2828    #define WTF_ALIGNED(variable_type, variable, n) variable_type variable __attribute__((__aligned__(n)))
  • trunk/Source/JavaScriptCore/wtf/Platform.h

    r86294 r86304  
    8181#endif
    8282
     83/* COMPILER(GCCE) - GNU Compiler Collection for Embedded */
     84#if defined(__GCCE__)
     85#define WTF_COMPILER_GCCE 1
     86#define GCCE_VERSION (__GCCE__ * 10000 + __GCCE_MINOR__ * 100 + __GCCE_PATCHLEVEL__)
     87#define GCCE_VERSION_AT_LEAST(major, minor, patch) (GCCE_VERSION >= (major * 10000 + minor * 100 + patch))
     88#endif
     89
    8390/* COMPILER(GCC) - GNU Compiler Collection */
    8491/* --gnu option of the RVCT compiler also defines __GNUC__ */
Note: See TracChangeset for help on using the changeset viewer.