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 @@ -720,11 +720,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES}
720
720
721
721
set (nvptx64_SOURCES ${GENERIC_SOURCES} )
722
722
723
- set (powerpc_SOURCES ${GENERIC_SOURCES} )
724
-
725
723
set (powerpcspe_SOURCES ${GENERIC_SOURCES} )
726
724
727
- set (powerpc64_SOURCES
725
+ set (powerpc_SOURCES
728
726
ppc/divtc3.c
729
727
ppc/fixtfdi.c
730
728
ppc/fixunstfdi.c
@@ -739,14 +737,15 @@ set(powerpc64_SOURCES
739
737
)
740
738
# These routines require __int128, which isn't supported on AIX.
741
739
if (NOT OS_NAME MATCHES "AIX" )
742
- set (powerpc64_SOURCES
740
+ set (powerpc_SOURCES
743
741
ppc/floattitf.c
744
742
ppc/fixtfti.c
745
743
ppc/fixunstfti.c
746
- ${powerpc64_SOURCES }
744
+ ${powerpc_SOURCES }
747
745
)
748
746
endif ()
749
- set (powerpc64le_SOURCES ${powerpc64_SOURCES} )
747
+ set (powerpc64le_SOURCES ${powerpc_SOURCES} )
748
+ set (powerpc64_SOURCES ${powerpc_SOURCES} )
750
749
751
750
set (riscv_SOURCES
752
751
cpu_model/riscv.c
@@ -904,9 +903,9 @@ else ()
904
903
list (APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET )
905
904
endif ()
906
905
907
- # For RISCV32, we must force enable int128 for compiling long
906
+ # For RISCV32/PPC32 , we must force enable int128 for compiling long
908
907
# double routines.
909
- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" )
908
+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" OR " ${arch} " STREQUAL "powerpc" )
910
909
list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128 )
911
910
endif ()
912
911
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