Index: lib/libcompiler_rt/Makefile =================================================================== --- lib/libcompiler_rt/Makefile +++ lib/libcompiler_rt/Makefile @@ -37,6 +37,7 @@ clzti2 \ cmpdi2 \ cmpti2 \ + comparetf2 \ ctzdi2 \ ctzsi2 \ ctzti2 \ @@ -50,6 +51,8 @@ divxc3 \ enable_execute_stack \ eprintf \ + extenddftf2 \ + extendsftf2 \ ffsdi2 \ ffsti2 \ fixdfdi \ @@ -127,6 +130,8 @@ subvsi3 \ subvti3 \ trampoline_setup \ + trunctfdf2 \ + trunctfsf2 \ ucmpdi2 \ ucmpti2 \ udivdi3 \ @@ -148,6 +153,7 @@ fixsfsi \ floatsidf \ floatsisf \ + floatsitf \ muldf3 \ mulsf3 \ subdf3 \ @@ -189,6 +195,20 @@ . endif .endfor +.if ${MACHINE_CPUARCH} == "aarch64" +# These files live in the ppc directory so we can't include them using +# SRCF above. We also need to adjust the path to add them. +.PATH: ${CRTSRC}/ppc +SRCS+= fixtfdi.c \ + fixunstfdi.c \ + floatditf.c \ + floatunditf.c \ + gcc_qadd.c \ + gcc_qmul.c \ + gcc_qsub.c \ + multc3.c +.endif + .if ${MACHINE_CPUARCH} == "arm" SRCS+= aeabi_div0.c \ aeabi_idivmod.S \