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 @@ -763,11 +763,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES}
763763
764764set (nvptx64_SOURCES ${GENERIC_SOURCES} )
765765
766- set (powerpc_SOURCES ${GENERIC_SOURCES} )
767-
768766set (powerpcspe_SOURCES ${GENERIC_SOURCES} )
769767
770- set (powerpc64_SOURCES
768+ set (powerpc_SOURCES
771769 ppc/divtc3.c
772770 ppc/fixtfdi.c
773771 ppc/fixunstfdi.c
@@ -782,14 +780,15 @@ set(powerpc64_SOURCES
782780)
783781# These routines require __int128, which isn't supported on AIX.
784782if (NOT OS_NAME MATCHES "AIX" )
785- set (powerpc64_SOURCES
783+ set (powerpc_SOURCES
786784 ppc/floattitf.c
787785 ppc/fixtfti.c
788786 ppc/fixunstfti.c
789- ${powerpc64_SOURCES }
787+ ${powerpc_SOURCES }
790788 )
791789endif ()
792- set (powerpc64le_SOURCES ${powerpc64_SOURCES} )
790+ set (powerpc64le_SOURCES ${powerpc_SOURCES} )
791+ set (powerpc64_SOURCES ${powerpc_SOURCES} )
793792
794793set (riscv_SOURCES
795794 cpu_model/riscv.c
@@ -960,9 +959,9 @@ else ()
960959 list (APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
961960 endif ()
962961
963- # For RISCV32, we must force enable int128 for compiling long
962+ # For RISCV32/PPC32 , we must force enable int128 for compiling long
964963 # double routines.
965- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" )
964+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" OR " ${arch} " STREQUAL "powerpc" )
966965 list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128)
967966 endif ()
968967
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