File tree Expand file tree Collapse file tree 3 files changed +44
-1
lines changed
Expand file tree Collapse file tree 3 files changed +44
-1
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ m32c*-*-*)
8282 cpu_type=m32c
8383 tmake_file=t-fdpbit
8484 ;;
85- aarch64*-*-*)
85+ aarch64*-*-* | arm64*-*-* )
8686 cpu_type=aarch64
8787 ;;
8888alpha*-*-*)
@@ -418,6 +418,14 @@ aarch64*-*-elf | aarch64*-*-rtems*)
418418 tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
419419 md_unwind_header=aarch64/aarch64-unwind.h
420420 ;;
421+ aarch64*-*darwin* | arm64*-*darwin* )
422+ extra_parts="$extra_parts crtfastmath.o"
423+ tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
424+ tmake_file="${tmake_file} ${cpu_type}/t-lse "
425+ tmake_file="${tmake_file} t-crtfm"
426+ # No soft float for now because our long double is DF not TF.
427+ md_unwind_header=aarch64/aarch64-unwind.h
428+ ;;
421429aarch64*-*-freebsd*)
422430 extra_parts="$extra_parts crtfastmath.o"
423431 tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
Original file line number Diff line number Diff line change @@ -58,7 +58,11 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
5858#endif
5959
6060/ * Declare the symbol gating the LSE implementations. * /
61+ #if __ELF__
6162 .hidden __aarch64_have_lse_atomics
63+ #else
64+ .private_ extern __aarch64_have_lse_atomics
65+ #endif
6266
6367/ * Turn size and memory model defines into mnemonic fragments. * /
6468#if SIZE == 1
@@ -164,6 +168,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
164168#define BTI_C hint 34
165169
166170/ * Start and end a function. * /
171+ #if __ELF__
167172.macro STARTFN name
168173 .text
169174 .balign 16
@@ -187,6 +192,29 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
187192 cbz w(tmp0) , \label
188193.endm
189194
195+ #else
196+ .macro STARTFN name
197+ .text
198+ .balign 16
199+ .private_ extern _\name
200+ .cfi_startproc
201+ _\name:
202+ BTI_C
203+ .endm
204+
205+ .macro ENDFN name
206+ .cfi_endproc
207+ .endm
208+
209+ / * Branch to LABEL if LSE is disabled. * /
210+ .macro JUMP_IF_NOT_LSE label
211+ adrp x(tmp0) , ___aarch64_have_lse_atomics@PAGE
212+ ldrb w(tmp0) , [ x(tmp0) , ___aarch64_have_lse_atomics@PAGEOFF ]
213+ cbz w(tmp0) , \label
214+ .endm
215+
216+ #endif
217+
190218#ifdef L_cas
191219
192220STARTFN NAME(cas)
Original file line number Diff line number Diff line change 1+ # FIXME: decide what we need here, or delete this file.
2+
3+ HOST_LIBGCC2_CFLAGS += -mmacosx-version-min=11.0
4+
5+ LIB2_SIDITI_CONV_FUNCS = yes
6+
7+ # LIB2FUNCS_EXCLUDE = _fixtfdi _fixunstfdi _floatditf _floatunditf
You can’t perform that action at this time.
0 commit comments