File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed
Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -812,11 +812,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES}
812812
813813set (nvptx64_SOURCES ${GENERIC_SOURCES} )
814814
815- set (powerpc_SOURCES ${GENERIC_SOURCES} )
816-
817815set (powerpcspe_SOURCES ${GENERIC_SOURCES} )
818816
819- set (powerpc64_SOURCES
817+ set (powerpc_SOURCES
820818 ppc/divtc3.c
821819 ppc/fixtfdi.c
822820 ppc/fixunstfdi.c
@@ -831,14 +829,15 @@ set(powerpc64_SOURCES
831829)
832830# These routines require __int128, which isn't supported on AIX.
833831if (NOT OS_NAME MATCHES "AIX" )
834- set (powerpc64_SOURCES
832+ set (powerpc_SOURCES
835833 ppc/floattitf.c
836834 ppc/fixtfti.c
837835 ppc/fixunstfti.c
838- ${powerpc64_SOURCES }
836+ ${powerpc_SOURCES }
839837 )
840838endif ()
841- set (powerpc64le_SOURCES ${powerpc64_SOURCES} )
839+ set (powerpc64le_SOURCES ${powerpc_SOURCES} )
840+ set (powerpc64_SOURCES ${powerpc_SOURCES} )
842841
843842set (riscv_SOURCES
844843 cpu_model/riscv.c
@@ -1011,9 +1010,9 @@ else ()
10111010 list (APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
10121011 endif ()
10131012
1014- # For RISCV32, we must force enable int128 for compiling long
1013+ # For RISCV32/PPC32 , we must force enable int128 for compiling long
10151014 # double routines.
1016- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" )
1015+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" OR " ${arch} " STREQUAL "powerpc" )
10171016 list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128)
10181017 endif ()
10191018
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ typedef union {
6464} udwords ;
6565
6666#if defined(__LP64__ ) || defined(__wasm__ ) || defined(__mips64 ) || \
67- defined(__SIZEOF_INT128__ ) || defined(_WIN64 )
67+ defined(__SIZEOF_INT128__ ) || defined(_WIN64 ) || defined( __powerpc__ )
6868#define CRT_HAS_128BIT
6969#endif
7070
You can’t perform that action at this time.
0 commit comments