File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -621,11 +621,9 @@ set(mips64_SOURCES ${GENERIC_TF_SOURCES}
621
621
set (mips64el_SOURCES ${GENERIC_TF_SOURCES}
622
622
${mips_SOURCES} )
623
623
624
- set (powerpc_SOURCES ${GENERIC_SOURCES} )
625
-
626
624
set (powerpcspe_SOURCES ${GENERIC_SOURCES} )
627
625
628
- set (powerpc64_SOURCES
626
+ set (powerpc_SOURCES
629
627
ppc/divtc3.c
630
628
ppc/fixtfdi.c
631
629
ppc/fixunstfdi.c
@@ -640,14 +638,15 @@ set(powerpc64_SOURCES
640
638
)
641
639
# These routines require __int128, which isn't supported on AIX.
642
640
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX" )
643
- set (powerpc64_SOURCES
641
+ set (powerpc_SOURCES
644
642
ppc/floattitf.c
645
643
ppc/fixtfti.c
646
644
ppc/fixunstfti.c
647
- ${powerpc64_SOURCES }
645
+ ${powerpc_SOURCES }
648
646
)
649
647
endif ()
650
- set (powerpc64le_SOURCES ${powerpc64_SOURCES} )
648
+ set (powerpc64le_SOURCES ${powerpc_SOURCES} )
649
+ set (powerpc64_SOURCES ${powerpc_SOURCES} )
651
650
652
651
set (riscv_SOURCES
653
652
riscv/save.S
@@ -754,9 +753,8 @@ else ()
754
753
list (APPEND BUILTIN_CFLAGS_${arch} -fomit-frame-pointer -DCOMPILER_RT_ARMHF_TARGET)
755
754
endif ()
756
755
757
- # For RISCV32, we must force enable int128 for compiling long
758
- # double routines.
759
- if ("${arch} " STREQUAL "riscv32" )
756
+ # For some arches, force enable int128 for compiling long double routines.
757
+ if ("${arch} " STREQUAL "powerpc" OR "${arch} " STREQUAL "riscv32" )
760
758
list (APPEND BUILTIN_CFLAGS_${arch} -fforce-enable-int128)
761
759
endif ()
762
760
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(__riscv ) || defined(_WIN64 )
67
+ defined(__riscv ) || 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