Skip to content
Permalink
Browse files
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:

Canonical link: https://commits.webkit.org/75961@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@86304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
webkit-commit-queue committed May 12, 2011
1 parent c872593 commit f46e3e40cd42830333d238f0c9b56fa767a4491e
Showing with 20 additions and 1 deletion.
  1. +12 −0 Source/JavaScriptCore/ChangeLog
  2. +1 −1 Source/JavaScriptCore/wtf/Alignment.h
  3. +7 −0 Source/JavaScriptCore/wtf/Platform.h
@@ -1,3 +1,15 @@
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:

2011-05-11 Adam Barth <abarth@webkit.org>

Reviewed by Eric Seidel.
@@ -23,7 +23,7 @@

#include <wtf/Platform.h>

#if COMPILER(GCC) || COMPILER(MINGW) || COMPILER(RVCT) || COMPILER(WINSCW)
#if COMPILER(GCC) || COMPILER(MINGW) || COMPILER(RVCT) || COMPILER(WINSCW) || COMPILER(GCCE)
#define WTF_ALIGN_OF(type) __alignof__(type)
#define WTF_ALIGNED(variable_type, variable, n) variable_type variable __attribute__((__aligned__(n)))
#elif COMPILER(MSVC)
@@ -80,6 +80,13 @@
#define RVCT_VERSION_AT_LEAST(major, minor, patch, build) 0
#endif

/* COMPILER(GCCE) - GNU Compiler Collection for Embedded */
#if defined(__GCCE__)
#define WTF_COMPILER_GCCE 1
#define GCCE_VERSION (__GCCE__ * 10000 + __GCCE_MINOR__ * 100 + __GCCE_PATCHLEVEL__)
#define GCCE_VERSION_AT_LEAST(major, minor, patch) (GCCE_VERSION >= (major * 10000 + minor * 100 + patch))
#endif

/* COMPILER(GCC) - GNU Compiler Collection */
/* --gnu option of the RVCT compiler also defines __GNUC__ */
#if defined(__GNUC__) && !COMPILER(RVCT)

0 comments on commit f46e3e4

Please sign in to comment.