From 3b4d394c5d962c5d5f6dae608d3d8fc91c109ff0 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 25 Aug 2020 19:29:32 +0100 Subject: [PATCH] Darwin, Arm64 : Fix ptrdiff type. This was wrong (the size needs to track the 64-bitness and was failing to do so. --- gcc/config/aarch64/darwin.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/config/aarch64/darwin.h b/gcc/config/aarch64/darwin.h index f9a7bbce9bf1..e3ae10ccaf23 100644 --- a/gcc/config/aarch64/darwin.h +++ b/gcc/config/aarch64/darwin.h @@ -31,6 +31,9 @@ along with GCC; see the file COPYING3. If not see #undef TARGET_64BIT #define TARGET_64BIT 1 +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "long int" + /* NOTE that arm64_32 is a valid thing and corresponds to darwinpcs and TARGET_ILP32, but we are not implementing that for now. */ #define TARGET_OS_CPP_BUILTINS() \