Changeset 178725 in webkit


Ignore:
Timestamp:
Jan 20, 2015 11:12:24 AM (9 years ago)
Author:
berto@igalia.com
Message:

Fix failed to build for Linux/MIPS64EL
https://bugs.webkit.org/show_bug.cgi?id=124370

Patch by YunQiang Su <wzssyqa@gmail.com> on 2015-01-20
Reviewed by Darin Adler.

Add MIPS64EL support.

  • wtf/Platform.h:
  • wtf/dtoa/utils.h:
Location:
trunk/Source/WTF
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r178722 r178725  
     12015-01-20  YunQiang Su  <wzssyqa@gmail.com>
     2
     3        Fix failed to build for Linux/MIPS64EL
     4        https://bugs.webkit.org/show_bug.cgi?id=124370
     5
     6        Reviewed by Darin Adler.
     7
     8        Add MIPS64EL support.
     9
     10        * wtf/Platform.h:
     11        * wtf/dtoa/utils.h:
     12
    1132015-01-19  Alexey Proskuryakov  <ap@apple.com>
    214
  • trunk/Source/WTF/wtf/Platform.h

    r178420 r178725  
    8181#endif
    8282
    83 /* CPU(MIPS) - MIPS 32-bit */
    84 /* Note: Only O32 ABI is tested, so we enable it for O32 ABI for now.  */
    85 #if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_)) \
    86     && defined(_ABIO32)
     83/* CPU(MIPS) - MIPS 32-bit and 64-bit */
     84#if (defined(mips) || defined(__mips__) || defined(MIPS) || defined(_MIPS_) || defined(__mips64))
     85#if defined(_MIPS_SIM_ABI64) && (_MIPS_SIM == _MIPS_SIM_ABI64)
     86#define WTF_CPU_MIPS64 1
     87#define WTF_MIPS_ARCH __mips64
     88#else
    8789#define WTF_CPU_MIPS 1
     90#define WTF_MIPS_ARCH __mips
     91#endif
    8892#if defined(__MIPSEB__)
    8993#define WTF_CPU_BIG_ENDIAN 1
    9094#endif
    9195#define WTF_MIPS_PIC (defined __PIC__)
    92 #define WTF_MIPS_ARCH __mips
    9396#define WTF_MIPS_ISA(v) (defined WTF_MIPS_ARCH && WTF_MIPS_ARCH == v)
    9497#define WTF_MIPS_ISA_AT_LEAST(v) (defined WTF_MIPS_ARCH && WTF_MIPS_ARCH >= v)
     
    644647    || CPU(ARM64) \
    645648    || CPU(S390X) \
     649    || CPU(MIPS64) \
    646650    || CPU(PPC64) \
    647651    || CPU(PPC64LE)
  • trunk/Source/WTF/wtf/dtoa/utils.h

    r176217 r178725  
    5050defined(_MIPS_ARCH_MIPS32R2)
    5151#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
    52 #elif CPU(MIPS) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA)
     52#elif CPU(MIPS) || CPU(MIPS64) || CPU(PPC) || CPU(PPC64) || CPU(PPC64LE) || CPU(SH4) || CPU(S390) || CPU(S390X) || CPU(IA64) || CPU(ALPHA) || CPU(ARM64) || CPU(HPPA)
    5353#define DOUBLE_CONVERSION_CORRECT_DOUBLE_OPERATIONS 1
    5454#elif defined(_M_IX86) || defined(__i386__)
Note: See TracChangeset for help on using the changeset viewer.