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*-*-*)
@@ -408,6 +408,14 @@ aarch64*-*-elf | aarch64*-*-rtems*)
408
408
tmake_file="${tmake_file} ${cpu_type}/t-softfp t-softfp t-crtfm"
409
409
md_unwind_header=aarch64/aarch64-unwind.h
410
410
;;
411
+ aarch64*-*darwin* | arm64*-*darwin* )
412
+ extra_parts="$extra_parts crtfastmath.o"
413
+ tmake_file="${tmake_file} ${cpu_type}/t-aarch64"
414
+ tmake_file="${tmake_file} ${cpu_type}/t-lse "
415
+ tmake_file="${tmake_file} t-crtfm"
416
+ # No soft float for now because our long double is DF not TF.
417
+ md_unwind_header=aarch64/aarch64-unwind.h
418
+ ;;
411
419
aarch64*-*-freebsd*)
412
420
extra_parts="$extra_parts crtfastmath.o"
413
421
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
@@ -139,6 +143,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
139
143
#define BTI_C hint 34
140
144
141
145
/ * Start and end a function. * /
146
+ #if __ELF__
142
147
.macro STARTFN name
143
148
.text
144
149
.balign 16
@@ -162,6 +167,29 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
162
167
cbz w(tmp0) , \label
163
168
.endm
164
169
170
+ #else
171
+ .macro STARTFN name
172
+ .text
173
+ .balign 16
174
+ .private_ extern _\name
175
+ .cfi_startproc
176
+ _\name:
177
+ BTI_C
178
+ .endm
179
+
180
+ .macro ENDFN name
181
+ .cfi_endproc
182
+ .endm
183
+
184
+ / * Branch to LABEL if LSE is disabled. * /
185
+ .macro JUMP_IF_NOT_LSE label
186
+ adrp x(tmp0) , ___aarch64_have_lse_atomics@PAGE
187
+ ldrb w(tmp0) , [ x(tmp0) , ___aarch64_have_lse_atomics@PAGEOFF ]
188
+ cbz w(tmp0) , \label
189
+ .endm
190
+
191
+ #endif
192
+
165
193
#ifdef L_cas
166
194
167
195
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