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*-*-*)
82
82
cpu_type=m32c
83
83
tmake_file=t-fdpbit
84
84
;;
85
- aarch64*-*-*)
85
+ aarch64*-*-* | arm64*-*-* )
86
86
cpu_type=aarch64
87
87
;;
88
88
alpha*-*-*)
@@ -419,6 +419,14 @@ aarch64*-*-elf | aarch64*-*-rtems*)
419
419
tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
420
420
md_unwind_header=aarch64/aarch64-unwind.h
421
421
;;
422
+ aarch64*-*darwin* | arm64*-*darwin* )
423
+ extra_parts="$extra_parts crtfastmath.o"
424
+ tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
425
+ tmake_file="${tmake_file} ${cpu_type}/t-lse "
426
+ tmake_file="${tmake_file} t-crtfm"
427
+ # No soft float for now because our long double is DF not TF.
428
+ md_unwind_header=aarch64/aarch64-unwind.h
429
+ ;;
422
430
aarch64*-*-freebsd*)
423
431
extra_parts="$extra_parts crtfastmath.o"
424
432
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
58
58
#endif
59
59
60
60
/ * Declare the symbol gating the LSE implementations. * /
61
+ #if __ELF__
61
62
.hidden __aarch64_have_lse_atomics
63
+ #else
64
+ .private_ extern __aarch64_have_lse_atomics
65
+ #endif
62
66
63
67
/ * Turn size and memory model defines into mnemonic fragments. * /
64
68
#if SIZE == 1
@@ -164,6 +168,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
164
168
#define BTI_C hint 34
165
169
166
170
/ * Start and end a function. * /
171
+ #if __ELF__
167
172
.macro STARTFN name
168
173
.text
169
174
.balign 16
@@ -187,6 +192,29 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
187
192
cbz w(tmp0) , \label
188
193
.endm
189
194
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
+
190
218
#ifdef L_cas
191
219
192
220
STARTFN 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