diff --git a/gcc/config/aarch64/darwin.h b/gcc/config/aarch64/darwin.h index b605b94f97f15..c645c7df9cb45 100644 --- a/gcc/config/aarch64/darwin.h +++ b/gcc/config/aarch64/darwin.h @@ -229,3 +229,8 @@ along with GCC; see the file COPYING3. If not see #undef ASM_OUTPUT_DEF_FROM_DECLS +#undef CLEAR_INSN_CACHE +#define CLEAR_INSN_CACHE(beg, end) \ + extern void sys_icache_invalidate(void *start, size_t len); \ + sys_icache_invalidate ((beg), (size_t)((end)-(beg))) + diff --git a/libgcc/config.host b/libgcc/config.host index d72314845cc8a..cf0c8500e73d0 100644 --- a/libgcc/config.host +++ b/libgcc/config.host @@ -413,7 +413,6 @@ aarch64*-*-elf | aarch64*-*-rtems*) ;; aarch64*-*darwin* | arm64*-*darwin* ) extra_parts="$extra_parts crtfastmath.o" - tmake_file="${tmake_file} ${cpu_type}/t-aarch64" tmake_file="${tmake_file} ${cpu_type}/t-lse " tmake_file="${tmake_file} t-crtfm" # No soft float for now because our long double is DF not TF.