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 @@ -740,11 +740,9 @@ set(mips64el_SOURCES ${GENERIC_TF_SOURCES}
740
740
741
741
set (nvptx64_SOURCES ${GENERIC_SOURCES} )
742
742
743
- set (powerpc_SOURCES ${GENERIC_SOURCES} )
744
-
745
743
set (powerpcspe_SOURCES ${GENERIC_SOURCES} )
746
744
747
- set (powerpc64_SOURCES
745
+ set (powerpc_SOURCES
748
746
ppc/divtc3.c
749
747
ppc/fixtfdi.c
750
748
ppc/fixunstfdi.c
@@ -759,14 +757,15 @@ set(powerpc64_SOURCES
759
757
)
760
758
# These routines require __int128, which isn't supported on AIX.
761
759
if (NOT OS_NAME MATCHES "AIX" )
762
- set (powerpc64_SOURCES
760
+ set (powerpc_SOURCES
763
761
ppc/floattitf.c
764
762
ppc/fixtfti.c
765
763
ppc/fixunstfti.c
766
- ${powerpc64_SOURCES }
764
+ ${powerpc_SOURCES }
767
765
)
768
766
endif ()
769
- set (powerpc64le_SOURCES ${powerpc64_SOURCES} )
767
+ set (powerpc64le_SOURCES ${powerpc_SOURCES} )
768
+ set (powerpc64_SOURCES ${powerpc_SOURCES} )
770
769
771
770
set (riscv_SOURCES
772
771
cpu_model/riscv.c
@@ -932,9 +931,9 @@ else ()
932
931
list (APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET )
933
932
endif ()
934
933
935
- # For RISCV32, we must force enable int128 for compiling long
934
+ # For RISCV32/PPC32 , we must force enable int128 for compiling long
936
935
# double routines.
937
- if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" )
936
+ if (COMPILER_RT_ENABLE_SOFTWARE_INT128 OR "${arch} " STREQUAL "riscv32" OR " ${arch} " STREQUAL "powerpc" )
938
937
list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128 )
939
938
endif ()
940
939
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