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 @@ -749,11 +749,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES}
749
749
750
750
set (nvptx64_SOURCES ${GENERIC_SOURCES} )
751
751
752
- set (powerpc_SOURCES ${GENERIC_SOURCES} )
753
-
754
752
set (powerpcspe_SOURCES ${GENERIC_SOURCES} )
755
753
756
- set (powerpc64_SOURCES
754
+ set (powerpc_SOURCES
757
755
ppc/divtc3.c
758
756
ppc/fixtfdi.c
759
757
ppc/fixunstfdi.c
@@ -768,14 +766,15 @@ set(powerpc64_SOURCES
768
766
)
769
767
# These routines require __int128, which isn't supported on AIX.
770
768
if (NOT OS_NAME MATCHES "AIX" )
771
- set (powerpc64_SOURCES
769
+ set (powerpc_SOURCES
772
770
ppc/floattitf.c
773
771
ppc/fixtfti.c
774
772
ppc/fixunstfti.c
775
- ${powerpc64_SOURCES }
773
+ ${powerpc_SOURCES }
776
774
)
777
775
endif ()
778
- set (powerpc64le_SOURCES ${powerpc64_SOURCES} )
776
+ set (powerpc64le_SOURCES ${powerpc_SOURCES} )
777
+ set (powerpc64_SOURCES ${powerpc_SOURCES} )
779
778
780
779
set (riscv_SOURCES
781
780
cpu_model/riscv.c
@@ -941,9 +940,9 @@ else ()
941
940
list (APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET )
942
941
endif ()
943
942
944
- # For RISCV32, we must force enable int128 for compiling long
943
+ # For RISCV32/PPC32 , we must force enable int128 for compiling long
945
944
# double routines.
946
- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" )
945
+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" OR " ${arch} " STREQUAL "powerpc" )
947
946
list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128 )
948
947
endif ()
949
948
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ typedef union {
64
64
} udwords ;
65
65
66
66
#if defined(__LP64__ ) || defined(__wasm__ ) || defined(__mips64 ) || \
67
- defined(__SIZEOF_INT128__ ) || defined(_WIN64 )
67
+ defined(__SIZEOF_INT128__ ) || defined(_WIN64 ) || defined( __powerpc__ )
68
68
#define CRT_HAS_128BIT
69
69
#endif
70
70
You can’t perform that action at this time.
0 commit comments